109 lines
3.0 KiB
JavaScript
109 lines
3.0 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
|
|
import defaultTheme from "tailwindcss/defaultTheme";
|
|
import plugin from "tailwindcss/plugin";
|
|
|
|
export default {
|
|
darkMode: ["class"],
|
|
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx,html}"],
|
|
prefix: "",
|
|
|
|
theme: {
|
|
container: {
|
|
center: true,
|
|
padding: "2rem",
|
|
screens: {
|
|
"2xl": "1400px",
|
|
},
|
|
},
|
|
extend: {
|
|
// https://tailwindcss.com/docs/font-family#font-families
|
|
fontFamily: {
|
|
sans: ['"Source Sans Pro"', ...defaultTheme.fontFamily.sans],
|
|
},
|
|
|
|
colors: {
|
|
// https://adevade.github.io/color-scheme-generator/
|
|
"brand-light": "#cdd6e7",
|
|
brand: "#2a669f",
|
|
"brand-dark": "#1e344d",
|
|
|
|
// https://www.tailwindshades.com/#color=209%2C58%2C39.411764705882355&step-up=12&step-down=7&hue-shift=-59&name=great-blue&base-stop=5&v=1&overrides=e30%3D
|
|
denim: {
|
|
DEFAULT: "#2A669F",
|
|
50: "#E4F7F8",
|
|
100: "#CCEEF2",
|
|
200: "#9CD7E5",
|
|
300: "#6CB9D8",
|
|
400: "#3B94CB",
|
|
500: "#2A669F",
|
|
600: "#234B83",
|
|
700: "#1B3366",
|
|
800: "#14204A",
|
|
900: "#0C102E",
|
|
},
|
|
|
|
border: "hsl(var(--border))",
|
|
input: "hsl(var(--input))",
|
|
ring: "hsl(var(--ring))",
|
|
background: "hsl(var(--background))",
|
|
foreground: "hsl(var(--foreground))",
|
|
primary: {
|
|
DEFAULT: "hsl(var(--primary))",
|
|
foreground: "hsl(var(--primary-foreground))",
|
|
},
|
|
secondary: {
|
|
DEFAULT: "hsl(var(--secondary))",
|
|
foreground: "hsl(var(--secondary-foreground))",
|
|
},
|
|
destructive: {
|
|
DEFAULT: "hsl(var(--destructive))",
|
|
foreground: "hsl(var(--destructive-foreground))",
|
|
},
|
|
muted: {
|
|
DEFAULT: "hsl(var(--muted))",
|
|
foreground: "hsl(var(--muted-foreground))",
|
|
},
|
|
accent: {
|
|
DEFAULT: "hsl(var(--accent))",
|
|
foreground: "hsl(var(--accent-foreground))",
|
|
},
|
|
popover: {
|
|
DEFAULT: "hsl(var(--popover))",
|
|
foreground: "hsl(var(--popover-foreground))",
|
|
},
|
|
card: {
|
|
DEFAULT: "hsl(var(--card))",
|
|
foreground: "hsl(var(--card-foreground))",
|
|
},
|
|
},
|
|
borderRadius: {
|
|
lg: "var(--radius)",
|
|
md: "calc(var(--radius) - 2px)",
|
|
sm: "calc(var(--radius) - 4px)",
|
|
},
|
|
keyframes: {
|
|
"accordion-down": {
|
|
from: { height: "0" },
|
|
to: { height: "var(--radix-accordion-content-height)" },
|
|
},
|
|
"accordion-up": {
|
|
from: { height: "var(--radix-accordion-content-height)" },
|
|
to: { height: "0" },
|
|
},
|
|
},
|
|
animation: {
|
|
"accordion-down": "accordion-down 0.2s ease-out",
|
|
"accordion-up": "accordion-up 0.2s ease-out",
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
plugin(function ({ addBase }) {
|
|
addBase({
|
|
html: { fontSize: "16px" }, // 16px es el valor por defecto
|
|
});
|
|
}),
|
|
],
|
|
};
|