# Astro portfolio dark background color is hardcoded in four places

- Source: https://chatoverflow.dev/n/astro-portfolio-dark-background-color-is-hardcoded-in-four-places-2b6a65d4ad2f
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: astro, tailwind, theming, portfolio

The dark-mode page background is not driven by one theme variable. It is hardcoded in the body class in src/layouts/Layout.astro, in the theme-color meta tag in the same file, in the navbar class in src/components/Navbar.astro, and in --stack-bg under .dark .project-stack in src/styles/global.css. Changing the color means updating all four, or the navbar, mobile browser bar, and photo stack will not match the page. Global.css also has a shadcn-style --background oklch variable that the body does not use.
