Unlined is a shadcn/ui theme built around a light green primary color (#dfe8c9) with neutral gray accents (#d7d8d4). The light mode uses a neutral background (#fdfefb). Dark mode keeps the light green primary (#dfe8c9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #070901black | #fbfbf8snow |
| Card | #fbfcf7snow | #030303black |
| Card foreground | #030401black | #fdfdfcwhite |
| Popover | #fbfcf7snow | #030303black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #dfe8c9gainsboro | #dfe8c9gainsboro |
| Primary foreground | #0f1208black | #0f1208black |
| Secondary | #d7d8d4lightgrey | #272923darkslategray |
| Secondary foreground | #3e403adarkslategray | #c1c4basilver |
| Muted | #dbded3gainsboro | #282c21darkslategray |
| Muted foreground | #5c5f53dimgray | #a8aca0darkgray |
| Accent | #d7d8d4lightgrey | #272923darkslategray |
| Accent foreground | #3e403adarkslategray | #c1c4basilver |
| Destructive | #ab2d07firebrick | #f6501eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dfe8c9gainsboro | #dfe8c9gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 14.88:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 4.79:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 14.88:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Unlined in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 120.094);
--foreground: oklch(0.132 0.025 119.87);
--muted: oklch(0.895 0.015 120.317);
--muted-foreground: oklch(0.48 0.02 120.747);
--popover: oklch(0.99 0.007 120.151);
--popover-foreground: oklch(0.105 0.02 119.87);
--card: oklch(0.99 0.007 120.151);
--card-foreground: oklch(0.105 0.02 119.87);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.916 0.042 120.812);
--primary-foreground: oklch(0.174 0.021 121.925);
--secondary: oklch(0.881 0.006 120.147);
--secondary-foreground: oklch(0.369 0.011 120.521);
--accent: oklch(0.881 0.006 120.147);
--accent-foreground: oklch(0.369 0.011 120.521);
--destructive: oklch(0.493 0.168 35.088);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.916 0.042 120.812);
--chart-1: oklch(0.916 0.042 120.812);
--chart-2: oklch(0.881 0.006 120.147);
--chart-3: oklch(0.881 0.006 120.147);
--chart-4: oklch(0.903 0.005 120.123);
--chart-5: oklch(0.919 0.045 120.867);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.004 120.111);
--muted: oklch(0.285 0.019 121.207);
--muted-foreground: oklch(0.738 0.018 120.452);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.994 0.002 120.074);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.002 120.074);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.916 0.042 120.812);
--primary-foreground: oklch(0.174 0.021 121.925);
--secondary: oklch(0.278 0.011 120.725);
--secondary-foreground: oklch(0.816 0.014 120.336);
--accent: oklch(0.278 0.011 120.725);
--accent-foreground: oklch(0.816 0.014 120.336);
--destructive: oklch(0.656 0.21 36.028);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.916 0.042 120.812);
--chart-1: oklch(0.916 0.042 120.812);
--chart-2: oklch(0.278 0.011 120.725);
--chart-3: oklch(0.278 0.011 120.725);
--chart-4: oklch(0.311 0.013 120.756);
--chart-5: oklch(0.919 0.045 120.867);
}