Realm is a shadcn/ui theme built around a vivid light blue primary color (#d8e4fd) with muted light blue accents (#b9becb). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the vivid light blue primary (#d8e4fd) on a blue-tinted background (#05070a).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #05070ablack |
| Foreground | #030916black | #fcfcfdwhite |
| Card | #f7f9fdghostwhite | #05070ablack |
| Card foreground | #030916black | #fcfcfdwhite |
| Popover | #f7f9fdghostwhite | #05070ablack |
| Popover foreground | #030916black | #fcfcfdwhite |
| Primary | #d8e4fdlavender | #d8e4fdlavender |
| Primary foreground | #08379bmidnightblue | #08379bmidnightblue |
| Secondary | #cdd0d5lightgrey | #181b20black |
| Secondary foreground | #34363ddarkslategray | #abb1bfdarkgray |
| Muted | #f0f1f4whitesmoke | #0b0c0fblack |
| Muted foreground | #575c66dimgray | #999ea8darkgray |
| Accent | #b9becbsilver | #2b3240darkslategray |
| Accent foreground | #23272fdarkslategray | #c5cbd8lightgrey |
| Destructive | #ca4c16chocolate | #e6571achocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d8e4fdlavender | #d8e4fdlavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 4.60:1 | AA |
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Realm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 265.984);
--foreground: oklch(0.142 0.031 259.267);
--muted: oklch(0.959 0.004 265.987);
--muted-foreground: oklch(0.473 0.018 265.797);
--popover: oklch(0.982 0.005 265.984);
--popover-foreground: oklch(0.142 0.031 259.267);
--card: oklch(0.982 0.005 265.984);
--card-foreground: oklch(0.142 0.031 259.267);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.917 0.036 265.781);
--primary-foreground: oklch(0.382 0.17 262.718);
--secondary: oklch(0.856 0.007 265.967);
--secondary-foreground: oklch(0.334 0.011 265.818);
--accent: oklch(0.802 0.019 265.886);
--accent-foreground: oklch(0.271 0.017 265.621);
--destructive: oklch(0.581 0.171 40.04);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.917 0.036 265.781);
--chart-1: oklch(0.917 0.036 265.781);
--chart-2: oklch(0.856 0.007 265.967);
--chart-3: oklch(0.802 0.019 265.886);
--chart-4: oklch(0.881 0.006 265.975);
--chart-5: oklch(0.917 0.038 265.771);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.009 261.861);
--foreground: oklch(0.992 0.001 266.004);
--muted: oklch(0.154 0.007 265.753);
--muted-foreground: oklch(0.698 0.016 265.889);
--popover: oklch(0.126 0.009 261.861);
--popover-foreground: oklch(0.992 0.001 266.004);
--card: oklch(0.126 0.009 261.861);
--card-foreground: oklch(0.992 0.001 266.004);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.917 0.036 265.781);
--primary-foreground: oklch(0.382 0.17 262.718);
--secondary: oklch(0.22 0.011 265.702);
--secondary-foreground: oklch(0.76 0.022 265.857);
--accent: oklch(0.316 0.028 265.387);
--accent-foreground: oklch(0.841 0.02 265.887);
--destructive: oklch(0.638 0.189 39.888);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.917 0.036 265.781);
--chart-1: oklch(0.917 0.036 265.781);
--chart-2: oklch(0.22 0.011 265.702);
--chart-3: oklch(0.316 0.028 265.387);
--chart-4: oklch(0.251 0.014 265.671);
--chart-5: oklch(0.917 0.038 265.771);
}