Skip to content

Dynamic styles overriding static styles? #2

@mntnoe

Description

@mntnoe

I've been looking for a CSS in JS solution and your project looks very promising.

In dynamicExtend in utils.ts, I noticed that dynamic styles take precedence over static styles:

return extend(
    ...staticStyles,
    ...((dynamicStyles as StyleGenerator<P>[]).map((style) => style(props))),
);

Is there a reason styles are not applied in the order they were given?

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