1.1.0 • Published 7 years ago

icss-replace-symbols v1.1.0

Weekly downloads
3,952,785
License
ISC
Repository
github
Last release
7 years ago

Build Status

ICSS — Replace Symbols

Governs the way tokens are searched & replaced during the linking stage of ICSS loading.

This is broken into its own module in case the behaviour needs to be replicated in other PostCSS plugins (i.e. CSS Modules Constants)

API

import replaceSymbols from "icss-replace-symbols"
replaceSymbols(css, translations)

Where:

  • css is the PostCSS tree you're working with
  • translations is an JS object of symbol: "replacement" pairs, where all occurrences of symbol are replaced with replacement.

Behaviour

A symbol is a string of alphanumeric, - or _ characters. A replacement can be any string. They are replaced in the following places:

  • In the value of a declaration, i.e. color: my_symbol; or box-shadow: 0 0 blur spread shadow-color
  • In a media expression i.e. @media small {} or @media screen and not-large {}

License

ISC


Glen Maddern, 2015.

vuedragdropuploadimagescloud-archive-s3@l1nyanm1ng/react-picture-viewer@olivervorasai/sliderasterjscogoportutils@infinitebrahmanuniverse/nolb-ics@saaspe/componentsexpand-react-bridge@everything-registry/sub-chunk-1892@cositehq/typed-css-modulesp149-tabletest-popupslitepie-datepicker-gabenka-gantt-task-reactmggauharmy-css-modules-loader-corenecessitatibusestm2m-chartjs-plugin-crosshairnois-react-toastmavectra@the91end/react-auth@vue-helper/vue-keep-alivea-css-loader_postcss-modules-values@aristidenf/streak-counter@arkasuryawan/m2-interface@artiso-solutions/vue-html-to-paperappcharge-checkoutappcharge-checkout-reactjs-sdkap-vue-captcha@dallonf/css-modules-require-hook@demching113/css-modules-loader-corebroccoli-css-modules@bitfirer/vue-qriouslycase-gg-editor@cameron-martin/css-modules-loader-corecarousel-reactpostcss-icsspostcss-modules-in-browserpostcss-modules-parserpostcss-modules-syncreact-dottiereact-misc-toolboxreact-lightbox-pack-18supportp147-tablep148-tablesearch-input-reactsearch-list-reactsequelcomponentsednostrumtyped-css-modulestyped-css-modules-lfvue-compmentvue-button-test1type-libaryvue3-google-login-with-statewebpackdemotingzi-vuepressts-blink-css-modules-require-hooktagged-css-modulessuit-upsticky-scroll-catchstories-react-bdreyhan-projectresponsis-gantt-task-reactchain_digger@ct-note/checklist@ct-note/delimiter@ct-note/header@ct-note/inline-code@ct-note/marker@ct-note/quote@ct-note/simple-image@ct-note/table@ct-note/warningeasyplayer-my@img-arena/img-ui-mui-theme@img-arena/ui-coreemr-tabulator-tables@dimcheify/dimuicourse-vue-tpl@dinert/component@dinert/echartscss-modules-loader-core-btdcss-modules-loader-core-source-mapcss-modules-loader-core-wincss-modules-require-hookcss-modules-loader-corecssesc-wbg@dr.pogodin/css-modules-require-hookbain@ericmcornelius/ease@fpauser/broccoli-css-modules@hazyflame/vue-jitsi-meetant-design-draggable-modal-fix@aissab/postcss-modules-synces-react-bridge@itayn-fireberry-org/itayn-testdigital-keyboard-demosdelectusiste
1.1.0

7 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago