Theming

Every color is one CSS variable. Change it and every component follows.

Components read semantic tokens like bg-primary and text-muted-foreground, mapped to Tailwind through @theme. dinachi init writes the full set, light and dark, into your CSS file.

The same tokens, light and dark, are variables in the Figma file.

#Change a color

Override the variables in your globals.css:

css
:root {
  --primary: oklch(0.55 0.22 260);
  --primary-foreground: oklch(0.98 0.01 260);
}
 
.dark {
  --primary: oklch(0.70 0.18 260);
  --primary-foreground: oklch(0.15 0.01 260);
}

Every component using bg-primary or text-primary-foreground follows. Dark values go in .dark.

Values are oklch(lightness chroma hue): lightness from 0 to 1, chroma for saturation, hue in degrees. Lightness is perceptually even, so palettes stay balanced.

#Motion

Five custom properties set the feel of every animated component. dinachi init writes them into :root:

css
:root {
  --motion-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --motion-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --motion-duration-fast: 150ms;
  --motion-duration-base: 200ms;
}
TokenUsed by
--motion-ease-outAnything entering or leaving: popovers, menus, dialogs, tooltips, panels
--motion-ease-in-outMovement between two on-screen positions, such as the tabs indicator
--motion-ease-drawerSurfaces that slide in from an edge
--motion-duration-fastPopovers, tooltips, menus, selects, press feedback, and every exit
--motion-duration-baseDialogs, drawers, panels that change height, the tabs indicator

Lower both durations for a snappier product, or raise them for a calmer one. Nothing else needs to change.

#Reduced motion

Components respond to prefers-reduced-motion: reduce without any configuration. The handling is gentler rather than absent: popovers and dialogs keep the fade that signals arrival and drop the scale, drawers fade in place instead of sliding, and panels, indicators and chevrons cut straight to their end state.