Presupuestador_web/client/tailwind.config.js

93 lines
2.4 KiB
JavaScript
Raw Normal View History

2024-06-06 11:05:54 +00:00
/** @type {import('tailwindcss').Config} */
import plugin from "tailwindcss/plugin";
export default {
darkMode: ["class"],
2024-10-01 11:43:10 +00:00
content: ["./src/**/*.{js,ts,jsx,tsx,html}"],
2024-06-06 11:05:54 +00:00
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
// https://tailwindcss.com/docs/font-family#font-families
2024-09-23 15:56:15 +00:00
/*fontFamily: {
2024-06-06 11:05:54 +00:00
sans: ['"Source Sans Pro"', ...defaultTheme.fontFamily.sans],
2024-09-23 15:56:15 +00:00
},*/
2024-10-01 11:43:10 +00:00
2024-09-23 15:56:15 +00:00
fontFamily: {
display: "Public Sans, ui-sans-serif",
heading: "Noto Serif, ui-serif",
2024-06-06 11:05:54 +00:00
},
colors: {
2024-09-23 15:56:15 +00:00
border: "hsl(240, 5.9%, 90%)",
input: "hsl(240, 5.9%, 90%)",
ring: "hsl(346.8, 77.2%, 49.8%)",
background: "hsl(0, 0%, 100%)",
foreground: "hsl(240, 10%, 3.9%)",
2024-06-06 11:05:54 +00:00
primary: {
2024-09-23 15:56:15 +00:00
DEFAULT: "hsl(346.8, 77.2%, 49.8%)",
foreground: "hsl(355.7, 100%, 97.3%)",
2024-06-06 11:05:54 +00:00
},
secondary: {
2024-09-23 15:56:15 +00:00
DEFAULT: "hsl(240, 4.8%, 95.9%)",
foreground: "hsl(240, 5.9%, 10%)",
2024-06-06 11:05:54 +00:00
},
destructive: {
2024-09-23 15:56:15 +00:00
DEFAULT: "hsl(0, 84.2%, 60.2%)",
foreground: "hsl(0, 0%, 98%)",
2024-06-06 11:05:54 +00:00
},
muted: {
2024-09-23 15:56:15 +00:00
DEFAULT: "hsl(240, 4.8%, 95.9%)",
foreground: "hsl(240, 3.8%, 46.1%)",
2024-06-06 11:05:54 +00:00
},
accent: {
2024-09-23 15:56:15 +00:00
DEFAULT: "hsl(240, 4.8%, 95.9%)",
foreground: "hsl(240, 5.9%, 10%)",
2024-06-06 11:05:54 +00:00
},
popover: {
2024-09-23 15:56:15 +00:00
DEFAULT: "hsl(0, 0%, 100%)",
foreground: "hsl(240, 10%, 3.9%)",
2024-06-06 11:05:54 +00:00
},
card: {
2024-09-23 15:56:15 +00:00
DEFAULT: "hsl(0, 0%, 100%)",
foreground: "hsl(240, 10%, 3.9%)",
2024-06-06 11:05:54 +00:00
},
},
borderRadius: {
2024-09-23 15:56:15 +00:00
lg: "0.3rem",
md: "calc(0.3rem - 2px)",
sm: "calc(0.3rem - 4px)",
2024-06-06 11:05:54 +00:00
},
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: [
2024-10-01 11:43:10 +00:00
require("tailwindcss-animate"),
2024-06-06 11:05:54 +00:00
plugin(function ({ addBase }) {
addBase({
html: { fontSize: "16px" }, // 16px es el valor por defecto
});
}),
],
};