Skip to content

Theming

Registry components use your app's Tailwind theme. Unlike embedded widgets, they render in your document and can inherit or override its styles.

Theme tokens

Color keys are blue, brown, green, orange, pink, purple, red, yellow, gray and default. Gray/default use neutral muted tokens. Milestone colorHex is separate from these tokens: pass a six-digit hex value such as #0b6e99, because the track appends alpha suffixes to it.

:root {
  --tag-blue: oklch(0.55 0.12 240);
  --tag-blue-text: oklch(0.38 0.10 240);
}
.dark {
  --tag-blue: oklch(0.72 0.10 240);
  --tag-blue-text: oklch(0.85 0.07 240);
}

Customize installed source

Use className on components that expose it for spacing, width or typography. Vote controls without a props interface cannot receive arbitrary classes or HTML attributes. Edit the installed source when you need to change their labels, disable voting, alter headings or support additional DOM props.

Tag/status color keys are not arbitrary CSS colors. Use the predefined keys or extend the installed color map. Milestone targetDate and horizon labels are display strings; format them before passing data.

Dark mode and accessibility

  • Apply your app's existing dark theme. The registry supplies tag token values, not a theme toggle or detection hook.
  • Check text, status colors, milestone hex colors and focus rings against both light and dark surfaces. A color prop does not guarantee contrast.
  • Motion components use the user's reduced-motion preference; track and expansion transitions include motion-reduce classes. Preserve those paths when editing animations.
  • Vote buttons include accessible names and pressed states. Keep these when changing icons. Do not wrap a card containing vote buttons inside another button.