Skip to content

Commit 8325cfa

Browse files
committed
Attempt to make color schema better 💀
1 parent 03bdefa commit 8325cfa

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

Diff for: ‎src/components/controls/Select.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import ChevronDownIcon from "@heroicons/react/24/solid/ChevronDownIcon";
1212
export const style = inputStyle;
1313
export type VariantProps = InputVariantProps;
1414

15-
export const containerStyle = cva("absolute border-2 bg-white left-1/2 -translate-x-1/2 top-full rounded-lg min-w-fit w-full overflow-hidden translate-y-1 z-50", {
15+
export const containerStyle = cva("absolute border-2 left-1/2 -translate-x-1/2 top-full rounded-lg min-w-fit w-full overflow-hidden translate-y-1 z-50", {
1616
variants: {
1717
color: {
18-
primary: "border-primary",
19-
secondary: "border-secondary"
18+
primary: "border-primary bg-fill text-fill-contrast",
19+
secondary: "border-secondary bg-fill text-fill-contrast"
2020
}
2121
}
2222
});

Diff for: ‎src/components/layout/NavDropdown.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const NavDropdown = ({ summary, children }: NavDropdownProps) => {
5656
height="1em"
5757
/>
5858
</summary>
59-
<div ref={containerRef} className="absolute inset-x-0 flex flex-col gap-2 px-4 py-2 bg-white border-2 rounded-lg group/dropdown border-primary md:w-fit" data-in-group>
59+
<div ref={containerRef} className="absolute inset-x-0 flex flex-col gap-2 px-4 py-2 border-2 rounded-lg bg-fill text-fill-contrast group/dropdown border-primary md:w-fit" data-in-group>
6060
{children}
6161
</div>
6262
</details>

Diff for: ‎src/components/pages/blog/ArticleBrief.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const ArticleBrief = ({ title, thumbnail, thumbnailAlt, imgLoading, readtime, te
5050

5151
return (
5252
<motion.li
53-
className="origin-center flex flex-col flex-1 gap-4 mx-0 rounded-lg motion-safe:transition-[margin-inline] motion-safe:duration-500 sm:mx-16 md:mx-0 bg-primary-300"
53+
className="origin-center flex flex-col flex-1 gap-4 mx-0 rounded-lg motion-safe:transition-[margin-inline] motion-safe:duration-500 sm:mx-16 md:mx-0 bg-primary image-dots from-primary-light border-2 border-primary-light"
5454
variants={LIST_ANIM}
5555
initial="in"
5656
animate="anim"

Diff for: ‎tailwind.config.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ module.exports = {
1717
colors: {
1818
primary: {
1919
DEFAULT: "#127bcc",
20-
300: "#127bcc",
21-
light: "#127bcc",
22-
dark: "#127bcc",
20+
light: "#40a2ed",
21+
dark: "#0e62a3",
2322
contrast: "#FFF"
2423
},
2524
secondary: {
26-
DEFAULT: "#127bcc",
27-
light: "#127bcc",
28-
dark: "#127bcc",
25+
DEFAULT: "#9c58ef",
26+
light: "#8a41e2",
27+
dark: "#5106ad",
2928
contrast: "#FFF"
3029
},
3130
fill: {

0 commit comments

Comments
 (0)