import tokens from "./tokens/tokens"; /** @type {import('tailwindcss').Config} */ module.exports = { content: [ "./apps/**/*.{js,jsx,ts,tsx}", "./libs/app-common/src/**/*.{js,jsx,ts,tsx}", "./libs/core/src/**/*.{js,jsx,ts,tsx}", "./libs/editor/src/**/*.{js,jsx,ts,tsx}", "./libs/datamanager/src/**/*.{js,jsx,ts,tsx}", "./libs/ui/src/**/*.{js,jsx,ts,tsx}", "./libs/storybook/**/*.{js,jsx,ts,tsx}", ], theme: { extend: { colors: { // DO NOT USE THESE COLORS // Refer to the Figma tokens instead // These are values from the old tailwind.config.js and Shadcn/UI introduction current: "currentColor", transparent: "transparent", 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))", }, // Add all colors from tokens ...tokens.colors, }, fontSize: { // Add all font sizes from tokens ...tokens.typography.fontSize, }, lineHeight: { // Add all line heights from tokens ...tokens.typography.lineHeight, }, letterSpacing: { // Add all letter spacings from tokens ...tokens.typography.letterSpacing, }, fontFamily: { // Add all font families from tokens ...tokens.typography.fontFamily, }, fontWeight: { // Add all font weights from tokens ...tokens.typography.fontWeight, }, spacing: { 4.5: "1.125rem", 5.5: "1.375rem", 6.5: "1.625rem", 7.5: "1.875rem", 8.5: "2.125rem", 10.5: "2.625rem", 11.5: "2.875rem", 12.5: "3.125rem", 13: "3.25rem", 13.5: "3.375rem", 14.5: "3.625rem", 15: "3.75rem", 15.5: "3.875rem", 16: "4rem", 17: "4.25rem", 17.5: "4.375rem", 18: "4.5rem", 18.5: "4.625rem", 19: "4.75rem", 21: "5.25rem", 21.5: "5.375rem", 22: "5.5rem", 22.5: "5.625rem", 25: "6.25rem", 27: "6.75rem", 27.5: "6.875rem", 29: "7.25rem", 29.5: "7.375rem", 30: "7.5rem", 32.5: "8.125rem", 35: "8.75rem", 37.5: "9.375rem", 40: "10rem", 42.5: "10.625rem", 45: "11.25rem", 46: "11.5rem", 47.5: "11.875rem", 50: "12.5rem", 55: "13.75rem", 60: "15rem", 65: "16.25rem", 67: "16.75rem", 67.5: "16.875rem", 90: "22.5rem", // Add all spacing from tokens ...tokens.spacing, }, maxWidth: { "c-1390": "86.875rem", "c-1315": "82.188rem", "c-1280": "80rem", "c-1235": "77.188rem", "c-1154": "72.125rem", "c-1016": "63.5rem", }, zIndex: { 99999: "99999", 999: "999", 1: "1", }, opacity: { 65: ".65", }, transitionProperty: { width: "width" }, boxShadow: { "solid-l": "0px 10px 120px 0px rgba(45, 74, 170, 0.1)", "solid-2": "0px 2px 10px rgba(122, 135, 167, 0.05)", "solid-3": "0px 6px 90px rgba(8, 14, 40, 0.04)", "solid-4": "0px 6px 90px rgba(8, 14, 40, 0.1)", "solid-5": "0px 8px 24px rgba(45, 74, 170, 0.08)", "solid-6": "0px 8px 24px rgba(10, 16, 35, 0.08)", "solid-7": "0px 30px 50px rgba(45, 74, 170, 0.1)", "solid-8": "0px 12px 120px rgba(45, 74, 170, 0.06)", "solid-9": "0px 12px 30px rgba(45, 74, 170, 0.06)", "solid-10": "0px 8px 30px rgba(45, 74, 170, 0.06)", "solid-11": "0px 6px 20px rgba(45, 74, 170, 0.05)", "solid-12": "0px 2px 10px rgba(0, 0, 0, 0.05)", "solid-13": "0px 2px 19px rgba(0, 0, 0, 0.05)", "border-1": "inset 0 0 0 1px rgba(0,0,0,1)", }, borderRadius: { lg: "var(--radius)", md: "calc(var(--radius) - 2px)", sm: "calc(var(--radius) - 4px)", // Add all border radii from tokens ...tokens.cornerRadius, }, backgroundPosition: { "shimmer-start": "left -2em top 0", }, backgroundSize: { "shimmer-size": "2em 100%", }, keyframes: { line: { "0%, 100%": { transform: "translateY(100%)" }, "50%": { transform: "translateY(0)" }, }, "accordion-down": { from: { height: "0" }, to: { height: "var(--radix-accordion-content-height)" }, }, "accordion-up": { from: { height: "var(--radix-accordion-content-height)" }, to: { height: "0" }, }, shimmer: { from: { "background-position": "left -2em top 0" }, to: { "background-position": "right -2em top 0" }, }, }, animation: { line1: "line 3s linear infinite", line2: "line 6s linear infinite", line3: "line 9s linear infinite", "accordion-down": "accordion-down 0.2s ease-out", "accordion-up": "accordion-up 0.2s ease-out", shimmer: "shimmer 1.3s ease infinite", }, }, }, corePlugins: { preflight: true, }, plugins: [require("tailwindcss-animate"), require("tailwind-scrollbar")], };