next-enterprise/tailwind.config.js

128 lines
3 KiB
JavaScript
Raw Normal View History

2023-04-16 18:17:54 +02:00
/* eslint-disable @typescript-eslint/no-var-requires */
const { pick, omit } = require("lodash")
const colors = require("tailwindcss/colors")
const defaultTheme = require("tailwindcss/defaultTheme")
2024-04-08 05:28:26 +00:00
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
2023-04-16 18:17:54 +02:00
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
2024-04-04 10:57:58 +00:00
boxShadow: {
'3xl': '0 35px 60px -15px rgba(0, 0, 200, 0.3)',
},
2023-04-16 18:17:54 +02:00
colors: {
2024-04-04 04:40:20 +00:00
black: "#0f172a",
2023-04-16 18:17:54 +02:00
primary: {
50: "#eff6ff",
100: "#dbeafe",
200: "#bfdbfe",
300: "#93c5fd",
400: "#60a5fa",
500: "#3b82f6",
600: "#2563eb",
700: "#1d4ed8",
800: "#1e40af",
900: "#1e3a8a",
},
2024-04-02 05:24:19 +00:00
vizoleG1: "#F0B37D",
vizoleG2: "#F5887A",
vizoleG3: "#F5887A",
2024-04-04 10:57:58 +00:00
heroBtn: "#f0eded",
2024-04-02 06:40:46 +00:00
homeBg: "#0f172a",
2024-04-04 04:40:20 +00:00
homeBg2: "#0c1324",
2023-04-16 18:17:54 +02:00
},
fontFamily: {
body: [
"Inter",
"ui-sans-serif",
"system-ui",
"-apple-system",
"system-ui",
"Segoe UI",
"Roboto",
"Helvetica Neue",
"Arial",
"Noto Sans",
"sans-serif",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji",
],
sans: [
"Inter",
"ui-sans-serif",
"system-ui",
"-apple-system",
"system-ui",
"Segoe UI",
"Roboto",
"Helvetica Neue",
"Arial",
"Noto Sans",
"sans-serif",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji",
],
},
borderWidth: {
DEFAULT: "1px",
0: "0",
2: "2px",
3: "3px",
4: "4px",
6: "6px",
8: "8px",
},
minHeight: {
...defaultTheme.height,
},
minWidth: {
...defaultTheme.width,
},
2024-04-02 05:24:19 +00:00
animation: {
["infinite-slider"]: "infiniteSlider 20s linear infinite",
},
keyframes: {
infiniteSlider: {
"0%": { transform: "translateX(0)" },
"100%": {
transform: "translateX(calc(-125px * 5))",
2024-04-02 05:24:19 +00:00
},
},
},
2023-04-16 18:17:54 +02:00
},
},
2024-04-04 04:40:20 +00:00
plugins: [
2024-04-08 05:28:26 +00:00
require('@codaworks/react-glow/tailwind'),
addVariablesForColors
2024-04-04 04:40:20 +00:00
],
future: {
hoverOnlyWhenSupported: true,
2023-04-21 12:11:00 +02:00
},
2023-04-16 18:17:54 +02:00
}
2024-04-08 05:28:26 +00:00
function addVariablesForColors({ addBase, theme }) {
let allColors = flattenColorPalette(theme("colors"));
let newVars = Object.fromEntries(
Object.entries(allColors).map(([key, val]) => [`--${key}`, val])
);
addBase({
":root": newVars,
});
}