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
As the sprinkles function returns a standard class list, you can combine it with a custom style using [style composition](/documentation/styling-api/#style).
346
+
347
+
```ts
348
+
// button.css.ts
349
+
import { style } from'@vanilla-extract/css';
350
+
import { sprinkles } from'./sprinkles.css';
351
+
352
+
exportconst button =style([
353
+
sprinkles({
354
+
paddingX: 'medium',
355
+
paddingY: 'small'
356
+
}),
357
+
{
358
+
transition: 'transform 0.2s ease-in-out',
359
+
':hover': {
360
+
transform: 'scale(1.1)'
361
+
}
362
+
}
363
+
]);
364
+
```
365
+
345
366
The sprinkles function also exposes a static `properties` key that lets you check whether a given property can be handled by the function.
0 commit comments