Imported syntax presets›Dracula preset

Dracula

Dracula is the most-installed dark editor theme around: purple, pink, cyan and green accents on a near-black canvas. It splits type (Cyan) from function (Green) and regex (Red) from string (Yellow). Dark-only — Dracula has no light variant, so pair it with colorScheme: "dark" or light-mode pages keep Lumina's light chrome.

Opt in

{
  "site": {
    "theme": {
      "package": "@refrakt-md/lumina",
      "presets": ["@refrakt-md/lumina/presets/dracula"],
      "colorScheme": "dark"
    }
  }
}

Palette

Dracula

Background (canvas)#282a36W: 14.2 · B: 1.5AA ✓AAA ✓
Current Line (surface)#44475aW: 9.2 · B: 2.3AA ✓AAA ✓
Foreground (text, variable)#f8f8f2W: 1.1 · B: 19.7AA ✗AAA ✗
Comment (muted)#6272a4W: 4.7 · B: 4.5AA ✓AAA ✗
Cyan (type)#8be9fdW: 1.4 · B: 15.2AA ✗AAA ✗
Green (function, attribute)#50fa7bW: 1.4 · B: 15.3AA ✗AAA ✗
Orange (constant alt)#ffb86cW: 1.7 · B: 12.3AA ✗AAA ✗
Pink (keyword, tag, operator)#ff79c6W: 2.4 · B: 8.8AA ✗AAA ✗
Purple (primary, constant, number)#bd93f9W: 2.4 · B: 8.7AA ✗AAA ✗
Red (regex)#ff5555W: 3.1 · B: 6.7AA ✗AAA ✗
Yellow (string)#f1fa8cW: 1.1 · B: 18.8AA ✗AAA ✗

Preview

// A small user-service shape
interface User {
  id: number;
  name: string;
  preferences: Record<string, unknown>;
}

async function findUser(id: number): Promise<User | null> {
  const re = /^\d+$/;
  if (!re.test(String(id))) return null;
  const user = await db.users.findOne({ where: { id } });
  return user ?? null;
}

const widget = <Button onClick={() => findUser(42)} variant="primary">Find</Button>;

Attribution

Dracula is the work of Zeno Rocha and contributors, MIT licensed. The preset is derived from the official palette specification; see draculatheme.com.