Skip to content

Commit

Permalink
fixing colors after changing theme
Browse files Browse the repository at this point in the history
  • Loading branch information
No0ne003 committed May 7, 2024
1 parent ba9b462 commit d511122
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Feature-flag/FeatureFlags.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const FeatureFlags = () => {

return (
<div>
<h1 className="text-2xl text-center py-4 bg-accent">Feature Flags</h1>
<h1 className="text-2xl text-center py-4 bg-primary text-primary-foreground">Feature Flags</h1>
{componentsToRender.map((componentItem) =>
checkEnabledFlags(componentItem.key) ? componentItem.component : null,
)}
Expand Down
26 changes: 14 additions & 12 deletions src/pages/RandomColor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,22 @@ function RandomColor() {

return (
<div
className={`container flex flex-1 flex-col items-center justify-start gap-8 my-10 w-full h-screen`}
className={`container flex flex-1 flex-col items-center justify-start gap-8 my-10 w-full h-screen py-10`}
style={{ background: color }}
>
<Button onClick={() => settypeOfColor("hex")}>Create HEX Color</Button>
<Button onClick={() => settypeOfColor("rgb")}>Create RGB Color</Button>
<Button
onClick={
typeOfColor === "hex"
? handleCreateRandomHexColor
: handleCreateRandomRgbColor
}
>
Generate Random Color
</Button>
<div className="flex gap-7">
<Button onClick={() => settypeOfColor("hex")}>Create HEX Color</Button>
<Button onClick={() => settypeOfColor("rgb")}>Create RGB Color</Button>
<Button
onClick={
typeOfColor === "hex"
? handleCreateRandomHexColor
: handleCreateRandomRgbColor
}
>
Generate Random Color
</Button>
</div>
<div className="flex justify-center items-center mix-blend-multiply dark:mix-blend-exclusion mt-[50px]">
<h1 className="text-8xl font-micro">{color}</h1>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/StarRating.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tree-view/TreeView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import MenuList from "./MenuList"

function TreeView({menus = []}) {
return (
<div className="container bg-card w-[260px] flex flex-1 py-5 mr-[100%]">
<div className="container bg-secondary/50 w-[260px] flex flex-1 py-5 mr-[100%]">
<MenuList list={menus} />
</div>
)
Expand Down

0 comments on commit d511122

Please sign in to comment.