From 0f7a1a298b94827c3a8008b32aef8b1d3ea76ca8 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Thu, 11 Jul 2024 07:57:09 +0800 Subject: [PATCH] update tsconfig + added new color variables to tailwind --- frontend/src/app.postcss | 16 ++++++++++++++-- frontend/tailwind.config.js | 12 +++++++++++- frontend/tsconfig.json | 3 ++- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/frontend/src/app.postcss b/frontend/src/app.postcss index 4da0202..5bf27ab 100644 --- a/frontend/src/app.postcss +++ b/frontend/src/app.postcss @@ -28,9 +28,15 @@ --accent: 240 4.8% 95.9%; --accent-foreground: 240 5.9% 10%; - --destructive: #c20e4d; + --destructive: 0 84.2% 60.2%; --destructive-foreground: 0 0% 98%; + --success: 141.9 69.2% 58%; + --success-foreground: 0 0% 98%; + + --warning: 47.9 95.8% 53.1%; + --warning-foreground: 0 0% 98%; + --ring: 240 4.8% 95.9%; --radius: 0.5rem; @@ -61,9 +67,15 @@ --accent: 240 3.7% 15.9%; --accent-foreground: 0 0% 98%; - --destructive: #c20e4d; + --destructive: 0 84.2% 60.2%; --destructive-foreground: 0 0% 98%; + --success: 141.9 69.2% 58%; + --success-foreground: 0 0% 98%; + + --warning: 47.9 95.8% 53.1%; + --warning-foreground: 0 0% 98%; + --ring: 240 3.7% 15.9%; } } diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index bd126c4..0b5223f 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -31,10 +31,20 @@ const config = { 'hsl(var(--secondary-foreground) / )', }, destructive: { - DEFAULT: 'var(--destructive)', + DEFAULT: 'hsl(var(--destructive) / )', foreground: 'hsl(var(--destructive-foreground) / )', }, + success: { + DEFAULT: 'hsl(var(--success) / )', + foreground: + 'hsl(var(--success-foreground) / )', + }, + warning: { + DEFAULT: 'hsl(var(--warning) / )', + foreground: + 'hsl(var(--warning-foreground) / )', + }, muted: { DEFAULT: 'hsl(var(--muted) / )', foreground: 'hsl(var(--muted-foreground) / )', diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 8d69530..757641c 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -9,7 +9,8 @@ "skipLibCheck": true, "sourceMap": true, "strict": true, - "types": ["bun-types"] + "types": ["bun-types"], + "noErrorTruncation": true } // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias //