Skip to content

Is there any way to load styles conditionally? #191

Description

@matheenpasha

We have isomorphic react rendering for our application.
We are trying to implement dark/light themes using user preferences. Is there any way we can load light.scss or dark.scss based on a flag/variable?

Any help is appreciated. Thanks.

"css-loader": "^2.1.1"
"isomorphic-style-loader": "^5.1.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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