Imported syntax presets›Solarized preset

Solarized

Solarized is Ethan Schoonover's 2011 sixteen-hue palette, built on one constraint: the eight accent hues are identical in light and dark mode — only the base tones flip, from base3 (#fdf6e3) cream to base03 (#002b36) deep teal. It uses the extended syntax roles thoroughly: type (Yellow), number (Orange), regex (Green) and operator (Violet) all get their own hue.

Opt in

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

Palette

Solarized — light

base3 (canvas)#fdf6e3W: 1.1 · B: 19.5AA ✗AAA ✗
base2 (surface)#eee8d5W: 1.2 · B: 17.1AA ✗AAA ✗
base1 (muted)#93a1a1W: 2.7 · B: 7.9AA ✗AAA ✗
base0 (dark text)#839496W: 3.2 · B: 6.6AA ✗AAA ✗
base00 (light text)#657b83W: 4.5 · B: 4.7AA ✗AAA ✗
base01 (comments dark)#586e75W: 5.4 · B: 3.9AA ✓AAA ✗
base02 (dark surface)#073642W: 13.0 · B: 1.6AA ✓AAA ✓
base03 (dark canvas)#002b36W: 15.0 · B: 1.4AA ✓AAA ✓
Yellow (type)#b58900W: 3.2 · B: 6.5AA ✗AAA ✗
Orange (number)#cb4b16W: 4.6 · B: 4.6AA ✓AAA ✗
Red (keyword, tag)#dc322fW: 4.6 · B: 4.5AA ✓AAA ✗
Magenta (string-expression)#d33682W: 4.5 · B: 4.6AA ✓AAA ✗
Violet (constant, operator)#6c71c4W: 4.4 · B: 4.8AA ✗AAA ✗
Blue (function, attribute, primary)#268bd2W: 3.7 · B: 5.7AA ✗AAA ✗
Cyan (string)#2aa198W: 3.2 · B: 6.6AA ✗AAA ✗
Green (regex, comment-alt)#859900W: 3.2 · B: 6.6AA ✗AAA ✗

Solarized — dark

base03 (canvas)#002b36W: 15.0 · B: 1.4AA ✓AAA ✓
base02 (surface)#073642W: 13.0 · B: 1.6AA ✓AAA ✓
base01 (muted, comments)#586e75W: 5.4 · B: 3.9AA ✓AAA ✗
base00 (light text)#657b83W: 4.5 · B: 4.7AA ✗AAA ✗
base0 (dark text)#839496W: 3.2 · B: 6.6AA ✗AAA ✗
base1 (light muted)#93a1a1W: 2.7 · B: 7.9AA ✗AAA ✗
Yellow (type)#b58900W: 3.2 · B: 6.5AA ✗AAA ✗
Orange (number)#cb4b16W: 4.6 · B: 4.6AA ✓AAA ✗
Red (keyword, tag)#dc322fW: 4.6 · B: 4.5AA ✓AAA ✗
Magenta (string-expression)#d33682W: 4.5 · B: 4.6AA ✓AAA ✗
Violet (constant, operator)#6c71c4W: 4.4 · B: 4.8AA ✗AAA ✗
Blue (function, attribute, primary)#268bd2W: 3.7 · B: 5.7AA ✗AAA ✗
Cyan (string)#2aa198W: 3.2 · B: 6.6AA ✗AAA ✗
Green (regex)#859900W: 3.2 · B: 6.6AA ✗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

Solarized is the work of Ethan Schoonover, MIT licensed. The preset is derived from the official Solarized site.