question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

As @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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
peduartecommented, Nov 18, 2019

@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!

1reaction
peduartecommented, Nov 18, 2019

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found