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
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.
-
Download DDEV
curl -L https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh | bashFor more info on installing DDEV
-
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/
-
Install Drupal
ddev exec drush site-install --account-name=admin --account-pass=my-password
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.
- Header
- Header Center
- Banner
- Breadcrumb
- Content
- Sidenav Left
- Sidenav Right
- Content Bottom
- Featured Bottom
- Footer Upper
- Footer Text
- Footer Lower
To update the NSW Design System, run:
cd fe-src
npm install
npm run buildExtending 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 */Please open an issue for support.