Skip to content
Back to skills

White Label

ASecurity

The developer gives the admin the brand of the agency or the product in code, in `app.config.ts` under `pluto.brand`. The client then sees that brand, not Pluto. There is no settings page: the brand is part of the site code, reviewed in Git (the roadmap principle "the developer decides, the client edits").

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 7, 2026
developmentgovuegit

Works with

  • cli

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add plutocms/pluto --skill white-label --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of White Label?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for White Label
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/plutocms-white-label/badge)](https://www.skillsdirectory.com/skills/plutocms-white-label)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# White label

The developer gives the admin the brand of the agency or the product in code, in `app.config.ts`
under `pluto.brand`. The client then sees that brand, not Pluto. There is no settings page: the
brand is part of the site code, reviewed in Git (the roadmap principle "the developer decides, the
client edits").

## Files

- `shared/types/brand.ts` — `PlutoBrand`, and the `AppConfig` / `AppConfigInput` augmentation for
  `pluto.brand`.
- `shared/utils/brand.ts` — pure helpers: `plutoBrandScale(hex)`, `plutoBrandCss(brand)`,
  `plutoBrandContrast(hex)`, `isPlutoBrandHex(value)`, `PLUTO_BRAND_STEPS`. The names have the
  `pluto` prefix: `shared/utils` is auto-imported into every app.
- `app/composables/pluto-brand.ts` — `usePlutoBrand()`: `brand`, `plutoLinks`, `css`.
- `app/components/Pluto/PlutoRoot.vue` — adds the brand CSS to the head (`key: 'pluto-brand'`),
  warns in development about a bad primary, and uses `brand.name` as the last fallback of the
  tab title.
- `PlutoAdminNavbar.vue`, `PlutoAdminAuthCard.vue`, `PlutoAdminUserMenu.vue` — the logos and links.
- Tests: `test/brand.test.ts`.

## Fields

| Field                 | Effect                                                                                                                                                             |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `name`                | Alt text of the logos; the label of the `url` item; the tab title fallback (after the site name).                                                                  |
| `logo`                | The logo on a light background: the sign-in card in light mode.                                                                                                    |
| `logoDark`            | The logo on a dark background: the navbar (dark in both modes) and the sign-in card in dark mode.                                                                  |
| `mark`                | The small logo in the navbar below `sm`. Default `logoDark`, then `logo`.                                                                                          |
| `url`                 | A user menu item that opens the agency site.                                                                                                                       |
| `helpUrl`             | A "Help" item (`pluto.navbar.help`) in the user menu.                                                                                                              |
| `primary`             | A hex color. Core makes the 11-step primary scale from it.                                                                                                         |
| `radius`              | The admin `--ui-radius`, in rem (default 0.25).                                                                                                                    |
| `font`, `fontDisplay` | The admin text font and page title font (`font-family` values). The app loads the fonts. `fontDisplay` defaults to `font`, then the admin text font (Public Sans). |
| `plutoLinks`          | `false` hides "Pluto on GitHub" in the user menu.                                                                                                                  |

With a logo, the navbar and the sign-in card show `<img>` elements (`object-contain`, at most
10rem wide in the navbar, 12rem on the card) instead of `PlutoLogo`. With no logo they keep the
Pluto logo, so a brand can change only the colors.

## The primary scale

`plutoBrandScale(hex)` keeps the brand color as step 600 exactly, because light mode uses
`--ui-primary: var(--ui-color-primary-600)`: the primary button is the brand color. Dark mode uses
step 400. The other steps keep the lightness distances of a Tailwind scale toward 50 (L 0.971) and
950 (L 0.258), with less chroma at both ends. The values are OKLCH literals; the browser maps an
out-of-gamut value into sRGB.

A light brand color (yellow, light green) gives white text below 4.5:1 on the primary button.
`PlutoRoot` warns in development with the ratio. A value that is not a hex is ignored, with a
warning. A color name (`emerald`) is not accepted on purpose: the brand CSS is an inline style,
not part of the Tailwind build, so Tailwind may not emit the `--color-emerald-*` variables.

Chart slot 1 reads the primary scale (`--ui-color-primary-600`, dark `-500`), so the brand
recolors it. The other chart slots and the status colors stay as validated.

## The CSS

`plutoBrandCss(brand)` returns one rule, or an empty string when the brand sets no style field. The
selector is the two admin selectors twice:
`:root[data-pluto-admin][data-pluto-admin], [data-pluto-admin-scope][data-pluto-admin-scope]`. The
higher specificity wins over `admin-theme.css` and the radius rule in `pluto-layer.css` in any load
order. The rule sets the primary scale only: the semantic tokens (`--ui-primary` and the dark
step) are `var()` references to the scale on the same element, so they follow. The same holds for
the `--radius-*` tokens, which are `calc()` of `--ui-radius`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.