We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polished
JSS-in_CSS
No typescript error while using lighten and cssVar together
React 17.0.1 Typescript: 4.1.2 Polished: 4.1.1 Styled-components: 5.1.5;
The text was updated successfully, but these errors were encountered:
@EnesAppsmen Similar to #550 this is a bug with our Flow > TS library. We will be moving to native TS in v5 and will address this then.
Sorry, something went wrong.
I was facing this error while using TS, but the styles were applying correctly. Solved the TS error using template literals:
border-color: ${lighten(0.2, `${cssVar('--bg-light'))}; // TS error border-color: ${lighten(0.2, `${cssVar('--bg-light')}`)}; // fixed
No branches or pull requests
polished
version:JSS-in_CSS
library and version:Mixin/Helper/Shorthand Usage
What You Are Seeing
What You Expected To See
No typescript error while using lighten and cssVar together
Reproduction
React 17.0.1
Typescript: 4.1.2
Polished: 4.1.1
Styled-components: 5.1.5;
The text was updated successfully, but these errors were encountered: