Last active
January 31, 2021 22:42
-
-
Save susantokun/cc09628ee33c8d251d4ac84ecd2cc62b to your computer and use it in GitHub Desktop.
Configuration TailwindCSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | |
} | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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