Skip to content

Documentation - Sass vs CSS #504

@joelanman

Description

@joelanman

Just used the Get Started guide and had a couple of points of feedback:

  1. The get started guide says Sass is a requirement

https://frontend.design-system.service.gov.uk/installing-with-npm/#requirements

However, the main way it tells you to use the CSS is to copy the rendered css file into your app. I don't think this requires Sass?

  1. When I tried to get Sass working, it failed because of the path. The instructions say to do this
@import "node_modules/govuk-frontend/dist/govuk/index";

However, I think this would only work if the Sass file is in the root of the project, which seems unlikely? I only got it working after adding --load-path=node_modules to my sass command and dropping node_modules in the import line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions