destyle-ts
Version:
Style reset for typescript. Converted desyle.css to style object.
35 lines (24 loc) • 581 B
Markdown
Style reset for typescript.
Converted [desyle.css](https://github.com/nicolas-cusan/destyle.css) to style object.
`npm i destyle-ts`
Detach default styles example with [Stitches](https://stitches.dev/).
```ts
import { destyle } from 'destyle-ts'
// Stitches
import { globalCss } from '@stitches/react'
const initStyle = globalCss(destyle)
// Root Component
const App = () => {
return (
<>
{initStyle()}
<YOUR_COMPONENT />
</>
)
}
```
[](https://github.com/nicolas-cusan/destyle.css)