How to change font size in chakra ui? #7783
-
Do I have to use xs, sm, md, lg, etc to define the size or can I use numbers like 1.25? I have to refactor this code: const Title = styled.p`
font-size: 1.25rem;
` So should I go like this? <Text as="p" fontSize="xl" /> or this <Text as="p" fontSize="1.25" /> |
Beta Was this translation helpful? Give feedback.
Answered by
MahendraBishnoi29
Sep 10, 2022
Replies: 1 comment 6 replies
-
hey @ameeetgaikwad you should use |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
ameeetgaikwad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey @ameeetgaikwad you should use
xl