From b9811e48e4996635e82250700fb45fb425f58935 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Tue, 28 Feb 2023 11:20:16 -0500 Subject: [PATCH] One family tune up + tidy --- styles/src/themes/one-dark.ts | 12 +++++------- styles/src/themes/one-light.ts | 10 ++++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/styles/src/themes/one-dark.ts b/styles/src/themes/one-dark.ts index 56a8399a82..48305e5bd9 100644 --- a/styles/src/themes/one-dark.ts +++ b/styles/src/themes/one-dark.ts @@ -42,13 +42,10 @@ const ramps = { } const syntax: ThemeSyntax = { - "emphasis.strong": { color: color.orange }, - "punctuation.list_marker": { color: color.red }, - "text.literal": { color: color.green }, - "variable.special": { color: color.orange }, boolean: { color: color.orange }, comment: { color: color.grey }, enum: { color: color.red }, + "emphasis.strong": { color: color.orange }, function: { color: color.blue }, keyword: { color: color.purple }, linkText: { color: color.blue, italic: false }, @@ -58,13 +55,14 @@ const syntax: ThemeSyntax = { primary: { color: color.white }, property: { color: color.red }, punctuation: { color: color.white }, + "punctuation.list_marker": { color: color.red }, + "punctuation.special": { color: color.darkRed }, string: { color: color.green }, title: { color: color.red, weight: fontWeights.normal }, + "text.literal": { color: color.green }, type: { color: color.teal }, + "variable.special": { color: color.orange }, variant: { color: color.blue }, - - // TODO: uncomment this once the bug with styling curly braces in template literals is fixed - // "punctuation.special": { color: color.darkRed }, } export const dark = createColorScheme(name, false, ramps, syntax) diff --git a/styles/src/themes/one-light.ts b/styles/src/themes/one-light.ts index 1979206cb9..267345ed4e 100644 --- a/styles/src/themes/one-light.ts +++ b/styles/src/themes/one-light.ts @@ -9,6 +9,7 @@ const color = { black: "#383A41", grey: "#A2A3A7", red: "#D36050", + darkRed: "#B92C46", orange: "#AD6F26", yellow: "#DFC184", green: "#659F58", @@ -42,10 +43,10 @@ const ramps = { } const syntax: ThemeSyntax = { - "emphasis.strong": { color: color.orange }, boolean: { color: color.orange }, comment: { color: color.grey }, enum: { color: color.red }, + "emphasis.strong": { color: color.orange }, function: { color: color.blue }, keyword: { color: color.purple }, linkText: { color: color.blue }, @@ -55,13 +56,14 @@ const syntax: ThemeSyntax = { primary: { color: color.black }, property: { color: color.red }, punctuation: { color: color.black }, + "punctuation.list_marker": { color: color.red }, + "punctuation.special": { color: color.darkRed }, string: { color: color.green }, title: { color: color.red, weight: fontWeights.normal }, + "text.literal": { color: color.green }, type: { color: color.teal }, + "variable.special": { color: color.orange }, variant: { color: color.blue }, - - // TODO: uncomment this once the bug with styling curly braces in template literals is fixed - // "variable.special": { color: color.orange }, } export const light = createColorScheme(name, true, ramps, syntax)