dimah-s3v1.4.0
Customization

Theming

Customize color tokens and styling for @dimah-s3/ui components.

@dimah-s3/ui components use CSS variable-based tokens (--color-dimah-s3-*) that map directly to standard shadcn theme tokens by default.

Token mapping

TokenDefault Value
--color-dimah-s3-backgroundvar(--background)
--color-dimah-s3-foregroundvar(--foreground)
--color-dimah-s3-cardvar(--card)
--color-dimah-s3-primaryvar(--primary)
--color-dimah-s3-primary-foregroundvar(--primary-foreground)
--color-dimah-s3-mutedvar(--muted)
--color-dimah-s3-muted-foregroundvar(--muted-foreground)
--color-dimah-s3-destructivevar(--destructive)
--color-dimah-s3-bordervar(--border)
--color-dimah-s3-ringvar(--ring)

Customizing colors

To customize styling for dimah-s3 components independently from your global theme, override the tokens in your CSS:

app/globals.css
@import "@dimah-s3/ui/styles.css";

@theme {
  --color-dimah-s3-primary: oklch(0.65 0.15 150);
  --color-dimah-s3-destructive: oklch(0.55 0.2 25);
}

Frequently asked questions

On this page