mirror of
https://github.com/teableio/teable.git
synced 2026-02-19 17:19:50 +08:00
29 lines
870 B
JavaScript
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],
|
|
};
|