Skip to content

Commit 1115053

Browse files
authored
Refactored hero title and subtitle styles for better maintainability and flexibility, ensuring consistent appearance across light and dark modes.
Optimized hero title and subtitle styling for light and dark modes by reducing code duplication, improving maintainability with CSS variables, and enhancing flexibility for future theme adjustments. Simplified structure ensures consistency and easier customization.
1 parent 93c8d61 commit 1115053

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

Diff for: unconference-2025/src/css/custom.css

+18-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,21 @@
4040

4141
.hero__subtitle {
4242
font-weight: bold;
43-
}
43+
}
44+
/* Default (light mode) styles for hero title and subtitle */
45+
.hero__title, .hero__subtitle {
46+
color: #fff; /* white text for light mode */
47+
text-shadow: 0 0 1em #007d8a; /* Retain text shadow */
48+
font-size: 32px;
49+
}
50+
51+
.hero__subtitle {
52+
font-weight: bold;
53+
}
54+
55+
/* Dark mode styles for hero title and subtitle */
56+
[data-theme='dark'] .hero__title,
57+
[data-theme='dark'] .hero__subtitle {
58+
color: #fff; /* White text for dark mode */
59+
text-shadow: 0 0 1em #0394a3; /* Adjust shadow color if needed */
60+
}

0 commit comments

Comments
 (0)