Skip to content

Idea: add theme(theme) if using theme provider #53

@radenkovic

Description

@radenkovic

Hello there!

This package definitely helps a lot (I made those helpers by hand before figuring out there is a package).

Here's an idea

  background: ${(p) => p.theme.white || p.theme.red};

we can make shorthand because 90% of the time (at least for me) you just want to grab a variable from theme, something like jsonPath or lodash/get:

  background: ${theme('white', 'red')}

If you like the idea I can definitely make a PR.

Thanks in advance!

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