Files
flatrender/tailwind.config.ts

120 lines
3.5 KiB
TypeScript

import type { Config } from "tailwindcss";
const config: Config = {
darkMode: ["class"],
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "#2563EB",
foreground: "#ffffff",
50: "#eff6ff",
100: "#dbeafe",
200: "#bfdbfe",
300: "#93c5fd",
400: "#60a5fa",
500: "#3b82f6",
600: "#2563EB",
700: "#1d4ed8",
800: "#1e40af",
900: "#1e3a8a",
950: "#172554",
},
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))",
},
rf: {
blue: "#2563EB",
"blue-light": "#EFF6FF",
},
neutral: {
50: "#fafafa",
100: "#f5f5f5",
200: "#e5e5e5",
300: "#d4d4d4",
400: "#a3a3a3",
500: "#737373",
600: "#525252",
700: "#404040",
800: "#262626",
900: "#171717",
950: "#0a0a0a",
},
},
fontFamily: {
heading: ["var(--font-heading)", "var(--font-vazirmatn)", "sans-serif"],
body: ["var(--font-body)", "var(--font-vazirmatn)", "sans-serif"],
vazirmatn: ["var(--font-vazirmatn)", "sans-serif"],
},
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" },
},
"carousel-scroll": {
from: { transform: "translateX(0)" },
to: { transform: "translateX(-50%)" },
},
"slide-preview": {
"0%": { transform: "translateX(-6px)", opacity: "0.5" },
"100%": { transform: "translateX(6px)", opacity: "1" },
},
"zoom-preview": {
"0%": { transform: "scale(0.85)" },
"100%": { transform: "scale(1.08)" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"carousel-scroll": "carousel-scroll 40s linear infinite",
"slide-preview": "slide-preview 0.4s ease-out forwards",
"zoom-preview": "zoom-preview 0.4s ease-out forwards",
},
},
},
plugins: [require("tailwindcss-animate")],
};
export default config;