https://github.com/rayraegah/palette.less
A color generator module for LESS project that meets WCAG 2.0 4.5:1 minimum contrast (AA level)
https://github.com/rayraegah/palette.less
color lessjs-function swatch
Last synced: 6 months ago
JSON representation
A color generator module for LESS project that meets WCAG 2.0 4.5:1 minimum contrast (AA level)
- Host: GitHub
- URL: https://github.com/rayraegah/palette.less
- Owner: Rayraegah
- Created: 2017-02-09T09:54:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T20:49:11.000Z (over 8 years ago)
- Last Synced: 2025-02-07T14:39:58.235Z (8 months ago)
- Topics: color, lessjs-function, swatch
- Language: JavaScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Palette.less
A visual hierarchy colour generator for establishing visual continuity in design. The colors generated meets WCAG 2.0 standards to ensure adequate contrast.## Under the hood
The LESS function `Palette` generates 10 shallow colors from a given base color. The algorithm uses Bezier curves and mixes colours with White, Black, Deep, Warm and Cold colours from different angles of rotation to generate a swatch. The swatch is always a complete gradient palette.for usage and example see `test/colors.less`
# License
Feel free to use it as you please.