Skip to content

Commit

Permalink
Update README with full path to Sass stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Jun 24, 2022
1 parent 4bb6a37 commit fbdd7bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ Node.js v16 or later.
To import all the Sass rules from GOV.UK Prototype Components, add the following to your Sass file:

```scss
@import "govuk-prototype-components/x-govuk/all";
@import "node_modules/govuk-prototype-components/x-govuk/all";
```

#### Import an individual component’s CSS using a single import

You can also import a component and all its dependencies without importing `node_modules/govuk-prototype-components/x-govuk/all` first.

To import the masthead component for example, add the following to your Sass file:
You can also import a styles for an individual component. For example, to import the masthead component, add the following to your Sass file:

```scss
@import "node_modules/govuk-prototype-components/x-govuk/components/masthead/masthead";
Expand Down

0 comments on commit fbdd7bf

Please sign in to comment.