Manual
How to set up Kõsori UI in your Next.js project.
Add theme provider
Add the <ThemeProvider />
component at the root of your app.
Add dark mode
Set darkMode
strategy to class
in your Tailwind CSS config file.
Add tailwind border radius
Overwrite the borderRadius
object in your theme
object.
Add tailwind colors
Extend the colors
object in your theme
object.
Add tailwind animations
Extend the keyframes
and animation
objects in your theme
object.
Add tailwind plugins
Add the tailwindcss-animate
plugin to your Tailwind CSS config.
Add css variables
Add the border radius and color variables to your CSS file. You can learn more about using CSS variables for theming in the colors section.
Add utilities
Create the cn()
utility function.