Prologue
Getting Started
Dark Mode
Colors
Drag-and-drop
Forms
Utilities
Inertia.js
Ready to give your Inertia.js project that sleek, dark mode look? Check out this guide and get your app looking smooth and stylish in the dark.
Theme Provider
When you’re rockin' Inertia.js, gotta whip up a provider called theme-provider.tsx
and drop it in the resources/js/components
folder.
Root App
Not sure if you're rollin' with Inertia.js on Ruby or Laravel, but if it's Laravel, you can stash it in your resources/js/app.tsx
like this:
Theme Switcher
Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.
Group Providers
When you're juggling multiple providers, like React Aria Components, you need a RouterProvider
. To combine 'em all, just create a new file called providers.tsx
in your resources/js
folder and drop in this code:
Next up, tweak your resources/js/app.tsx
file to include this: