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: Rework generics and types. #156

Closed milesj closed 3 years ago

milesj commented 3 years ago

Summary

This framework has gotten more complex over time, resulting in the TS types also becoming more complex. It's gotten to a point where the generics were becoming a bit confusing. What does Block mean? Or Result? What about T? Which order do they go in?

To resolve this, I'm opting for an input -> output approach, which should make the understanding of how all these types are used much more clear.

I'm also trying to avoid the word className, since this doesn't make since in other contexts, like react native.

Screenshots

Checklist