dracula.ts

 1import chroma from "chroma-js"
 2import { colorRamp, createColorScheme } from "../common/ramps"
 3
 4const name = "Dracula"
 5const author = "zenorocha"
 6const url = "https://github.com/dracula/dracula-theme"
 7const license = {
 8    type: "MIT",
 9    url: "https://github.com/dracula/dracula-theme/blob/master/LICENSE",
10}
11
12export const dark = createColorScheme(name, false, {
13    neutral: chroma.scale([
14        "#282A36",
15        "#3a3c4e",
16        "#4d4f68",
17        "#626483",
18        "#62d6e8",
19        "#e9e9f4",
20        "#f1f2f8",
21        "#f8f8f2",
22    ]),
23    red: colorRamp(chroma("#ff5555")),
24    orange: colorRamp(chroma("#ffb86c")),
25    yellow: colorRamp(chroma("#f1fa8c")),
26    green: colorRamp(chroma("#50fa7b")),
27    cyan: colorRamp(chroma("#8be9fd")),
28    blue: colorRamp(chroma("#6272a4")),
29    violet: colorRamp(chroma("#bd93f9")),
30    magenta: colorRamp(chroma("#00f769")),
31})