Files
OPEN_CODEX_API/tailwind.config.ts
T
2026-05-16 19:29:25 -03:00

152 lines
5.0 KiB
TypeScript

import type { Config } from "tailwindcss";
export default {
darkMode: ["class"],
content: ["./pages/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}", "./app/**/*.{ts,tsx}", "./src/**/*.{ts,tsx}"],
prefix: "",
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
fontFamily: {
sans: ['Inter', 'system-ui', 'sans-serif'],
},
colors: {
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))",
hover: "hsl(var(--primary-hover))",
pressed: "hsl(var(--primary-pressed))",
light: "hsl(var(--primary-light))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
success: {
DEFAULT: "hsl(var(--success))",
foreground: "hsl(var(--success-foreground))",
},
warning: {
DEFAULT: "hsl(var(--warning))",
foreground: "hsl(var(--warning-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))",
},
sidebar: {
DEFAULT: "hsl(var(--sidebar-background))",
foreground: "hsl(var(--sidebar-foreground))",
primary: "hsl(var(--sidebar-primary))",
"primary-foreground": "hsl(var(--sidebar-primary-foreground))",
accent: "hsl(var(--sidebar-accent))",
"accent-foreground": "hsl(var(--sidebar-accent-foreground))",
border: "hsl(var(--sidebar-border))",
ring: "hsl(var(--sidebar-ring))",
},
"bubble-bot": "hsl(var(--bubble-bot))",
"nav-active": "hsl(var(--nav-active))",
"input-bg": "hsl(var(--input-bg))",
placeholder: "hsl(var(--placeholder))",
"btn-secondary-border": "hsl(var(--btn-secondary-border))",
"border-subtle": "hsl(var(--border-subtle))",
},
borderRadius: {
sm: "var(--radius-sm)",
md: "var(--radius-md)",
lg: "var(--radius-lg)",
xl: "var(--radius-xl)",
"2xl": "20px",
pill: "var(--radius-pill)",
},
boxShadow: {
card: "var(--shadow-card)",
modal: "var(--shadow-modal)",
},
fontSize: {
display: ["32px", { lineHeight: "1.25", fontWeight: "700" }],
h1: ["24px", { lineHeight: "1.25", fontWeight: "600" }],
h2: ["18px", { lineHeight: "1.5", fontWeight: "600" }],
h3: ["15px", { lineHeight: "1.5" }],
body: ["14px", { lineHeight: "1.5" }],
small: ["12px", { lineHeight: "1.5" }],
caption: ["11px", { lineHeight: "1.5" }],
},
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" },
},
"pulse-glow": {
"0%, 100%": {
boxShadow: "0 0 20px hsl(210 100% 33% / 0.3)",
transform: "scale(1)"
},
"50%": {
boxShadow: "0 0 40px hsl(210 100% 33% / 0.5)",
transform: "scale(1.02)"
},
},
"online-pulse": {
"0%, 100%": {
boxShadow: "0 0 0 0 hsl(134 61% 41% / 0.7)",
opacity: "1",
},
"50%": {
boxShadow: "0 0 0 4px hsl(134 61% 41% / 0)",
opacity: "0.85",
},
},
"slide-in-right": {
"0%": { transform: "translateX(100%)", opacity: "0" },
"100%": { transform: "translateX(0)", opacity: "1" },
},
"fade-in": {
"0%": { opacity: "0", transform: "translateY(10px)" },
"100%": { opacity: "1", transform: "translateY(0)" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"pulse-glow": "pulse-glow 2s ease-in-out infinite",
"online-pulse": "online-pulse 1.5s ease-in-out infinite",
"slide-in-right": "slide-in-right 0.3s ease-out",
"fade-in": "fade-in 0.3s ease-out",
},
},
},
plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
} satisfies Config;