Outline is a shadcn/ui theme built around a muted violet primary color (#7e6ba8) with neutral gray accents (#dbdadd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#7e6ba8) on a neutral background (#040308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040308black |
| Foreground | #040109black | #ffffffwhite |
| Card | #ffffffwhite | #040308black |
| Card foreground | #040109black | #ffffffwhite |
| Popover | #ffffffwhite | #040308black |
| Popover foreground | #040109black | #ffffffwhite |
| Primary | #7e6ba8lightslategray | #7e6ba8lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dbdaddgainsboro | #25232adarkslategray |
| Secondary foreground | #413f46darkslategray | #bdbac5silver |
| Muted | #e9e6eflavender | #131019black |
| Muted foreground | #47454adarkslategray | #b7b5basilver |
| Accent | #dbdaddgainsboro | #25232adarkslategray |
| Accent foreground | #413f46darkslategray | #bdbac5silver |
| Destructive | #84130bmaroon | #ed2f21crimson |
| Destructive foreground | #facac6pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e6ba8lightslategray | #7e6ba8lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.72:1 | AAA |
| Text on card | 20.72:1 | AAA |
| Primary button | 4.60:1 | AA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 7.42:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 4.60:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 9.28:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Outline in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.092 0.03 300.388);
--muted: oklch(0.93 0.013 299.804);
--muted-foreground: oklch(0.394 0.007 299.726);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.092 0.03 300.388);
--card: oklch(1 0 180);
--card-foreground: oklch(0.092 0.03 300.388);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.57 0.094 297.126);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.889 0.005 299.944);
--secondary-foreground: oklch(0.372 0.011 299.518);
--accent: oklch(0.889 0.005 299.944);
--accent-foreground: oklch(0.372 0.011 299.518);
--destructive: oklch(0.396 0.148 29.577);
--destructive-foreground: oklch(0.88 0.056 23.027);
--ring: oklch(0.57 0.094 297.126);
--chart-1: oklch(0.57 0.094 297.126);
--chart-2: oklch(0.889 0.005 299.944);
--chart-3: oklch(0.889 0.005 299.944);
--chart-4: oklch(0.913 0.004 299.967);
--chart-5: oklch(0.564 0.105 296.717);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.018 300.217);
--foreground: oklch(1 0 180);
--muted: oklch(0.18 0.019 298.179);
--muted-foreground: oklch(0.777 0.006 299.905);
--popover: oklch(0.102 0.018 300.217);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.102 0.018 300.217);
--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.57 0.094 297.126);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.26 0.013 299.192);
--secondary-foreground: oklch(0.794 0.016 299.69);
--accent: oklch(0.26 0.013 299.192);
--accent-foreground: oklch(0.794 0.016 299.69);
--destructive: oklch(0.613 0.225 29.456);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.57 0.094 297.126);
--chart-1: oklch(0.57 0.094 297.126);
--chart-2: oklch(0.26 0.013 299.192);
--chart-3: oklch(0.26 0.013 299.192);
--chart-4: oklch(0.29 0.015 299.15);
--chart-5: oklch(0.564 0.105 296.717);
}