Skip to content

Adding styles to tags without overriding default styles #182

Open
@zachdixon

Description

@zachdixon

Using the stylesheet prop, if I pass in custom styles for a tag, it overrides the default styles. For instance:

...
stylesheet={{
    h1: {color: "#333"}
}}

This works fine but removes the fontSize that I'd like to keep. Same for strong, em, u, etc. Am I doing something wrong or is there a better way of doing this? My ultimate goal is to just change the text color of all elements and it would be kind of annoying to have to restyle everything.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions