maud-ui 0.1.0

58 headless, accessible UI components for Rust web apps. Built on maud + htmx, styled like shadcn/ui.
Documentation
/* Chart component — inline SVG bar and line charts */

.mui-chart {
  width: 100%;
  border: 1px solid var(--mui-border);
  border-radius: var(--mui-radius-md);
  padding: 1.25rem 1rem 0.75rem;
  background: var(--mui-bg-card);
  overflow: hidden;
}

.mui-chart__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--mui-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.mui-chart__svg {
  color: var(--mui-text);
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.mui-chart__label {
  font-size: 0.625rem;
  fill: var(--mui-text-muted);
  font-family: var(--mui-font-sans);
}

.mui-chart__value {
  font-size: 0.5625rem;
  fill: var(--mui-text-subtle);
  font-family: var(--mui-font-sans);
}

/* Bar hover effect — brighten and lift */
.mui-chart rect {
  transition: opacity 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}
.mui-chart rect:hover {
  opacity: 1 !important;
  filter: brightness(1.15) saturate(1.1);
}

/* Line chart dot hover — grow and glow on hover */
.mui-chart circle {
  transition: r 0.15s ease;
  cursor: pointer;
}
.mui-chart circle:hover {
  r: 5;
}

/* Grid lines — keep them very subtle */
.mui-chart line[stroke-opacity] {
  shape-rendering: crispEdges;
}