Skip to content

henrikaronsson/Bizlight-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bizlight Theme

A responsive Bootstrap 5 business theme built with Vite and Sass.

Resources

Prerequisites

  • Node.js 20 or newer (an .nvmrc is provided).

Everything else (Vite, Dart Sass, Bootstrap 5, Bootstrap Icons) is installed locally through npm.

Getting started

npm install     # install dependencies
npm run dev     # dev server with hot reload at http://localhost:5173
npm run build   # production build into dist/
npm run preview # serve the production build locally

Project structure

src/
  index.html        Home page (plus about/services/contact pages)
  js/main.js        Single ES-module entry: styles + Bootstrap behaviour
  js/components/    Web components for shared page chrome
                    (site-loader, site-header, newsletter-signup, site-footer)
  styles/
    main.scss       Style entry point (@use modules only)
    _tokens.scss    Project design tokens (Sass token + CSS custom properties)
    _layout.scss    Page bands: showcase, sections, title bar, footer
    _components.scss  Bootstrap component theming via documented CSS variables
  assets/img/       Images (processed and hashed by Vite)
public/             Static files copied verbatim to the site root (favicon, robots.txt)
vite.config.js      Multi-page Vite configuration
dist/               Production output (generated, not committed)

Architecture notes

  • Bootstrap integration — Bootstrap is treated as an external framework. Its only compile-time configuration is $primary (set from the project token in main.scss); all other theming goes through Bootstrap's documented CSS custom properties (--bs-navbar-*, --bs-card-*, --bs-btn-*) and the data-bs-theme attribute.
  • Design tokens — project colours live as CSS custom properties (--theme-*) defined in src/styles/_tokens.scss. The darker footer shade is derived at runtime with native color-mix().
  • JavaScript — no jQuery, no globals. src/js/main.js imports only Bootstrap's Collapse module (navbar toggler + accordion) as an ES module.
  • Sass — modern Dart Sass with @use; no @import in project code.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors