Open timobrembeck opened 5 years ago
Actually, I meant something else by this issue: At the moment, we use certain combinations of css classes very often. I would like to add meta-classes which compile to a set of classes, so we have like "integreat-input-field" and "integreat-button", and when we want to change the appearance of all buttons, we only have to change this meta-class... do you know what I mean? Is that possible?
The commit you're mentioning fixes #280.
I started working on this on the branch feature/tailwind-css... So anyone interested in this issue can continue there.
I think we should postpone this to the Additional Features milestone. We do not have any problems with the current status.
That would be fine with me. Just for reference: Here is a good guide on how to achieve de-duplication of css classes: https://tailwindcss.com/docs/extracting-components TL;RD: Try to extract components into sub-templates first (e.g. centralized form/field templates), only use meta-classes where strictly necessary (e.g. for small UI elements like buttons).
Currently, we use sets of ~10 css classes per UI element. If we want to make small changes to the elements (e.g. change the appearance of all buttons), we have to change these classes in all buttons in every template manually. This is not practically, thus we need some kind of meta-classes to bundle these stylings and can be managed centralized: https://tailwindcss.com/docs/functions-and-directives
Here is a good guide on how to achieve de-duplication of css classes: https://tailwindcss.com/docs/extracting-components