Brand system

Make it clear. Make it Pop.

Every value on this page is generated from core/tokens.json, and the logo art is recoloured to match it — not the other way round. The palette was tuned for legibility on screens over eighteen rounds of review; the art follows it. The swatches below read their own hex at runtime, so nothing here can drift from the shipped theme.

Color

Four interactive hues carry the brand, every one named for the colour it is rather than for the role it plays. Each has a light-ground and a dark-ground value, and dark mode uses the dark one for buttons, badges, alerts and text — not only for backgrounds. The art is recoloured to these values; nothing here is sampled from it.

The brand hues

Pink

--c-pink

The “Pop”, and the rays. The loudest thing in the system, reserved for cta, and the one hue with the same value on both grounds.

Violet

--c-violet

The sparkle dots, and the structural hue — it takes primary. The one role whose 700 ink clears AA on its own tint.

Cyan

--c-cyan

The “Make”, and tertiary. Held at full brightness so it keeps 3:1 against all four light grounds, which is what the grounds were tuned for.

Lime

--c-lime

New at 1.0: the fourth accent after tertiary, as accent. Deep enough on light to carry white ink at 5.12:1.

The status hues

Navy

--c-navy

Anchors every dark surface and the body ink. Its 800 and 900 steps are the hand-set deep navy and midnight rather than mix results.

Gray

--c-gray

The stone gray V1 treats as the only gray — secondary and info share it.

Green

--c-green

success.

Red

--c-red

danger.

Amber

--c-amber

warning.

Shade scales

Every palette hue is auto-expanded: 100–400 mix in white, 600–900 mix in black, 500 is the hue itself. Generated in scripts/lib/brand.mjs — never authored, with two exceptions: --c-navy-800 and --c-navy-900 are the hand-set deep navy and midnight, and both sit monotonically below the generated 700 so the ladder still darkens all the way down. An interactive role's scale is generated per mode from that mode's fill, so --c-primary-700 means “a deeper primary” in whichever mode is reading.

Semantic roles

What product code should actually reference. Reach for var(--c-primary) before var(--c-violet-500): the role follows the mode and the hue does not.

Surfaces & ink

Neutrals

New at 1.0, so apps stop inventing their own. Every block below appears twice: once in the page's current mode and once inside a nested data-theme="dark" box, so both answers are on screen without touching the toggle. The names map one-for-one onto the local layer the tasks board and the artifacts app each built over a vendored 0.7.0, which is what lets those apps delete their copies at adoption.

Grounds, by height

Height rather than name: --bg-sunken is below the page, --bg-page is the page, --bg-raised is a card or panel or menu or input on it. --bg-body is kept as an alias of --bg-page, so stylesheets written against 0.x keep working. Body ink reads 11.9:1 or better on every one of them in light and 7.2:1 or better in dark.

This page's mode

--bg-sunken

Wells, code blocks, table headers.

--bg-page

The ground the page sits on.

--bg-raised

A card, panel, menu or input.

--bg-alt

The other ground, not the darker one.

--bg-tint

The tinted surface.

Dark

--bg-sunken

Wells, code blocks, table headers.

--bg-page

Deep navy.

--bg-raised

Navy, so a card never disappears into the page.

--bg-alt

Midnight.

--bg-tint

The tinted surface.

Always dark, in both modes

A band or a footer inside a light page. These three are the same colour whichever mode is on, and they carry the --text-on-dark ladder rather than the page ink. They replaced the --bg-dark-* family at 1.0.

--bg-navy

The band.

--bg-deep-navy

Also dark mode's page.

--bg-midnight

The footer. --bg-footer is the same value.

Interaction states — .mp-interactive

Hover, press and select on a neutral row, as one utility. The steps are quiet by design — 1.10:1 to 1.36:1 against their ground, the usual weight for a neutral state — so they are never the sole indicator: they ride alongside the cursor and aria-selected/aria-current, which is what the selector reads. --bg-selected is the one that is not neutral: it is a 9% primary tint, because a selected row should say which hue the product's selection is.

This page's mode — hover a row, hold the mouse down on it

A row at rest
Hovered — --bg-hover
Pressed — --bg-active
Selected — --bg-selected

Dark

A row at rest
Hovered — --bg-hover
Pressed — --bg-active
Selected — --bg-selected

Borders — three weights, warm

--border is the standard: cards, dividers, the sibling of an input. --border-subtle is quieter, --border-strong is hover and emphasis. All three are decorative at 1.22:1, 1.40:1 and 1.79:1 on white — they do not meet WCAG 1.4.11's 3:1 and must never be the sole indicator of state, focus or a control boundary. --border-input is the exception and the reason it exists: an input's border is its only boundary on a white card, so at 1.0 it reads as a control at 3.65:1. --border-card and --border-divider are aliases of --border.

This page's mode

--border-subtle
--border
--border-strong
--border-input

Dark

--border-subtle
--border
--border-strong
--border-input

Focus, scrim and disabled

One --focus-ring colour every component's focus draws from. The form still differs — a button keeps the outline, an input keeps the glow — but a consumer restyling focus has one value to change. --scrim is the dialog backdrop, which was a hard-coded rgb(0 0 0 / 50%) in each component before 1.0, and --disabled-opacity is the one weight every disabled control reads, replacing the 0.5 / 0.6 / 0.7 they picked for themselves. Tab to the button and the input below to see the ring.

This page's mode

--scrim

Dark

--scrim

Typography

Poppins for headings — a nod to the “Pop” — and Inter for body and UI. Both stacks name the real family first and fall back to system-ui. Since 1.0 the brand ships the font files and serves them: one stylesheet link, https://cdn.makepop.ai/fonts/fonts.css, and a page has the brand type with no third-party request and no build. Poppins 600/700/900 and Inter 400/500/600/700, latin subset.

AaBbCc 0123 &?!

Heading — Poppins

AaBbCc 0123 &?!

Body / UI — Inter

AaBbCc 0123 &?!

Mono — system stack

Size scale

Twelve steps, --fs-1 through --fs-12. Rendered here at their real size.

Weights

Line heights

--lh-tight · 1.1
Display headings, where the lines should lock together as one shape.

--lh-snug · 1.3
Subheads and short UI copy that still needs a little air between lines.

--lh-normal · 1.5
Body copy. The default for anything a person is expected to read a paragraph of.

Buttons

.mp-btn + a role. Solid / outline / ghost × 8 roles are generated from tokens.json. Note the CTA's ink: white on the logo pink is only 3.40:1, so the generator flips it to charcoal rather than assuming white.

Solid

Outline

Ghost

Sizes

Shape, state, and links

Anchor as button

These same buttons on navy are in On dark.

On dark

The always-dark band: a navy panel placed inside a page, dark in both modes, like a hero or a footer. It is a design element, not a mode, so it uses one of the three named always-dark grounds (--bg-navy, --bg-deep-navy, --bg-midnight) and the --text-on-dark ladder rather than the page tokens. Those three replaced the --bg-dark-* family at 1.0, which was a second dark system beside dark mode. For the whole page going dark, see Light & dark just below.

Typography

Make it clear. Make it Pop.

Lede copy takes --text-on-dark-secondary at 7.9:1, and --text-on-dark-muted is one step quieter at 5.0:1. Cyan is --text-on-dark-accent: a label and link tone, never a body tone. It is the cyan 300 rather than the 500, which is 3.7:1 here and would have been a label nobody could read.

Body copy is --text-on-dark, plain white, at 12.8:1. Links go cyan here rather than --text-link: the light-mode link is tuned for white and collapses on navy — this is the cyan. Pink is display-only on this surface. At 3.8:1 it clears the bar for large text, as in the heading above, and misses it for a paragraph.


Solid buttons — every role holds

Ghost — brings its own light surface

Outline — white, not a role

.mp-btn-outline-* fills its ink from the role's darkest shade, which is drawn against white — outline-primary would land purple-on-navy at 2.2:1. .mp-btn-outline-white is the one variant that keys off a neutral instead of a role, and it exists for exactly this surface.

Two components carry this surface themselves and don't need a slab around them: .mp-card-dark in Cards, and .mp-accordion-dark in Accordion.

Light & dark

One choice for the whole fleet. The toggle in the header cycles System → Light → Dark and stores it in a cookie on the parent domain, so it carries to every MakePop app on any makepop.ai address and survives a browser restart for a year. System (the default) follows the operating system. Switch it and scroll the whole page — every section is the same markup in both modes, with no dark-mode CSS anywhere in components.css.

<script src="https://cdn.makepop.ai/theme.js"></script> <mp-theme-toggle></mp-theme-toggle>

Nesting

data-theme works on any element, to any depth, and everything inside follows its closest themed ancestor rather than the page. That is what lets a light panel sit inside a dark section inside a light page. None of the three panels below sets a single colour of its own — they set data-theme and nothing else. The outermost one carries no attribute at all, so it follows whatever the toggle is set to: flip the toggle and watch the outer frame change while the two inside it stay put.

Level 1 — follows the page

Body copy on --bg-body, whichever mode that currently means.

A link Primary Success

Level 2 — data-theme="dark"

Same classes, same markup. The ink, the surfaces, the borders and every component variant inside this box resolved against the dark scope.

A link Primary Success

Level 3 — data-theme="light"

Light again, inside the dark box, inside the page. There is no depth limit and no per-level CSS: each scope redeclares the same token names.

A link Primary Success

Note what does not change: the always-dark band (On dark, just above) is dark in both modes by definition — it is a design element, not a mode — so it keeps --bg-navy and the --text-on-dark ladder in either.

Badges

Solid / outline / light × 8 roles, plus shapes and sizes.

Solid

Primary Secondary Tertiary New Active Failed Pending Info

Outline

Primary New Active Failed Pending Info

Light

Primary New Active Failed Pending Info

Shapes & sizes

Pill Square Rounded Small Default Large

Tags & status dots

Tags are pill-shaped filters/labels. Status dots pair with text; .mp-status-pulse animates (and respects prefers-reduced-motion).

analytics featured shipped blocked at risk archived

Status

Operational Degraded Down Unknown

Alerts

Three families per role — soft, subtle, and solid. Even 24px padding and an md radius read as a panel, not a strip. A .mp-alert-heading + body gives it structure; child margins collapse into the padding. The dismiss button is styled here but wiring the close is the consumer's job — that's the boundary this repo draws.

Soft (default tint)

Your report finished. View it.
We couldn't reach the GA4 API. Check the connection.
Your trial ends in 3 days.
Scheduled maintenance Sunday at 02:00 UTC.
A dismissible alert.

With a heading

Trial ending soon

Your workspace switches to the free plan in 3 days. Upgrade to keep your saved audits.

Subtle (transparent + accent rule)

Subtle success.
Subtle danger.
Subtle warning.
Subtle info.

Solid (filled) & small

Saved. Everything's up to date.
Payment failed — update your card.
A compact .mp-alert-sm note.

Callouts

Heavier than an alert — for prose asides with a title.

One rule

core/tokens.json is canonical. If a value is missing, add the token — never hardcode it downstream.

Pin your version

Consumers pin a version and bump deliberately. Nothing auto-rebuilds because a color changed.

Cards

Light, interactive (hover lift), and dark surface.

Static card

A plain content container. No hover, because it isn't clickable.

Interactive card

Opt in to the hover lift only when the whole card is a link.

Dark card

Sits on the navy surface, with muted on-dark body text.

Icons

