You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the [CSS features that `vite` supports](https://vite.dev/guide/features.html#css), you can also use [Vanilla Extract](https://vanilla-extract.style/) for styling.
94
+
95
+
First install the `@vanilla-extract/css` package:
96
+
97
+
```sh
98
+
npm install @vanilla-extract/css
99
+
```
100
+
101
+
Then, add a `style.css.ts` file for your workshop:
102
+
103
+
```ts
104
+
// src/__workshop__/style.css.ts
105
+
106
+
import {style} from'@vanilla-extract/css'
107
+
108
+
exportconst container =style({
109
+
display: 'grid',
110
+
alignItems: 'center',
111
+
justifyContent: 'center',
112
+
height: '100%',
113
+
width: '100%',
114
+
})
115
+
```
116
+
117
+
And finally, import the `container` className and use it in your workshop:
0 commit comments