1import { chroma, ThemeAppearance, ThemeConfig, color_ramp } from "../../common"
2import { meta, build_syntax, Variant } from "./common"
3
4const variant: Variant = {
5 colors: {
6 base00: "#161b1d",
7 base01: "#1f292e",
8 base02: "#516d7b",
9 base03: "#5a7b8c",
10 base04: "#7195a8",
11 base05: "#7ea2b4",
12 base06: "#c1e4f6",
13 base07: "#ebf8ff",
14 base08: "#d22d72",
15 base09: "#935c25",
16 base0A: "#8a8a0f",
17 base0B: "#568c3b",
18 base0C: "#2d8f6f",
19 base0D: "#257fad",
20 base0E: "#6b6bb8",
21 base0F: "#b72dd2",
22 },
23}
24
25const syntax = build_syntax(variant)
26
27const get_theme = (variant: Variant): ThemeConfig => {
28 const { colors } = variant
29
30 return {
31 name: `${meta.name} Lakeside Dark`,
32 author: meta.author,
33 appearance: ThemeAppearance.Dark,
34 license_type: meta.license_type,
35 license_url: meta.license_url,
36 license_file: `${__dirname}/LICENSE`,
37 input_color: {
38 neutral: chroma.scale([
39 colors.base00,
40 colors.base01,
41 colors.base02,
42 colors.base03,
43 colors.base04,
44 colors.base05,
45 colors.base06,
46 colors.base07,
47 ]),
48 red: color_ramp(chroma(colors.base08)),
49 orange: color_ramp(chroma(colors.base09)),
50 yellow: color_ramp(chroma(colors.base0A)),
51 green: color_ramp(chroma(colors.base0B)),
52 cyan: color_ramp(chroma(colors.base0C)),
53 blue: color_ramp(chroma(colors.base0D)),
54 violet: color_ramp(chroma(colors.base0E)),
55 magenta: color_ramp(chroma(colors.base0F)),
56 },
57 override: { syntax },
58 }
59}
60
61export const theme = get_theme(variant)