Palette · dark · cyberpunk · vibrant

Cyberpunk Neon

Hot magenta and cyan on ink for high-energy, after-dark interfaces with maximum contrast.

Copy as

Building with shadcn/ui?

Install Cyberpunk Neon as a real theme — light and dark, OKLCH tokens, every colour pair measured, DTCG export.

Get the theme →

Usage system

Everything you need to wire this palette into a real project, not just the colors.

CSS variables
:root {
  --color-bg: #0A0A0F;
  --color-surface: #15151F;
  --color-primary: #FF2E97;
  --color-accent: #00E5FF;
  --color-text: #F5F5FA;
  --color-muted: #7A7A99;
}
Tailwind config
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        bg: '#0A0A0F',
        surface: '#15151F',
        primary: '#FF2E97',
        accent: '#00E5FF',
        text: '#F5F5FA',
        muted: '#7A7A99',
      },
    },
  },
};
SCSS variables
$color-bg: #0A0A0F;
$color-surface: #15151F;
$color-primary: #FF2E97;
$color-accent: #00E5FF;
$color-text: #F5F5FA;
$color-muted: #7A7A99;
DESIGN.md for AI agents

Paste into Cursor, Claude Code, Codex, v0 or Lovable before you ask for UI, or fetch it directly from /d/cyberpunk-neon.md. Colors, contrast ratios and the rules an agent must follow, all computed from this palette.

# DESIGN.md — Cyberpunk Neon

> Design context for AI coding agents. Paste this file into Cursor, Claude Code, Codex, v0 or Lovable
> before asking for UI, or commit it at your repo root as `DESIGN.md`.

