Skip to content

Commit 7679fd0

Browse files
Rename atoms.css.ts to sprinkles.css.ts (#137)
1 parent 43147f5 commit 7679fd0

File tree

22 files changed

+32
-32
lines changed

22 files changed

+32
-32
lines changed

examples/webpack-react/src/App.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { style, composeStyles } from '@vanilla-extract/css';
2-
import { atoms } from './atoms.css';
2+
import { atoms } from './sprinkles.css';
33

44
export const card = composeStyles(
55
atoms({

examples/webpack-react/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { atoms } from './atoms.css';
1+
import { atoms } from './sprinkles.css';
22
import * as styles from './App.css';
33

44
export const App = () => (

packages/sprinkles/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const className = atoms({
3232
```ts
3333
// app.ts
3434

35-
import { atoms } from './atoms.css.ts';
35+
import { atoms } from './sprinkles.css.ts';
3636

3737
const flexDirection = Math.random() > 0.5 ? 'column' : 'row';
3838

@@ -67,7 +67,7 @@ document.write(`
6767

6868
---
6969

70-
🖥   [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)
7171

7272
---
7373

@@ -81,12 +81,12 @@ Install Sprinkles.
8181
$ npm install @vanilla-extract/sprinkles
8282
```
8383

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.
8585

8686
> 💡 This is just an example! Feel free to customise properties, values and conditions to match your requirements.
8787
8888
```ts
89-
// atoms.css.ts
89+
// sprinkles.css.ts
9090
import { createAtomicStyles, createAtomsFn } from '@vanilla-extract/sprinkles';
9191

9292
const space = {
@@ -157,7 +157,7 @@ You can now use your `atoms` function in `.css.ts` files for zero-runtime usage.
157157

158158
```ts
159159
// styles.css.ts
160-
import { atoms } from './atoms.css.ts';
160+
import { atoms } from './sprinkles.css.ts';
161161

162162
export const container = atoms({
163163
display: 'flex',
@@ -180,7 +180,7 @@ Combine with any custom styles using vanilla-extract’s [`composeStyles`](https
180180
```ts
181181
// styles.css.ts
182182
import { style, composeStyles } from '@vanilla-extract/css';
183-
import { atoms } from './atoms.css.ts';
183+
import { atoms } from './sprinkles.css.ts';
184184

185185
export const container = composeStyles(
186186
atoms({
@@ -199,7 +199,7 @@ If you want, you can even use your `atoms` function at runtime! 🏃‍♂️
199199

200200
```tsx
201201
// app.ts
202-
import { atoms } from './atoms.css.ts';
202+
import { atoms } from './sprinkles.css.ts';
203203

204204
const flexDirection = Math.random() > 0.5 ? 'column' : 'row';
205205

@@ -500,7 +500,7 @@ Creates a function for mapping over conditional values.
500500

501501
> 💡 This is useful for converting high-level prop values to low-level atoms, e.g. converting left/right to flex-start/end.
502502
503-
This function should be created and exported from your `atoms.css.ts` file using the conditions from your atomic styles.
503+
This function should be created and exported from your `sprinkles.css.ts` file using the conditions from your atomic styles.
504504

505505
You can name the generated function whatever you like, typically based on the name of your conditions.
506506

@@ -520,7 +520,7 @@ export const mapResponsiveValue = createMapValueFn(responsiveStyles);
520520
You can then import the generated function in your app code.
521521

522522
```ts
523-
import { mapResponsiveValue } from './atoms.css.ts';
523+
import { mapResponsiveValue } from './sprinkles.css.ts';
524524

525525
const alignToFlexAlign = {
526526
left: 'flex-start',
@@ -552,7 +552,7 @@ mapResponsiveValue([
552552

553553
Creates a function for normalizing conditional values into a consistent object stucture. Any primitive values or responsive arrays will be converted to conditional objects.
554554

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.
556556

557557
> 💡 You can name the generated function whatever you like, typically based on the name of your conditions.
558558
@@ -572,7 +572,7 @@ export const normalizeResponsiveValue = createNormalizeValueFn(responsiveStyles)
572572
You can then import the generated function in your app code.
573573

574574
```ts
575-
import { normalizeResponsiveValue } from './atoms.css.ts';
575+
import { normalizeResponsiveValue } from './sprinkles.css.ts';
576576

577577
normalizeResponsiveValue('block');
578578
// -> { mobile: 'block' }
@@ -592,7 +592,7 @@ Creates a custom conditional value type.
592592

593593
> 💡 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.
594594
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.
596596

597597
You can name the generated type whatever you like, typically based on the name of your conditions.
598598

@@ -607,7 +607,7 @@ export type ResponsiveValue<Value extends string | number> = ConditionalValue<ty
607607
You can then import the generated type in your app code.
608608

609609
```ts
610-
import { ResponsiveValue } from './atoms.css.ts';
610+
import { ResponsiveValue } from './sprinkles.css.ts';
611611

612612
type ResponsiveAlign = ResponsiveValue<'left' | 'center' | 'right'>;
613613

site/src/App.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { globalStyle } from '@vanilla-extract/css';
2-
import { darkMode } from './system/styles/atoms.css';
2+
import { darkMode } from './system/styles/sprinkles.css';
33
import { vars } from './themes.css';
44

55
globalStyle('html, body', {

site/src/Blockquote/Blockquote.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { globalStyle, style, createVar } from '@vanilla-extract/css';
2-
import { darkMode } from '../system/styles/atoms.css';
2+
import { darkMode } from '../system/styles/sprinkles.css';
33
import { vars } from '../themes.css';
44

55
const borderColorVar = createVar();

site/src/Code/Code.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { style, globalStyle } from '@vanilla-extract/css';
2-
import { darkMode } from '../system/styles/atoms.css';
2+
import { darkMode } from '../system/styles/sprinkles.css';
33
import { vars } from '../themes.css';
44

55
export const root = style({

site/src/Code/Code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Text from '../Typography/Text';
1212
import InlineCode from '../InlineCode/InlineCode';
1313
import * as styles from './Code.css';
1414
import { useRef, useEffect } from 'react';
15-
import { Atoms } from '../system/styles/atoms.css';
15+
import { Atoms } from '../system/styles/sprinkles.css';
1616
export interface CodeProps {
1717
language: string;
1818
errorTokens?: Array<string>;

site/src/ColorModeToggle/ColorModeToggle.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createVar, style } from '@vanilla-extract/css';
2-
import { darkMode } from '../system/styles/atoms.css';
2+
import { darkMode } from '../system/styles/sprinkles.css';
33

44
const toggleBrightness = createVar();
55
const toggleContent = createVar();

site/src/Fab/Fab.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { style, createVar, fallbackVar } from '@vanilla-extract/css';
2-
import { darkMode } from '../system/styles/atoms.css';
2+
import { darkMode } from '../system/styles/sprinkles.css';
33
import { vars } from '../themes.css';
44

55
export const focusColorVar = createVar();

0 commit comments

Comments
 (0)