From 20ec9f6daf34e57201c1d671f43f4521570e0ec0 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Tue, 11 Apr 2023 12:37:20 -0400 Subject: [PATCH] Add meta fields to `ayu` --- styles/src/themes/ayu-dark.ts | 13 +++++-------- styles/src/themes/ayu-light.ts | 13 +++++-------- styles/src/themes/ayu-mirage.ts | 13 +++++-------- 3 files changed, 15 insertions(+), 24 deletions(-) diff --git a/styles/src/themes/ayu-dark.ts b/styles/src/themes/ayu-dark.ts index 790e0d1173..c7e86994fe 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 cc4e121cc6..9acabf6a39 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 c5550ec278..2a01512673 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