Ratanachatfarung is a shadcn/ui theme built around a vivid blue primary color (#006edb) with muted light blue accents (#e4e6e9). The light mode uses a blue-tinted background (#f5f6f7). Dark mode keeps the vivid blue primary (#1a8cff) on a blue-tinted background (#22262a).
| Token | Light | Dark |
|---|---|---|
| Background | #f5f6f7whitesmoke | #22262adarkslategray |
| Foreground | #1e1e1eblack | #f2f2f2whitesmoke |
| Card | #ffffffwhite | #22262adarkslategray |
| Card foreground | #1e1e1eblack | #f2f2f2whitesmoke |
| Popover | #ffffffwhite | #22262adarkslategray |
| Popover foreground | #1e1e1eblack | #f2f2f2whitesmoke |
| Primary | #006edbdodgerblue | #1a8cffdodgerblue |
| Primary foreground | #ffffffwhite | #00264dmidnightblue |
| Secondary | #e7e7e7gainsboro | #3a3d3fdarkslategray |
| Secondary foreground | #1e1e1eblack | #e6e6e6gainsboro |
| Muted | #e0e0e0gainsboro | #394046darkslategray |
| Muted foreground | #6d6d6ddimgray | #adadaddarkgray |
| Accent | #e4e6e9lavender | #43484bdarkslategray |
| Accent foreground | #1e1e1eblack | #e6e6e6gainsboro |
| Destructive | #eb000cred | #ff4751tomato |
| Destructive foreground | #ffffffwhite | #520000maroon |
| Border | #ddddddgainsboro | #2e3338darkslategray |
| Input | #ddddddgainsboro | #2e3338darkslategray |
| Ring | #006edbdodgerblue | #0080ffdodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.40:1 | AAA |
| Text on card | 16.67:1 | AAA |
| Primary button | 4.93:1 | AA |
| Secondary button | 13.53:1 | AAA |
| Muted text | 3.91:1 | AA Large |
| Accent | 13.33:1 | AAA |
| Destructive | 4.62:1 | AA |
| Text on background | 13.55:1 | AAA |
| Text on card | 13.55:1 | AAA |
| Primary button | 4.50:1 | AA |
| Secondary button | 8.81:1 | AAA |
| Muted text | 4.69:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 4.61:1 | AA |
Paste this into your globals.css to use Ratanachatfarung in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.973 0.002 247.84);
--foreground: oklch(0.235 0 180);
--muted: oklch(0.907 0 180);
--muted-foreground: oklch(0.535 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.235 0 180);
--card: oklch(1 0 180);
--card-foreground: oklch(0.235 0 180);
--border: oklch(0.898 0 164.055);
--input: oklch(0.898 0 164.055);
--primary: oklch(0.551 0.187 255.822);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.929 0 180);
--secondary-foreground: oklch(0.235 0 180);
--accent: oklch(0.924 0.005 258.325);
--accent-foreground: oklch(0.235 0 180);
--destructive: oklch(0.591 0.242 28.435);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.551 0.187 255.822);
--chart-1: oklch(0.551 0.187 255.822);
--chart-2: oklch(0.929 0 180);
--chart-3: oklch(0.924 0.005 258.325);
--chart-4: oklch(0.952 0 172.875);
--chart-5: oklch(0.553 0.191 256.12);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.267 0.009 248.166);
--foreground: oklch(0.962 0 180);
--muted: oklch(0.367 0.014 248.206);
--muted-foreground: oklch(0.748 0 180);
--popover: oklch(0.267 0.009 248.166);
--popover-foreground: oklch(0.962 0 180);
--card: oklch(0.267 0.009 248.166);
--card-foreground: oklch(0.962 0 180);
--border: oklch(0.318 0.012 248.19);
--input: oklch(0.318 0.012 248.19);
--primary: oklch(0.643 0.195 254.131);
--primary-foreground: oklch(0.269 0.083 253.049);
--secondary: oklch(0.357 0.006 248.009);
--secondary-foreground: oklch(0.923 0 153.435);
--accent: oklch(0.398 0.008 236.738);
--accent-foreground: oklch(0.923 0 153.435);
--destructive: oklch(0.668 0.219 22.714);
--destructive-foreground: oklch(0.275 0.113 29.234);
--ring: oklch(0.614 0.211 256.215);
--chart-1: oklch(0.643 0.195 254.131);
--chart-2: oklch(0.357 0.006 248.009);
--chart-3: oklch(0.398 0.008 236.738);
--chart-4: oklch(0.385 0.007 248.013);
--chart-5: oklch(0.645 0.2 254.443);
}