Skip to content

Instantly share code, notes, and snippets.

@susantokun
Last active January 31, 2021 22:42
Show Gist options
  • Save susantokun/cc09628ee33c8d251d4ac84ecd2cc62b to your computer and use it in GitHub Desktop.
Save susantokun/cc09628ee33c8d251d4ac84ecd2cc62b to your computer and use it in GitHub Desktop.
Configuration TailwindCSS
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
module.exports = {
theme: {
colors: {
transparent: "transparent",
current: "currentColor",
black: "#000",
white: "#fff",
gray: colors.gray,
red: colors.red,
yellow: colors.amber,
blue: colors.blue,
lightBlue: colors.lightBlue,
green: colors.emerald,
primary: colors.blue,
secondary: colors.blueGray
},
extend: {
fontFamily: {
sans: ["Ubuntu", ...defaultTheme.fontFamily.sans]
}
}
},
variants: {
extend: {
ringOpacity: ["dark"]
}
}
};
module.exports = {
purge: [
"./storage/framework/views/*.php",
"./resources/views/**/*.blade.php",
"./resources/js/**/*.js",
"./resources/js/**/*.jsx",
"./resources/js/**/*.vue",
],
darkMode: false, // or 'media' or 'class'
presets: [require("./tailwind-preset-one")],
theme: {
extend: {}
},
variants: {
extend: {
opacity: ["disabled"],
borderCollapse: ["hover", "focus"],
backgroundColor: ["odd"]
}
},
plugins: [require("@tailwindcss/forms")]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment