Session is a shadcn/ui theme built around a neutral gray primary color (#c7c7c2) with neutral gray accents (#c2c2c7). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the neutral gray primary (#c7c7c2) on a neutral background (#070704).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #070704black |
| Foreground | #0c0d03black | #f9f9f6whitesmoke |
| Card | #fcfcf8snow | #0a0a05black |
| Card foreground | #080802black | #fbfbf9snow |
| Popover | #fdfdfbsnow | #070704black |
| Popover foreground | #0c0d03black | #f9f9f6whitesmoke |
| Primary | #c7c7c2silver | #c7c7c2silver |
| Primary foreground | #2d2d2adarkslategray | #2d2d2adarkslategray |
| Secondary | #c2c2c7silver | #c2c2c7silver |
| Secondary foreground | #2a2a2ddarkslategray | #2a2a2ddarkslategray |
| Muted | #dedee3gainsboro | #1c1c21black |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #c2c2c7silver | #c2c2c7silver |
| Accent foreground | #2a2a2ddarkslategray | #2a2a2ddarkslategray |
| Destructive | #9e2310firebrick | #ed5c45tomato |
| Destructive foreground | #fce6e3mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c7c7c2silver | #c7c7c2silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 5.21:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.19:1 | AA |
Paste this into your globals.css to use Session in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 107.218);
--foreground: oklch(0.153 0.024 109.581);
--muted: oklch(0.901 0.007 287.018);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.995 0.003 107.218);
--popover-foreground: oklch(0.153 0.024 109.581);
--card: oklch(0.99 0.005 107.266);
--card-foreground: oklch(0.133 0.021 109.493);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.827 0.006 107.311);
--primary-foreground: oklch(0.296 0.006 107.543);
--secondary: oklch(0.816 0.007 287.023);
--secondary-foreground: oklch(0.285 0.006 286.761);
--accent: oklch(0.816 0.007 287.023);
--accent-foreground: oklch(0.285 0.006 286.761);
--destructive: oklch(0.458 0.162 31.618);
--destructive-foreground: oklch(0.943 0.024 28.083);
--ring: oklch(0.827 0.006 107.311);
--chart-1: oklch(0.827 0.006 107.311);
--chart-2: oklch(0.816 0.007 287.023);
--chart-3: oklch(0.816 0.007 287.023);
--chart-4: oklch(0.84 0.006 287.047);
--chart-5: oklch(0.832 0.011 107.415);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.01 108.459);
--foreground: oklch(0.981 0.004 107.237);
--muted: oklch(0.228 0.011 286.295);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.125 0.01 108.459);
--popover-foreground: oklch(0.981 0.004 107.237);
--card: oklch(0.143 0.012 108.459);
--card-foreground: oklch(0.987 0.002 107.214);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.827 0.006 107.311);
--primary-foreground: oklch(0.296 0.006 107.543);
--secondary: oklch(0.816 0.007 287.023);
--secondary-foreground: oklch(0.285 0.006 286.761);
--accent: oklch(0.816 0.007 287.023);
--accent-foreground: oklch(0.285 0.006 286.761);
--destructive: oklch(0.659 0.184 31.191);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.827 0.006 107.311);
--chart-1: oklch(0.827 0.006 107.311);
--chart-2: oklch(0.816 0.007 287.023);
--chart-3: oklch(0.816 0.007 287.023);
--chart-4: oklch(0.84 0.006 287.047);
--chart-5: oklch(0.832 0.011 107.415);
}