Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d98bcc
commit 58e4f8a
Showing
24 changed files
with
1,949 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@vanilla-extract/esbuild-plugin': minor | ||
'@vanilla-extract/webpack-plugin': minor | ||
--- | ||
|
||
Support exporting functions from `.css.ts` files via recipes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "@fixtures/sprinkles", | ||
"version": "0.0.0", | ||
"main": "src/index.ts", | ||
"sideEffects": true, | ||
"author": "SEEK", | ||
"private": true, | ||
"dependencies": { | ||
"@vanilla-extract/css": "0.3.2", | ||
"@vanilla-extract/sprinkles": "0.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { atoms } from './styles.css'; | ||
import testNodes from '../test-nodes.json'; | ||
|
||
function render() { | ||
document.body.innerHTML = ` | ||
<div id="${testNodes.root}" class="${atoms({ | ||
display: 'block', | ||
paddingTop: { | ||
mobile: 'small', | ||
desktop: 'medium', | ||
}, | ||
})}"> | ||
Sprinkles | ||
</div> | ||
`; | ||
} | ||
|
||
render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { createAtomicStyles, createAtomsFn } from '@vanilla-extract/sprinkles'; | ||
|
||
export const atoms = createAtomsFn( | ||
createAtomicStyles({ | ||
defaultCondition: 'mobile', | ||
conditions: { | ||
mobile: {}, | ||
tablet: { | ||
'@media': 'screen and (min-width: 768px)', | ||
}, | ||
desktop: { | ||
'@media': 'screen and (min-width: 1024px)', | ||
}, | ||
darkDesktop: { | ||
'@supports': 'not (display: grid)', | ||
'@media': 'screen and (min-width: 1024px)', | ||
selector: '[data-dark-mode] &', | ||
}, | ||
}, | ||
properties: { | ||
display: ['flex', 'none', 'block'], | ||
paddingTop: { | ||
small: '10px', | ||
medium: '20px', | ||
}, | ||
}, | ||
}), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"root": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.