Files
api/web/tailwind.config.ts
Michael Datelle 6669a963af refactor: unraid ui cleanup and migration (#998)
Co-authored-by: Eli Bosley <ekbosley@gmail.com>
Co-authored-by: Pujit Mehrotra <pujit@lime-technology.com>
Co-authored-by: mdatelle <mike@datelle.net>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zack Spear <zackspear@users.noreply.github.com>
2025-01-15 11:15:52 -05:00

35 lines
942 B
TypeScript

import 'dotenv/config';
import tailwindConfig from '@unraid/ui/tailwind.config';
import type { Config } from 'tailwindcss';
import remToRem from './utils/tailwind-rem-to-rem';
export default {
presets: [tailwindConfig],
content: [
// Web components
'./components/**/*.ce.{js,vue,ts}',
// Regular Vue components
'./components/**/*.{js,vue,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
],
mode: 'jit',
safelist: [],
plugins: [
remToRem({
baseFontSize: 16,
/**
* The font size where the web components will be rendered in production.
* Required due to the webgui using the 62.5% font-size "trick".
* Set an env to 16 for local development and 10 for everything else.
*/
newFontSize: Number(process.env.VITE_TAILWIND_BASE_FONT_SIZE ?? 10),
}),
],
theme: {
extend: {
// web-specific extensions only
},
},
} satisfies Partial<Config>;