Skip to content

When using sass, how to import sass variables? #1619

Closed
@grundmanise

Description

@grundmanise

Hi, first of all thanks for such a great react development setup & build automation tool.

When using create-react-app with node-sass. How to expose sass variables to my project? Can't get my head around..

My folder structure for the reference:

└───src
    ├───app
    │    └───variables.scss // here are all my vars
    ├───components
    │   └───Header // there is Header.scss in this folder, where I need to use my variables
    ├───helpers
    ├───public
    └───utils

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions