LastRP is a shadcn/ui theme built around a deep blue primary color (#2f4e68) with orange accents (#bea069). The light mode uses a neutral background (#ffffff). Dark mode switches to a blue primary (#2081ca) on a neutral background (#313235).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #313235darkslategray |
| Foreground | #0c0a09black | #fafaf9snow |
| Card | #f7f7f7whitesmoke | #070709black |
| Card foreground | #0c0a09black | #fafaf9snow |
| Popover | #ffffffwhite | #0c0a09black |
| Popover foreground | #0c0a09black | #fafaf9snow |
| Primary | #2f4e68darkslategray | #2081casteelblue |
| Primary foreground | #ffffffwhite | #ecececwhitesmoke |
| Secondary | #f7f7f7whitesmoke | #1f396amidnightblue |
| Secondary foreground | #1c1917black | #ecececwhitesmoke |
| Muted | #f5f5f4whitesmoke | #1d2b4fmidnightblue |
| Muted foreground | #78716cdimgray | #ecececwhitesmoke |
| Accent | #bea069darkkhaki | #6357bbslateblue |
| Accent foreground | #ffffffwhite | #ecececwhitesmoke |
| Destructive | #d91818crimson | #7f1d1dmaroon |
| Destructive foreground | #fafaf9snow | #fafaf9snow |
| Border | #e7e5e4gainsboro | #292524darkslategray |
| Input | #e7e5e4gainsboro | #292524darkslategray |
| Ring | #0c0a09black | #a16207saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 18.49:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 16.32:1 | AAA |
| Muted text | 4.39:1 | AA Large |
| Accent | 2.49:1 | Fail |
| Destructive | 4.92:1 | AA |
| Text on background | 12.24:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 3.51:1 | AA Large |
| Secondary button | 9.60:1 | AAA |
| Muted text | 11.73:1 | AAA |
| Accent | 4.91:1 | AA |
| Destructive | 9.58:1 | AAA |
Paste this into your globals.css to use LastRP in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.004 49.314);
--muted: oklch(0.97 0.001 106.424);
--muted-foreground: oklch(0.553 0.012 58.069);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.004 49.314);
--card: oklch(0.977 0 180);
--card-foreground: oklch(0.147 0.004 49.314);
--border: oklch(0.923 0.003 48.716);
--input: oklch(0.923 0.003 48.716);
--primary: oklch(0.412 0.057 245.124);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.976 0 180);
--secondary-foreground: oklch(0.216 0.006 56.043);
--accent: oklch(0.72 0.081 81.979);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.563 0.22 28.243);
--destructive-foreground: oklch(0.985 0.001 106.424);
--ring: oklch(0.147 0.004 49.314);
--chart-1: oklch(0.412 0.057 245.124);
--chart-2: oklch(0.976 0 180);
--chart-3: oklch(0.72 0.081 81.979);
--chart-4: oklch(0.999 0 180);
--chart-5: oklch(0.412 0.061 245.365);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.318 0.005 273.911);
--foreground: oklch(0.985 0.001 106.424);
--muted: oklch(0.298 0.068 265.78);
--muted-foreground: oklch(0.943 0 180);
--popover: oklch(0.147 0.004 49.314);
--popover-foreground: oklch(0.985 0.001 106.424);
--card: oklch(0.127 0.006 283.771);
--card-foreground: oklch(0.985 0.001 106.424);
--border: oklch(0.269 0.006 34.297);
--input: oklch(0.269 0.006 34.297);
--primary: oklch(0.586 0.141 246.914);
--primary-foreground: oklch(0.943 0 180);
--secondary: oklch(0.352 0.091 261.598);
--secondary-foreground: oklch(0.943 0 180);
--accent: oklch(0.52 0.152 285.349);
--accent-foreground: oklch(0.943 0 180);
--destructive: oklch(0.396 0.133 25.721);
--destructive-foreground: oklch(0.985 0.001 106.424);
--ring: oklch(0.554 0.121 66.531);
--chart-1: oklch(0.586 0.141 246.914);
--chart-2: oklch(0.352 0.091 261.598);
--chart-3: oklch(0.52 0.152 285.349);
--chart-4: oklch(0.377 0.1 261.577);
--chart-5: oklch(0.588 0.145 247.37);
}