Skip to content

Open source personal finance application

ui: update light

ilkome76df2efd7e3d
diff --git a/assets/stylus/variables/colors-dark.styl b/assets/stylus/variables/colors-dark.styl
index 82b7a83a..0cc4d7f4 100644
--- a/assets/stylus/variables/colors-dark.styl
+++ b/assets/stylus/variables/colors-dark.styl
@@ -1,6 +1,3 @@
-html
- --c-bg-15 rgba(27, 27, 27, .9)
-
html.dark-mode
// colors
// --------------------------------------------
@@ -29,6 +26,7 @@ html.dark-mode
--c-bg-9 rgba(135, 135, 135, 1)
--c-bg-10 rgba(220, 220, 220, 1)
--c-bg-14 rgba(0, 0, 0, .8)
+ --c-bg-15 rgba(27, 27, 27, .9)
// fonts
// --------------------------------------------
@@ -57,3 +55,7 @@ html.dark-mode
--c-item-stat-bg rgba(35, 35, 35, 1)
--c-item-stat-icon rgba(250, 250, 250, 1)
+
+ --c-chart-lables-bg #1e1e1e
+ --c-chart-lables-text-color rgba(190, 190, 190, 1)
+ --c-chart-lables-text-shaddow #171717
diff --git a/assets/stylus/variables/colors-light.styl b/assets/stylus/variables/colors-light.styl
index 8c6d7f00..8e61569c 100644
--- a/assets/stylus/variables/colors-light.styl
+++ b/assets/stylus/variables/colors-light.styl
@@ -60,3 +60,7 @@ html
--c-item-stat-bg #ebebeb
--c-item-stat-icon rgba(250, 250, 250, 1)
+
+ --c-chart-lables-bg #f5f6f8d1
+ --c-chart-lables-text-color rgba(50, 50, 50, 1)
+ --c-chart-lables-text-shaddow #6e6e6e7a
diff --git a/components/stat/chartOptions.js b/components/stat/chartOptions.js
index 92e82c70..1e03d352 100644
--- a/components/stat/chartOptions.js
+++ b/components/stat/chartOptions.js
@@ -83,15 +83,14 @@ export default {
enabled: true,
allowOverlap: false,
shadow: false,
- color: 'var(--c-font-3)',
- backgroundColor: 'var(--c-bg-15)',
+ color: 'var(--c-chart-lables-text-color)',
+ backgroundColor: 'var(--c-chart-lables-bg)',
align: 'center',
borderRadius: 3,
padding: 3,
y: -8,
style: {
- textOutline: 'var(--c-bg-1)',
- color: 'var(--c-bg-7)',
+ textOutline: 'var(--c-chart-lables-text-shaddow)',
fontSize: '10px',
fontFamily: 'var(--font-secondary)',
fontWeight: 400,