Skip to content

TheScienceMuseum/web-design-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 26, 2025
f32eb6f · Jan 26, 2025
May 24, 2024
Jan 26, 2025
Jul 2, 2024
Dec 18, 2019
May 29, 2024
Dec 15, 2023
Jun 6, 2024
Jun 7, 2019
Jun 6, 2024
Jun 6, 2024
Jun 5, 2019
Dec 18, 2019
Jan 26, 2025
Jan 26, 2025
Jun 6, 2024

Repository files navigation

#Science Museum Group: Web Design System

N.B This is W.I.P - not ready for public use yet!

Visit https://thesciencemuseum.github.io/web-design-system/ to browse the contents of this repository,and for further usage instructions.

npm version

Contributing to the system

If you want to contribute to this, you will need to:

  • Clone this repository
  • npm install to get dependencies
  • npm start to start a development server and watch for your changes on http://localhost:6009
  • npm run build to make a production-ready copy (you'll need to serve that yourself)
  • npm run deploy to update the gh-pages branch the public documentation is on.

Contribution guideline

TBC - https://github.com/TheScienceMuseum/collectionsonline/wiki/Collaborator-contributions is a good starting place?

Structure

├── dist            // built version of storybook, and select files for npm
├── public          // static directory for serving storybook - all generated
├── src             
│   ├── assets      // gets included in pkg
│   ├── js          // gets included in pkg
│   ├── scss        // gets included in pkg
│   └── stories     // storybook stories   
├── storybook       // storybook config
└── package.json

Principles

Everything should be modular, all modules are optional.

Modules should be consumable by scss for customisation, or a dist css

Minimal base styles

Should we namespace everything?

All components should output nothing by default, and have a mixin named the same as the component, which should be called to output the css, overriding default vars if necessary.

Or, ignore all that, and bundle the lot as one, to KISS, and consider modularisation once the combined size gets beyond say 100Kb

References: