Feature request: support for human-readable css class names #101
Replies: 3 comments 14 replies
-
StyleX generates "atomic" or "utility" css rules, which means class names contain little more semantic information than inline styles would. Whether the class names are human readable or not, they can't reliably be used to target a specific UI component with style changes. |
Beta Was this translation helpful? Give feedback.
-
I know this wasn't the original question, but there's related questions here.
|
Beta Was this translation helpful? Give feedback.
-
Continuing discussion on Developer Experience, I'd like to provide some insights from my role as a front-end developer. My typical workflow involves creating layouts and styles, and subsequently testing them in the Chrome developer console. I recognize the significance of Atomic CSS, particularly in the context of large-scale projects, and I am genuinely eager to utilize a type-safe CSS solution that is compatible with React Server Components. However, I've found that my current workflow is not feasible (please refer to the attached screenshot for more details). And I also want to highlight.. in relation to CSS custom properties (variables). The meaning and context are not perceptible. I'm interested to know if you have any recommendations or if you've contemplated similar CSS development workflows in your planning. I suspect that this is not a situation unique to me, but rather a routine part of daily CSS work for many developers. I would greatly appreciate any thoughts or guidance on this matter. |
Beta Was this translation helpful? Give feedback.
-
Hey y'all,
Thanks for all your work in creating this new CSS API! This tool will be better with the option to support human-readable CSS class names. I realize this is with the nebulous region of your architectural principles. However... Users who rely on changing CSS classes for accessibility reasons right in the browser will be grateful you are considering them.
Beta Was this translation helpful? Give feedback.
All reactions