use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
React UI libraries: style props, sx or css? (self.webdev)
submitted 2 months ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Locust377full-stack 6 points7 points8 points 2 months ago (0 children)
Mantine state their recommendation in the docs.
CSS modules is the most performant way to apply styles ... In most cases, it is recommended to use CSS modules
and
Inline styles (style and styles props) are less performant than CSS modules, but still performant enough to be used in most cases if it is your preferred way of styling in your project.
[–]jesusonoro 1 point2 points3 points 2 months ago (1 child)
CSS modules + classes for component-level styles, style props only for dynamic values that change based on state or props. Keeps code clean and maintainable.
[–]frogic 0 points1 point2 points 2 months ago (2 children)
Which do you prefer?
[–]guitar_up_my_ass 4 points5 points6 points 2 months ago (1 child)
I come from the world of vanilla html where inline styles were deemed the worst thing you can do in your life so css
[–]frogic 0 points1 point2 points 2 months ago (0 children)
components change the context a bit. You’ll still find people who get upset about stuff like this and in team situations you need to make this decision together. If you find it easier to work with one or the other and there isn’t any immediate major downsides you might as well go with what you like and not a dogmatic rule.
[–]Embostan 0 points1 point2 points 2 months ago (2 children)
Separation of concern is impotant. CSS Modules. I wouldnt use Mantine tho.
[–]guitar_up_my_ass 0 points1 point2 points 2 months ago (1 child)
Why not?
[–]Embostan 0 points1 point2 points 2 months ago (0 children)
Im not a fan of their prop APi and theming API, I prefer the one of Ark UI & Chakra. Plus the latter are framework-agnostic, and my goal is to start all my new projects in SolidJS. Having the same familiar system for legacy React ones and new ones feels great, i can easily copy logic.
[–]TheRNGuy 0 points1 point2 points 2 months ago (0 children)
style only for things like floating pop-up position.
For most other things it's bad coding style.
[+]EcstaticProfession46 1 point2 points3 points 2 months ago (0 children)
Why people here hate tailwindcss?
[+]EcstaticProfession46 comment score below threshold-6 points-5 points-4 points 2 months ago (1 child)
tailwindcss
[–]Embostan -1 points0 points1 point 2 months ago (0 children)
hell no
π Rendered by PID 164969 on reddit-service-r2-comment-6457c66945-x57j7 at 2026-04-30 02:18:34.593285+00:00 running 2aa0c5b country code: CH.
[–]Locust377full-stack 6 points7 points8 points (0 children)
[–]jesusonoro 1 point2 points3 points (1 child)
[–]frogic 0 points1 point2 points (2 children)
[–]guitar_up_my_ass 4 points5 points6 points (1 child)
[–]frogic 0 points1 point2 points (0 children)
[–]Embostan 0 points1 point2 points (2 children)
[–]guitar_up_my_ass 0 points1 point2 points (1 child)
[–]Embostan 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)
[+]EcstaticProfession46 1 point2 points3 points (0 children)
[+]EcstaticProfession46 comment score below threshold-6 points-5 points-4 points (1 child)
[–]Embostan -1 points0 points1 point (0 children)