Skip to content

How to override Tailwind Typography? #9001

Answered by wongjn
mattbal asked this question in Help
Discussion options

You must be logged in to vote

As per the documentation for @tailwindcss/typography, you can customize the styles by putting it under theme.extend.typography like so:

module.exports = {
  // …
  theme: {
    extend: {
      typography: {
        DEFAULT: {
          // Custom CSS here ↓
          css: {
            fontSize: '1rem',
            lineHeight: '1.75rem',
            // More custom CSS…
          },
        },
      },
    },
  },
  plugins: [
    require('@tailwindcss/typography'),
  ],
},

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mattbal
Comment options

Answer selected by mattbal
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@heikopaiko
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
5 participants