7.0.1 • Published 3 years ago

postcss-simple-vars v7.0.1

Weekly downloads
237,410
License
MIT
Repository
github
Last release
3 years ago

PostCSS Simple Variables

PostCSS plugin for Sass-like variables.

You can use variables inside values, selectors and at-rule parameters.

$dir:    top;
$blue:   #056ef0;
$column: 200px;

.menu_link {
  background: $blue;
  width: $column;
}
.menu {
  width: calc(4 * $column);
  margin-$(dir): 10px;
}
.menu_link {
  background: #056ef0;
  width: 200px;
}
.menu {
  width: calc(4 * 200px);
  margin-top: 10px;
}

If you want be closer to W3C spec, you should use postcss-custom-properties and postcss-at-rules-variables plugins.

Look at postcss-map for big complicated configs.

Docs

Read full docs on GitHub.

@rock-kit/ui-postcss-configapp-campussingle-page-appreact-nt-modalmircoai-guimfp-react-components@fundefund/funde_cktq-muiscratch-gui-freerange@temporg/ui-postcss-config@enaviga/generic-components@kununu/react-universal-scriptsglitchyscratch-gui@muons/library@everything-registry/sub-chunk-2462blockzie-guiwikimapwebpack-www-bundleworkspacedwpi-react-hmr-ssrworkflo-componentswww-bundlescratch-guisuny-guitestujsk_custom_ckeditor5vitalizerux-sil-componentsux-sil-components-betaux-sil-components-camiloux-sil-components2varia-clientvue-custom@drblmthw/testujsk_custom_ckeditor5@css-blocks/bem-to-blocks@cybergenios/scratch-gui@colloque/react-scripts@blueprintjs/node-build-scripts@postcss-plugins/text-transform@postcss-plugins/token-utilityismart-gulpfileispacecomplibitch-scratch-guijustinelaudantiumtemporibuswi-layer-react-expressscratch-gui-astroui-lmo-componentsspur-tailwindspur-web-themett-react-ui-2ui-sil-components2ui-css-helpertowneditor-guitreatstranslation-space-designsystemvue-play-cli@amazee/react-scripts@arxpoetica/sapper-trimmings@astly/parsers@agrarium/builder-xjst@blueking/lesscode-cli@buchanaf/postcss-dependencies@cheap-pets/rollup-plugin-postcss-scss@charge/sdk@clevercanyon/dev-deps@abtasty/interstitiel2create-task-runner-package@acta/rollup-plugin-postcss@adaliszk/web-compiler@boris-turner/claycli@braille/react-scripts-ts@davidwells/config-postcssyfhx-fe-viewyuyi-core-tts-glupwaffleironwawu-scratch-guiwebpages-packer-browser-vuewebpack-bundle-systemvine-desginvine-designzerionprokovanmail@samatech/postcss-basics@dvhb/cli@edia/react-scripts-ts@harsha-jalan/ckeditor5-custom-build@hapticsynaptic/braceletmaker-gui@fiizy/postcss@fpg-modules/fpg-ui-build@hoaitt/ckeditor5-build-classic-mention@hi-ui/hi-build@humaapi/ui@frontender-magazine/article-builder@gingco/gingco-ui-react@gitterhq/styleguide@gnarlycode/react-app-tools@infrastructure.dev/builder@infinitebrahmanuniverse/nolb-postcss-s@locktech/atomic-mixins@lskjs/build@instructure/ui-postcss-config
7.0.1

3 years ago

7.0.0

3 years ago

6.0.3

4 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.0.2

6 years ago

5.0.1

7 years ago

5.0.0

7 years ago

4.1.0

8 years ago

4.0.0

8 years ago

3.1.0

8 years ago

3.0.0

9 years ago

2.0.0

9 years ago

1.2.0

9 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.3.0

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago