Package Exports
- emotion-to-vanilla-extract
- emotion-to-vanilla-extract/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (emotion-to-vanilla-extract) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
emotion-to-vanilla-extract
Convert an Emotion CSSObject to a vanilla-extract ComplexStyleRule
Usage
import emotionToVanillaExtract from "emotion-to-vanilla-extract";
emotionToVanillaExtract({
borderRight: "none",
borderTop: "none",
border: "1px solid red",
borderLeft: "none",
borderBottom: "none",
"&:hover": {
border: "2px solid red",
"&:not(:active)": {
border: "2px solid aquamarine",
"[data-mode='dark'] &": {
border: "2px solid white",
},
},
},
})
// returns
{
"borderRight": "none",
"borderTop": "none",
"border": "1px solid red",
"borderLeft": "none",
"borderBottom": "none",
"selectors": {
"&:hover": {
"border": "2px solid red",
},
"&:not(:active):hover": {
"border": "2px solid aquamarine",
},
"[data-mode='dark'] &:not(:active):hover": {
"border": "2px solid white",
},
},
}