Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] PostCSS plugin to add support for CSS Color Module Level 5 (color-mix, color-contrast, color-adjust).

License

NotificationsYou must be signed in to change notification settings

devmattrick/postcss-color-5

Repository files navigation

PostCSS plugin to add support forCSS Color Module Level 5 (color-mix, color-contrast, color-adjust).

.foo {/* TODO */}
.foo {/* Output example */}

Compatibility Notice

This plugin currently tracks theeditor's draft of CSS Color Module Level 5, which is still in a state of uncertainty.This means that a lot of the syntax may change. This plugin follows semver and will not break existing setups, but justbe aware that the CSS you write now may not be standard when the draft is actually accepted! It also may break betweenmajor versions of postcss-color-5.

Usage

Step 1: Install plugin:

npm install --save-dev postcss postcss-color-5

Step 2: Check you project for existing PostCSS config:postcss.config.jsin the project root,"postcss" section inpackage.jsonorpostcss in bundle config.

If you do not use PostCSS, add it according toofficial docsand set this plugin in settings.

Step 3: Add the plugin to plugins list:

module.exports = {  plugins: [+   require('postcss-color-5'),    require('autoprefixer')  ]}

About

[WIP] PostCSS plugin to add support for CSS Color Module Level 5 (color-mix, color-contrast, color-adjust).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

[8]ページ先頭

©2009-2025 Movatter.jp