Token And Dark-Mode Defaults
Pack:
shadcnParent skill: shadcn Theming Tokens And Dark Mode Source:shadcn/shadcn-theming-tokens-and-dark-mode/references/token-and-dark-mode-defaults.mdDefault theme stance:
- semantic tokens first
- CSS variables as the source of truth
- components inherit from tokens
- local overrides stay rare
Good baseline token groups:
- background and foreground
- card and popover
- primary and primary-foreground
- secondary and muted
- accent
- border, input, ring
- destructive
Dark-mode default:
- choose one app-level dark-mode strategy
- wire it early
- validate contrast on surfaces, borders, and focus states
- avoid per-component dark-mode improvisation
Use variants or local utility overrides only after the token layer has done its job.