mirror of
https://github.com/unraid/api.git
synced 2026-01-01 22:20:05 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced enhanced stepper components for smoother multi-step interactions. - Added new loading indicators and improved the loading experience with customizable variants. - **UI Improvements** - Refreshed the global color palette and updated styling across buttons, badges, and loading indicators for a more modern, consistent experience. - Improved the organization and readability of templates and styles across various components. - **Code & Dependency Updates** - Updated key dependencies and revised the theme and configuration settings to improve performance and maintainability. - Introduced new environment variables for better configuration management. - **Legacy Cleanup** - Removed deprecated components and streamlined registrations to simplify the codebase without affecting end-user functionality. - Eliminated unused utility functions and legacy code to enhance overall code quality. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: mdatelle <mike@datelle.net> Co-authored-by: Eli Bosley <ekbosley@gmail.com>
35 lines
961 B
TypeScript
35 lines
961 B
TypeScript
import 'dotenv/config';
|
|
import tailwindRemToRem from '@unraid/tailwind-rem-to-rem';
|
|
import tailwindConfig from '@unraid/ui/tailwind.config.ts';
|
|
import type { Config } from 'tailwindcss';
|
|
|
|
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: [
|
|
tailwindRemToRem({
|
|
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>;
|