NSW Design System
NSW Design system is a collection of reusable UI components used on the NSW goverment websites.
See live examples of NSW Digital Design system components and guidance on how to use them on you website at NSW Design System.
Using the design system
How you use the NSW Design System depends on your team's capabilities. We recommend using
npm but also provide a downloadable starter kit which includes all the compiled assets.
Installing with NPM
npm is a package manager for Node-based projects. We recommend
npm packages because it makes it easy to update and install the design system from the command line.
- More information can be found via the nodejs Installation guides
package.jsonfile using the
npm initcommand in the terminal. You will be prompted to enter several pieces of information, like the name of your application, version, description etc.
nsw-design-systemto your project’s
npm install --save nsw-design-system
Download starter kit
Importing styles into your project
The NSW Design System styles need to be added to the main Sass file in your project.
Use the below snippet to import the NSW Design System (ideally placed before any other imports or sass):
<script src="node_modules/nsw-design-system/src/main.js"></script> <script>window.NSW.initSite()</script> </body> </html>
You might wish to copy the file into your project or reference it from
node_modules, this will depend on your build setup.