From 94de96273fd68fdb2e2019d1f0b40b8aab99a42c Mon Sep 17 00:00:00 2001 From: bloodwiing Date: Mon, 20 May 2024 22:55:27 +0300 Subject: [PATCH] Refactor: Extract colors --- src/comp/toast/toast.svelte | 2 +- static/css/base.scss | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/comp/toast/toast.svelte b/src/comp/toast/toast.svelte index d0c51b8..209d459 100644 --- a/src/comp/toast/toast.svelte +++ b/src/comp/toast/toast.svelte @@ -134,7 +134,7 @@ } &[data-type='error'] { - --toast-color: #e04343; + --toast-color: var(--red); } padding: 0px; diff --git a/static/css/base.scss b/static/css/base.scss index 0a90527..342e88c 100644 --- a/static/css/base.scss +++ b/static/css/base.scss @@ -15,6 +15,11 @@ --gray: #21212c; --gray-dim: #151520; + + --red: #e04343; + --red-transparent: #e0434320; + --yellow: #f5ca54; + --yellow-transparent: #f5ca5420; } body {