Skip to content

Adding font-family on body does not override, maybe specificity ? #14690

Answered by wongjn
iangregsondev asked this question in Help
Discussion options

You must be logged in to vote

I believe that

html,:host {}

has more specificity than

body{}

and font-family is inherited.

html,:host does indeed has more specificity than body, but you override the font-family with a body rule anyway.

Also I was looking at the computed font-family for your tailwind play that you sent, and I don't see the outfit font.

Works for me at least:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@iangregsondev
Comment options

@wongjn
Comment options

Answer selected by iangregsondev
@iangregsondev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants