feat: Update color palette logic to use CSS custom properties for theme consistency

This commit is contained in:
Matt Batchelder
2026-04-05 21:41:08 -04:00
parent 5c1f7f43ce
commit cebad6e143
2 changed files with 16 additions and 6 deletions

View File

@@ -179,7 +179,11 @@ document.addEventListener('DOMContentLoaded', () => {
* 4. Visibility API + IntersectionObserver pause rAF when hidden/off-screen.
*/
/* -- colour palette -------------------------------------------------------- */
/* -- colour palette --------------------------------------------------------
* These values are intentionally hardcoded dark colours. The datacenter
* hero is designed to always depict a physical dark server room and does
* NOT adapt to the site's light / dark theme toggle.
* ---------------------------------------------------------------------- */
const ROOM_TOP = '#020509';
const ROOM_BOT = '#030b08';
const RACK_SHELL = '#111b2e'; /* outer frame -- dark navy */