Skip to content

Themeing

Iridium has native support for Shadcn compatiable themes. Each UI element will adopt your particular styling.

Finding a theme

There are a variety of website to generate a Shadcn theme. Here are a few options after a quick google search:

  1. jln
  2. tweakcn
  3. shadcn studio

Applying a theme

Your iridium panel provides a method for specifying a theme css file.

Create your css file, and serve it locally from the mux you create in your main file. Iridium will pick up the file and adapt automatically.

go
return panel.NewPanel(mux).
		ID("admin").
		SetThemePath("./static/theme.css").

Be sure to consider embedding the file if you'll need to in any future deployments

Released under the MIT License.