forked from codefrydev/codefrydev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.css
More file actions
162 lines (135 loc) · 3.85 KB
/
Copy paththeme.css
File metadata and controls
162 lines (135 loc) · 3.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/**
* Theme CSS Variables
* Defines color schemes for light and dark themes
*/
/* Light Theme (Default) */
:root,
[data-theme="light"] {
/* Background Colors */
--bg-primary: #e5e9f4;
--bg-secondary: #dee3f2;
--bg-tertiary: #ffffff;
--bg-card: #ffffff;
/* Text Colors */
--text-primary: #1f2937;
--text-secondary: #334155;
--text-tertiary: #4b5563;
--text-quaternary: #6b7280;
/* Link Colors */
--link-color: #1d4ed8;
--link-hover: #1e40af;
/* Border Colors */
--border-light: rgba(0, 0, 0, 0.1);
--border-medium: #d1d9e6;
--border-dark: #cbd5e1;
/* Shadow Colors */
--shadow-light: hsl(0 0% 100% / 0.75);
--shadow-dark: hsl(0 0% 50% / 0.5);
--shadow-light-alt: hsl(0 0% 100% / 0.6);
--shadow-dark-alt: hsl(225 15% 70% / 0.9);
--shadow-card: rgba(0, 0, 0, 0.12);
--shadow-card-hover: rgba(0, 0, 0, 0.15);
/* Accent Colors */
--accent-color: #1d4ed8;
--accent-hover: #1e40af;
/* Button Colors */
--button-text: #334155;
--button-text-hover: #1d4ed8;
--button-bg: #e5e9f4;
/* Timeline/History Colors */
--timeline-line: rgb(225, 225, 225);
--timeline-shadow: rgba(0, 0, 0, 0.5);
/* Text on Accent Colors */
--text-on-accent: #ffffff;
}
/* Dark Theme */
[data-theme="dark"] {
/* Background Colors */
--bg-primary: #1a1d29;
--bg-secondary: #252936;
--bg-tertiary: #2d3142;
--bg-card: #252936;
/* Text Colors */
--text-primary: #e5e9f4;
--text-secondary: #cbd5e1;
--text-tertiary: #94a3b8;
--text-quaternary: #64748b;
/* Link Colors */
--link-color: #60a5fa;
--link-hover: #3b82f6;
/* Border Colors */
--border-light: rgba(255, 255, 255, 0.1);
--border-medium: #3d4254;
--border-dark: #2d3142;
/* Shadow Colors */
--shadow-light: hsl(0 0% 100% / 0.15);
--shadow-dark: hsl(0 0% 0% / 0.6);
--shadow-light-alt: hsl(0 0% 100% / 0.12);
--shadow-dark-alt: hsl(0 0% 0% / 0.7);
--shadow-card: rgba(0, 0, 0, 0.3);
--shadow-card-hover: rgba(0, 0, 0, 0.4);
/* Accent Colors */
--accent-color: #60a5fa;
--accent-hover: #3b82f6;
/* Button Colors */
--button-text: #cbd5e1;
--button-text-hover: #60a5fa;
--button-bg: #1a1d29;
/* Timeline/History Colors */
--timeline-line: rgb(60, 60, 60);
--timeline-shadow: rgba(0, 0, 0, 0.7);
/* Text on Accent Colors */
--text-on-accent: #ffffff;
}
/* Theme Toggle Button Styles */
.theme-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
padding: 0;
border: none;
border-radius: 50%;
background-color: var(--bg-secondary);
color: var(--text-primary);
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 4px var(--shadow-card);
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
background-color: var(--bg-tertiary);
transform: scale(1.1);
outline: 2px solid var(--link-color);
outline-offset: 2px;
}
.theme-toggle:active {
transform: scale(0.95);
}
.theme-icon {
width: 1.25rem;
height: 1.25rem;
stroke: currentColor;
fill: none;
transition: transform 0.3s ease;
}
.theme-toggle:hover .theme-icon {
transform: rotate(15deg);
}
/* Smooth theme transitions */
* {
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Disable transitions during initial load to prevent flash */
html:not([data-theme]) * {
transition: none !important;
}
/* Logo theme adaptation - Invert logo colors in dark mode */
[data-theme="dark"] img[src*="IconCodefrydev"],
[data-theme="dark"] .footer-logo,
[data-theme="dark"] img[src*="iconcodefrydev"],
[data-theme="dark"] .site-logo {
filter: invert(1) brightness(1.1);
transition: filter 0.3s ease;
}