Assessment is a shadcn/ui theme built around a near-white primary color (#fefefb) with near-white accents (#fbfbfe). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fefefb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080901black | #fbfbf9snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080901black | #fbfbf9snow |
| Primary | #fefefbwhite | #fefefbwhite |
| Primary foreground | #47520fdarkolivegreen | #47520fdarkolivegreen |
| Secondary | #fbfbfeghostwhite | #fbfbfeghostwhite |
| Secondary foreground | #361fa8darkslateblue | #361fa8darkslateblue |
| Muted | #eceaf6lavender | #0b0915black |
| Muted foreground | #3e3b4edarkslategray | #b4b1c4silver |
| Accent | #fbfbfeghostwhite | #fbfbfeghostwhite |
| Accent foreground | #361fa8darkslateblue | #361fa8darkslateblue |
| Destructive | #c03e02firebrick | #fd6017orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefefbwhite | #fefefbwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 10.58:1 | AAA |
| Muted text | 9.09:1 | AAA |
| Accent | 10.58:1 | AAA |
| Destructive | 5.34:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 10.58:1 | AAA |
| Muted text | 9.39:1 | AAA |
| Accent | 10.58:1 | AAA |
| Destructive | 6.83:1 | AA |
Paste this into your globals.css to use Assessment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.023 115.059);
--muted: oklch(0.942 0.016 293.754);
--muted-foreground: oklch(0.364 0.033 292.315);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.023 115.059);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.019 115.059);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.996 0.005 114.153);
--primary-foreground: oklch(0.415 0.089 118.873);
--secondary: oklch(0.989 0.005 293.978);
--secondary-foreground: oklch(0.38 0.2 278.539);
--accent: oklch(0.989 0.005 293.978);
--accent-foreground: oklch(0.38 0.2 278.539);
--destructive: oklch(0.546 0.175 38.707);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.996 0.005 114.153);
--chart-1: oklch(0.996 0.005 114.153);
--chart-2: oklch(0.989 0.005 293.978);
--chart-3: oklch(0.989 0.005 293.978);
--chart-4: oklch(1.023 0.009 114.234);
--chart-5: oklch(0.996 0.005 114.157);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.004 114.135);
--muted: oklch(0.151 0.025 290.804);
--muted-foreground: oklch(0.768 0.027 293.393);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.988 0.004 114.135);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.002 114.1);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.996 0.005 114.153);
--primary-foreground: oklch(0.415 0.089 118.873);
--secondary: oklch(0.989 0.005 293.978);
--secondary-foreground: oklch(0.38 0.2 278.539);
--accent: oklch(0.989 0.005 293.978);
--accent-foreground: oklch(0.38 0.2 278.539);
--destructive: oklch(0.685 0.205 40.372);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.996 0.005 114.153);
--chart-1: oklch(0.996 0.005 114.153);
--chart-2: oklch(0.989 0.005 293.978);
--chart-3: oklch(0.989 0.005 293.978);
--chart-4: oklch(1.023 0.009 114.234);
--chart-5: oklch(0.996 0.005 114.157);
}