Files
ems/frontend/tailwind.config.ts
Dusan Vojacek ca6bd4ab2a responsivita: výšky grafů přes tailwind chart-*, viewport-fit=cover
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:24:10 +02:00

23 lines
536 B
TypeScript

import type { Config } from 'tailwindcss'
/** Responsivní výšky grafů: mobil chart-sm, tablet chart-md, desktop chart-lg (ekonomika chart-xl). */
const chartHeights = {
'chart-sm': '140px',
'chart-md': '200px',
'chart-lg': '260px',
'chart-xl': '280px',
} as const
export default {
darkMode: 'class',
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
height: chartHeights,
maxHeight: chartHeights,
minHeight: chartHeights,
},
},
plugins: [],
} satisfies Config