The brand ships no icon font — icons are a downstream dependency, and Font Awesome is the house choice. A bare <i class="fa-solid fa-…"> inherits color and scales to the surrounding font-size, so it drops into any component untouched (buttons already reserve a gap for it). This page loads the FA CDN for the demo; a consumer self-hosts or installs it. See COMPONENTS.md § Icons.

Inside components — inherits the surface's ink

Verified label
Icons pick up currentColor, so they take the alert's ink for free.

Icon container — .mp-icon-box

A tinted circle (or rounded square) to seat an icon in — feature lists, stat rows, empty states. Defaults to the accent tint + primary ink; override the background/color inline for other roles.

Inline sizing — .mp-icon-lg / .mp-icon-xl

Text with a default, a large, and an extra-large glyph, all keyed to the copy.

Forms

Plain <input>/<select>/<textarea> — so v-model, native validation, and form submission all just work.

We'll only use this to send your report.
That doesn't look like a valid email.

Sizes — .mp-input-sm / .mp-input-lg

Input group — .mp-input-group

$ .00

Checkboxes, radios & switches

Native <input type=checkbox|radio> — styled, but still real form controls.

Table

.mp-table is the base. Stack the Bootstrap-esque utilities — .mp-table-striped, -sm, -bordered, -borderless, -hover, and .mp-table-active on a row — in any combination.

ConsumerChannelPullsStatus
Web microservicenpmtheme.css + components.cssLive
Document reponpm / git-pintokens.jsonLive
Coding agentraw URLBRAND.mdLive
Logo in appCDNlogo-on-light.svgLive

Striped + hover, with one .mp-table-active row.

Small + bordered — .mp-table-sm .mp-table-bordered

TokenValueRole
--c-primary#6A48C2violet
--c-cta#FF3399pink
--c-tertiary#0097B8cyan
--c-accent#477B0Alime

Accordion

Native <details>/<summary>. Open/close, keyboard, and screen-reader semantics come from the browser — zero JavaScript, and it renders correctly server-side. The chevron is drawn in CSS.

Why aren't these Web Components?
Because native HTML already does this. A custom element would need registration, wouldn't render during SSR, and would need per-consumer Vue config. See COMPONENTS.md.
Does it work in Vue?
Yes, with no configuration — it's just markup. You can drive open with :open and listen to the native toggle event if you want control.
What if I need an animated accordion?
Build it in your framework and apply these same classes, exactly like Overlook does with its Vue <Transition>. The skin is shared; the behavior stays yours.

On a dark surface

Dark variant
Same element, on-dark ink.
Second item
Collapsed by default.

Dialog

Native <dialog>. The browser gives you the focus trap, the backdrop, and Esc-to-close for free. It fades and rises in on open (pure CSS via @starting-style) and fades back out on close. The only script on this page is the showModal() call below — a consumer would do that in its own framework.

Add .mp-dialog-blur to blur the page behind the modal, and .mp-dialog-sm / -lg / -xl to size it (default caps at 32rem).

Delete this report?

This can't be undone. The underlying GA4 data isn't affected.

Offcanvas

An edge drawer on native <dialog> — showModal() and the browser hands you the backdrop, focus trap, and Esc, the same as the modal. It slides in from the edge via @starting-style; the direction class picks the edge. The close buttons use <form method="dialog">, so only the open needs a line of script.

Filters

Slides from the left. The body scrolls on its own if it overflows.

Cart

Slides from the right — the common cart/detail pattern.

Quick actions

A bottom sheet — handy on small screens.

Progress

A track and a fill whose width the consumer drives (style="width:…" or a var). Pure CSS; bar colors are generated per role. Add .mp-progress-striped + .mp-progress-animated for a moving candy-stripe (off under reduced motion).

35%
70%
striped + animated

Spinners

CSS-only loading indicators. Both inherit currentColor, so a spinner takes the surrounding text color by default — visible inside a filled button with no extra class — and .mp-text-* recolors it. Reduced motion slows them rather than freezing (a stopped spinner reads as broken).

Placeholder

Skeleton shapes for loading states — set each width inline. Wrap in .mp-placeholder-glow to pulse, or .mp-placeholder-wave to sweep a highlight across. Swap them for real content when it arrives.

Scrollspy nav

The in-page-nav skin. Like the reveal utilities, it's inert until the consumer toggles .mp-active on the current link — the geometry that decides "current" is app logic, not brand (the rail on the left of this very page is one implementation). Vertical rail by default; add .mp-scrollspy-horizontal for an underline bar. Shown statically here with one link pre-marked active.

Vertical (.mp-scrollspy)

Horizontal (.mp-scrollspy-horizontal)

Utilities

Deliberately one family — color & elevation, the parts that carry a brand decision. There's no spacing/flex/display/sizing layer: that's generic layout every consumer's framework already ships, and duplicating it invites drift. See COMPONENTS.md § Utilities.

Grounds — background + the ink that's legible on it

Drop one class and the text colour is already correct and accessible. .mp-bg-* is the one ground prefix at 1.0; the .mp-surface-* family that drew the same grounds under a second name is gone. The first five follow the mode; the last three are dark in both, so .mp-text-muted re-maps to the on-dark muted tone inside them. The whole set is in Neutrals above, by height.

.mp-bg-raised

Muted text stays readable.

.mp-bg-sunken

A well below the page.

.mp-bg-navy

Muted → the on-dark tone.

.mp-bg-midnight

The deepest navy, and the footer.

Elevation — .mp-shadow-sm … -xl

sm
md
lg
xl

Color — text, fill, tint, gradient (per role)

text-primary text-cta text-success text-danger text-muted
bg-primary bg-primary-subtle bg-cta bg-gradient-cta bg-gradient-primary

Prose

.mp-prose scopes base typography to a wrapper, so it never fights a consumer's own reset. For long-form/authored content (blog, legal, docs).

Heading level 1

Body copy in --font-body at --lh-normal. A link uses --text-link.

Heading level 2

Headings use --font-heading and --text-heading, and step down at mobile widths.

Heading level 3

  • Unordered list item
  • Another item, with inline code
A blockquote, accented with the pink pop.

Heading level 4

Trailing paragraph.

Motion

Scroll-reveal utilities: elements rest hidden and animate in as they enter the viewport. The CSS is inert — it does nothing until mp-in-view is added to the element — so components.css still ships zero JS. Adding that class is the consumer's job; the ~12-line IntersectionObserver below is the recommended trigger, and it's exactly what drives this section. Everything here collapses to no motion under prefers-reduced-motion.

Scroll away and back, or hit replay, to see each effect fire.

Single elements

.mp-revealfade + rise (the default)
.mp-reveal-fadefade only, no movement
.mp-reveal-leftslide in from the left
.mp-reveal-rightslide in from the right
.mp-reveal .mp-delay-200same, staged 200ms later
.mp-reveal .mp-delay-400staged 400ms later

Staggered children

Put .mp-stagger on the parent — each direct child fades in on an interval (--mp-stagger, default 80ms; presets .mp-stagger-100 … .mp-stagger-300). One observed element animates its whole row.

Child 1+0ms
Child 2+150ms
Child 3+300ms

The trigger

Drop this in once per page. It reveals anything with an mp-reveal* class or .mp-stagger, and unobserves after the first pass so each element animates once.

const io = new IntersectionObserver((entries, obs) => { for (const e of entries) if (e.isIntersecting) { e.target.classList.add("mp-in-view"); obs.unobserve(e.target); // animate once } }, { threshold: 0.15, rootMargin: "0px 0px -100px 0px" }); document.querySelectorAll("[class*='mp-reveal'], .mp-stagger") .forEach((el) => io.observe(el));