Skip to content

Commit b8ae780

Browse files
fix theme light and dark
1 parent bbaa481 commit b8ae780

4 files changed

Lines changed: 3969 additions & 44 deletions

File tree

css/components/base.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@
1515
--resume-button-bg: var(--gradient-green);
1616
}
1717

18+
/* === BỔ SUNG: BIẾN MÀU CHO LIGHT MODE === */
19+
body.light-mode {
20+
background-color: var(--bg-dark); /* Explicitly set background */
21+
--bg-dark: #f5f5f5;
22+
--bg-card: rgba(255, 255, 255, 0.8);
23+
--border-color: rgba(0, 0, 0, 0.1);
24+
--text-primary: #212121;
25+
--text-secondary: #5f5f5f;
26+
--resume-button-bg: #18181b;
27+
/* Nút resume nền đen chữ trắng */
28+
}
29+
1830
* {
1931
margin: 0;
2032
padding: 0;

css/components/theme.css

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
/* --- BỔ SUNG: LIGHT/DARK MODE & NÚT CHUYỂN THEME --- */
33
/* ====================================================== */
44

5+
6+
7+
58
/* --- Style cho Nút Chuyển Theme --- */
69
.theme-toggle-btn {
710
background: none;
@@ -98,39 +101,30 @@ body.light-mode .social-links a:hover {
98101
body.light-mode .contact-form input,
99102
body.light-mode .contact-form textarea {
100103
background-color: rgba(0, 0, 0, 0.05);
101-
border-color: rgba(0, 0, 0, 0.1);
102-
color: var(--text-primary);
103-
}
104-
105-
body.light-mode .contact-form input:focus,
106-
body.light-mode .contact-form textarea:focus {
107-
border-color: var(--gradient-purple);
108-
box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.15);
109-
}
110-
111-
body.light-mode .footer-copyright {
112-
border-top-color: var(--border-color);
113104
}
114105

115-
body.light-mode .main-footer {
116-
border-top-color: var(--border-color);
106+
/* Đổi màu cho các tiêu đề phụ như "General Expertise", "Soft Skills"... */
107+
body.light-mode .skills-subtitle {
108+
color: #6200ee;
109+
/* Một màu tím đậm, dễ đọc trên nền trắng */
117110
}
118111

119-
body.light-mode .project-tags span {
112+
/* Đổi màu cho từng ô kỹ năng (pill/tag) */
113+
body.light-mode .grid-item {
120114
background-color: rgba(0, 0, 0, 0.05);
115+
/* Nền xám nhạt */
121116
border-color: rgba(0, 0, 0, 0.1);
122-
color: var(--text-primary);
123-
}
124-
125-
body.light-mode .showcase-card {
126-
background-color: #f9fafb;
127-
color: #1f2937;
128-
}
129-
130-
body.light-mode .text-features li {
131-
color: #4b5563;
117+
color: var(--text-secondary);
118+
/* Chữ màu xám đậm, kế thừa từ biến màu */
132119
}
133120

134-
body.light-mode .showcase-header {
135-
color: #9ca3af;
121+
/* Đổi màu cho hiệu ứng hover của ô kỹ năng */
122+
body.light-mode .grid-item:hover {
123+
color: var(--text-primary);
124+
/* Chữ màu đen */
125+
border-color: #007bff;
126+
/* Viền xanh dương đậm hơn */
127+
background-color: rgba(0, 123, 255, 0.1);
128+
/* Nền xanh dương nhạt */
129+
box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
136130
}

0 commit comments

Comments
 (0)