Replies: 1 comment 4 replies
-
BEM seems interesting. I haven't heard about it before I actually deliberately removed tailwind sometime ago when we were axing several technologies from our stack (including hardhat, and many other frameworks) in order to simplify things. It's really important to maximize developer onboarding speed given the nature of our project (the DevPool) so we err on the side of less prerequisite technologies to master before one can contribute. Perhaps I'm biased but I feel that raw CSS is the fastest for quick changes because the changes can be done directly in the inspect tools UI and then saved/written to disk If it is an issue to scale the UI design, then I think we should aim to keep the embedded UI within this monorepo to be minimal and then maybe eventually in the future create a separate UI that's more fancy. In this way, perhaps we can get by without adding more prerequisite technologies to master to contribute to the UI, aside from TypeScript/React. More on the idea related to making the UI code minimal, but some time ago I experimented with dynamic UI generation based on contract ABIs. Perhaps that could be a useful tool for rapid development. |
Beta Was this translation helpful? Give feedback.
-
We're using pure CSS right now, without naming conventions like BEM or dividing style files into CSS modules.
The problem with our approach right now is that is hard to maintain, hard to scale, hard to theme, can have naming conflicts, has a bigger bundle size and it's a worse dev experience.
I propose we consider some solutions like:
If we agree that this is a problem, we can then decide what is the best solution for our needs. Personally I'm partial to CSS-in-JS with emotion, but of course all of the solutions have their pros and cons.
Beta Was this translation helpful? Give feedback.
All reactions