Skip to content

Commit 331c489

Browse files
rohit-singh121Sidhant2104jbampton
authored
refactor: replace hard-coded theme colors (#655)
Co-authored-by: SIDHANT SINGH <sidhantsingh2103@gmail.com> Co-authored-by: John Bampton <jbampton@users.noreply.github.com>
1 parent 2f0945a commit 331c489

1 file changed

Lines changed: 29 additions & 22 deletions

File tree

‎src/assets/css/style.css‎

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
--bg-footer: #e2e8f0;
88
--text-main: #1e293b; /* Default Light */
99
--text-muted: #4a5568;
10+
--text-light: #ffffff;
1011
--border-color: #cbd5e0;
1112
--accent: #94a3b8; /* Default */
1213
--accent-light: #eff6ff;
1314
--accent-rgb: 37, 99, 235;
15+
--primary: #2563eb;
16+
--primary-rgb: 37, 99, 235;
17+
--success: #10b981;
18+
--success-rgb: 16, 185, 129;
19+
--info: #06b6d4;
20+
--info-rgb: 6, 182, 212;
1421
--danger: #dc2626;
1522
--card-shadow:
1623
0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
@@ -121,7 +128,7 @@ body {
121128

122129
.profile-btn:hover {
123130
background-color: var(--accent) !important;
124-
color: #ffffff !important;
131+
color: var(--text-light) !important;
125132
box-shadow: 0 4px 15px var(--accent-light);
126133
}
127134

@@ -147,7 +154,7 @@ body {
147154

148155
.skill-item:hover {
149156
background-color: var(--accent) !important;
150-
color: #ffffff !important;
157+
color: var(--text-light) !important;
151158
transform: translateY(-3px) scale(1.05);
152159
box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4);
153160
}
@@ -156,8 +163,8 @@ body {
156163
* 3. BUTTONS & SHIMMER EFFECTS
157164
*/
158165
.surprise-btn {
159-
background-color: #2563eb !important;
160-
color: #ffffff !important;
166+
background-color: var(--primary) !important;
167+
color: var(--text-light) !important;
161168
display: inline-flex !important;
162169
align-items: center;
163170
justify-content: center;
@@ -168,7 +175,7 @@ body {
168175
letter-spacing: 0.05em;
169176
border: none;
170177
cursor: pointer;
171-
box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
178+
box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
172179
transition: all 0.3s ease;
173180
position: relative;
174181
overflow: hidden;
@@ -180,7 +187,7 @@ body {
180187

181188
.surprise-btn:hover {
182189
transform: translateY(-2px);
183-
box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
190+
box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
184191
filter: brightness(1.1);
185192
}
186193

@@ -308,13 +315,13 @@ html body #dev-tools[data-lock="true"] {
308315
}
309316

310317
#repair-btn {
311-
background-color: #2563eb !important; /* Restore to Blue */
312-
color: #fff !important;
313-
border: 4px solid #fff;
318+
background-color: var(--primary) !important; /* Restore to Blue */
319+
color: var(--text-light) !important;
320+
border: 4px solid var(--text-light);
314321
border-radius: 9999px;
315322
padding: 1.5rem 3rem;
316323
font-weight: 900;
317-
box-shadow: 0 0 60px rgba(37, 99, 235, 0.6);
324+
box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.6);
318325
z-index: 10001;
319326
position: fixed;
320327
top: 50%;
@@ -426,8 +433,8 @@ html body #dev-tools[data-lock="true"] {
426433

427434
/* Special styling for those who have reached Level 5 (Data Miner) */
428435
body[data-level="5"] .skill-item {
429-
border-color: #06b6d4 !important; /* Data Miner Cyan */
430-
background: rgba(6, 182, 212, 0.1) !important;
436+
border-color: var(--info) !important; /* Data Miner Cyan */
437+
background: rgba(var(--info-rgb), 0.1) !important;
431438
position: relative;
432439
overflow: hidden;
433440
}
@@ -472,9 +479,9 @@ body[data-level="5"] .skill-item::before {
472479
/* Level 5 Specific Visual Perk */
473480
.level-architect .skill-item,
474481
body[data-level="5"] .skill-item {
475-
border-color: #06b6d4 !important;
476-
background: rgba(6, 182, 212, 0.1) !important;
477-
box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
482+
border-color: var(--info) !important;
483+
background: rgba(var(--info-rgb), 0.1) !important;
484+
box-shadow: 0 0 10px rgba(var(--info-rgb), 0.2);
478485
}
479486

480487
.skill-item {
@@ -764,12 +771,12 @@ a:hover {
764771
bottom: 20%;
765772
right: 20px;
766773
background: rgba(0, 0, 0, 0.9);
767-
border-left: 4px solid #10b981;
768-
color: #10b981;
774+
border-left: 4px solid var(--success);
775+
color: var(--success);
769776
padding: 15px;
770777
font-family: "Courier New", monospace;
771778
z-index: 2000;
772-
box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
779+
box-shadow: 0 0 20px rgba(var(--success-rgb), 0.2);
773780
animation: matrixSlideIn 0.3s ease-out;
774781
}
775782

@@ -786,7 +793,7 @@ a:hover {
786793

787794
#matrix-console-output {
788795
/* Subtle green glow on text */
789-
text-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
796+
text-shadow: 0 0 5px rgba(var(--success-rgb), 0.3);
790797
scroll-behavior: smooth;
791798
display: flex;
792799
flex-direction: column;
@@ -797,12 +804,12 @@ a:hover {
797804
width: 3px;
798805
}
799806
#matrix-console-output::-webkit-scrollbar-thumb {
800-
background: rgba(16, 185, 129, 0.3);
807+
background: rgba(var(--success-rgb), 0.3);
801808
}
802809

803810
/* The Matrix Line Animation */
804811
.matrix-line {
805-
border-left: 2px solid #10b981;
812+
border-left: 2px solid var(--success);
806813
padding-left: 8px;
807814
margin-bottom: 4px;
808815
animation: matrixLineFade 0.3s ease-out;
@@ -830,7 +837,7 @@ a:hover {
830837

831838
#matrix-console-output {
832839
scrollbar-width: thin;
833-
scrollbar-color: #10b981 transparent;
840+
scrollbar-color: var(--success) transparent;
834841
}
835842

836843
/* Add a scanline effect for that retro terminal feel */

0 commit comments

Comments
 (0)