Subexpression is a shadcn/ui theme built around a deep orange primary color (#261c0d) with deep violet accents (#1c0d26). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#261c0d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #150f04black | #fdfdfbsnow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #110c03black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #110c03black | #ffffffwhite |
| Primary | #261c0dblack | #261c0dblack |
| Primary foreground | #d8bb8dburlywood | #d8bb8dburlywood |
| Secondary | #0d261cblack | #0d261cblack |
| Secondary foreground | #41be8emediumseagreen | #41be8emediumseagreen |
| Muted | #cee8degainsboro | #173127darkslategray |
| Muted foreground | #5a635fdimgray | #9ca5a2darkgray |
| Accent | #1c0d26black | #1c0d26black |
| Accent foreground | #bb8dd8plum | #bb8dd8plum |
| Destructive | #9e1405darkred | #f8240dorangered |
| Destructive foreground | #fedbd7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #261c0dblack | #261c0dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 9.06:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 4.80:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 6.36:1 | AA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.06:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 5.55:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Subexpression in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.025 81.213);
--muted: oklch(0.91 0.03 170.601);
--muted-foreground: oklch(0.491 0.013 170.809);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.157 0.022 83.547);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.157 0.022 83.547);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.235 0.03 78.36);
--primary-foreground: oklch(0.806 0.069 79.333);
--secondary: oklch(0.245 0.036 165.975);
--secondary-foreground: oklch(0.72 0.131 163.817);
--accent: oklch(0.195 0.052 310.93);
--accent-foreground: oklch(0.715 0.117 311.84);
--destructive: oklch(0.448 0.172 30.555);
--destructive-foreground: oklch(0.92 0.039 25.39);
--ring: oklch(0.235 0.03 78.36);
--chart-1: oklch(0.235 0.03 78.36);
--chart-2: oklch(0.245 0.036 165.975);
--chart-3: oklch(0.195 0.052 310.93);
--chart-4: oklch(0.286 0.045 165.484);
--chart-5: oklch(0.237 0.032 78.156);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 79.931);
--muted: oklch(0.287 0.037 166.987);
--muted-foreground: oklch(0.714 0.012 171.105);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.235 0.03 78.36);
--primary-foreground: oklch(0.806 0.069 79.333);
--secondary: oklch(0.245 0.036 165.975);
--secondary-foreground: oklch(0.72 0.131 163.817);
--accent: oklch(0.195 0.052 310.93);
--accent-foreground: oklch(0.715 0.117 311.84);
--destructive: oklch(0.625 0.242 30.405);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.235 0.03 78.36);
--chart-1: oklch(0.235 0.03 78.36);
--chart-2: oklch(0.245 0.036 165.975);
--chart-3: oklch(0.195 0.052 310.93);
--chart-4: oklch(0.286 0.045 165.484);
--chart-5: oklch(0.237 0.032 78.156);
}