Skip to content

Adding unsupported CSS props to theme #1458

Answered by hasparus
markodvornik asked this question in Q&A
Discussion options

You must be logged in to vote

The following seems to work for me, can you guys please post a repro?

Ha! An award for careful reading. I trusted the title and didn't read the error :P

@macakraca your problem is not with Theme UI. Your problem is with TypeScript. TypeScript not having a full type inference.

I wrote about it in the docs. There's a solution for you there:
https://dev.theme-ui.com/guides/typescript/#union-types-are-not-inferred-without-explicit-annotation

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by markodvornik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants