aesthetic-suite / framework

🎨 Aesthetic is an end-to-end multi-platform styling framework that offers a strict design system, robust atomic CSS-in-JS engine, a structural style sheet specification (SSS), a low-runtime solution, and much more!
https://aestheticsuite.dev
MIT License
203 stars 5 forks source link

breaking: Add new `text` theme palette to design language. #136

Closed milesj closed 3 years ago

milesj commented 3 years ago

Summary

Adds a new palette setting text, which is a single shade representing text in the palette's color. For example, if danger is color "red", then the text would simple be "red".

This is how the previous fg setting worked, but there was a hole in the design system of "what text color/palette is used when displaying on top of another palette?". Because of this, the fg setting is now a shade of colors to display on top of the bg. So if a primary button has a "blue" background (bg), then we want "white" text on it (fg).

This change actually works much better, especially in the context of mixins.

Screenshots

Checklist