2022-01-03 02:40:54 +00:00
|
|
|
const plugin = require("tailwindcss/plugin");
|
2022-01-02 15:14:39 +00:00
|
|
|
|
2022-01-01 19:04:48 +00:00
|
|
|
module.exports = {
|
|
|
|
content: ["./src/**/*.{tsx,ts}"],
|
|
|
|
theme: {
|
|
|
|
colors: {
|
2022-02-09 00:43:42 +00:00
|
|
|
light: "rgb(255, 237, 216)",
|
|
|
|
mid: "rgb(240, 209, 179)",
|
|
|
|
dark: "rgb(156, 102, 68)",
|
|
|
|
black: "rgb(27, 24, 17)",
|
2022-01-01 19:04:48 +00:00
|
|
|
},
|
2022-01-29 09:43:51 +00:00
|
|
|
fontFamily: {
|
|
|
|
body: ["Zen Maru Gothic"],
|
|
|
|
headers: ["Vollkorn"],
|
|
|
|
},
|
2022-01-01 19:04:48 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
require("@tailwindcss/typography"),
|
2022-01-03 02:40:54 +00:00
|
|
|
|
|
|
|
plugin(function ({ addVariant, e }) {
|
|
|
|
addVariant("webkit-scrollbar", ({ modifySelectors, separator }) => {
|
2022-01-02 15:14:39 +00:00
|
|
|
modifySelectors(({ className }) => {
|
2022-01-03 02:40:54 +00:00
|
|
|
return `.${e(
|
|
|
|
`webkit-scrollbar${separator}${className}`
|
|
|
|
)}::-webkit-scrollbar`;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
|
|
|
|
// Colorization thanks to https://codepen.io/sosuke/pen/Pjoqqp
|
|
|
|
plugin(function ({ addUtilities }) {
|
|
|
|
addUtilities({
|
|
|
|
".colorize-light": {
|
|
|
|
filter:
|
|
|
|
"brightness(0) saturate(100%) invert(98%) sepia(3%) saturate(5426%) hue-rotate(303deg) brightness(108%) contrast(100%)",
|
|
|
|
},
|
|
|
|
".colorize-mid": {
|
|
|
|
filter:
|
|
|
|
"brightness(0) saturate(100%) invert(89%) sepia(16%) saturate(829%) hue-rotate(322deg) brightness(103%) contrast(88%)",
|
|
|
|
},
|
|
|
|
".colorize-dark": {
|
|
|
|
filter:
|
|
|
|
"brightness(0) saturate(100%) invert(43%) sepia(5%) saturate(4120%) hue-rotate(339deg) brightness(98%) contrast(90%)",
|
|
|
|
},
|
|
|
|
".colorize-black": {
|
|
|
|
filter:
|
|
|
|
"brightness(0) saturate(100%) invert(7%) sepia(13%) saturate(1156%) hue-rotate(4deg) brightness(103%) contrast(95%)",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}),
|
2022-01-27 02:16:32 +00:00
|
|
|
|
2022-02-09 00:43:42 +00:00
|
|
|
// Colored Dropshadow
|
|
|
|
plugin(function ({ addUtilities }) {
|
|
|
|
addUtilities({
|
|
|
|
".drop-shadow-dark-lg": {
|
|
|
|
filter:
|
|
|
|
"drop-shadow(0 10px 8px rgb(156 102 68 / 0.2)) drop-shadow(0 4px 3px rgb(156 102 68 / 0.8))",
|
|
|
|
},
|
|
|
|
".drop-shadow-dark-xl": {
|
|
|
|
filter:
|
|
|
|
"drop-shadow(0 20px 13px rgb(156 102 68 / 0.25)) drop-shadow(0 8px 5px rgb(156 102 68 / 0.7))",
|
|
|
|
},
|
|
|
|
".drop-shadow-dark-2xl": {
|
|
|
|
filter: "drop-shadow(0 25px 25px rgb(156 102 68 / 0.8))",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
|
2022-01-27 02:16:32 +00:00
|
|
|
plugin(function ({ addUtilities }) {
|
|
|
|
addUtilities({
|
|
|
|
".linearbg-1": {
|
|
|
|
background:
|
|
|
|
"linear-gradient(to right, theme('colors.mid'), theme('colors.light') 3%, theme('colors.light') 97%, theme('colors.mid'))",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}),
|
2022-01-01 19:04:48 +00:00
|
|
|
],
|
|
|
|
};
|