This site is the Company style guide — a living reference for colors, typography, spacing, components, and usage guidelines used across Company products.
The Company Style Guide is built as plain HTML and CSS, not as screenshots or design files. Every swatch, button, and layout example you see here is rendered from the same styles that define the system. That makes this site the visual source of truth for designers and developers.
Every component page in this guide follows a shared structure so designers and developers can find answers quickly:
Pages still being upgraded may not include every section yet. Button, Forms, Dialog, Dropdown, and Navbar are the current reference examples.
To preview the site locally on your computer, you need Node.js installed. Node.js includes npm (Node Package Manager), which downloads the small set of tools this project uses to run a local dev server.
You do not need to publish or deploy anything just to browse the guide on your machine.
npm is the standard package manager for JavaScript projects. Think of it as a tool that:
node_modules folder.package.json — for example, starting the local preview server.
When someone shares a project like this one, they usually commit the source files but not
node_modules. Running npm install once recreates that folder on your machine.
node -v
npm -v
Each command should print a version number (for example v22.x.x and 10.x.x). If you
see “command not found”, close and reopen the terminal after installing Node.
From the project folder (where package.json lives):
npm install
This reads package.json and installs Vite, the tool used to serve and build the site.
npm run dev
The terminal prints a local URL, usually http://localhost:5173. Open that address in your
browser. The page reloads automatically when you edit HTML or CSS files.
In the same terminal window, press Ctrl + C.
| Command | What it does |
|---|---|
npm run dev |
Start local preview with hot reload (use this day to day). |
npm run build |
Generate a static dist/ folder for production hosting. |
npm run preview |
Serve the built dist/ output locally to test the production build. |
| Folder / file | Purpose |
|---|---|
foundations/, components/, guidelines/ |
Style guide pages |
styles/ |
Shared CSS for the site shell and components |
tokens/ |
Design values (colors, spacing, etc.) used by the CSS |
scripts/layout.js |
Sidebar navigation and theme toggle |
index.html |
Home page with links to all sections |
Use the sidebar or go to the home page to browse foundations and components. Toggle light and dark theme from the header on any page.