charliewilco / obsidian

💎 A Modular CSS Library
https://obsidian.charliewil.co
MIT License
25 stars 3 forks source link

Thoughts on adding Color Function #32

Open wad3g opened 7 years ago

wad3g commented 7 years ago

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%);