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
🖥 [Try it out for yourself in CodeSandbox.](https://codesandbox.io/s/github/seek-oss/vanilla-extract/tree/master/examples/webpack-react?file=/src/atoms.css.ts)
70
+
🖥 [Try it out for yourself in CodeSandbox.](https://codesandbox.io/s/github/seek-oss/vanilla-extract/tree/master/examples/webpack-react?file=/src/sprinkles.css.ts)
71
71
72
72
---
73
73
@@ -81,12 +81,12 @@ Install Sprinkles.
81
81
$ npm install @vanilla-extract/sprinkles
82
82
```
83
83
84
-
Create an `atoms.css.ts` file, then configure and export your `atoms` function.
84
+
Create a `sprinkles.css.ts` file, then configure and export your `atoms` function.
85
85
86
86
> 💡 This is just an example! Feel free to customise properties, values and conditions to match your requirements.
Creates a function for normalizing conditional values into a consistent object stucture. Any primitive values or responsive arrays will be converted to conditional objects.
554
554
555
-
This function should be created and exported from your `atoms.css.ts` file using the conditions from your atomic styles.
555
+
This function should be created and exported from your `sprinkles.css.ts` file using the conditions from your atomic styles.
556
556
557
557
> 💡 You can name the generated function whatever you like, typically based on the name of your conditions.
@@ -592,7 +592,7 @@ Creates a custom conditional value type.
592
592
593
593
> 💡 This is useful for typing high-level prop values that are [mapped to low-level atoms,](#createmapvaluefn) e.g. supporting left/right prop values that map to flex-start/end.
594
594
595
-
This type should be created and exported from your `atoms.css.ts` file using the conditions from your atomic styles.
595
+
This type should be created and exported from your `sprinkles.css.ts` file using the conditions from your atomic styles.
596
596
597
597
You can name the generated type whatever you like, typically based on the name of your conditions.
0 commit comments