Premise is a shadcn/ui theme built around a deep green primary color (#0b140b) with deep teal accents (#0b1410). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#0b140b) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #010401black | #fcfdfcwhite |
| Card | #ffffffwhite | #010402black |
| Card foreground | #010401black | #fcfdfcwhite |
| Popover | #ffffffwhite | #010402black |
| Popover foreground | #010401black | #fcfdfcwhite |
| Primary | #0b140bblack | #0b140bblack |
| Primary foreground | #8dc391darkseagreen | #8dc391darkseagreen |
| Secondary | #0f140bblack | #0f140bblack |
| Secondary foreground | #a5c38ddarkseagreen | #a5c38ddarkseagreen |
| Muted | #d8e0d1gainsboro | #252e1fdarkslategray |
| Muted foreground | #656e5edimgray | #98a191darkseagreen |
| Accent | #0b1410black | #0b1410black |
| Accent foreground | #8dc3acdarkseagreen | #8dc3acdarkseagreen |
| Destructive | #7c290esaddlebrown | #d34617chocolate |
| Destructive foreground | #f8d1c3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b140bblack | #0b140bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 9.24:1 | AAA |
| Secondary button | 9.59:1 | AAA |
| Muted text | 3.92:1 | AA Large |
| Accent | 9.39:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 9.24:1 | AAA |
| Secondary button | 9.59:1 | AAA |
| Muted text | 5.28:1 | AA |
| Accent | 9.39:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Premise in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.023 145.742);
--muted: oklch(0.896 0.021 131.296);
--muted-foreground: oklch(0.526 0.027 131.554);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.023 145.742);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.023 145.742);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.179 0.023 146.172);
--primary-foreground: oklch(0.767 0.09 146.29);
--secondary: oklch(0.182 0.02 132.159);
--secondary-foreground: oklch(0.781 0.081 132.064);
--accent: oklch(0.18 0.017 165.837);
--accent-foreground: oklch(0.774 0.065 166.093);
--destructive: oklch(0.403 0.121 37.466);
--destructive-foreground: oklch(0.89 0.049 39.274);
--ring: oklch(0.179 0.023 146.172);
--chart-1: oklch(0.179 0.023 146.172);
--chart-2: oklch(0.182 0.02 132.159);
--chart-3: oklch(0.18 0.017 165.837);
--chart-4: oklch(0.222 0.029 132.365);
--chart-5: oklch(0.18 0.025 146.039);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.014 146.508);
--foreground: oklch(0.993 0.002 147.53);
--muted: oklch(0.287 0.028 132.008);
--muted-foreground: oklch(0.697 0.026 131.412);
--popover: oklch(0.096 0.014 146.508);
--popover-foreground: oklch(0.993 0.002 147.53);
--card: oklch(0.096 0.014 146.508);
--card-foreground: oklch(0.993 0.002 147.53);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.179 0.023 146.172);
--primary-foreground: oklch(0.767 0.09 146.29);
--secondary: oklch(0.182 0.02 132.159);
--secondary-foreground: oklch(0.781 0.081 132.064);
--accent: oklch(0.18 0.017 165.837);
--accent-foreground: oklch(0.774 0.065 166.093);
--destructive: oklch(0.589 0.185 36.907);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.179 0.023 146.172);
--chart-1: oklch(0.179 0.023 146.172);
--chart-2: oklch(0.182 0.02 132.159);
--chart-3: oklch(0.18 0.017 165.837);
--chart-4: oklch(0.222 0.029 132.365);
--chart-5: oklch(0.18 0.025 146.039);
}