Skip to content

About

A drupal dev start kit with the NSW design system theme to fast track development.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

NSW Design System Drupal Kit

NSW Design System Drupal Kit is a dev starter kit for starting a Drupal 9 site using the NSW Design System theme.

View the demo here

Table of Contents

Local Development

Note: You may set up your local manually, with Acquia Cloud or even Docker. This step is optional if you prefer other ways to setup.

  1. Download DDEV

    curl -L https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh | bash
    

    For more info on installing DDEV

  2. Run starter kit

    ddev start

    Note: You need to have Docker installed to run DDEV. If you don't get the Docker community version here

    Local URL: https://nsw-ds-drupal-kit.ddev.site/

  3. Install Drupal

    ddev exec drush site-install --account-name=admin --account-pass=my-password
    

Installing theme

Once logged in to Drupal admin, go to Appearance, and install the NSW Design System. Set the theme as default.

The theme will automatically assign the standard blocks in the theme's regions.

Theme regions:

  • Header
  • Header Center
  • Banner
  • Breadcrumb
  • Content
  • Sidenav Left
  • Sidenav Right
  • Content Bottom
  • Featured Bottom
  • Footer Upper
  • Footer Text
  • Footer Lower

Front End Build

To update the NSW Design System, run:

cd fe-src
npm install
npm run build

Extending the NSW Design System In the fe-src folder, you can write or import your own js/scss files as you build new components and templates.

fe-src
│
└───js
│    main.js
└───scss
     main.scss

In fe-src/scss/main.scss:

@import 'node_modules/nsw-design-system/src/main.scss';

/* Add you imports here */

Support

Please open an issue for support.

About

A drupal dev start kit with the NSW design system theme to fast track development.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages