Skip to content

Right way of extending the theme's fontFamily #143

Answered by sastan
jgoux asked this question in Q&A
Discussion options

You must be logged in to vote

oh... That is currently not possible. But it should. Would the following code work for you (once implemented)?

setup({
  theme: {
    extend: {
      fontFamily: (theme) => ({
        sans: ["Inter var", theme("fontFamily.sans")]
      })
    }
  }
})

Replies: 1 comment 3 replies

Comment options

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

@sastan
Comment options

@jgoux
Comment options

Answer selected by jgoux
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