2022-02-18 08:17:28 +00:00
|
|
|
const defaultTheme = require("tailwindcss/defaultTheme");
|
|
|
|
const plugin = require("tailwindcss/plugin");
|
2022-02-15 09:04:19 +00:00
|
|
|
|
|
|
|
const colors = {
|
2022-02-18 08:17:28 +00:00
|
|
|
primary: { light: "#33D17E", DEFAULT: "#00c65e" },
|
|
|
|
warning: "#ffd567",
|
|
|
|
error: "#ED5454",
|
2022-02-15 09:04:19 +00:00
|
|
|
palette: {
|
2022-02-18 08:17:28 +00:00
|
|
|
100: "#f5f7f7",
|
|
|
|
200: "#d4dddb",
|
|
|
|
300: "#9e9e9e",
|
|
|
|
400: "#555555",
|
|
|
|
500: "#242424",
|
|
|
|
600: "#0d0d0d",
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
2022-02-18 08:17:28 +00:00
|
|
|
};
|
2022-02-15 09:04:19 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2022-02-18 08:17:28 +00:00
|
|
|
content: ["./src/**/*.{js,jsx,ts,tsx}"],
|
2022-02-15 09:04:19 +00:00
|
|
|
theme: {
|
|
|
|
screens: {
|
2022-02-18 08:17:28 +00:00
|
|
|
sm: "640px",
|
|
|
|
md: "768px",
|
|
|
|
lg: "1024px",
|
|
|
|
xl: "1440px",
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
2022-02-18 08:17:28 +00:00
|
|
|
backgroundColor: (theme) => ({ ...theme("colors"), ...colors }),
|
|
|
|
borderColor: (theme) => ({ ...theme("colors"), ...colors }),
|
|
|
|
textColor: (theme) => ({ ...theme("colors"), ...colors }),
|
|
|
|
placeholderColor: (theme) => ({ ...theme("colors"), ...colors }),
|
2022-03-07 09:55:43 +00:00
|
|
|
outlineColor: (theme) => ({ ...theme("colors"), ...colors }),
|
2022-02-15 09:04:19 +00:00
|
|
|
extend: {
|
|
|
|
fontFamily: {
|
2022-02-18 08:17:28 +00:00
|
|
|
sans: ["Sora", ...defaultTheme.fontFamily.sans],
|
|
|
|
content: ["Source\\ Sans\\ Pro", ...defaultTheme.fontFamily.sans],
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
|
|
|
fontSize: {
|
2022-02-18 08:20:47 +00:00
|
|
|
body: ["21px", { lineHeight: "1.58" }],
|
|
|
|
tab: ["18px", "28px"],
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
2022-02-18 08:17:28 +00:00
|
|
|
backgroundColor: ["disabled"],
|
2022-03-15 14:56:09 +00:00
|
|
|
backgroundImage: {
|
|
|
|
"corner-circle":
|
|
|
|
"radial-gradient(circle at calc(100% - 60px) -50px, #F5F5F7 0%, #f5f5f7 250px,rgba(0,0,0,0) 250px)",
|
|
|
|
},
|
2022-02-18 08:17:28 +00:00
|
|
|
textColor: ["disabled"],
|
2022-02-15 09:04:19 +00:00
|
|
|
keyframes: {
|
|
|
|
wiggle: {
|
2022-02-18 08:17:28 +00:00
|
|
|
"0%, 100%": { transform: "rotate(-3deg)" },
|
|
|
|
"50%": { transform: "rotate(3deg)" },
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
animation: {
|
2022-02-18 08:17:28 +00:00
|
|
|
wiggle: "wiggle 3s ease-in-out infinite",
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
|
|
|
width: {
|
2022-02-18 08:17:28 +00:00
|
|
|
page: "100%",
|
|
|
|
"page-md": "640px",
|
|
|
|
"page-lg": "896px",
|
|
|
|
"page-xl": "1312px",
|
2022-03-15 14:56:09 +00:00
|
|
|
"settings-lg": "704px",
|
|
|
|
"settings-xl": "928px",
|
2022-02-17 11:16:21 +00:00
|
|
|
},
|
2022-02-17 11:53:32 +00:00
|
|
|
minWidth: {
|
2022-02-18 08:20:47 +00:00
|
|
|
button: "112px",
|
2022-02-17 11:53:32 +00:00
|
|
|
},
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
plugin(function ({ addBase, theme }) {
|
|
|
|
addBase({
|
|
|
|
body: {
|
2022-02-18 08:17:28 +00:00
|
|
|
color: theme("textColor.palette.600"),
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
2022-02-18 08:17:28 +00:00
|
|
|
});
|
2022-02-15 09:04:19 +00:00
|
|
|
}),
|
|
|
|
],
|
2022-02-18 08:17:28 +00:00
|
|
|
};
|