VNET theme for shadcn/ui

VNET theme is a shadcn/ui theme built around a cyan primary color (#1db1c0) with muted light blue accents (#ccd4db). The light mode uses a neutral background (#f9fafb). Dark mode keeps the cyan primary (#1db1c0) on a blue-tinted background (#13151b).

Color palette

TokenLightDark
Background
#f9fafbghostwhite
#13151bblack
Foreground
#51565ddimgray
#cbccd2lightgrey
Card
#f3f5f7whitesmoke
#0f1015black
Card foreground
#454a4fdarkslategray
#d9dadegainsboro
Popover
#f0f2f4whitesmoke
#0d0e12black
Popover foreground
#393d41darkslategray
#e6e7ealavender
Primary
#1db1c0lightseagreen
#1db1c0lightseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e2e2e2gainsboro
#3c3f44darkslategray
Secondary foreground
#262626darkslategray
#d6d8dbgainsboro
Muted
#e2e6e9gainsboro
#22242bdarkslategray
Muted foreground
#434d56darkslategray
#9ba0b0darkgray
Accent
#ccd4dblightgrey
#323848darkslategray
Accent foreground
#313b45darkslategray
#cfd3delightgrey
Destructive
#ac170cfirebrick
#ed2a0corangered
Destructive foreground
#feedeclinen
#ffffffwhite
Border
#ecedeewhitesmoke
#212227black
Input
#e4e6e7gainsboro
#282a2fdarkslategray
Ring
#353b40darkslategray
#97a1b4darkgray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background7.07:1AAA
Text on card8.18:1AAA
Primary button2.59:1Fail
Secondary button11.63:1AAA
Muted text6.85:1AA
Accent7.58:1AAA
Destructive6.45:1AA
Dark mode
Text on background11.40:1AAA
Text on card13.59:1AAA
Primary button2.59:1Fail
Secondary button7.44:1AAA
Muted text5.94:1AA
Accent7.83:1AAA
Destructive4.23:1AA Large

CSS variables

Paste this into your globals.css to use VNET theme in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.001 247.837);
  --foreground: oklch(0.451 0.013 251.667);
  --muted: oklch(0.922 0.005 247.882);
  --muted-foreground: oklch(0.414 0.019 248.296);
  --popover: oklch(0.961 0.004 247.862);
  --popover-foreground: oklch(0.358 0.01 251.656);
  --card: oklch(0.969 0.003 247.854);
  --card-foreground: oklch(0.405 0.011 251.663);
  --border: oklch(0.946 0.002 247.845);
  --input: oklch(0.923 0.003 247.857);
  --primary: oklch(0.696 0.114 205.973);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.911 0 161.565);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.865 0.013 247.977);
  --accent-foreground: oklch(0.346 0.022 248.464);
  --destructive: oklch(0.476 0.183 29.704);
  --destructive-foreground: oklch(0.959 0.018 22.433);
  --ring: oklch(0.348 0.012 248.163);
  --chart-1: oklch(0.696 0.114 205.973);
  --chart-2: oklch(0.911 0 161.565);
  --chart-3: oklch(0.865 0.013 247.977);
  --chart-4: oklch(0.935 0 180);
  --chart-5: oklch(0.704 0.117 206.16);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.196 0.013 270.679);
  --foreground: oklch(0.847 0.008 278.18);
  --muted: oklch(0.261 0.013 270.863);
  --muted-foreground: oklch(0.708 0.024 271.061);
  --popover: oklch(0.164 0.009 270.817);
  --popover-foreground: oklch(0.928 0.004 278.26);
  --card: oklch(0.175 0.01 270.765);
  --card-foreground: oklch(0.888 0.006 278.223);
  --border: oklch(0.253 0.008 271.076);
  --input: oklch(0.284 0.01 271.056);
  --primary: oklch(0.696 0.114 205.973);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.365 0.009 262.991);
  --secondary-foreground: oklch(0.882 0.004 263.045);
  --accent: oklch(0.341 0.03 270.386);
  --accent-foreground: oklch(0.866 0.016 271.234);
  --destructive: oklch(0.61 0.23 31.251);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.709 0.029 262.929);
  --chart-1: oklch(0.696 0.114 205.973);
  --chart-2: oklch(0.365 0.009 262.991);
  --chart-3: oklch(0.341 0.03 270.386);
  --chart-4: oklch(0.394 0.01 262.989);
  --chart-5: oklch(0.704 0.117 206.16);
}