Skip to content

Documentation not clear for beginners #1935

Answered by braaar
LeonardoGentile asked this question in Q&A
Discussion options

You must be logged in to vote

I am probably quite late to the party, but here goes.

The same applies for breakpoint and media queries, the lack of defaults just puzzles me, how is that possible that I have to define all of these commonly used defaults?

You can copy an existing theme and start using it if that's what you'd like. Theme UI is a framework for theming, not a theme.

I don't think it's such a huge issue to find the right padding/margin/size for your purposes. And to make it responsive to screen sizes you can use breakpoints like so:

<Box sx={{ m: [2, 3, 4], borderRadius: [3, 3, 2], borderColor: 'secondary' }}>
  <Text sx= {{ fontSize: [4, 3, 3] }}>Hello there!</Text>
</Box>

Tweak the values so they look ni…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lachlanjc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants