diff --git a/styles/src/themes/andromeda.ts b/styles/src/themes/andromeda.ts index 2c03c8c680..dc4a5a00d4 100644 --- a/styles/src/themes/andromeda.ts +++ b/styles/src/themes/andromeda.ts @@ -1,7 +1,13 @@ import chroma from "chroma-js"; import { colorRamp, createColorScheme } from "./common/ramps"; -const name = "andromeda"; +const name = "Andromeda"; +const author = ""; +const url = ""; +const license = { + type: "", + url: "", +}; const ramps = { neutral: chroma diff --git a/styles/src/themes/cave.ts b/styles/src/themes/cave.ts index f13b9f028a..a6099c3a0b 100644 --- a/styles/src/themes/cave.ts +++ b/styles/src/themes/cave.ts @@ -1,7 +1,13 @@ import chroma from "chroma-js"; import { colorRamp, createColorScheme } from "./common/ramps"; -const name = "cave"; +const name = "Cave"; +const author = ""; +const url = ""; +const license = { + type: "", + url: "" +} export const dark = createColorScheme(`${name}-dark`, false, { neutral: chroma @@ -37,7 +43,8 @@ export const light = createColorScheme(`${name}-light`, true, { "#8b8792", "#e2dfe7", "#efecf4", - ]).correctLightness(), + ]) + .correctLightness(), red: colorRamp(chroma("#be4678")), orange: colorRamp(chroma("#aa573c")), yellow: colorRamp(chroma("#a06e3b")), @@ -46,4 +53,4 @@ export const light = createColorScheme(`${name}-light`, true, { blue: colorRamp(chroma("#576ddb")), violet: colorRamp(chroma("#955ae7")), magenta: colorRamp(chroma("#bf40bf")), -}); \ No newline at end of file +}); diff --git a/styles/src/themes/common/base16.ts b/styles/src/themes/common/base16.ts index 1c4a5e4076..c5b914d62b 100644 --- a/styles/src/themes/common/base16.ts +++ b/styles/src/themes/common/base16.ts @@ -116,8 +116,8 @@ export function createTheme( on500Ok: { base: sample(ramps.green, 0.05), hovered: sample(ramps.green, 0.1), - active: sample(ramps.green, 0.15) - } + active: sample(ramps.green, 0.15), + }, }; const borderColor = { @@ -186,7 +186,7 @@ export function createTheme( weight: fontWeights.normal, }, "variable.special": { - color: sample(ramps.blue, 0.80), + color: sample(ramps.blue, 0.8), weight: fontWeights.normal, }, comment: { diff --git a/styles/src/themes/common/ramps.ts b/styles/src/themes/common/ramps.ts index 81b94bdb84..971830ed07 100644 --- a/styles/src/themes/common/ramps.ts +++ b/styles/src/themes/common/ramps.ts @@ -142,9 +142,13 @@ function buildStyleSet( ramp: Scale, backgroundBase: number, foregroundBase: number, - step: number = 0.08, + step: number = 0.08 ): StyleSet { - let styleDefinitions = buildStyleDefinition(backgroundBase, foregroundBase, step); + let styleDefinitions = buildStyleDefinition( + backgroundBase, + foregroundBase, + step + ); function colorString(indexOrColor: number | Color): string { if (typeof indexOrColor === "number") { @@ -172,7 +176,11 @@ function buildStyleSet( }; } -function buildStyleDefinition(bgBase: number, fgBase: number, step: number = 0.08) { +function buildStyleDefinition( + bgBase: number, + fgBase: number, + step: number = 0.08 +) { return { background: { default: bgBase, @@ -199,4 +207,4 @@ function buildStyleDefinition(bgBase: number, fgBase: number, step: number = 0.0 inverted: bgBase + step * 2, }, }; -} \ No newline at end of file +} diff --git a/styles/src/themes/rose-pine-dawn.ts b/styles/src/themes/rose-pine-dawn.ts index e0e72e21ec..1c5866b3ff 100644 --- a/styles/src/themes/rose-pine-dawn.ts +++ b/styles/src/themes/rose-pine-dawn.ts @@ -1,7 +1,9 @@ import chroma from "chroma-js"; import { colorRamp, createColorScheme } from "./common/ramps"; -const name = "rosé-pine-dawn"; +const name = "Rosé Pine Dawn"; +const author = ""; +const url = ""; const ramps = { neutral: chroma diff --git a/styles/src/themes/rose-pine-moon.ts b/styles/src/themes/rose-pine-moon.ts index 52a4252d31..27e2caf07b 100644 --- a/styles/src/themes/rose-pine-moon.ts +++ b/styles/src/themes/rose-pine-moon.ts @@ -1,7 +1,9 @@ import chroma from "chroma-js"; import { colorRamp, createColorScheme } from "./common/ramps"; -const name = "rosé-pine-moon"; +const name = "Rosé Pine Moon"; +const author = ""; +const url = ""; const ramps = { neutral: chroma diff --git a/styles/src/themes/rose-pine.ts b/styles/src/themes/rose-pine.ts index b33c4a3fb5..5e6f6d028e 100644 --- a/styles/src/themes/rose-pine.ts +++ b/styles/src/themes/rose-pine.ts @@ -1,7 +1,9 @@ import chroma from "chroma-js"; import { colorRamp, createColorScheme } from "./common/ramps"; -const name = "rosé-pine"; +const name = "Rosé Pine"; +const author = ""; +const url = ""; const ramps = { neutral: chroma.scale([ diff --git a/styles/src/themes/sandcastle.ts b/styles/src/themes/sandcastle.ts index 5e5230104b..51ca87913f 100644 --- a/styles/src/themes/sandcastle.ts +++ b/styles/src/themes/sandcastle.ts @@ -1,7 +1,9 @@ import chroma from "chroma-js"; import { colorRamp, createColorScheme } from "./common/ramps"; -const name = "sandcastle"; +const name = "Sandcastle"; +const author = ""; +const url = ""; const ramps = { neutral: chroma.scale([ diff --git a/styles/src/themes/solarized.ts b/styles/src/themes/solarized.ts index b528708eca..b9d1690eb5 100644 --- a/styles/src/themes/solarized.ts +++ b/styles/src/themes/solarized.ts @@ -1,7 +1,9 @@ import chroma from "chroma-js"; import { colorRamp, createColorScheme } from "./common/ramps"; -const name = "solarized"; +const name = "Solarized"; +const author = ""; +const url = ""; const ramps = { neutral: chroma diff --git a/styles/src/themes/sulphurpool.ts b/styles/src/themes/sulphurpool.ts index 976e7cf7cd..1f4c896868 100644 --- a/styles/src/themes/sulphurpool.ts +++ b/styles/src/themes/sulphurpool.ts @@ -1,7 +1,9 @@ import chroma from "chroma-js"; import { colorRamp, createColorScheme } from "./common/ramps"; -const name = "sulphurpool"; +const name = "Sulphurpool"; +const author = ""; +const url = ""; const ramps = { neutral: chroma diff --git a/styles/src/themes/summercamp.ts b/styles/src/themes/summercamp.ts index f762785414..8c66e3690b 100644 --- a/styles/src/themes/summercamp.ts +++ b/styles/src/themes/summercamp.ts @@ -1,7 +1,9 @@ import chroma from "chroma-js"; import { colorRamp, createColorScheme } from "./common/ramps"; -const name = "summercamp"; +const name = "Summercamp"; +const author = ""; +const url = ""; const ramps = { neutral: chroma