Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wmcadigital/wmn-design-system
A library of typography, visual styles and user interface components which are documented for West Midlands Network.
https://github.com/wmcadigital/wmn-design-system
design-system tfwm
Last synced: 2 months ago
JSON representation
A library of typography, visual styles and user interface components which are documented for West Midlands Network.
- Host: GitHub
- URL: https://github.com/wmcadigital/wmn-design-system
- Owner: wmcadigital
- Created: 2019-11-08T10:10:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T08:37:33.000Z (10 months ago)
- Last Synced: 2024-10-28T23:53:05.016Z (3 months ago)
- Topics: design-system, tfwm
- Language: Nunjucks
- Homepage: https://designsystem.tfwm.org.uk
- Size: 41.9 MB
- Stars: 5
- Watchers: 6
- Forks: 3
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 1. TfWM Design System
[![Netlify Status](https://img.shields.io/netlify/dff99875-8f09-42b9-bb99-3a43f8c0e697?style=flat-square)](https://app.netlify.com/sites/wmca/deploys)
[![David](https://img.shields.io/david/dev/wmcadigital/wmn-design-system?style=flat-square)](https://github.com/wmcadigital/wmn-design-system/blob/master/package.json)
[![Last commit](https://img.shields.io/github/last-commit/wmcadigital/wmn-design-system?style=flat-square)](https://github.com/wmcadigital/wmn-design-system/commits/master)
[![Open Github issues](https://img.shields.io/github/issues-raw/wmcadigital/wmn-design-system?style=flat-square)](https://github.com/wmcadigital/wmn-design-system/issues)## 1.1. Table of contents
- [1. TfWM Design System](#1-wmn-design-system)
- [1.1. Table of contents](#11-table-of-contents)
- [1.2. Overview](#12-overview)
- [1.3. Quick start](#13-quick-start)
- [1.4. Tasks](#14-tasks)
- [1.4.1. Starting web server](#141-starting-web-server)
- [1.4.2. Linting](#142-linting)
- [1.4.3. Compilation](#143-compilation)
- [1.4.4. Clean up](#144-clean-up)
- [1.5. Troubleshooting](#15-troubleshooting)
- [1.6. Contributing to the code base](#16-contributing-to-the-code-base)
- [1.7. Got feedback?](#17-got-feedback)## 1.2. Overview
Welcome to the [Transport for West Midlands Design System](https://wmnetwork.netlify.com/).
The TfWM design system is ran at the designated url on startup (usually [http://localhost:3000](http://localhost:3000)) and is the primary means of viewing your work - it will live update as you make changes.
- Tailored for building Transport for West Midlands apps and websites: Using the TfWM Design System markup and CSS framework results in UIs that reflect the Transport for West Midlands look and feel.
- Continuously updated: As long as you're using the latest version of the TfWM Design System, your pages are always up to date with Transport for West Midlands UI changes.## 1.3. Quick start
You'll need [Git](https://help.github.com/articles/set-up-git/) and [Node.js](https://nodejs.org/en/) installed to get this project running.
1. Clone the project with `git clone https://github.com/wmcadigital/wmn-design-system.git`
2. Run `npm install` in the root folder.
3. Run `npm start` to launch the dev environment with hot reloading.
4. Visit [http://localhost:3000](http://localhost:3000)Having trouble getting these steps to work on your machine? Follow the [troubleshooting guide](doc/troubleshooting.md).
## 1.4. Tasks
For more in-depth information on what each task does, see [tasks guide](doc/contributing/tasks.md).
### 1.4.1. Starting web server
Start the TfWM Design System web server.
`npm start`
### 1.4.2. Linting
Lint the code base for syntax and stylistic errors.
See [Linting](./doc/contributing/tasks/linting.md) for more details.
```bash
# Lint indentation, Sass, JavaScript files, html
npm run lint:all# Lint languages independently
npm run lint:styles
npm run lint:templates
npm run lint:scripts
```### 1.4.3. Compilation
Build the design system for various environments
See [Building](./doc/contributing/tasks/building.md) for more details.
```bash
# Build Sass, JavaScript, HTML files
npm run build:all# Build languages/assets independently
npm run build:styles
npm run build:templates
npm run build:scripts
npm run build:images
npm run build:sprites
npm run build:config
```### 1.4.4. Clean up
Delete all built languages/assets including temporary build and local files.
`npm run clean`
## 1.5. Troubleshooting
See the [troubleshooting guide](doc/troubleshooting.md).
## 1.6. Contributing to the code base
See the [contributing guide](doc/contributing.md).
## 1.7. Got feedback?
Please open a new [Github Issue](https://github.com/wmcadigital/wmn-design-system/issues).