All Projects → caseyjacobson → postcss-redundant-color-vars

caseyjacobson / postcss-redundant-color-vars

Licence: MIT license
⚒️ PostCSS plugin that fixes a bug in safari when using custom properties in certain color declarations.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to postcss-redundant-color-vars

twitter-web-react
twitter-web-react.now.sh
Stars: ✭ 104 (+845.45%)
Mutual labels:  postcss
esbuild-css-modules-plugin
A esbuild plugin to bundle css modules into js(x)/ts(x)
Stars: ✭ 64 (+481.82%)
Mutual labels:  postcss
webpack-html-boilerplate
Boilerplate for building html templates
Stars: ✭ 17 (+54.55%)
Mutual labels:  postcss
postcss-czech-stylesheets
PostCSS plugin for writing Czech Style Sheets
Stars: ✭ 47 (+327.27%)
Mutual labels:  postcss
postcss-will-change-transition
PostCSS plugin to add will-change property after transition declarations
Stars: ✭ 15 (+36.36%)
Mutual labels:  postcss
ship
A toolkit for makers to ship better products faster 🚀
Stars: ✭ 68 (+518.18%)
Mutual labels:  postcss
postcss-rename
Replace class names based on a customizable renaming scheme.
Stars: ✭ 77 (+600%)
Mutual labels:  postcss
criteria-of-quality-frontend
Критерии качественной вёрстки (разметка, стилизация, картинки, шрифты, автоматизация и пр.)
Stars: ✭ 26 (+136.36%)
Mutual labels:  postcss
postcss
No description or website provided.
Stars: ✭ 59 (+436.36%)
Mutual labels:  postcss
abilitysheet
This app is ability sheet for beatmania iidx music of level 12.
Stars: ✭ 38 (+245.45%)
Mutual labels:  postcss
bowman
A simple static site generator with an integrated toolchain for efficient development and delivery.
Stars: ✭ 17 (+54.55%)
Mutual labels:  postcss
atom-language-postcss
Atom language support for PostCSS
Stars: ✭ 55 (+400%)
Mutual labels:  postcss
bb8
Starter kit for automating tasks in everyday front-end development. 👨🏻‍💻 ⚡️ 🛠 ✨ 🤖
Stars: ✭ 13 (+18.18%)
Mutual labels:  postcss
mpa-frontend-template
🔥 Template based on webpack, pug, stylus, es6, postcss for multi page applications
Stars: ✭ 27 (+145.45%)
Mutual labels:  postcss
styled-jsx-plugin-postcss
Plugin to add PostCSS support to styled-jsx.
Stars: ✭ 86 (+681.82%)
Mutual labels:  postcss
vue-mall
vue企业级商城练手项目并且提供接口唷
Stars: ✭ 14 (+27.27%)
Mutual labels:  postcss
postcss-purgecss
PostCSS plugin for purgecss
Stars: ✭ 92 (+736.36%)
Mutual labels:  postcss
postcss-styled
PostCSS syntax for parsing styled components
Stars: ✭ 53 (+381.82%)
Mutual labels:  postcss
postcss-prefixwrap
A PostCSS plugin that is used to wrap css styles with a css selector to constrain their affect on parent elements in a page.
Stars: ✭ 54 (+390.91%)
Mutual labels:  postcss
prepublish
Simplifies the prepare step (bundling, transpiling, rebasing) during publishing NPM packages.
Stars: ✭ 21 (+90.91%)
Mutual labels:  postcss

PostCSS Redundant Color Vars

npm Build Status

PostCSS plugin that fixes a bug in safari when using custom properties in certain color declarations.

Input

.foo {
  border: 1px solid hsla(var(--primary-color), 0.5);
}

.bar {
  box-shadow: inset 1px 1px 4px rgb(var(--secondary-color));
}

Output

.foo {
  --redundant-border: hsla(var(--primary-color), 0.5);
  border: 1px solid var(--redundant-border);
}

.bar {
  --redundant-box-shadow: rgb(var(--secondary-color));
  box-shadow: inset 1px 1px 4px var(--redundant-box-shadow);
}

Usage

postcss([require('postcss-redundant-color-vars')]);

See PostCSS docs for examples for your environment.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].