sourcebot/packages/web/tailwind.config.ts
Brendan Kellam 4ebe4e0475
Some checks failed
Publish to ghcr / build (linux/amd64, blacksmith-4vcpu-ubuntu-2404) (push) Has been cancelled
Publish to ghcr / build (linux/arm64, blacksmith-8vcpu-ubuntu-2204-arm) (push) Has been cancelled
Publish to ghcr / merge (push) Has been cancelled
chore(worker,web): Repo indexing stability improvements + perf improvements to web (#563)
2025-10-18 16:31:22 -07:00

166 lines
No EOL
6.9 KiB
TypeScript

import type { Config } from "tailwindcss"
const config = {
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: {
border: 'var(--border)',
input: 'var(--input)',
ring: 'var(--ring)',
background: 'var(--background)',
backgroundSecondary: 'var(--background-secondary)',
foreground: 'var(--foreground)',
primary: {
DEFAULT: 'var(--primary)',
foreground: 'var(--primary-foreground)'
},
secondary: {
DEFAULT: 'var(--secondary)',
foreground: 'var(--secondary-foreground)'
},
destructive: {
DEFAULT: 'var(--destructive)',
foreground: 'var(--destructive-foreground)'
},
muted: {
DEFAULT: 'var(--muted)',
foreground: 'var(--muted-foreground)',
accent: 'var(--muted-accent)'
},
accent: {
DEFAULT: 'var(--accent)',
foreground: 'var(--accent-foreground)'
},
popover: {
DEFAULT: 'var(--popover)',
foreground: 'var(--popover-foreground)'
},
card: {
DEFAULT: 'var(--card)',
foreground: 'var(--card-foreground)'
},
highlight: 'var(--highlight)',
link: 'var(--link)',
sidebar: {
DEFAULT: 'var(--sidebar-background)',
foreground: 'var(--sidebar-foreground)',
primary: 'var(--sidebar-primary)',
'primary-foreground': 'var(--sidebar-primary-foreground)',
accent: 'var(--sidebar-accent)',
'accent-foreground': 'var(--sidebar-accent-foreground)',
border: 'var(--sidebar-border)',
ring: 'var(--sidebar-ring)'
},
warning: 'var(--warning)',
error: 'var(--error)',
editor: {
background: 'var(--editor-background)',
foreground: 'var(--editor-foreground)',
caret: 'var(--editor-caret)',
selection: 'var(--editor-selection)',
selectionMatch: 'var(--editor-selection-match)',
gutterBackground: 'var(--editor-gutter-background)',
gutterForeground: 'var(--editor-gutter-foreground)',
gutterBorder: 'var(--editor-gutter-border)',
gutterActiveForeground: 'var(--editor-gutter-active-foreground)',
lineHighlight: 'var(--editor-line-highlight)',
tag: {
keyword: 'var(--editor-tag-keyword)',
name: 'var(--editor-tag-name)',
function: 'var(--editor-tag-function)',
label: 'var(--editor-tag-label)',
constant: 'var(--editor-tag-constant)',
definition: 'var(--editor-tag-definition)',
brace: 'var(--editor-tag-brace)',
type: 'var(--editor-tag-type)',
operator: 'var(--editor-tag-operator)',
tag: 'var(--editor-tag-tag)',
'bracket-square': 'var(--editor-tag-bracket-square)',
'bracket-angle': 'var(--editor-tag-bracket-angle)',
attribute: 'var(--editor-tag-attribute)',
string: 'var(--editor-tag-string)',
link: 'var(--editor-tag-link)',
meta: 'var(--editor-tag-meta)',
comment: 'var(--editor-tag-comment)',
emphasis: 'var(--editor-tag-emphasis)',
heading: 'var(--editor-tag-heading)',
atom: 'var(--editor-tag-atom)',
processing: 'var(--editor-tag-processing)',
separator: 'var(--editor-tag-separator)',
invalid: 'var(--editor-tag-invalid)',
quote: 'var(--editor-tag-quote)',
'annotation-special': 'var(--editor-tag-annotation-special)',
number: 'var(--editor-tag-number)',
regexp: 'var(--editor-tag-regexp)',
'variable-local': 'var(--editor-tag-variable-local)'
}
},
chat: {
reference: 'var(--chat-reference)',
'reference-hover': 'var(--chat-reference-hover)',
'reference-selected': 'var(--chat-reference-selected)',
'reference-selected-border': 'var(--chat-reference-selected-border)'
}
},
fontSize: {
editor: 'var(--editor-font-size)'
},
fontFamily: {
editor: 'var(--editor-font-family)'
},
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'
}
}
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'spin-slow': 'spin 1.5s linear infinite',
'bounce-slow': 'bounce 1.5s linear infinite',
'ping-slow': 'ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite'
}
}
},
plugins: [
// eslint-disable-next-line @typescript-eslint/no-require-imports
require("tailwindcss-animate"),
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('@tailwindcss/typography'),
],
} satisfies Config
export default config