obsidian icon indicating copy to clipboard operation
obsidian copied to clipboard

Thoughts on adding Color Function

Open wad3g opened this issue 7 years ago • 0 comments

What are your thoughts about adding something like postcss-color-function?

Something like this:

:root {
  /* Red */
  --red: #D04D36;
  --red-light: color(var(--red) l(90%)) s(90%);
  --red-medium: var(--red);
  --red-dark: color(var(--red) l(30%) s(100%));

  /* Blue */
  --blue: #147AAB;
  --blue-light: color(var(--blue) l(90%) s(90%));
  --blue-medium: #147AAB;
  --blue-dark: color(var(--blue) l(30%) s(100%);

wad3g avatar Mar 14 '17 02:03 wad3g