Files
copilotkit__copilotkit/docs/tailwind.config.js
2025-05-17 04:15:20 -04:00

159 lines
4.1 KiB
JavaScript

import { createPreset } from 'fumadocs-ui/tailwind-plugin';
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ['class'],
content: [
'./lib/icons/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./content/**/*.{md,mdx}',
'./mdx-components.{ts,tsx}',
'./node_modules/fumadocs-ui/dist/**/*.js',
],
safelist: [
'xl:grid-cols-1',
'xl:grid-cols-2',
'xl:grid-cols-3',
'xl:grid-cols-4',
'xl:col-span-2',
'xl:col-span-3',
'xl:col-span-4',
'prose',
'prose-headings',
'prose-lead',
'prose-p',
'prose-blockquote',
'prose-figure',
'prose-figcaption',
'prose-strong',
'prose-em',
'prose-code',
'prose-pre',
'prose-ol',
'prose-ul',
'prose-li',
'prose-table',
'prose-thead',
'prose-tr',
'prose-th',
'prose-td',
'prose-img',
'prose-video',
'prose-hr',
'prose-a',
'dark:prose-invert'
],
presets: [createPreset()],
plugins: [
require("tailwindcss-animate"),
require("@tailwindcss/typography"),
],
theme: {
extend: {
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)'
},
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))'
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))'
},
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))'
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))'
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))'
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))'
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
muted: 'hsl(var(--destructive-muted))',
'muted-foreground': 'hsl(var(--destructive-muted-foreground))'
},
success: {
DEFAULT: 'hsl(var(--success))',
foreground: 'hsl(var(--success-foreground))',
muted: 'hsl(var(--success-muted))',
'muted-foreground': 'hsl(var(--success-muted-foreground))'
},
warning: {
DEFAULT: 'hsl(var(--warning))',
foreground: 'hsl(var(--warning-foreground))',
muted: 'hsl(var(--warning-muted))',
'muted-foreground': 'hsl(var(--warning-muted-foreground))'
},
error: {
DEFAULT: 'hsl(var(--error))',
foreground: 'hsl(var(--error-foreground))',
muted: 'hsl(var(--error-muted))',
'muted-foreground': 'hsl(var(--error-muted-foreground))'
},
info: {
DEFAULT: 'hsl(var(--info))',
foreground: 'hsl(var(--info-foreground))',
muted: 'hsl(var(--info-muted))',
'muted-foreground': 'hsl(var(--info-muted-foreground))'
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
chart: {
'1': 'hsl(var(--chart-1))',
'2': 'hsl(var(--chart-2))',
'3': 'hsl(var(--chart-3))',
'4': 'hsl(var(--chart-4))',
'5': 'hsl(var(--chart-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'
}
}
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out'
},
typography: {
DEFAULT: {
css: {
maxWidth: 'none',
},
},
},
}
}
};