Skip to content

Detects colors in CSS and offers closest color match from color patterns

License

Notifications You must be signed in to change notification settings

archana-s/postcss-colorfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostCSS Colorfix

Colorfix monitors colors in your CSS (if not set as a variable) and recommends closest match from your color palette.

Why use this?

Use this to ensure color consistency in your application.

Options

Provide your color palette as options to postcss-colorfix

{
  colors: {
    '#D2D8CC': '--color-primary',
    '#5E7352': '--color-text-primary',
    '#C985A7': '--color-accent'
    '<hexcodeFromYourPalette>: '<variable-name>'
  }
}

How does it work?

It uses nearest-color to determine the closest match for hexcode, color names and rgb and uses your color palette to recommend what to use in during linting.

What does it look like?

Image of colorfix

About

Detects colors in CSS and offers closest color match from color patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published