-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I've been tinkering with an idea to create a frontend style framework with the goal of:
- Setting standards for good UI practices
- Providing basic helper classes to speed up frontend development time
- Bringing consistency to our plugin frontends
- Making our plugin styles less likely to interfere with other aspects of our users' sites, and making it easier for users to restyle themselves
- Perhaps bringing us a step closer to being able to provide users with a settings panel to manage colours and other aspects of our plugins' frontend interfaces, something perhaps like this: https://www.figma.com/proto/d3lM92gl1qRHbA6fX0zNTK/MemberSync-(formerly-MemberDash)?page-id=0%3A1&type=design&node-id=1345-11233&viewport=-3874%2C3034%2C0.31&t=HX5F9ogGq9cIivdI-1&scaling=min-zoom&starting-point-node-id=1345%3A10480&show-proto-sidebar=1&mode=design
@nicolas-jaussaud and I have chatted about it a bit, he thought it would be cool if this could be implemented as an NPM module, and had some suggestions for postcss plugins that could help us with prefixing: https://www.npmjs.com/package/postcss-prefixer, https://github.com/ryuran/postcss-variables-prefixer, https://github.com/postcss/postcss-simple-vars
You can see an example of an early version of the framework in use in a functionality plugin for a client here.
I think we will want to component-ize the styles so that they can be selectively loaded as they're needed: buttons, tables, tag pills etc. and it could make sense to pair this with a React component framework eventually.
I can also think of some interesting potential enhancements: perhaps colour palette shades could be programmatically generated from a base colour, or users could opt out of parts of the framework and use functional/layout styling only.
Let me know your thoughts @eliot-akira!