teableio_teable/packages/ui-lib/tailwind.config.cjs
Bieber 4f4c0f2824
[sync] Fix Sentry Release (T1750) (#1094) (#2471)
Synced from teableio/teable-ee@d43bb45

Co-authored-by: teable-bot <bot@teable.io>
2026-01-22 18:13:14 +08:00

29 lines
870 B
JavaScript

const { join } = require('path');
const deepMerge = require('deepmerge');
const shadcnuiConfig = require('./tailwind.shadcnui.config.cjs');
const filePath = join(__dirname, './src/**/*.{js,ts,jsx,tsx}');
const buildFilePath = join(__dirname, './dist/**/*.{js,ts,jsx,tsx}');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [filePath, buildFilePath],
darkMode: ['class'],
theme: deepMerge(
{
extend: {
colors: {
warning: 'hsl(var(--warning))',
'warning-foreground': 'hsl(var(--warning-foreground))',
'border-high': 'hsl(var(--border-high))',
success: 'hsl(var(--success))',
'success-foreground': 'hsl(var(--success-foreground))',
surface: 'hsl(var(--surface))',
},
},
},
shadcnuiConfig.theme
),
plugins: [...shadcnuiConfig.plugins],
};