Adding different heading styles #1194
Unanswered
drydenwilliams
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to add custom font sizes for my headings
h1, h2, h3...
using theHeading
component. Let's say I would like the following sizes throughout my app:Ideally I don't feel I would need to add extra variants for this? I'm a bit stumped when looking at the docs but I would expect just to write the component like this:
And then going forward it would be great to use these styles like utility classes on text components like this:
I can't seem to figure it out so any help would be great :) It seems the entire point of theme-ui if I understand it is to easily customise this kind of thing?
Just to be super clear I don't really want to do this:
as it seems unnecessary and a bit gross.
Beta Was this translation helpful? Give feedback.
All reactions