A Less library for smarter component styling
- Run 'python -m SimpleHTTPServer' in the decent directory.
- Follow the directions there (or just go to localhost:8000/docs)
- Edit index.html or the Less, then refresh to test stuff.
- The docs/index.html scratchpad is for any launch-related content
- Run 'lessc src/index.less docs/css/index.css'.
- If JS is enabled for randomness, use 'lessc --js src/index.less docs/css/index.css'
In settings.less, you'll find two settings of note in compiling:
- @output-patterns: This outputs all the demo pattern CSS. It's over 300kb.
- @randomness: This enables randomness in a bunch of variables. Great for testing.
- Some of the random mixins randomly throw errors
- There are a lot of random mixins
- Just push on through! It compiles most of the time.
Known errors:
- SyntaxError: error evaluating function
color: argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF in
- Cats always have cat-appropriate names. Except for Dave.
- We use placekitten for local (only) testing. The cats are all adorable.
- So make the descriptions subtly dark.
- The criminal cat gang doesn't get into anything harder than catnip, caterwauling and the occasional clutch-and-kick-scratch.
- Never speak directly of the criminal empire CRUD app the components seem to suggest exists.
Decent aims to preserve and emphasize accessibility.
- Mixins ensure developers meet WCAG standards
- Mixins ensure design consistency
- Decent allows for a leaner DOM, which makes everything (CSS, JS) faster
- Decent itself compiles quickly, picking the right colors out of millions in seconds
Decent is a fuller coding environment for Less.
- All HTML elements have a file
- All CSS properties have a variable
- Each mixin has its own file
- Mixins use import statements to list dependencies
Decent gives designers fundamental tools for building UIs.
Decent uses very few classes. Semantic classes, one of the few exceptions, come with an inherent color association.
Palette colors
- action: A version of the base color
- reaction: A complement to action
- alternate: A CMYK print-style highlight color
Informational colors
- info: An info-conveying blue
- warning: An urgent info-conveying orange
- accent: An attention-drawing but neutral color
Transactional colors
- action: A reassuring green
- reaction: An alarming red
- highlight: A CMYK print-style highlight color