Sublime Text 4 Theme is a shadcn/ui theme built around a neutral gray primary color (#e6e6e6) with muted blue accents (#505d6d). The light mode uses a blue-tinted background (#303841). Dark mode keeps the neutral gray primary (#e6e6e6) on a blue-tinted background (#303841).
| Token | Light | Dark |
|---|---|---|
| Background | #303841darkslategray | #303841darkslategray |
| Foreground | #d8dee9gainsboro | #d8dee9gainsboro |
| Card | #2b323bdarkslategray | #2b323bdarkslategray |
| Card foreground | #e8ecf2lavender | #e8ecf2lavender |
| Popover | #293038darkslategray | #293038darkslategray |
| Popover foreground | #f8f9fbghostwhite | #f8f9fbghostwhite |
| Primary | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Primary foreground | #4d4d4ddarkslategray | #4d4d4ddarkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #3a424adarkslategray | #3a424adarkslategray |
| Muted foreground | #bac1c9silver | #bac1c9silver |
| Accent | #505d6ddimgray | #505d6ddimgray |
| Accent foreground | #f6f7f8whitesmoke | #f6f7f8whitesmoke |
| Destructive | #ef4a2atomato | #ef4a2atomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #414548darkslategray | #414548darkslategray |
| Input | #494c50darkslategray | #494c50darkslategray |
| Ring | #e6e6e6gainsboro | #e6e6e6gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 8.85:1 | AAA |
| Text on card | 10.85:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 6.23:1 | AA |
| Destructive | 3.68:1 | AA Large |
| Text on background | 8.85:1 | AAA |
| Text on card | 10.85:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 6.23:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Sublime Text 4 Theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.335 0.019 251.862);
--foreground: oklch(0.899 0.017 263.013);
--muted: oklch(0.375 0.018 251.795);
--muted-foreground: oklch(0.809 0.013 251.581);
--popover: oklch(0.306 0.017 251.85);
--popover-foreground: oklch(0.983 0.003 263.049);
--card: oklch(0.316 0.018 251.854);
--card-foreground: oklch(0.941 0.01 263.034);
--border: oklch(0.387 0.008 251.603);
--input: oklch(0.416 0.008 251.606);
--primary: oklch(0.923 0 153.435);
--primary-foreground: oklch(0.418 0 173.29);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.474 0.029 251.896);
--accent-foreground: oklch(0.976 0.002 251.467);
--destructive: oklch(0.64 0.206 33.142);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.923 0 153.435);
--chart-1: oklch(0.923 0 153.435);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.474 0.029 251.896);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.922 0.002 17.188);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.335 0.019 251.862);
--foreground: oklch(0.899 0.017 263.013);
--muted: oklch(0.375 0.018 251.795);
--muted-foreground: oklch(0.809 0.013 251.581);
--popover: oklch(0.306 0.017 251.85);
--popover-foreground: oklch(0.983 0.003 263.049);
--card: oklch(0.316 0.018 251.854);
--card-foreground: oklch(0.941 0.01 263.034);
--border: oklch(0.387 0.008 251.603);
--input: oklch(0.416 0.008 251.606);
--primary: oklch(0.923 0 153.435);
--primary-foreground: oklch(0.418 0 173.29);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.474 0.029 251.896);
--accent-foreground: oklch(0.976 0.002 251.467);
--destructive: oklch(0.64 0.206 33.142);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.923 0 153.435);
--chart-1: oklch(0.923 0 153.435);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.474 0.029 251.896);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.922 0.002 17.188);
}