Skip to content

Is there a way to create a style in one stylesheet that's overridden by styles in another stylesheet? #35

@fresheneesz

Description

@fresheneesz

I want to do something like this:

    var jssSheet1 = jss.sheet() // returns a jss instance with a new sheet created on the document
    var jssSheet2 = jss.sheet()

    jssSheet2.set('#A', {
        color: 'red'
    })
    jssSheet1 .set('#A', {
        color: 'green'
    })

But I want the results to be that #A remains red. Is there any way I can create a style later in time that is overridden by a style that was created earlier in time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions