Update existing Atelier themes

This commit is contained in:
Nate Butler
2023-03-07 13:22:07 -08:00
parent 4f4af55329
commit 477453c396
7 changed files with 286 additions and 110 deletions
@@ -0,0 +1,66 @@
import { License, Meta, ThemeSyntax } from "./colorScheme"
export interface Variant {
meta: Meta
colors: {
base00: string
base01: string
base02: string
base03: string
base04: string
base05: string
base06: string
base07: string
base08: string
base09: string
base0A: string
base0B: string
base0C: string
base0D: string
base0E: string
base0F: string
}
}
export const metaCommon: {
author: string
license: License
} = {
author: "Bram de Haan (http://atelierbramdehaan.nl)",
license: {
SPDX: "MIT",
license_text: {
https_url: "https://atelierbram.mit-license.org/license.txt",
license_checksum:
"f95ce526ef4e7eecf7a832bba0e3451cc1000f9ce63eb01ed6f64f8109f5d0a5",
}
},
}
export const buildSyntax = (variant: Variant): ThemeSyntax => {
const { colors } = variant
return {
primary: { color: colors.base06 },
comment: { color: colors.base03 },
"punctuation.delimiter": { color: colors.base05 },
"punctuation.bracket": { color: colors.base05 },
"punctuation.special": { color: colors.base0F },
"string.special.symbol": { color: colors.base0B },
operator: { color: colors.base05 },
function: { color: colors.base0D },
"function.method": { color: colors.base0D },
"function.special.definition": { color: colors.base0A },
string: { color: colors.base0B },
"string.special": { color: colors.base0F },
"string.regex": { color: colors.base0C },
type: { color: colors.base0A },
number: { color: colors.base09 },
property: { color: colors.base08 },
variable: { color: colors.base06 },
"variable.special": { color: colors.base0E },
variant: { color: colors.base0A },
keyword: { color: colors.base0E },
}
}
export const name = "Atelier"