Starter Overview
v1.0 — Modern Web Starter

A lean foundation for
the modern web.

Semantic HTML, CSS Cascade Layers, a three-tier design token system, dark mode without the complexity, and container queries. No framework. No build step required for development.

Quick start

No build step required to get started. Open the HTML files directly in a browser, or use any local server.

Terminal
# Clone the repo
git clone https://github.com/your-handle/web-starter.git
cd web-starter

# Open directly — no install needed
open index.html

# Or use a local server for better dev experience
npx serve .

For production, add PostCSS to inline the CSS @import chain:

Terminal
npm install -D vite postcss postcss-import postcss-nesting
npx vite build

File structure

Project structure
/
├── index.html                  # Home / component showcase
├── pages/
│   ├── landing.html            # Marketing landing page
│   ├── article.html            # Long-form prose + TOC
│   ├── sidebar.html            # Content listing + filter sidebar
│   └── full-width.html         # Dashboard / app shell
├── css/
│   ├── main.css                # Entry point — @layer order + @imports
│   ├── tokens.css              # All design tokens (T1 → T2 → T3)
│   ├── reset.css               # Browser normalisation
│   ├── base.css                # Element-level defaults
│   ├── components.css          # Reusable UI patterns
│   └── utilities.css           # Single-purpose helpers
└── js/
    └── main.js                 # Theme toggle, mobile nav, reveal

The entry point is css/main.css

This file declares the @layer order and imports all partials. It's the only stylesheet you reference in HTML. Everything else flows from it.

Browser support

All features used in this starter have broad modern browser support.

Chrome / Edge 99+
Firefox 97+
Safari 15.4+
FeatureChromeFirefoxSafariBaseline
CSS Cascade Layers999715.4March 2022
CSS Custom Properties49319.1March 2016
Container Queries10511016February 2023
color-mix()11111316.2May 2023
clamp()797513.1July 2020