979 B
Styles
Page and component styles are SCSS imported by the JavaScript entries in frontend/src/entries/. Vite compiles them during development and production builds.
_settings.scss holds build-time defaults. theme.scss exposes shared colors as CSS custom properties on :root, and fonts.scss exposes the UI font stack as --font-ui. Prefer var(...) in component rules for values that should remain visible and adjustable in browser developer tools. Use Sass variables for values shared at build time; keep nesting shallow so selectors and source order remain easy to inspect.
The Django admin and hello pages load CSS directly from Django's static directory. Their SCSS sources live in static/; npm run styles:static compiles them to the existing static paths. npm run dev watches those sources, and npm run build compiles them before Vite and collectstatic.
There is no downloaded web font. If one is added later, put its loading rule in fonts.scss.