From d51112284bb886ecf7eb96ec404f2d9563e9907e Mon Sep 17 00:00:00 2001 From: No0ne003 Date: Tue, 7 May 2024 13:11:58 +0100 Subject: [PATCH] fixing colors after changing theme --- src/index.css | 2 +- src/pages/Feature-flag/FeatureFlags.jsx | 2 +- src/pages/RandomColor.jsx | 26 +++++++++++++------------ src/pages/StarRating.jsx | 4 ++-- src/pages/tree-view/TreeView.jsx | 2 +- 5 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/index.css b/src/index.css index b93de65..4381c75 100644 --- a/src/index.css +++ b/src/index.css @@ -48,7 +48,7 @@ --destructive: 343.269 81.25% 74.902%; --destructive-foreground: 240 21.311% 11.961%; --ring: 226.154 63.934% 88.039%; - --radius: 0rem; + --radius: 0.5rem; } } diff --git a/src/pages/Feature-flag/FeatureFlags.jsx b/src/pages/Feature-flag/FeatureFlags.jsx index d4ff426..6dd4ddc 100644 --- a/src/pages/Feature-flag/FeatureFlags.jsx +++ b/src/pages/Feature-flag/FeatureFlags.jsx @@ -47,7 +47,7 @@ export const FeatureFlags = () => { return (
-

Feature Flags

+

Feature Flags

{componentsToRender.map((componentItem) => checkEnabledFlags(componentItem.key) ? componentItem.component : null, )} diff --git a/src/pages/RandomColor.jsx b/src/pages/RandomColor.jsx index 19882de..fe44199 100644 --- a/src/pages/RandomColor.jsx +++ b/src/pages/RandomColor.jsx @@ -29,20 +29,22 @@ function RandomColor() { return (
- - - +
+ + + +

{color}

diff --git a/src/pages/StarRating.jsx b/src/pages/StarRating.jsx index 0f35a00..841d8b9 100644 --- a/src/pages/StarRating.jsx +++ b/src/pages/StarRating.jsx @@ -43,8 +43,8 @@ function StarRating({ numOfStars = 5 }) { key={index} className={ index <= (hover || rating) - ? "active text-accent" - : "inactive text-white" + ? "active text-primary" + : "inactive text-secondary-foreground/20" } onClick={() => handleClick(index)} onMouseMove={() => handleMouseEnter(index)} diff --git a/src/pages/tree-view/TreeView.jsx b/src/pages/tree-view/TreeView.jsx index 35dd205..98a334f 100644 --- a/src/pages/tree-view/TreeView.jsx +++ b/src/pages/tree-view/TreeView.jsx @@ -2,7 +2,7 @@ import MenuList from "./MenuList" function TreeView({menus = []}) { return ( -
+
)