maud-ui 0.2.1

64 headless, accessible UI components for Rust web apps — shadcn Base UI API parity. Plus block templates, a live theme customiser, and shell hooks for 15 third-party widgets (Monaco, xyflow, Excalidraw, Three.js, AG Grid, Leaflet, FullCalendar, SortableJS, and more). Built on maud + htmx, styled like shadcn/ui.
Documentation
/* Badge component — shadcn-quality solid-color pills */

.mui-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.375rem;
  padding: 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--mui-radius-full);
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
              color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default — accent solid */
.mui-badge--default {
  background-color: var(--mui-accent);
  color: var(--mui-accent-fg);
}

/* Secondary — muted bg, normal text */
.mui-badge--secondary {
  background-color: var(--mui-bg-input);
  border-color: var(--mui-border);
  color: var(--mui-text-muted);
}

/* Success — solid green, white text */
.mui-badge--success {
  background-color: var(--mui-success);
  color: #fff;
}

/* Warning — solid amber, white text for contrast */
.mui-badge--warning {
  background-color: var(--mui-warning);
  color: #fff;
}

/* Danger / destructive — solid red, white text */
.mui-badge--danger {
  background-color: var(--mui-danger);
  color: #fff;
}

/* Outline — transparent bg, border, text inherits */
.mui-badge--outline {
  background-color: transparent;
  border-color: var(--mui-border);
  color: var(--mui-text);
}

/* Ghost — transparent bg, subtle hover, no border */
.mui-badge--ghost {
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--mui-text);
}
.mui-badge--ghost:hover {
  background-color: var(--mui-bg-input);
}

/* Link — inline anchor style, no chrome */
.mui-badge--link {
  background-color: transparent;
  border-color: transparent;
  color: var(--mui-accent);
  padding: 0;
  height: auto;
  text-decoration: underline;
}

/* Inline-start icon — ensure gap between icon and label */
.mui-badge[data-icon="inline-start"] {
  gap: 0.25rem;
}