Replies: 4 comments 6 replies
-
Something like |
Beta Was this translation helpful? Give feedback.
-
On second thought, I have some doubts about styling through attribute selectors. Personally, I find it less readable and would prefer a more concise approach for both writing the styles and using them in projects. .size {
&-big {/* some styles */}
&-small {/* other styles */}
} More importantly, I believe this approach wouldn't be fully compatible with IDE auto-completion, which reduces the ease of use for our styles. |
Beta Was this translation helpful? Give feedback.
-
Regarding Approach 1.2, I’d love to use it for pseudo-class utilities similar to those in Tailwind! |
Beta Was this translation helpful? Give feedback.
-
Decision: go with 1.1 |
Beta Was this translation helpful? Give feedback.
-
There are multiple ways native html elements can be styled.
1. Classes
2. Prefixed attributes
3. Non prefixed attributes
4. Non prefixed direct attributes
3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions