From 0e749e5afbb618f22c9dce4e4e4792078179e641 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Tue, 23 Jan 2024 19:20:33 -0800 Subject: [PATCH] updated color classes --- web/dashboard.templ | 18 +++++++++--------- web/sass/variables.scss | 26 +++++++------------------- web/transactions.templ | 10 +++++++++- 3 files changed, 25 insertions(+), 29 deletions(-) diff --git a/web/dashboard.templ b/web/dashboard.templ index 1bb2944..f4fad21 100644 --- a/web/dashboard.templ +++ b/web/dashboard.templ @@ -2,13 +2,13 @@ package web templ dashboard() { Dashboard -
+
-
- - Income/Expenses - +
+ + Income/Expenses +
@@ -19,7 +19,7 @@ templ dashboard() { id="IncomeVsExpenditureChart" >
-
+
-
- - +
+ +
diff --git a/web/sass/variables.scss b/web/sass/variables.scss index 6bbb8c5..bdd50f7 100644 --- a/web/sass/variables.scss +++ b/web/sass/variables.scss @@ -29,7 +29,13 @@ } } -.c-text { +@each $color, $_ in map-get(catppuccin.$palette, 'latte') { + .c-#{$color} { + background-color: var(--#{$prefix}-#{$color}) !important; + } +} + +.tc-text { color: var(--#{$prefix}-text); } .c-s0 { @@ -38,21 +44,3 @@ .c-s1 { background-color: var(--#{$prefix}-surface1); } -.c-crust { - background-color: var(--#{$prefix}-crust); -} -.c-mantle { - background-color: var(--#{$prefix}-mantle); -} -.c-mauve { - background-color: var(--#{$prefix}-mauve); -} -.c-teal { - background-color: var(--#{$prefix}-teal) !important; -} -.c-green { - background-color: var(--#{$prefix}-green) !important; -} -.c-maroon { - background-color: var(--#{$prefix}-maroon) !important; -} diff --git a/web/transactions.templ b/web/transactions.templ index 4722a4d..9fd4a6f 100644 --- a/web/transactions.templ +++ b/web/transactions.templ @@ -2,7 +2,7 @@ package web templ transactions_page(userID int, accounts *[]string) { Transactions -
+
+ +