Skip to content

Commit 3114473

Browse files
Refactor CSS variables for improved readability and consistency
1 parent e8af5fc commit 3114473

2 files changed

Lines changed: 58 additions & 55 deletions

File tree

project/frontend/app/globals.css

Lines changed: 57 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,90 @@
1+
/* stylelint-disable */
12
@import url("tailwindcss");
23

34

45
:root {
56
--font-size: 16px;
6-
--background: #ffffff;
7-
--foreground: oklch(0.145 0 0);
8-
--card: #ffffff;
9-
--card-foreground: oklch(0.145 0 0);
10-
--popover: oklch(1 0 0);
11-
--popover-foreground: oklch(0.145 0 0);
7+
--background: #fff;
8+
--foreground: oklch(14.5% 0 0deg);
9+
--card: #fff;
10+
--card-foreground: oklch(14.5% 0 0deg);
11+
--popover: oklch(100% 0 0deg);
12+
--popover-foreground: oklch(14.5% 0 0deg);
1213
--primary: #030213;
13-
--primary-foreground: oklch(1 0 0);
14-
--secondary: oklch(0.95 0.0058 264.53);
14+
--primary-foreground: oklch(100% 0 0deg);
15+
--secondary: oklch(95% 0.0058 264.53deg);
1516
--secondary-foreground: #030213;
1617
--muted: #ececf0;
1718
--muted-foreground: #717182;
1819
--accent: #e9ebef;
1920
--accent-foreground: #030213;
2021
--destructive: #d4183d;
21-
--destructive-foreground: #ffffff;
22-
--border: rgba(0, 0, 0, 0.1);
22+
--destructive-foreground: #fff;
23+
--border: rgb(0 0 0 / 10%);
2324
--input: transparent;
2425
--input-background: #f3f3f5;
2526
--switch-background: #cbced4;
2627
--font-weight-medium: 500;
2728
--font-weight-normal: 400;
28-
--ring: oklch(0.708 0 0);
29-
--chart-1: oklch(0.646 0.222 41.116);
30-
--chart-2: oklch(0.6 0.118 184.704);
31-
--chart-3: oklch(0.398 0.07 227.392);
32-
--chart-4: oklch(0.828 0.189 84.429);
33-
--chart-5: oklch(0.769 0.188 70.08);
29+
--ring: oklch(70.8% 0 0deg);
30+
--chart-1: oklch(64.6% 0.222 41.116deg);
31+
--chart-2: oklch(60% 0.118 184.704deg);
32+
--chart-3: oklch(39.8% 0.07 227.392deg);
33+
--chart-4: oklch(82.8% 0.189 84.429deg);
34+
--chart-5: oklch(76.9% 0.188 70.08deg);
3435
--radius: 0.625rem;
35-
--sidebar: oklch(0.985 0 0);
36-
--sidebar-foreground: oklch(0.145 0 0);
36+
--sidebar: oklch(98.5% 0 0deg);
37+
--sidebar-foreground: oklch(14.5% 0 0deg);
3738
--sidebar-primary: #030213;
38-
--sidebar-primary-foreground: oklch(0.985 0 0);
39-
--sidebar-accent: oklch(0.97 0 0);
40-
--sidebar-accent-foreground: oklch(0.205 0 0);
41-
--sidebar-border: oklch(0.922 0 0);
42-
--sidebar-ring: oklch(0.708 0 0);
39+
--sidebar-primary-foreground: oklch(98.5% 0 0deg);
40+
--sidebar-accent: oklch(97% 0 0deg);
41+
--sidebar-accent-foreground: oklch(20.5% 0 0deg);
42+
--sidebar-border: oklch(92.2% 0 0deg);
43+
--sidebar-ring: oklch(70.8% 0 0deg);
4344
--text-base: 10px;
4445
--text-2xl: 30px;
4546
--text-lg: 20px;
4647
--text-xl:25px;
4748
}
4849

