-
I'm not able to require the the default theme when using the cli through npx. I feel like this should be possible, as I've done this when using a package.json and yarn. Any ideas?
This is what I have in my config const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
mode: "jit",
purge: ["./lib/duck_web/templates/**/*.html.*", "./lib/duck_web/live/**/*.ex"],
darkMode: "media", // or 'media' or 'class'
theme: {
extend: {
fontFamily: {
sans: ["Inter", ...defaultTheme.fontFamily.sans]
},
},
container: {
center: true,
},
},
variants: {
extend: {},
},
plugins: [],
} |
Beta Was this translation helpful? Give feedback.
Answered by
legecha
May 20, 2022
Replies: 1 comment 3 replies
-
I had this error when I installed globally. I fixed it with:
After that it picked it up without issue. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
mhanberg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had this error when I installed globally. I fixed it with:
After that it picked it up without issue.