Theming
Reflet UI components are styled with shadcn CSS variables, so they match your existing theme.
How it works
Components use Tailwind classes like bg-card, text-foreground and border-border, which resolve to the CSS variables in your globals.css. Switch your shadcn theme, say from Zinc to Slate, and the components follow.
Tag colors come from --tag-* variables that the shadcn CLI adds to your CSS when you install a component. Edit them there to retune the palette.
CSS variables used
Customizing components
Components are installed as source files in your project, so you can edit them directly. Common changes:
- Change the corner radius by adjusting the
rounded-*classes. - Adjust padding and gaps.
- Tune vote animations through the
transitionprops on themotionelements. - Add or remove fields such as tags, author or description.
Dark mode
Dark mode works without extra setup. Every color comes from your theme’s CSS variables, including the --tag-* set, which ships with light and dark values.