Files
Vinicius LourençoandGitHub 0ffb228439 Better cjs/esm support & Better bundle (#118)
* fix(package): better compatibility with cjs/esm

* refactor(components): try optimize bundle output

* refactor(index): use tailwind config

* feat(vite): migrate from tsdown

* feat(biome): migrate from eslint

* fix(vite): last config to correct d.ts of cjs
2026-02-25 13:06:25 +05:30

48 lines
1.3 KiB
JavaScript

import { ColorTailwind } from '@signozhq/design-tokens';
export default {
darkMode: ['class'],
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
colors: {
background: 'var(--background)',
foreground: 'var(--foreground)',
card: 'var(--card)',
'card-foreground': 'var(--card-foreground)',
popover: 'var(--popover)',
'popover-foreground': 'var(--popover-foreground)',
primary: 'var(--primary)',
'primary-foreground': 'var(--primary-foreground)',
secondary: 'var(--secondary)',
'secondary-foreground': 'var(--secondary-foreground)',
muted: 'var(--muted)',
'muted-foreground': 'var(--muted-foreground)',
accent: 'var(--accent)',
'accent-foreground': 'var(--accent-foreground)',
destructive: 'var(--destructive)',
'destructive-foreground': 'var(--destructive-foreground)',
border: 'var(--border)',
input: 'var(--input)',
ring: 'var(--ring)',
chart: {
1: 'var(--chart-1)',
2: 'var(--chart-2)',
3: 'var(--chart-3)',
4: 'var(--chart-4)',
5: 'var(--chart-5)',
},
...ColorTailwind,
},
},
},
};