Fig is a shadcn/ui theme built around a neutral gray primary color (#a79e9a) with neutral gray accents (#9e9aa7). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the neutral gray primary (#a79e9a) on an orange-tinted background (#0d0907).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #0d0907black |
| Foreground | #160903black | #ffffffwhite |
| Card | #fcf9f8snow | #0d0907black |
| Card foreground | #160903black | #ffffffwhite |
| Popover | #fcf9f8snow | #0d0907black |
| Popover foreground | #160903black | #ffffffwhite |
| Primary | #a79e9adarkgray | #a79e9adarkgray |
| Primary foreground | #080707black | #080707black |
| Secondary | #9aa79edarkgray | #9aa79edarkgray |
| Secondary foreground | #070807black | #070807black |
| Muted | #d5e7dagainsboro | #182a1dblack |
| Muted foreground | #454a46darkslategray | #b5bab6silver |
| Accent | #9e9aa7darkgray | #9e9aa7darkgray |
| Accent foreground | #070708black | #070708black |
| Destructive | #832902saddlebrown | #fc6e31tomato |
| Destructive foreground | #fecdb9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a79e9adarkgray | #a79e9adarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.65:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 7.40:1 | AAA |
Paste this into your globals.css to use Fig in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 43.097);
--foreground: oklch(0.157 0.029 48.708);
--muted: oklch(0.91 0.026 154.664);
--muted-foreground: oklch(0.403 0.01 154.727);
--popover: oklch(0.984 0.003 43.097);
--popover-foreground: oklch(0.157 0.029 48.708);
--card: oklch(0.984 0.003 43.097);
--card-foreground: oklch(0.157 0.029 48.708);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.706 0.012 42.978);
--primary-foreground: oklch(0.132 0.002 43.937);
--secondary: oklch(0.716 0.02 154.666);
--secondary-foreground: oklch(0.134 0.003 155.121);
--accent: oklch(0.694 0.02 298.821);
--accent-foreground: oklch(0.13 0.003 299.308);
--destructive: oklch(0.413 0.131 38.959);
--destructive-foreground: oklch(0.887 0.062 44.409);
--ring: oklch(0.706 0.012 42.978);
--chart-1: oklch(0.706 0.012 42.978);
--chart-2: oklch(0.716 0.02 154.666);
--chart-3: oklch(0.694 0.02 298.821);
--chart-4: oklch(0.74 0.018 154.729);
--chart-5: oklch(0.705 0.018 42.92);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.01 45.645);
--foreground: oklch(1 0 180);
--muted: oklch(0.265 0.034 152.549);
--muted-foreground: oklch(0.785 0.009 154.991);
--popover: oklch(0.144 0.01 45.645);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.01 45.645);
--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.706 0.012 42.978);
--primary-foreground: oklch(0.132 0.002 43.937);
--secondary: oklch(0.716 0.02 154.666);
--secondary-foreground: oklch(0.134 0.003 155.121);
--accent: oklch(0.694 0.02 298.821);
--accent-foreground: oklch(0.13 0.003 299.308);
--destructive: oklch(0.703 0.188 41.401);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.706 0.012 42.978);
--chart-1: oklch(0.706 0.012 42.978);
--chart-2: oklch(0.716 0.02 154.666);
--chart-3: oklch(0.694 0.02 298.821);
--chart-4: oklch(0.74 0.018 154.729);
--chart-5: oklch(0.705 0.018 42.92);
}