Skip to content
Corex docs
Soonex
Join waitlist

One config block, four themes

June 2, 2026 · How Soonex turns a handful of color seeds into four complete themes with readable light and dark modes.

  • Design
  • Themes
All tags
Abstract blue, orange, and yellow fluid shapes

Soonex has no theme stylesheets to maintain. The whole look comes from one block in config/config.exs, which Corex Design turns into tokens and component CSS.

Seeds, not palettes

Each theme declares a few seed colors. Corex generates the full scale from them, including the ink, surface, border, and accent pairs, and checks that text stays readable against its background.

config :corex_design, default_theme: :neo, themes: %{ neo: %{seeds: %{accent: "#7c5cff"}}, uno: %{seeds: %{accent: "#0f766e"}} } 

After editing, rebuild the generated CSS:

mix corex.design.build 

What you can change

KeyWhat it controls
seedsBase colors the palette is generated from
colors.light / colors.darkPer-mode overrides for specific tokens
dimensions.radiusCorner rounding across components
dimensions.fontFont family stacks
typographyType scale and weights

Try it live

Open Template Options in the bottom corner of any page to switch between neo, uno, duo, and leo, or flip between light and dark mode. Your choice is saved locally, so it sticks as you move around the site.

Tip

Keep the contrast targets that Corex generates. If a color feels too strong, adjust the seed instead of overriding individual text tokens.