One Dark
One Dark is Atom's signature theme — the blue-grey canvas with warm accents that much of the modern editor scene descends from. It splits type (Yellow) from function (Blue), regex (Cyan) from string (Green) and tag (Red) from keyword (Purple). Dark-only — the One Light sibling is a separate theme and is not included, so pair it with colorScheme: "dark".
Opt in
{
"site": {
"theme": {
"package": "@refrakt-md/lumina",
"presets": ["@refrakt-md/lumina/presets/one-dark"],
"colorScheme": "dark"
}
}
}
Palette
One Dark
syntax-bg (canvas)#282c34W: 14.0 · B: 1.5AA ✓AAA ✓
mono-1 (text, punctuation)#abb2bfW: 2.1 · B: 9.9AA ✗AAA ✗
mono-2 (muted)#828997W: 3.5 · B: 6.0AA ✗AAA ✗
mono-3 (comment)#5c6370W: 6.0 · B: 3.5AA ✓AAA ✗
syntax-accent (primary)#528bffW: 3.2 · B: 6.5AA ✗AAA ✗
hue-1 (cyan — regex, operator)#56b6c2W: 2.4 · B: 8.9AA ✗AAA ✗
hue-2 (blue — function)#61afefW: 2.4 · B: 8.9AA ✗AAA ✗
hue-3 (purple — keyword)#c678ddW: 2.9 · B: 7.1AA ✗AAA ✗
hue-4 (green — string)#98c379W: 2.0 · B: 10.4AA ✗AAA ✗
hue-5 (red — tag, variable)#e06c75W: 3.2 · B: 6.6AA ✗AAA ✗
hue-6 (orange — number, constant, attribute)#d19a66W: 2.5 · B: 8.5AA ✗AAA ✗
hue-6-2 (yellow — type)#e5c07bW: 1.7 · B: 12.2AA ✗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
One Dark is the work of the Atom team at GitHub, MIT licensed. The preset is derived from the one-dark-syntax package (styles/colors.less).