P. Upright \ Inkstone is a shadcn/ui theme built around an orange primary color (#ddb278) with deep blue accents (#2b4355). The light mode uses a blue-tinted background (#111b22). Dark mode keeps the orange primary (#ddb278) on a blue-tinted background (#111b22).
| Token | Light | Dark |
|---|---|---|
| Background | #111b22black | #111b22black |
| Foreground | #f5d7c2peachpuff | #f5d7c2peachpuff |
| Card | #0e161bblack | #0e161bblack |
| Card foreground | #f8e5d8antiquewhite | #f8e5d8antiquewhite |
| Popover | #0c1318black | #0c1318black |
| Popover foreground | #fcf4eeseashell | #fcf4eeseashell |
| Primary | #ddb278burlywood | #ddb278burlywood |
| Primary foreground | #1d1307black | #1d1307black |
| Secondary | #53422ddarkolivegreen | #53422ddarkolivegreen |
| Secondary foreground | #e4dacdgainsboro | #e4dacdgainsboro |
| Muted | #22272bdarkslategray | #22272bdarkslategray |
| Muted foreground | #9ba8b0darkgray | #9ba8b0darkgray |
| Accent | #2b4355darkslategray | #2b4355darkslategray |
| Accent foreground | #ccdbe5gainsboro | #ccdbe5gainsboro |
| Destructive | #f61109red | #f61109red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1d282fdarkslategray | #1d282fdarkslategray |
| Input | #233038darkslategray | #233038darkslategray |
| Ring | #ddb278burlywood | #ddb278burlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.78:1 | AAA |
| Text on card | 15.01:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 6.94:1 | AA |
| Muted text | 6.19:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 4.19:1 | AA Large |
| Text on background | 12.78:1 | AAA |
| Text on card | 15.01:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 6.94:1 | AA |
| Muted text | 6.19:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use P. Upright \ Inkstone in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.216 0.02 239.917);
--foreground: oklch(0.898 0.044 57.682);
--muted: oklch(0.269 0.01 238.939);
--muted-foreground: oklch(0.723 0.019 238.747);
--popover: oklch(0.181 0.015 239.676);
--popover-foreground: oklch(0.971 0.012 58.188);
--card: oklch(0.193 0.016 239.766);
--card-foreground: oklch(0.935 0.028 57.95);
--border: oklch(0.269 0.02 239.54);
--input: oklch(0.3 0.023 239.604);
--primary: oklch(0.789 0.09 73.369);
--primary-foreground: oklch(0.196 0.027 73.236);
--secondary: oklch(0.392 0.041 73.624);
--secondary-foreground: oklch(0.894 0.021 74.799);
--accent: oklch(0.372 0.043 240.46);
--accent-foreground: oklch(0.883 0.022 238.714);
--destructive: oklch(0.615 0.247 29.305);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.789 0.09 73.369);
--chart-1: oklch(0.789 0.09 73.369);
--chart-2: oklch(0.392 0.041 73.624);
--chart-3: oklch(0.372 0.043 240.46);
--chart-4: oklch(0.423 0.045 73.581);
--chart-5: oklch(0.792 0.094 73.232);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.216 0.02 239.917);
--foreground: oklch(0.898 0.044 57.682);
--muted: oklch(0.269 0.01 238.939);
--muted-foreground: oklch(0.723 0.019 238.747);
--popover: oklch(0.181 0.015 239.676);
--popover-foreground: oklch(0.971 0.012 58.188);
--card: oklch(0.193 0.016 239.766);
--card-foreground: oklch(0.935 0.028 57.95);
--border: oklch(0.269 0.02 239.54);
--input: oklch(0.3 0.023 239.604);
--primary: oklch(0.789 0.09 73.369);
--primary-foreground: oklch(0.196 0.027 73.236);
--secondary: oklch(0.392 0.041 73.624);
--secondary-foreground: oklch(0.894 0.021 74.799);
--accent: oklch(0.372 0.043 240.46);
--accent-foreground: oklch(0.883 0.022 238.714);
--destructive: oklch(0.615 0.247 29.305);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.789 0.09 73.369);
--chart-1: oklch(0.789 0.09 73.369);
--chart-2: oklch(0.392 0.041 73.624);
--chart-3: oklch(0.372 0.043 240.46);
--chart-4: oklch(0.423 0.045 73.581);
--chart-5: oklch(0.792 0.094 73.232);
}