This is a simple example of how to include SLDS through npm, in order to override design tokens and compile SLDS from the source Sass files.
This example uses Parcel as a lightweight package manager / bundler.
The example HTML is in index.html
, and the Sass setup where you override the
design tokens and include the SLDS Source Sass for compilation exists in
my-slds.scss
.
- Clone down repository
- In a terminal, run
npm install
to install the project's node dependencies.
npm start
will start the project and give you a development URL.