This is a prototype of the DNA website
In your directory you have a package.json
file. This file points to dependencies to install when running npm install
. When you run npm install
you install all of the Design System components and additional packages related to the local development environment.
After npm install
Pancake is ran, this checks that your dependencies work together and creates the docs/js/script.min.js
and src/sass/_uikit.scss
.
The src/sass/main.scss
imports the generated _uikit.scss
. You shouldn't touch the _uikit.scss
file as it is generated, but feel free to change the main.scss
file.
When the user runs npm run build
or npm run watch
we use node-sass to convert the src/sass/main.scss
file into the docs/css/main.css
file. Autoprefixer is ran after compilation to add vendor prefixes to the main.css
file.
Refer to the
package.json
scripts for how this has been set up
This set up allows you to modify the variables in the Design System file from the main.scss
file. You can add your own colour scheme, or change the typography and spacing. Tweaks to the components or additional ones should be added below the import of _uikit.scss
. Changes to these files will be injected into your browser so you don’t even need to refresh thanks to Browser Sync.
The docs
folder in the contains all the files required to publish a website. The index.html
file references the main.css
file and script.min.js
assets to generate the page. We name the folder docs
because github pages uses the docs folder to host static websites.
To contribute to the Australian Government Design System Starter Pack:
- Fork the project & clone it locally.
- Create a new branch for the work that is going to be completed.
- Complete the work and test it to the best of your abilities following the guidelines here.
- Once the work is completed, write a good commit message.
- Push your work to GitHub and create a new pull request.
- Respond to any code review feedback.
Copyright (c) Commonwealth of Australia. With the exception of the Commonwealth Coat of Arms and where otherwise noted, this work is licensed under the MIT license.