Skip to content

Open source personal finance application

feat (colors): add skin

ilkome9003ad3b5f64
diff --git a/assets/stylus/colors-dark.styl b/assets/stylus/colors-dark.styl
index f8857b2a..e0000b07 100644
--- a/assets/stylus/colors-dark.styl
+++ b/assets/stylus/colors-dark.styl
@@ -1,31 +1,47 @@
html.dark
+ // Base
+ //-----------------------------------
+ --color-red-base #b81414
+
+ // Icon
+ //-----------------------------------
+ --color-icon-base theme('colors.neutral.50')
+
+ // Item
+ //-----------------------------------
+ --color-item-base theme('colors.neutral.100')
+ --color-item-main-bg #1e1e1e
+ --color-item-main-hover theme('colors.neutral.800')
+
+
// colors
- --c-red-1 rgba(184,20,20,1)
+ // --------------------------------------------
+ --c-red-1 #b81414
--c-blue-1 #3a7dff
--c-blue-3 #2c74ff
--c-incomes-1 #2cad22
--c-expenses-1 #f92134
- --c-bg-1 rgba(10,10,10,.99)
- --c-bg-2 rgba(17,17,17,1)
+ --c-bg-1 #0a0a0afc
+ --c-bg-2 #111111
--c-bg-3 #171717
--c-bg-4 #1c1c1c
- --c-bg-5 rgba(35,35,35,1)
- --c-bg-6 rgba(39,39,39,1)
- --c-bg-7 rgba(46,46,46,1)
- --c-bg-8 rgba(63,63,63,1)
- --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-font-1 rgba(250,250,250,1)
- --c-font-2 rgba(220,220,220,1)
- --c-font-3 rgba(190,190,190,1)
- --c-font-4 rgba(150,150,150,1)
- --c-font-5 rgba(100,100,100,1)
+ --c-bg-5 #232323
+ --c-bg-6 #272727
+ --c-bg-7 #2e2e2e
+ --c-bg-8 #3f3f3f
+ --c-bg-9 #878787
+ --c-bg-10 #dcdcdc
+ --c-bg-14 #000000cc
+
+ --c-font-1 #fafafa
+ --c-font-2 #dcdcdc
+ --c-font-3 #bebebe
+ --c-font-4 #969696
+ --c-font-5 #646464
--color-text-link #58a6ff
- --color-link-bg rgba(28,31,36,1)
+ --color-link-bg #1c1f24
--c-item-bg-main #1e1e1e
--c-item-bd-main rgba(44,44,44,1)
diff --git a/assets/stylus/colors-light.styl b/assets/stylus/colors-light.styl
index c4732bae..da4d276e 100644
--- a/assets/stylus/colors-light.styl
+++ b/assets/stylus/colors-light.styl
@@ -1,7 +1,22 @@
html
+ // Base
+ //-----------------------------------
+ --color-red-base #b81414
+
+ // Icon
+ //-----------------------------------
+ --color-icon-base theme('colors.neutral.50')
+
+ // Item
+ //-----------------------------------
+ --color-item-base theme('colors.neutral.600')
+ --color-item-main-bg theme('colors.gray.100')
+ --color-item-main-hover theme('colors.gray.200')
+
+
// colors
// --------------------------------------------
- --c-red-1 rgba(184, 20, 20, 1)
+ --c-red-1 #b81414
--c-blue-1 #3a7dff
--c-blue-3 #2c74ff
--c-incomes-1 rgba(44, 173, 34, 1)
@@ -10,7 +25,7 @@ html
// backgrounds
// --------------------------------------------
--c-bg-1 #f0f0f0
- --c-bg-2 rgba(235, 235, 235, 1)
+ --c-bg-2 #ebebeb
--c-bg-3 #f5f5f5
--c-bg-4 #fafafa
--c-bg-5 #dcdcdc
@@ -27,11 +42,11 @@ html
// fonts
// --------------------------------------------
- --c-font-1 rgba(250, 250, 250, 1)
- --c-font-2 rgba(80, 80, 80, 1)
- --c-font-3 rgba(50, 50, 50, 1)
- --c-font-4 rgba(110, 110, 110, 1)
- --c-font-5 rgba(150, 150, 150, 1)
+ --c-font-1 #fafafa
+ --c-font-2 #505050
+ --c-font-3 #323232
+ --c-font-4 #6e6e6e
+ --c-font-5 #969696
--c-bg-3 #fff
--color-text-link #0366d6
diff --git a/tailwind.config.js b/tailwind.config.js
index 8752a67c..7efe351a 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -29,6 +29,22 @@ module.exports = {
income: '#2cad22',
white1: '#fdfdfd',
white2: '#fcfcfd',
+
+ skin: {
+ red: {
+ base: 'var(--color-red-base)',
+ },
+ icon: {
+ base: 'var(--color-icon-base)',
+ },
+ item: {
+ base: 'var(--color-item-base)',
+ main: {
+ bg: 'var(--color-item-main-bg)',
+ hover: 'var(--color-item-main-hover)',
+ },
+ },
+ },
},
fontSize: {
'2xs': '10px',