Closed olien closed 4 months ago
Hey, thanks for posting. I was able to get your config working by using the default screens
and fontSize
mentioned in step 4 here (step 4 was previously marked as optional, but I just removed that word to hopefully make it clearer):
- import fluid, { extract } from 'fluid-tailwind';
+ import fluid, { extract, screens, fontSize } from "fluid-tailwind";
import { createThemes } from "tw-colors";
module.exports = {
mode: "jit",
darkMode: "class",
content: {
files: ["index.html"],
extract,
},
theme: {
+ screens,
+ fontSize,
container: {
center: true,
},
debugScreens: {
prefix: "",
selector: "#viewportsize",
ignore: ["dark"],
style: {
boxShadow: "none",
},
},
extend: {
fontFamily: {
montserrat: ['"Montserrat"'],
},
},
},
plugins: [
fluid,
require("tailwindcss-debug-screens"),
require("@tailwindcss/typography"),
require("fluid-tailwind"),
require("@tailwindcss/forms"),
createThemes({
default: {
primary: {
50: "#576688",
100: "#4d5c7e",
200: "#435274",
300: "#39486a",
400: "#2f3e60",
500: "#253456",
600: "#1b2a4c",
700: "#112042",
800: "#071638",
900: "#000c2e",
},
secondary: {
50: "#fff06e",
100: "#ffe664",
200: "#ffdc5a",
300: "#fbd250",
400: "#f1c846",
500: "#e7be3c",
600: "#ddb432",
700: "#d3aa28",
800: "#c9a01e",
900: "#bf9614",
},
neutral: {
50: "#f7f7f7",
100: "#efefee",
200: "#d6d7d5",
300: "#bebfbc",
400: "#8d8f8a",
500: "#5C5F58",
600: "#53564f",
700: "#454742",
800: "#373935",
900: "#2d2f2b",
},
},
darktheme: {
primary: {
500: "#0f0",
},
secondary: {
500: "#f00",
},
neutral: {
200: "#ff0",
},
},
}),
],
};
Does this work for your set-up?
Hello Maxwell, that works. Thanks alot!
Hello, I know this is closed but I had the same problem and this helped me find the solution. Thank you for the solution Mr.barvianm, and you too Mr.olien. And just as well thank you very much for the plugin.
👍
here are my package.json and my tailwind.config.js
Maybe you have a moment to take a look at it.
Thanks Oliver