Skip to content

Custom Theme Isn't Applied #3997

Answered by simonswiss
matthewtridoan asked this question in Help
Discussion options

You must be logged in to vote

Hey!

You're currently defining the fontFamily object outside of the theme key in your config file:

theme: {
  extend: {}
},
colors: {},
fontFamily: {
  sans: ["ui-serif"],
  title: ["serif"]
},

You need to move this inside the theme (to override it completely) or inside of theme.extend to extend it:

theme: {
  extend: {
    fontFamily: {
      sans: ["ui-serif"],
      title: ["serif"]
    },
    colors: {},
  }
},

Hope it helps! 👍

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@matthewtridoan
Comment options

@simonswiss
Comment options

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