4950
.dark {
50-
--background: oklch(0.145 0 0);
51-
--foreground: oklch(0.985 0 0);
52-
--card: oklch(0.145 0 0);
53-
--card-foreground: oklch(0.985 0 0);
54-
--popover: oklch(0.145 0 0);
55-
--popover-foreground: oklch(0.985 0 0);
56-
--primary: oklch(0.985 0 0);
57-
--primary-foreground: oklch(0.205 0 0);
58-
--secondary: oklch(0.269 0 0);
59-
--secondary-foreground: oklch(0.985 0 0);
60-
--muted: oklch(0.269 0 0);
61-
--muted-foreground: oklch(0.708 0 0);
62-
--accent: oklch(0.269 0 0);
63-
--accent-foreground: oklch(0.985 0 0);
64-
--destructive: oklch(0.396 0.141 25.723);
65-
--destructive-foreground: oklch(0.637 0.237 25.331);
66-
--border: oklch(0.269 0 0);
67-
--input: oklch(0.269 0 0);
68-
--ring: oklch(0.439 0 0);
51+
--background: oklch(14.5% 0 0deg);
52+
--foreground: oklch(98.5% 0 0deg);
53+
--card: oklch(14.5% 0 0deg);
54+
--card-foreground: oklch(98.5% 0 0deg);
55+
--popover: oklch(14.5% 0 0deg);
56+
--popover-foreground: oklch(98.5% 0 0deg);
57+
--primary: oklch(98.5% 0 0deg);
58+
--primary-foreground: oklch(20.5% 0 0deg);
59+
--secondary: oklch(26.9% 0 0deg);
60+
--secondary-foreground: oklch(98.5% 0 0deg);
61+
--muted: oklch(26.9% 0 0deg);
62+
--muted-foreground: oklch(70.8% 0 0deg);
63+
--accent: oklch(26.9% 0 0deg);
64+
--accent-foreground: oklch(98.5% 0 0deg);
65+
--destructive: oklch(39.6% 0.141 25.723deg);
66+
--destructive-foreground: oklch(63.7% 0.237 25.331deg);
67+
--border: oklch(26.9% 0 0deg);
68+
--input: oklch(26.9% 0 0deg);
69+
--ring: oklch(43.9% 0 0deg);
6970
--font-weight-medium: 500;
7071
--font-weight-normal: 400;
71-
--chart-1: oklch(0.488 0.243 264.376);
72-
--chart-2: oklch(0.696 0.17 162.48);
73-
--chart-3: oklch(0.769 0.188 70.08);
74-
--chart-4: oklch(0.627 0.265 303.9);
75-
--chart-5: oklch(0.645 0.246 16.439);
76-
--sidebar: oklch(0.205 0 0);
77-
--sidebar-foreground: oklch(0.985 0 0);
78-
--sidebar-primary: oklch(0.488 0.243 264.376);
79-
--sidebar-primary-foreground: oklch(0.985 0 0);
80-
--sidebar-accent: oklch(0.269 0 0);
81-
--sidebar-accent-foreground: oklch(0.985 0 0);
82-
--sidebar-border: oklch(0.269 0 0);
83-
--sidebar-ring: oklch(0.439 0 0);
72+
--chart-1: oklch(48.8% 0.243 264.376deg);
73+
--chart-2: oklch(69.6% 0.17 162.48deg);
74+
--chart-3: oklch(76.9% 0.188 70.08deg);
75+
--chart-4: oklch(62.7% 0.265 303.9deg);
76+
--chart-5: oklch(64.5% 0.246 16.439deg);
77+
--sidebar: oklch(20.5% 0 0deg);
78+
--sidebar-foreground: oklch(98.5% 0 0deg);
79+
--sidebar-primary: oklch(48.8% 0.243 264.376deg);
80+
--sidebar-primary-foreground: oklch(98.5% 0 0deg);
81+
--sidebar-accent: oklch(26.9% 0 0deg);
82+
--sidebar-accent-foreground: oklch(98.5% 0 0deg);
83+
--sidebar-border: oklch(26.9% 0 0deg);
84+
--sidebar-ring: oklch(43.9% 0 0deg);
8485
}
8586

87+
/* stylelint-disable-next-line at-rule-no-unknown */
8688
@theme inline {
8789
--color-background: var(--background);
8890
--color-foreground: var(--foreground);

project/frontend/app/recipeFinder/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@
455455
color: #ef4444;
456456
border-color: #ef4444;
457457
}
458+
458459
.finder-sidebar-ingredient-right {
459460
display: flex;
460461
align-items: center;

0 commit comments

Comments
 (0)