Discussion about CSS architecture's decisions #54
Replies: 3 comments 9 replies
-
Hey guys, did you consider tailwind? It has something useful and ready to be customized. Its documentation is terrific and will allow use to work with the same guidelines/class names, the only thing we should do is define the basic styles for the classes and we are ready to go. Custom styles: https://tailwindcss.com/docs/adding-custom-styles |
Beta Was this translation helpful? Give feedback.
-
I would like that we work with styled-components |
Beta Was this translation helpful? Give feedback.
-
I'll quote something from a message @gh0stl1m said in Slack that I think it's mind
Additionally, we need to keep in mind we'll have to use Storybook for our component library so any toolkit we decide to use has to be compatible with it. @basultobdKs mentioned very interesting points about the use of Tailwind, showing different advantages of using Functional CSS (Using small, immutable, and explicitly named utility classes to construct components) and a Semantical CSS (a more "traditional" component-based CSS approach where we create blocks of rules to apply to components) mentioning some advantages and disadvantages of both of them. I think both CSS approaches are great, but they'll work better if we use them in tandem to create reusable CSS. My proposal is we should use CSS to have utility classes for styles we see often (like the use of colors, spaces, margins, types of display, etc) and after that, use a semantic CSS approach to tackle components. With those utility classes, the additions we need to make to those components should be simpler. A good CSS methodology that mixes both approaches is CUBE CSS and if we decide use both CSS paradigms, we should keep it in mind. @taberoajorge mentioned the use of Style Components, I don't oppose the idea, but I'd like to see some discussion about how it'll help us for this project. In this point, I'm also including all CSS-in-JS options we have. Additionally, I want to bring some discussion about those topics:
We'd like to hear your opinions about those topics! |
Beta Was this translation helpful? Give feedback.
-
Keeping in mind the fact that issues #4 #34 and #45 are closely related because is convenient for all squads to keep an equal CSS architecture, I have decided to open this discussion to make a team decision about CSS architecture topics:
After this discussion about tools and chosen methodology, we should start discussing our first steps in the creation of styles like:
@701i
Please let us know your opinions about this matter! 😃
Beta Was this translation helpful? Give feedback.
All reactions