Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add meta fields to `ayu`
Nate Butler20ec9f6daf34
diff --git a/styles/src/themes/ayu-dark.ts b/styles/src/themes/ayu-dark.tsindex 790e0d11737..c7e86994fee 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 <[email protected]>"-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.darkconst theme = buildTheme(variant, false)export const dark = createColorScheme(- `${name} Dark`,+ meta.name,false,theme.ramps,theme.syntaxdiff --git a/styles/src/themes/ayu-light.ts b/styles/src/themes/ayu-light.tsindex cc4e121cc6e..9acabf6a395 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 <[email protected]>"-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.lightconst theme = buildTheme(variant, true)export const light = createColorScheme(- `${name} Light`,+ meta.name,true,theme.ramps,theme.syntaxdiff --git a/styles/src/themes/ayu-mirage.ts b/styles/src/themes/ayu-mirage.tsindex c5550ec2780..2a01512673b 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 <[email protected]>"-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.mirageconst theme = buildTheme(variant, false)export const dark = createColorScheme(- `${name} Mirage`,+ meta.name,false,theme.ramps,theme.syntax