I've been tinkering with an idea to create a frontend style framework with the goal of:
@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!
I've been tinkering with an idea to create a frontend style framework with the goal of:
@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!