DCNSI is a shadcn/ui theme built around a vivid green primary color (#169f1b) with blue accents (#324281). The light mode uses a neutral background (#fefbfc). Dark mode switches to a red primary (#813242) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #070304black |
| Foreground | #040101black | #fbf9f9snow |
| Card | #fefbfcsnow | #070304black |
| Card foreground | #040101black | #fbf9f9snow |
| Popover | #fefbfcsnow | #070304black |
| Popover foreground | #040101black | #fbf9f9snow |
| Primary | #169f1bforestgreen | #813242brown |
| Primary foreground | #f8edeflinen | #f8edeflinen |
| Secondary | #8f8812olive | #428132darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ddedd9gainsboro | #162612black |
| Muted foreground | #5d615cdimgray | #9fa39edarkgray |
| Accent | #324281darkslateblue | #324281darkslateblue |
| Accent foreground | #edeff8whitesmoke | #edeff8whitesmoke |
| Destructive | #dd0c08red | #e20c08red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #ede8e9linen | #2b2223darkslategray |
| Input | #ede8e9linen | #2b2223darkslategray |
| Ring | #813242brown | #813242brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 3.05:1 | AA Large |
| Secondary button | 3.68:1 | AA Large |
| Muted text | 5.15:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 5.06:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 4.78:1 | AA |
| Muted text | 6.22:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use DCNSI in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 3.26);
--foreground: oklch(0.081 0.019 3.541);
--muted: oklch(0.928 0.031 139.436);
--muted-foreground: oklch(0.487 0.011 139.439);
--popover: oklch(0.991 0.003 3.26);
--popover-foreground: oklch(0.081 0.019 3.541);
--card: oklch(0.991 0.003 3.26);
--card-foreground: oklch(0.081 0.019 3.541);
--border: oklch(0.936 0.005 3.341);
--input: oklch(0.936 0.005 3.341);
--primary: oklch(0.611 0.197 142.967);
--primary-foreground: oklch(0.954 0.012 3.536);
--secondary: oklch(0.614 0.126 105.721);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.399 0.107 270.372);
--accent-foreground: oklch(0.953 0.012 274.875);
--destructive: oklch(0.567 0.229 29.115);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.432 0.109 10.593);
--chart-1: oklch(0.432 0.109 10.593);
--chart-2: oklch(0.541 0.13 139.738);
--chart-3: oklch(0.399 0.107 270.372);
--chart-4: oklch(0.574 0.139 139.748);
--chart-5: oklch(0.432 0.116 11.218);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.015 3.393);
--foreground: oklch(0.983 0.002 3.249);
--muted: oklch(0.248 0.042 139.499);
--muted-foreground: oklch(0.712 0.01 139.441);
--popover: oklch(0.107 0.015 3.393);
--popover-foreground: oklch(0.983 0.002 3.249);
--card: oklch(0.107 0.015 3.393);
--card-foreground: oklch(0.983 0.002 3.249);
--border: oklch(0.262 0.014 4.637);
--input: oklch(0.262 0.014 4.637);
--primary: oklch(0.432 0.109 10.593);
--primary-foreground: oklch(0.954 0.012 3.536);
--secondary: oklch(0.541 0.13 139.738);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.399 0.107 270.372);
--accent-foreground: oklch(0.953 0.012 274.875);
--destructive: oklch(0.577 0.233 29.12);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.432 0.109 10.593);
--chart-1: oklch(0.432 0.109 10.593);
--chart-2: oklch(0.541 0.13 139.738);
--chart-3: oklch(0.399 0.107 270.372);
--chart-4: oklch(0.574 0.139 139.748);
--chart-5: oklch(0.432 0.116 11.218);
}