Orientation is a shadcn/ui theme built around a deep violet primary color (#2a1e38) with deep green accents (#1e382a). The light mode uses a neutral background (#faf8fc). Dark mode keeps the deep violet primary (#2a1e38) on a violet-tinted background (#07030c).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #07030cblack |
| Foreground | #0a0410black | #fcfcfdwhite |
| Card | #f7f4fawhitesmoke | #0a0410black |
| Card foreground | #07030cblack | #ffffffwhite |
| Popover | #faf8fcghostwhite | #07030cblack |
| Popover foreground | #0a0410black | #fcfcfdwhite |
| Primary | #2a1e38darkslategray | #2a1e38darkslategray |
| Primary foreground | #c3b3d6thistle | #c3b3d6thistle |
| Secondary | #382a1edarkslategray | #382a1edarkslategray |
| Secondary foreground | #d6c3b3silver | #d6c3b3silver |
| Muted | #e8e3degainsboro | #211c17black |
| Muted foreground | #584e46darkolivegreen | #b9afa7darkgray |
| Accent | #1e382adarkslategray | #1e382adarkslategray |
| Accent foreground | #b3d6c3silver | #b3d6c3silver |
| Destructive | #e04300orangered | #ff6524tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a1e38darkslategray | #2a1e38darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.15:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 4.20:1 | AA Large |
| Text on background | 19.89:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 7.86:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 7.15:1 | AAA |
Paste this into your globals.css to use Orientation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 307.042);
--foreground: oklch(0.127 0.032 306.805);
--muted: oklch(0.918 0.009 63.97);
--muted-foreground: oklch(0.432 0.018 63.534);
--popover: oklch(0.981 0.006 307.042);
--popover-foreground: oklch(0.127 0.032 306.805);
--card: oklch(0.972 0.008 307.006);
--card-foreground: oklch(0.115 0.027 308.365);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.264 0.05 304.704);
--primary-foreground: oklch(0.791 0.052 306.306);
--secondary: oklch(0.299 0.029 62.535);
--secondary-foreground: oklch(0.829 0.031 63.595);
--accent: oklch(0.316 0.041 159.553);
--accent-foreground: oklch(0.845 0.045 162.01);
--destructive: oklch(0.607 0.202 37.149);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.264 0.05 304.704);
--chart-1: oklch(0.264 0.05 304.704);
--chart-2: oklch(0.299 0.029 62.535);
--chart-3: oklch(0.316 0.041 159.553);
--chart-4: oklch(0.331 0.033 62.457);
--chart-5: oklch(0.262 0.055 304.415);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.025 308.301);
--foreground: oklch(0.991 0.002 307.09);
--muted: oklch(0.23 0.012 63.359);
--muted-foreground: oklch(0.761 0.016 63.825);
--popover: oklch(0.116 0.025 308.301);
--popover-foreground: oklch(0.991 0.002 307.09);
--card: oklch(0.129 0.029 306.803);
--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.264 0.05 304.704);
--primary-foreground: oklch(0.791 0.052 306.306);
--secondary: oklch(0.299 0.029 62.535);
--secondary-foreground: oklch(0.829 0.031 63.595);
--accent: oklch(0.316 0.041 159.553);
--accent-foreground: oklch(0.845 0.045 162.01);
--destructive: oklch(0.696 0.201 40.398);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.264 0.05 304.704);
--chart-1: oklch(0.264 0.05 304.704);
--chart-2: oklch(0.299 0.029 62.535);
--chart-3: oklch(0.316 0.041 159.553);
--chart-4: oklch(0.331 0.033 62.457);
--chart-5: oklch(0.262 0.055 304.415);
}