You're reading docs for Nextly Alpha. APIs may change between releases.

Admin Panel

Branding

Customize the admin panel logo, favicon, brand colors, and Visual Schema Builder visibility.

The admin.branding key in nextly.config.ts controls the visual identity of the admin panel. You can replace the default logo, set a custom favicon, override the primary and accent brand colors, and toggle the Visual Schema Builder's visibility.

Full example

nextly.config.ts
import { defineConfig } from "nextly";

export default defineConfig({
  admin: {
    branding: {
      logoUrl: "/logo.svg",
      logoUrlLight: "/logo-light.svg",
      logoUrlDark: "/logo-dark.svg",
      logoText: "Acme CMS",
      favicon: "/favicon.ico",
      colors: {
        primary: "#6366f1",
        accent: "#f59e0b",
      },
    },
  },
});

You can ship a single logo for both light and dark modes, or a separate logo per mode.

OptionTypeDescription
logoUrlstringLogo image URL used in both modes. Absolute URL or path under your Next.js public/ directory. When set, takes priority over the per-mode variants.
logoUrlLightstringLogo for light mode. Used when logoUrl is not set.
logoUrlDarkstringLogo for dark mode. Used when logoUrl is not set.
logoTextstringText shown in the sidebar header. Doubles as the alt attribute on the logo image. Default: "Nextly".

If neither logoUrl nor the per-mode variants are set, the sidebar falls back to a default Nextly mark and shows logoText next to it.

nextly.config.ts
// Single logo for both modes
admin: {
  branding: {
    logoUrl: "/logo.svg",
    logoText: "Acme CMS",
  },
},
nextly.config.ts
// Separate logos per mode
admin: {
  branding: {
    logoUrlLight: "/logo-light.svg",
    logoUrlDark: "/logo-dark.svg",
    logoText: "Acme CMS",
  },
},

The mode-aware variants are wired up in packages/admin/src/components/shared/ThemeAwareLogo.tsx, which switches between logoUrlLight and logoUrlDark based on the resolved theme. logoUrl always wins when set.

Favicon

favicon injects a custom favicon into every admin page (the <link rel="icon"> element is replaced at runtime).

nextly.config.ts
admin: {
  branding: {
    favicon: "/favicon.ico",
  },
},

The path can be absolute or a path under your Next.js public/ folder. Common formats: .ico, .png, .svg. If favicon is unset, the admin uses a default inline SVG that follows the user's prefers-color-scheme. Browsers do not reliably react to JS-driven theme toggles for favicons, so the in-app dark/light switch will not change the favicon on the fly.

Brand colors

nextly.config.ts
admin: {
  branding: {
    colors: {
      primary: "#6366f1",  // indigo
      accent: "#f59e0b",   // amber
    },
  },
},

branding.colors accepts two 6-digit hex tokens that the admin actually consumes:

TokenTypeUsed for
primaryhex stringPrimary brand color (replaces the default blue): buttons, active states, links, focus rings, field accents.
accenthex stringAccent brand color (replaces the default cyan): secondary highlights.

Foreground colors for text and icons over each background are calculated automatically to meet WCAG AA contrast — you do not configure them. Both tokens are converted to HSL on the server and injected as CSS custom properties (--primary, --primary-foreground, --accent, --accent-foreground) so the change applies globally without runtime JS work. Invalid hex values are silently dropped; only #rrggbb is recognised.

If your nextly.config.ts is imported by your app's layout.tsx, you can render the generated CSS yourself with getBrandingCss(config.admin?.branding) from nextly/config to avoid a flash of default colors before the admin's runtime fetch.

Schema Builder visibility

The Visual Schema Builder (Collections Builder, Singles Builder, Field Groups Builder) is off in production, whatever the configuration says: schema reaches production through migrations (see Production migrations). Outside production it is on, and showBuilder: false turns it off.

Off, the builder is unavailable to everyone, super-admins included: its sidebar entry is hidden, a direct visit to a builder page returns to the dashboard, and the server refuses every schema change made through the admin API with a BUILDER_DISABLED error. Entry editing is unaffected.

ValueDevelopment and testProduction
Not set (default)OnOff
falseOffOff
trueOnOff. The server logs once at start that the setting has no effect there.
nextly.config.ts
// Turn the builder off in development too
admin: {
  branding: {
    showBuilder: false,
  },
},

The setting is evaluated on the server and sent to the admin in the /admin/api/admin-meta response, so a change takes effect on the next admin reload. With the builder off, define your schema in code (nextly.config.ts). Who may use the builder when it is on is still decided by roles and permissions.

Branding options reference

OptionTypeDefaultDescription
logoUrlstring—Logo image URL (used in both modes when set)
logoUrlLightstring—Logo for light mode
logoUrlDarkstring—Logo for dark mode
logoTextstring"Nextly"Sidebar header text and logo alt attribute
faviconstring—Custom favicon URL
colors.primarystring (hex)—Primary brand color
colors.accentstring (hex)—Accent brand color
showBuilderbooleanon outside productionfalse turns the Visual Schema Builder off outside production; it is always off in production

Next steps