This repository contains custom styling to be used across all our applications i.e. accelerate and the front-end applications
Minimum version: 8
-
Confirm you have node installed by running
node -v
. -
If you didn't get a version number above, install node and confirm with a
node -v
once the install is complete.
Minimum version: 3.9.1
-
Confirm you have gulp globally installed by running
gulp -v
. A positive result is seeing aCLI
andLocal
version printed -
If you don't have gulp installed, run
npm install --global gulp
. Confirm it has installed successfully with the step before this.
-
Ensure you have cloned this repository following the directory structure specified.
-
From inside the cloned repo, run
npm install
-
The
npm install
, as of this writing, will warn of vulnerable packages installedadded 891 packages from 454 contributors and audited 9790 packages in 67.378s found 5 vulnerabilities (1 low, 4 high)
- This is a known and expected issue that we don't have control over.
-
You should be able to run
gulp build
andgulp watch
-
gulp build
- This takes every theme based on the
theme.config
file and creates (or populates) adist
directory withfont
,image
css
andjs
assets for every component in semantic. - It also builds general
css
andjs
assets (both minified and pretty) containing styling and behaviour for every component - This is great for generating production asseets.
- This takes every theme based on the
-
gulp watch
- This keeps track of your
src
folder, any changes made in it automatically triggers a build on the components and themes affected. - This is perfect for development.
- This keeps track of your
-
src/themes/masschallenge
- This contains our custom theme
-
src/theme.config
- This is where we define what our custom styles will apply to i.e. buttons, modals, checkboxes
-
dist/
- Output js and css to be used on web pages are built into this directory