Skip to main content

Light & Dark Theming

Fabrika AI now supports a professional monochrome light mode alongside the original dark mode.

Flutter app​

  • AppColors is a runtime palette with both dark and light values.
  • AppState.lightMode is persisted in SharedPreferences (fabrika_light_mode).
  • The app root applies the palette before building MaterialApp; system status/navigation bars switch icon brightness.
  • Settings exposes a light/dark toggle.
  • White monochrome logos, wireframes, and technical images are inverted only when the adaptive background requires it (MonoAssetImage); camera HUD overlays remain dark for readability.
  • const widget invocations that referenced runtime colors were removed; static data constructors remain const.

Tests: flutter test --concurrency=1 and flutter analyze --no-pub.

Landing site​

landing/index.html provides a theme toggle persisted as fabrika_theme. Because the landing artwork is monochrome, light mode uses a luminance inversion plus hue rotation so screenshots, wireframes, logos, and the dark grid all become legible on a light canvas. Legal pages and registration use assets/theme.js; the support page has explicit light tokens. The toggle is available on desktop and mobile.

Docusaurus​

docs-site/docusaurus.config.js enables the color-mode switch and uses GitHub/Dracula Prism themes. src/css/custom.css includes light overrides for navbar, sidebar, cards, code blocks, tables, and links. Rebuild with:

cd docs-site
npm run build

Copy docs-site/build to landing/docs-site/ after a documentation change.