Skip to content

Instantly share code, notes, and snippets.

@npdtdev
Created August 1, 2023 12:43
Show Gist options
  • Select an option

  • Save npdtdev/4f9278aa2be3a78b2fe76fadff2af5c6 to your computer and use it in GitHub Desktop.

Select an option

Save npdtdev/4f9278aa2be3a78b2fe76fadff2af5c6 to your computer and use it in GitHub Desktop.
Blog post code for adding a font to Tailwind CSS
@import url('https://fonts.googleapis.com/css2?family=Lato');
const defaultTheme = require("tailwindcss/defaultTheme");
export default {
// ...
theme: {
extend: {
fontFamily: {
sans: ["Lato", ...defaultTheme.fontFamily.sans],
},
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment