Customize the appearance of Cedar-OS components
stylingSlice
and integrates seamlessly with Tailwind CSS. This guide covers how to customize the appearance of Cedar components and ensure proper Tailwind configuration.
@source
directive to your main CSS file:
tailwind.config.js
:
stylingSlice
that manages global styling configuration for all Cedar components. This allows you to customize colors, dark mode, and other visual properties across your entire application.
cn
utility (similar to clsx
) for combining class names:
toggleDarkMode()
, all Cedar components will update their appearance.
cedar-os
and components are properly installeddark
class is being applied to your <html>
elementclass
strategy for dark mode: