styles.css
Which stylesheet to import, and how corner radius and density are configured.
| Import | When |
|---|---|
@gaudi/design-system/global.css | Apps without their own Tailwind entry: loads Tailwind v4, Gaudi tokens, foundations and component CSS, and scans the package source. |
@gaudi/design-system/styles.css | Apps that own their Tailwind entry: import after @import "tailwindcss"; and add @source for the package. |
@gaudi/design-system/themes.css | Every theme preset, switched with data-theme (optional when you use ThemeProvider). |
@gaudi/design-system/flow.css | Only with the Flow component. |
src/styles.css aggregates shared foundations and owner-local component styles; src/global.css adds Tailwind and application body defaults. CSS token definitions are authoritative; tokens.json is the JavaScript/preset projection.
Corner radius
Elements use a soft 4px radius. Set --ds-radius on the root after importing the stylesheet to change every corner without rebuilding CSS:
Density
Inner padding, gaps and control heights scale with --ds-space-scale (default 1):
Corner radius
All corners use --ds-radius (configurable down to 0px). Circles only for intrinsic shapes.
Density (--ds-space-scale)
Inner padding, gaps and control heights scale with --ds-space-scale (default 1). Prefer gap-* over space-x/y-*. Component CSS uses calc(var(--ds-space-scale, 1) * <length>).
tight0.75compact0.875default1relaxed1.25spacious1.5