Skip to content
iambaconPublic

About

A pattern library for iambacon websites.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Styles

Welcome to Styles, the pattern library for iambacon websites.

Table of contents

Getting Started

To get Styles running locally, follow these steps.

Prerequisites

You'll need Git and Node.js installed to get this project running.

This project is tested with Node.js 24 and npm 11. If you use nvm, run:

nvm use

Installation

Clone the repo

git clone https://github.com/iambacon/Styles.git

Install npm dependencies

npm install

Run Styles

This will build, serve and watch for changes. Browse to your local instance at http://localhost:8080.

npm start

Usage

To use Styles in your project you will need to generate the CSS file locally.

npm run build

A minified CSS file will be output to dist/css/style.css.

To build the documentation site and run the same verification as CI:

npm run check

Visual regression testing

Styles uses BackstopJS to compare the rendered documentation pages against approved reference screenshots.

Build the docs and serve the static output before running visual tests:

npm run docs:build
npm run docs:serve:static

Run the canonical Docker-backed suite:

npm run backstop:test

If Docker is not available, run the local Puppeteer fallback:

npm run backstop:test:local

When a visual change is intentional, inspect the generated report and approve the new screenshots:

npm run backstop:approve

When rebuilding the full baseline after config, dependency, or browser upgrades:

npm run backstop:reference

After dependency or browser upgrades, expect the old screenshots to need a reviewed baseline refresh.

License

Distributed under the MIT License.

Acknowledgements

If you would like to read more about why I created a pattern library and the technology choices I made, please read this post I've finally created UI documentation for my blog with 11ty!

About

A pattern library for iambacon websites.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages