tss-react
tss-react copied to clipboard
✨ Dynamic CSS-in-TS solution, based on Emotion
_document.js: ``` import Document from 'next/document'; import { augmentDocumentWithEmotionCache } from './_app'; //You can also pass your custom document if you have one. augmentDocumentWithEmotionCache(Document); export default Document; ``` Amp pages...
I'm using tss-react with MUI in Next.js 13.4.7 with the pages router and I have configured it this way: ```tsx // _app.tsx import { CssBaseline } from "@mui/material"; import {...
Hello, I get a strange behaviour only when i build my project (works in dev mode). Style: ``` ` import { makeStyles } from 'tss-react/mui' import { landingBackgroundImg } from...
I want a solution that works with `app` dir (client components only but without FOUC), but I want to use the `css` and `styled` apis. Is it possible with this...
Hi, Thank you for providing out of the box solution to make MUI Next.JS setup easier, especially with app router! The issue we encounter is with prepend option set to...
We tried to move a massive project to TSS but hit mostly one issue: generated class names may contain parenthesis `-someComponent(something)-`. For example, we are exporting this kind of thing:...
Mixing multiple classes in an element with the `cx` function oftentimes seems to lead to classes being merged into one big class with all the styled mixed together. An example...
Hello there! I'm using your library in my project. Unfortunately, I couldn't find any examples of writing unit tests for classes generated by the useStyles hook (which returns makeStyles function)....
Hello, When running ESlint, nested selectors are flagged as problematic. Is there any way to get around that? 