diff --git a/styles/src/themes/ayu-dark.ts b/styles/src/themes/ayu-dark.ts index 790e0d117378e39bdd71e678e25b03e30470b9d8..c7e86994feec6a78879b383e5bf71941084c0b9e 100644 --- a/styles/src/themes/ayu-dark.ts +++ b/styles/src/themes/ayu-dark.ts @@ -1,19 +1,16 @@ import { createColorScheme } from "./common/ramps" -import { ayu, buildTheme } from "./common/ayu-common" +import { ayu, meta as themeMeta, buildTheme } from "./common/ayu-common" -const name = "Ayu" -const author = "Konstantin Pschera " -const url = "https://github.com/ayu-theme/ayu-colors" -const license = { - type: "MIT", - url: "https://github.com/ayu-theme/ayu-colors/blob/master/license", +export const meta = { + ...themeMeta, + name: `${themeMeta.name} Dark` } const variant = ayu.dark const theme = buildTheme(variant, false) export const dark = createColorScheme( - `${name} Dark`, + meta.name, false, theme.ramps, theme.syntax diff --git a/styles/src/themes/ayu-light.ts b/styles/src/themes/ayu-light.ts index cc4e121cc6e485a186f31b13705e1311dbaabde4..9acabf6a3957a20aca2e3fa0181cf675840ddae4 100644 --- a/styles/src/themes/ayu-light.ts +++ b/styles/src/themes/ayu-light.ts @@ -1,19 +1,16 @@ import { createColorScheme } from "./common/ramps" -import { ayu, buildTheme } from "./common/ayu-common" +import { ayu, meta as themeMeta, buildTheme } from "./common/ayu-common" -const name = "Ayu" -const author = "Konstantin Pschera " -const url = "https://github.com/ayu-theme/ayu-colors" -const license = { - type: "MIT", - url: "https://github.com/ayu-theme/ayu-colors/blob/master/license", +export const meta = { + ...themeMeta, + name: `${themeMeta.name} Light` } const variant = ayu.light const theme = buildTheme(variant, true) export const light = createColorScheme( - `${name} Light`, + meta.name, true, theme.ramps, theme.syntax diff --git a/styles/src/themes/ayu-mirage.ts b/styles/src/themes/ayu-mirage.ts index c5550ec2780a8c2d8f8c46993fdca714119be9ff..2a01512673b73d104ead5fc20edf353b813c16bb 100644 --- a/styles/src/themes/ayu-mirage.ts +++ b/styles/src/themes/ayu-mirage.ts @@ -1,19 +1,16 @@ import { createColorScheme } from "./common/ramps" -import { ayu, buildTheme } from "./common/ayu-common" +import { ayu, meta as themeMeta, buildTheme } from "./common/ayu-common" -const name = "Ayu" -const author = "Konstantin Pschera " -const url = "https://github.com/ayu-theme/ayu-colors" -const license = { - type: "MIT", - url: "https://github.com/ayu-theme/ayu-colors/blob/master/license", +export const meta = { + ...themeMeta, + name: `${themeMeta.name} Mirage` } const variant = ayu.mirage const theme = buildTheme(variant, false) export const dark = createColorScheme( - `${name} Mirage`, + meta.name, false, theme.ramps, theme.syntax