From 7aebe3c4117267c27c737396a5d4b39646a3c9f8 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 26 Jul 2022 13:41:46 +0100 Subject: [PATCH] Add midnight theme --- packages/frontend-core/src/constants.js | 9 +++++++++ packages/frontend-core/src/themes/midnight.css | 16 ++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/packages/frontend-core/src/constants.js b/packages/frontend-core/src/constants.js index 00af4127e4..011c0041e9 100644 --- a/packages/frontend-core/src/constants.js +++ b/packages/frontend-core/src/constants.js @@ -98,3 +98,12 @@ export const SqlNumberTypeRangeMap = { min: -8388608, }, } + +export const ThemeOptions = [ + "lightest", + "light", + "dark", + "darkest", + "nord", + "midnight", +] diff --git a/packages/frontend-core/src/themes/midnight.css b/packages/frontend-core/src/themes/midnight.css index e69de29bb2..425176dba5 100644 --- a/packages/frontend-core/src/themes/midnight.css +++ b/packages/frontend-core/src/themes/midnight.css @@ -0,0 +1,16 @@ +.spectrum--midnight { + --hue: 220; + --sat: 10%; + --spectrum-global-color-gray-50: hsl(var(--hue), var(--sat), 12%); + --spectrum-global-color-gray-75: hsl(var(--hue), var(--sat), 14%); + --spectrum-global-color-gray-100: hsl(var(--hue), var(--sat), 16%); + --spectrum-global-color-gray-200: hsl(var(--hue), var(--sat), 20%); + --spectrum-global-color-gray-300: hsl(var(--hue), var(--sat), 24%); + --spectrum-global-color-gray-400: hsl(var(--hue), var(--sat), 32%); + --spectrum-global-color-gray-500: hsl(var(--hue), var(--sat), 40%); + --spectrum-global-color-gray-600: hsl(var(--hue), var(--sat), 60%); + --spectrum-global-color-gray-700: hsl(var(--hue), var(--sat), 70%); + --spectrum-global-color-gray-800: hsl(var(--hue), var(--sat), 80%); + --spectrum-global-color-gray-900: hsl(var(--hue), var(--sat), 90%); +} +