1.0.0-alpha.13 • Published 5 years ago
sanity-web-styles v1.0.0-alpha.13
sanity-web-styles
Shared base styles, custom media and custom properties for web apps on Sanity.io.
npm install sanity-io/sanity-web-styles
Usage
To use the custom media and custom variables, configure your project using .postcssrc
:
{
"plugins": {
"postcss-import": {},
"postcss-preset-env": {
"importFrom": [
"node_modules/sanity-web-styles/src/custom-media.css",
"node_modules/sanity-web-styles/src/custom-properties.css"
],
"stage": 3,
"features": {
"nesting-rules": true,
"custom-media-queries": {
"preserve": false
},
"custom-properties": {
"preserve": false
}
}
}
}
}
Import dist/sanity.css
in your base CSS file:
@import "sanity-web-styles";
License
1.0.0-alpha.13
5 years ago
1.0.0-alpha.12
5 years ago
1.0.0-alpha.11
5 years ago
1.0.0-alpha.10
5 years ago
1.0.0-alpha.9
5 years ago
1.0.0-alpha.8
5 years ago
1.0.0-alpha.7
5 years ago
1.0.0-alpha.6
5 years ago
1.0.0-alpha.5
5 years ago
1.0.0-alpha.4
5 years ago
1.0.0-alpha.3
5 years ago
1.0.0-alpha.2
5 years ago
1.0.0-alpha.1
5 years ago
1.0.0-alpha.0
5 years ago