The Porsche Design System mandates a minimum version of Tailwind CSS v4. Please ensure your installation meets this requirement.
@import 'tailwindcss';
@import '@porsche-design-system/components-{js|angular|react|vue}/tailwindcss';
.dark or .auto to the <html> element. This change
will apply the selected theme to all child elements. To implement a three-way theme toggle (light, dark, auto),
dynamically update the <html> element’s class using JavaScript:document.documentElement.classList.remove('light', 'dark', 'auto');
document.documentElement.classList.add(theme); // theme is the selected theme here ('light', 'dark' or 'auto')
-light or -dark suffix..bg-surface — Automatically adapts to the closest .light, .dark, or .auto class on a parent HTML element..bg-surface-light — Forces the light theme color..bg-surface-dark — Forces the dark theme color.