Type Theme
See original GitHub issueAs @sidoshi mentioned below, it would be nice to add type checking for props against its respective theme scale, for example?
const theme = {
colors: {
primary: 'royalblue'
}
};
// This should pass
<Box bg="primary"></Box>
// This should fail
<Box bg="blue"></Box>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@sidoshi Thanks for the kind offer, if you want to have a go and create a PR I’d love to take a look. Thanks!
@sidoshi Hey there 👋
Yeah, that’s exactly what this issue is about. Sorry about the lack of description, I added it just as a self reminder 😄 I’ll add a better one now.