- **Source:** [Cyberpunk Neon on CSS Crème](https://csscreme.com/themes/cyberpunk-neon)
- **Default mode:** dark
- **Tags:** dark, cyberpunk, vibrant
- **Install as a real shadcn/ui theme:** `npx shadcn@latest add https://csscreme.com/r/cyberpunk-neon.json`
- **Fingerprint:** `fnv1a-f9e7bfb8` — a hash of the token set below. It changes only when a token changes.
- **Verify this copy:** call the MCP tool `verify_design_md` with `{ "id": "cyberpunk-neon", "fingerprint": "fnv1a-f9e7bfb8" }`
  at `https://csscreme.com/mcp`, or refetch https://csscreme.com/d/cyberpunk-neon.md. A stale copy is worse than none: an agent will follow it faithfully.
- **Also available as:** [DTCG tokens](https://csscreme.com/d/cyberpunk-neon.tokens.json) for Tokens Studio / Figma Variables · [agent rules block](https://csscreme.com/d/cyberpunk-neon.rules.md) for CLAUDE.md, AGENTS.md or .cursor/rules

Hot magenta and cyan on ink for high-energy, after-dark interfaces with maximum contrast.

---

## Semantic color roles

Six roles carry the identity. Everything else in this file is derived from them.

| Role | Hex | OKLCH | Use it for |
| --- | --- | --- | --- |
| `bg` | `#0A0A0F` | `oklch(14.7% 0.011 285.0)` | page background |
| `surface` | `#15151F` | `oklch(20.1% 0.020 284.5)` | cards, panels, popovers |
| `primary` | `#FF2E97` | `oklch(66.7% 0.249 356.7)` | brand actions: primary buttons, links, focus rings |
| `accent` | `#00E5FF` | `oklch(84.4% 0.146 209.3)` | secondary emphasis only, never a second primary |
| `text` | `#F5F5FA` | `oklch(97.2% 0.007 286.3)` | body and heading text |
| `muted` | `#7A7A99` | `oklch(59.1% 0.047 284.9)` | secondary text, borders, disabled states |

## Full token set (shadcn/ui, both modes)

Colors are OKLCH (Tailwind v4 / shadcn native). Brand colors are identical in both modes by design:
only the neutrals move, and they keep their hue, so light and dark read as the same design system.

| Token | Light | Dark |
| --- | --- | --- |
| `--background` | `oklch(98.8% 0.000 89.9)` | `oklch(14.7% 0.011 285.0)` |
| `--foreground` | `oklch(25.1% 0.015 285.3)` | `oklch(97.2% 0.007 286.3)` |
| `--card` | `oklch(97.3% 0.001 286.4)` | `oklch(20.1% 0.020 284.5)` |
| `--card-foreground` | `oklch(25.1% 0.015 285.3)` | `oklch(97.2% 0.007 286.3)` |
| `--popover` | `oklch(97.3% 0.001 286.4)` | `oklch(20.1% 0.020 284.5)` |
| `--popover-foreground` | `oklch(25.1% 0.015 285.3)` | `oklch(97.2% 0.007 286.3)` |
| `--primary` | `oklch(66.7% 0.249 356.7)` | `oklch(66.7% 0.249 356.7)` |
| `--primary-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--secondary` | `oklch(97.9% 0.000 89.9)` | `oklch(18.2% 0.016 284.7)` |
| `--secondary-foreground` | `oklch(25.1% 0.015 285.3)` | `oklch(97.2% 0.007 286.3)` |
| `--muted` | `oklch(97.9% 0.000 89.9)` | `oklch(18.2% 0.016 284.7)` |
| `--muted-foreground` | `oklch(53.1% 0.012 286.0)` | `oklch(59.1% 0.047 284.9)` |
| `--accent` | `oklch(84.4% 0.146 209.3)` | `oklch(84.4% 0.146 209.3)` |
| `--accent-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--destructive` | `oklch(62.6% 0.193 23.0)` | `oklch(62.6% 0.193 23.0)` |
| `--destructive-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--border` | `oklch(83.6% 0.003 286.3)` | `oklch(28.7% 0.024 284.8)` |
| `--input` | `oklch(83.6% 0.003 286.3)` | `oklch(28.7% 0.024 284.8)` |
| `--ring` | `oklch(66.7% 0.249 356.7)` | `oklch(66.7% 0.249 356.7)` |
| `--chart-1` | `oklch(66.7% 0.249 356.7)` | `oklch(66.7% 0.249 356.7)` |
| `--chart-2` | `oklch(84.4% 0.146 209.3)` | `oklch(84.4% 0.146 209.3)` |
| `--chart-3` | `oklch(67.3% 0.217 33.0)` | `oklch(67.3% 0.217 33.0)` |
| `--chart-4` | `oklch(66.4% 0.294 319.9)` | `oklch(66.4% 0.294 319.9)` |
| `--chart-5` | `oklch(65.1% 0.098 276.6)` | `oklch(65.1% 0.098 276.6)` |
| `--sidebar` | `oklch(98.2% 0.000 89.9)` | `oklch(17.7% 0.014 284.8)` |
| `--sidebar-foreground` | `oklch(25.1% 0.015 285.3)` | `oklch(97.2% 0.007 286.3)` |
| `--sidebar-primary` | `oklch(66.7% 0.249 356.7)` | `oklch(66.7% 0.249 356.7)` |
| `--sidebar-primary-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--sidebar-accent` | `oklch(97.9% 0.000 89.9)` | `oklch(18.2% 0.016 284.7)` |
| `--sidebar-accent-foreground` | `oklch(25.1% 0.015 285.3)` | `oklch(97.2% 0.007 286.3)` |
| `--sidebar-border` | `oklch(83.6% 0.003 286.3)` | `oklch(28.7% 0.024 284.8)` |
| `--sidebar-ring` | `oklch(66.7% 0.249 356.7)` | `oklch(66.7% 0.249 356.7)` |

**What is measured and what is derived.** The six roles are the source. `chart-*` and `sidebar-*` follow
fixed rules over them (chart-1 = primary, chart-2 = accent, chart-3/4 = primary rotated ±40°, chart-5 = the
midpoint of primary and accent; sidebar maps onto surface, border and primary). `shadow-*` is the foreground
colour at a fixed opacity per step. None of those is a measurement, and an agent should treat them as
defaults it may override, unlike the six roles, which it may not.

## Typography

- **Headings:** Orbitron
- **Body:** Rajdhani

## Shape and rhythm

- **Radius:** `6px` (the `--radius` token; derive smaller/larger from it, do not invent new values)
- **Spacing scale:** 8px base · 8 / 16 / 24 / 32 / 48

## Contrast, measured

Computed from the tokens above in dark mode, not asserted. Ratios are WCAG 2.1 relative luminance.

| Pair | Foreground | Background | Ratio | Verdict |
| --- | --- | --- | --- | --- |
| Body text on page background | `#F5F5FA` | `#0A0A0F` | 18.17:1 | AAA |
| Body text on card | `#F5F5FA` | `#15151F` | 16.67:1 | AAA |
| Muted text on page background | `#7A7A99` | `#0A0A0F` | 4.77:1 | AA |
| Button label on primary | `#0b0b0f` | `#FF2E97` | 5.7:1 | AA |
| Button label on accent | `#0b0b0f` | `#00E5FF` | 12.77:1 | AAA |

## Rules for the agent

These are constraints, not suggestions. Each one is checkable against the tables above.

1. **Use only the tokens listed here.** Do not introduce a hex value that is not in the token table. If
   you need an in-between shade, mix two existing tokens rather than inventing a new hue.
2. **`#FF2E97` (primary) is the only call-to-action color.** One primary action per view. `accent`
   is for secondary emphasis and must never be styled as a second primary button.
3. **Never restyle brand colors between light and dark.** Only neutrals change mode. A theme whose
   primary shifts between modes is a different theme.
4. **Respect the radius token.** Every corner derives from `6px`. Mixed radii across a view is
   the most common tell of generated UI.
5. **Stay on the spacing scale.** 8px base · 8 / 16 / 24 / 32 / 48. No arbitrary pixel values.
6. **Do not drop below the contrast ratios above.** If a combination you need is not in the contrast
   table, compute it before shipping it. Text under 4.5:1 fails AA.
7. **Headings in Orbitron, body in Rajdhani.** Do not add a third family.
8. **Use the semantic role, not the raw color.** Write `var(--primary)`, never `#FF2E97`, so the
   theme stays swappable.

## CSS variables

Paste into `globals.css`:

```css
:root {
  --background: oklch(98.8% 0.000 89.9);
  --foreground: oklch(25.1% 0.015 285.3);
  --card: oklch(97.3% 0.001 286.4);
  --card-foreground: oklch(25.1% 0.015 285.3);
  --popover: oklch(97.3% 0.001 286.4);
  --popover-foreground: oklch(25.1% 0.015 285.3);
  --primary: oklch(66.7% 0.249 356.7);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(97.9% 0.000 89.9);
  --secondary-foreground: oklch(25.1% 0.015 285.3);
  --muted: oklch(97.9% 0.000 89.9);
  --muted-foreground: oklch(53.1% 0.012 286.0);
  --accent: oklch(84.4% 0.146 209.3);
  --accent-foreground: oklch(15.2% 0.009 285.3);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(83.6% 0.003 286.3);
  --input: oklch(83.6% 0.003 286.3);
  --ring: oklch(66.7% 0.249 356.7);
  --chart-1: oklch(66.7% 0.249 356.7);
  --chart-2: oklch(84.4% 0.146 209.3);
  --chart-3: oklch(67.3% 0.217 33.0);
  --chart-4: oklch(66.4% 0.294 319.9);
  --chart-5: oklch(65.1% 0.098 276.6);
  --sidebar: oklch(98.2% 0.000 89.9);
  --sidebar-foreground: oklch(25.1% 0.015 285.3);
  --sidebar-primary: oklch(66.7% 0.249 356.7);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(97.9% 0.000 89.9);
  --sidebar-accent-foreground: oklch(25.1% 0.015 285.3);
  --sidebar-border: oklch(83.6% 0.003 286.3);
  --sidebar-ring: oklch(66.7% 0.249 356.7);
  --radius: 6px;
  --shadow-2xs: 0 1px 2px 0px rgb(33 33 41 / 0.05);
  --shadow-xs: 0 1px 3px 0px rgb(33 33 41 / 0.06);
  --shadow-sm: 0 1px 3px 0px rgb(33 33 41 / 0.08), 0 1px 2px -1px rgb(33 33 41 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(33 33 41 / 0.09), 0 2px 4px -2px rgb(33 33 41 / 0.09);
  --shadow-lg: 0 10px 15px -3px rgb(33 33 41 / 0.1), 0 4px 6px -4px rgb(33 33 41 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(33 33 41 / 0.12), 0 8px 10px -6px rgb(33 33 41 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(33 33 41 / 0.22);
  --spacing: 8px;
}

.dark {
  --background: oklch(14.7% 0.011 285.0);
  --foreground: oklch(97.2% 0.007 286.3);
  --card: oklch(20.1% 0.020 284.5);
  --card-foreground: oklch(97.2% 0.007 286.3);
  --popover: oklch(20.1% 0.020 284.5);
  --popover-foreground: oklch(97.2% 0.007 286.3);
  --primary: oklch(66.7% 0.249 356.7);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(18.2% 0.016 284.7);
  --secondary-foreground: oklch(97.2% 0.007 286.3);
  --muted: oklch(18.2% 0.016 284.7);
  --muted-foreground: oklch(59.1% 0.047 284.9);
  --accent: oklch(84.4% 0.146 209.3);
  --accent-foreground: oklch(15.2% 0.009 285.3);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(28.7% 0.024 284.8);
  --input: oklch(28.7% 0.024 284.8);
  --ring: oklch(66.7% 0.249 356.7);
  --chart-1: oklch(66.7% 0.249 356.7);
  --chart-2: oklch(84.4% 0.146 209.3);
  --chart-3: oklch(67.3% 0.217 33.0);
  --chart-4: oklch(66.4% 0.294 319.9);
  --chart-5: oklch(65.1% 0.098 276.6);
  --sidebar: oklch(17.7% 0.014 284.8);
  --sidebar-foreground: oklch(97.2% 0.007 286.3);
  --sidebar-primary: oklch(66.7% 0.249 356.7);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(18.2% 0.016 284.7);
  --sidebar-accent-foreground: oklch(97.2% 0.007 286.3);
  --sidebar-border: oklch(28.7% 0.024 284.8);
  --sidebar-ring: oklch(66.7% 0.249 356.7);
  --shadow-2xs: 0 1px 2px 0px rgb(245 245 250 / 0.16);
  --shadow-xs: 0 1px 3px 0px rgb(245 245 250 / 0.18);
  --shadow-sm: 0 1px 3px 0px rgb(245 245 250 / 0.22), 0 1px 2px -1px rgb(245 245 250 / 0.22);
  --shadow-md: 0 4px 6px -1px rgb(245 245 250 / 0.26), 0 2px 4px -2px rgb(245 245 250 / 0.26);
  --shadow-lg: 0 10px 15px -3px rgb(245 245 250 / 0.3), 0 4px 6px -4px rgb(245 245 250 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(245 245 250 / 0.34), 0 8px 10px -6px rgb(245 245 250 / 0.34);
  --shadow-2xl: 0 25px 50px -12px rgb(245 245 250 / 0.45);
}
```

Tailwind v4 maps them into utilities:

```css
@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
  --radius: var(--radius);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);
  --spacing: var(--spacing);
}
```

---

Generated by [CSS Crème](https://csscreme.com) — curated web design, decoded so you can build it.
Every value above is computed from the palette, not written by hand.
Font pairing Orbitron / heading · Rajdhani / body
Corner radius 6px
Spacing scale 8px base · 8 / 16 / 24 / 32 / 48

In context

New

Build better, faster

A card, a heading, a button and a hint of text: the palette doing real work.

Every pair, measured

Body text on the page background measures 18.17:1, which passes AAA. Below is every ink on every ground in this palette, computed with the WCAG 2.1 relative-luminance formula and reported against normal body text, which is the strictest case. 7 of 14 usable pairs reach AA or better. The failures are left in: a palette that hides them is less useful than one that tells you which two colours never to put together.

ink on groundBackgroundSurfacePrimaryAccent
Text Aa 18.17 AAA Aa 16.67 AAA Aa 3.17 Large only Aa 1.42 Fail
Muted Aa 4.77 AA Aa 4.38 Large only Aa 1.2 Fail Aa 2.69 Fail
Primary Aa 5.73 AA Aa 5.25 AA — Aa 2.24 Fail
Accent Aa 12.84 AAA Aa 11.78 AAA Aa 2.24 Fail —

Each cell is the ink actually painted on the ground, so you are reading the real pair rather than a swatch of it. Ratios are computed at build time from the hex values on this page; nothing here is asserted. Need the other standard? The contrast checker takes any two colours.

Under colour-vision deficiency

The six roles as they read under each simulated deficiency (Machado 2009, full severity). What to check: do primary and accent still tell apart, and does text still sit off surface? A simulation, not a measurement of anyone's vision.

Typical
Protanopia
Deuteranopia
Tritanopia
Achromatopsia

Found one you like? Pair it with a template, generate a matching background in the gradient generator, or browse all palettes.