diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-12-28 22:31:21 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-12-28 22:31:21 -0400 |
commit | f09d71082b755a7ef652cf1c9eee5c27c9386701 (patch) | |
tree | 27d33c703be27f07206563953848b93b551dbf1a /src/util | |
parent | 65e77ad3a66cd61910f916a26da1f4ce7be54dcf (diff) |
better theme colors
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/colors.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/colors.js b/src/util/colors.js index dea67123..c9ef69bf 100644 --- a/src/util/colors.js +++ b/src/util/colors.js @@ -12,6 +12,7 @@ export function getColors(themeColor, { const dark = primary.luminance(0.02); const dim = primary.desaturate(2).darken(1.5); + const light = chroma.average(['#ffffff', primary], 'rgb', [4, 1]); const bg = primary.luminance(0.008).desaturate(3.5).alpha(0.8); const bgBlack = primary.saturate(1).luminance(0.0025).alpha(0.8); @@ -25,6 +26,7 @@ export function getColors(themeColor, { dark: dark.hex(), dim: dim.hex(), + light: light.hex(), bg: bg.hex(), bgBlack: bgBlack.hex(), |