Files

104 lines
2.6 KiB
JavaScript

/** @type {import('tailwindcss').Config} */
module.exports = {
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: {
colors: {
// Primary colors
ink: {
DEFAULT: "#0A0A0A",
80: "rgba(10,10,10,.8)",
40: "rgba(10,10,10,.4)",
12: "rgba(10,10,10,.12)",
6: "rgba(10,10,10,.06)",
},
paper: {
DEFAULT: "#F4F2ED",
dark: "#ECEAE4",
},
white: "#FFFFFF",
// Accent
slash: {
DEFAULT: "#E8FF00",
dim: "rgba(232,255,0,.15)",
},
// Neutrals
meta: "#777",
border: "rgba(10,10,10,.1)",
"border-light": "rgba(10,10,10,.06)",
},
fontFamily: {
display: ["Syne", "sans-serif"],
mono: ["Geist Mono", "monospace"],
},
fontSize: {
"ds-xs": ["9px", { lineHeight: "1.4", letterSpacing: "0.14em" }],
"ds-sm": ["10px", { lineHeight: "1.5", letterSpacing: "0.12em" }],
"ds-base": ["11px", { lineHeight: "1.6" }],
"ds-md": ["12px", { lineHeight: "1.7" }],
"ds-lg": ["13px", { lineHeight: "1.6" }],
},
spacing: {
"sp-1": "4px",
"sp-2": "8px",
"sp-3": "12px",
"sp-4": "16px",
"sp-5": "20px",
"sp-6": "24px",
"sp-8": "32px",
"sp-10": "40px",
"sp-12": "48px",
"sp-16": "64px",
"sp-20": "80px",
"sp-24": "96px",
},
borderRadius: {
"r-sm": "4px",
"r-md": "8px",
"r-lg": "16px",
"r-full": "999px",
},
transitionTimingFunction: {
"ease-out": "cubic-bezier(.16,1,.3,1)",
"ease-in": "cubic-bezier(.4,0,1,1)",
},
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: {
"0%, 100%": { opacity: "1", transform: "scale(1)" },
"50%": { opacity: "0.5", transform: "scale(0.75)" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
pulse: "pulse 2s ease-in-out infinite",
},
},
},
plugins: [require("tailwindcss-animate")],
};