Skip to content

Commit

Permalink
Refactored hero title and subtitle styles for better maintainability …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
bharat-vicky authored Dec 25, 2024
1 parent 93c8d61 commit 1115053
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion unconference-2025/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,21 @@

.hero__subtitle {
font-weight: bold;
}
}
/* Default (light mode) styles for hero title and subtitle */
.hero__title, .hero__subtitle {
color: #fff; /* white text for light mode */
text-shadow: 0 0 1em #007d8a; /* Retain text shadow */
font-size: 32px;
}

.hero__subtitle {
font-weight: bold;
}

/* Dark mode styles for hero title and subtitle */
[data-theme='dark'] .hero__title,
[data-theme='dark'] .hero__subtitle {
color: #fff; /* White text for dark mode */
text-shadow: 0 0 1em #0394a3; /* Adjust shadow color if needed */
}

0 comments on commit 1115053

Please sign in to comment.