Compare commits

...

2 Commits

Author SHA1 Message Date
Ray Elliott 63567a4d7b fix defineHSL to include full hsl color 2021-02-18 14:17:09 +00:00
Ray Elliott a8d1e1e636 update readme 2021-02-18 14:10:19 +00:00
2 changed files with 5 additions and 4 deletions

View File

@ -4,11 +4,12 @@ Simple CSS framework.
**Heavily** inspired by [GitHub - CodyHouse/codyhouse-framework](https://github.com/CodyHouse/codyhouse-framework).
**NOTE** media queries based on variables have only been implemented for SASS. No postccss solution has yet been implemented.
## TODO
* css - minified for production (cssnano should be doing this)
* Images and SVGs
* sass loader - ensure mixins don't conflict with postcss mixins
* documentation
- .text-component
- visibility.css - make notes on classes with `\:` in the selectors
- media queries (sass codyhouse implementation)

View File

@ -6,7 +6,7 @@ const postcssMixins = {
// TODO - untest
defineHSL(mixin, name, hue, sat, light) {
const obj = {};
obj[name] = name;
obj[name] = `hsl(${hue}, ${sat}, ${light})`;
// need to ensure hue is a string otherwise postcss (is it postcss?) appends
// 'px' to the property's value.
obj[`${name}__h`] = hue.toString();