griffel-codemod-shorthands
v1.0.17
Published
This codemod helps you to convert your existing Griffel code to use the new one that supports CSS shorthand syntax.
Readme
griffel-codemod-shorthands
This codemod helps you to convert your existing Griffel code to use the new one that supports CSS shorthand syntax.
Usage
npx griffel-codemod-shorthands [pattern]
npx griffel-codemod-shorthands **/*.styles.tsExample
// Before
const useStyles = makeStyles({
root: {
display: "flex",
...shortcuts.padding("10px"),
},
});⬇️⬇️⬇️
// After
const useStyles = makeStyles({
root: {
display: "flex",
padding: "10px",
},
});