-
I'm trying to come to this from Material UI and I'm confused. Where's CSS Baseline? Where's my Stack component for flex layouts? Where are my theme components so I can properly apply theme styles to my custom components that I'm supposed to write? And how do I know I'm writing those components correctly? I want to be able to just layout a page without having to worry about making sure all the styles and paddings and everything else are properly set. Aren't these things standard in fluent UI? Do I just need to guess what I think looks good? Is there no standard format for this like there is in Material UI where everything is standardized? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey @Arlen22 , I had a similar question once:
I was on the wrong version of the docs, that's why I was not finding useful docs for this. Make sure you are on this version: https://react.fluentui.dev/?path=/docs/concepts-introduction--docs The "Theme" Section will help a lot. I was also confused about the baseline, but so far, integrating Fluent into a legacy app (which has tons of CSS above it) did not mess up the underlying CSS from Fluent. If you want to create some sort of static baseline, I'd suggest looking into this: https://griffel.js.org/react/api/make-static-styles I don't think it was intended to serve as a baseline utility, but for me, it actually did the trick. But this might have been a side effect. |
Beta Was this translation helpful? Give feedback.
-
Ah, nice. So it's StackShim and StackItemShim . Yay! Also, I switched back to MUI because I didn't have the time to bother trying to figure out flex shenanigans in HTML and I just wanted a quick solution. But hopefully this will help future fluentui candidates. |
Beta Was this translation helpful? Give feedback.
-
Hello @Arlen22 FluentUI React is an implementation of the Fluent 2 Design System, offering theme tokens and low-level components (primitives) that enable you to build the UX according to the design system. It intentionally does not support layout components as both CSS Flex and CSS Grid are supported well everywhere nowadays. Please check those websites for more information on guidelines and standards. Similar questions answered: |
Beta Was this translation helpful? Give feedback.
Hello @Arlen22
FluentUI React is an implementation of the Fluent 2 Design System, offering theme tokens and low-level components (primitives) that enable you to build the UX according to the design system. It intentionally does not support layout components as both CSS Flex and CSS Grid are supported well everywhere nowadays. Please check those websites for more information on guidelines and standards.
Similar questions answered:
#30798 (comment)
#28195 (comment)