Skip to content

Commit 05d796c

Browse files
committed
added varibles for colors
1 parent 2d4e18b commit 05d796c

File tree

3 files changed

+54
-6
lines changed

3 files changed

+54
-6
lines changed

src/app/ThemeProvider.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ export const ThemeProvider = ({ children }) => {
2424
}, [isDark]);
2525

2626
const toggleTheme = () => {
27-
setIsDark((prev) => {
28-
const newTheme = !prev;
29-
console.log(`Theme switched to: ${newTheme ? 'dark' : 'light'} mode`);
30-
return newTheme;
31-
});
27+
setIsDark((prev) => !prev);
3228
};
3329

3430
return <ThemeContext.Provider value={{ isDark, toggleTheme }}>{children}</ThemeContext.Provider>;

src/app/styles/layout/_actionContainer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.action-container {
2-
background: white;
2+
background: var(--bg-primary);
33
border-right: 1px solid #e5e7eb;
44
transition: width 0.3s ease;
55
overflow-x: hidden;

src/app/styles/main.scss

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,55 @@ body {
3636
padding: 0;
3737
height: 100%;
3838
}
39+
40+
:root {
41+
// Base colors
42+
--color-primary: #14b8a6;
43+
--color-primary-dark: #0d9488;
44+
--color-primary-light: #2dd4bf;
45+
46+
// Background colors
47+
--bg-primary: #ffffff;
48+
--bg-secondary: #f9fafb;
49+
--bg-tertiary: #f3f4f6;
50+
51+
// Border colors
52+
--border-color: #e5e7eb;
53+
--border-color-dark: #d1d5db;
54+
55+
// Text colors
56+
--text-primary: #374151;
57+
--text-secondary: #6b7280;
58+
--text-tertiary: #9ca3af;
59+
60+
// Interactive colors
61+
--hover-bg: #f9fafb;
62+
--selected-bg: #f3f4f6;
63+
--button-primary-bg: #111827;
64+
--button-primary-text: #ffffff;
65+
66+
// Transitions
67+
--theme-transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
68+
}
69+
70+
:root.dark {
71+
// Background colors
72+
--bg-primary: #1f2937;
73+
--bg-secondary: #2d3748;
74+
--bg-tertiary: #374151;
75+
76+
// Border colors
77+
--border-color: #374151;
78+
--border-color-dark: #4b5563;
79+
80+
// Text colors
81+
--text-primary: #f3f4f6;
82+
--text-secondary: #9ca3af;
83+
--text-tertiary: #6b7280;
84+
85+
// Interactive colors
86+
--hover-bg: #2d3748;
87+
--selected-bg: #374151;
88+
--button-primary-bg: #0f172a;
89+
--button-primary-text: #ffffff;
90+
}

0 commit comments

Comments
 (0)