Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Make colour palette an optional addon #31

Closed
Tracked by #34
madeleineostoja opened this issue Oct 13, 2021 · 2 comments
Closed
Tracked by #34

[RFC] Make colour palette an optional addon #31

madeleineostoja opened this issue Oct 13, 2021 · 2 comments
Labels
RFC Request For Comments

Comments

@madeleineostoja
Copy link
Contributor

madeleineostoja commented Oct 13, 2021

While Pollen isn't exactly a heavy library, I don't like the idea of deadweight in a codebase. The colour palette is both the heaviest part of the library (0.4kb gzip) and the least likely to be used as a project matures and leaves prototyping, since most projects end up with their own custom colour palette.

We could split the library into a core with addons, as separate CSS files. Pollen core (typography, layout, and UI) would then be 0.9kb (and can tout being "under 1kb"), and you could easily eject colours once you're done prototyping and have a custom palette.

Could even split every module into its own file, but that seems excessive. Colours stand out to me as something that may not belong in a long-lived design system foundation, the rest feels quite foundational.

This is a pattern that would allow new, less-core variables to be added as addons later too. Something like some tailwind-style grid template defaults comes to mind.

@madeleineostoja madeleineostoja added the RFC Request For Comments label Oct 13, 2021
@madeleineostoja madeleineostoja changed the title [RFC] Make colour palette an optional add-on [RFC] Make colour palette an optional addon Oct 13, 2021
This was referenced Oct 13, 2021
@madeleineostoja
Copy link
Contributor Author

Pretty sold on this, build changes are already in master

@madeleineostoja
Copy link
Contributor Author

Also adding an optional grid addon, with template shorthands similar to Tailwind, and a configurable page container grid that I think is pretty neat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request For Comments
Projects
None yet
Development

No branches or pull requests

1 participant