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
I'm trying to type:
import { css } from '@pigment-css/react'; const mystye = css({ color: '#fff', // position: 'initial' works position: 'initial !important', backgroundColor: '#000', }); export default function Home() { return <main className={mystye}>mystye</main>; }
https://stackblitz.com/edit/github-vfcqdf?file=src%2FApp.tsx
but I struggle to. I have tried React.CSSProperties but it doesn't work, which makes sense, this type is meant for the style prop.
React.CSSProperties
style
I see 3 distinct things:
Should types around here be exported?
pigment-css/packages/pigment-css-react/src/base.d.ts
Line 29 in 87ef64b
Should !important work outside of the box? Like it does with @mui/system. Proof: https://codesandbox.io/p/sandbox/patient-cloud-xykphn?file=%2Fsrc%2FDemo.tsx%3A5%2C3.
!important
Shouldn't the error be flagged on the property that is wrong and not the first property?
No response
npx @mui/envinfo
Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here.
Search keywords: -
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce
I'm trying to type:
https://stackblitz.com/edit/github-vfcqdf?file=src%2FApp.tsx
but I struggle to. I have tried
React.CSSProperties
but it doesn't work, which makes sense, this type is meant for thestyle
prop.Current behavior
I see 3 distinct things:
Should types around here be exported?
pigment-css/packages/pigment-css-react/src/base.d.ts
Line 29 in 87ef64b
Should
!important
work outside of the box? Like it does with @mui/system. Proof: https://codesandbox.io/p/sandbox/patient-cloud-xykphn?file=%2Fsrc%2FDemo.tsx%3A5%2C3.Shouldn't the error be flagged on the property that is wrong and not the first property?
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: -
The text was updated successfully, but these errors were encountered: