GitHub
Home
Searchβ¦
π
Why TSS
π§
Setup
π
API References
π½
Cache
π«
Nested selectors (ex $ syntax)
β‘
SSR
π¦±
Your own classes prop
π
MUI Theme styleOverrides
π§Ή
Detecting unused classes
π¦
Publish a module that uses TSS
π©
single-spa
π²
React Native
Powered By
GitBook
π
Why TSS
makeStyles is dead. Long live makeStyles.
β
β
β
β
β
β
β
β
'tss-react' is intended to advantageously replace the now deprecated
@material-ui v4 makeStyles
and
react-jss
by providing much better TypeScript support.
β Seamless integration with
MUI
and
material-ui v4
.
β
withStyles
API support.
β
JavaScript support
.
β Server side rendering support (e.g: Next.js, Gatsby).
β Offers
a type-safe equivalent of the JSS
$
syntax
.
β Custom
@emotion
cache support.
β Build on top of
@emotion/react
, it has very little impact on the bundle size alongside MUI (~5kB minziped).
β
Maintained for the foreseeable future
, issues are dealt with within good delays.
β As fast as
emotion
(
see the difference
with MUI's
makeStyles
)
β Library authors:
tss-react
wonβt be yet another entry in your
peerDependencies
.
Next
Setup
Last modified
3mo ago
Copy link
Edit on GitHub