Text

Brand Wheel

Rotating logos text: a lead word and a wheel of brand pills that rolls through the platforms you ship to, blurred rows above and below, then a cursor clicks the last one. Motion measured frame by frame from a recording.

Brand Wheel preview, rendered with Remotion.

Source

components/kuchi/brand-wheel/index.tsx
"use client";
import { loadFont } from "@remotion/google-fonts/InterTight";
import {
AbsoluteFill,
getRemotionEnvironment,
useCurrentFrame,
useVideoConfig,
} from "remotion";
import {
resolveFont,
type KuchiTheme,
useKuchiTheme,
withAlpha,
} from "@/lib/kuchi-ui";
import {
BRANDS,
type BrandMark,
brandKey,
CURSOR,
ENTER,
FADE,
FIRST,
FIRST_REST,
INK,
PITCH,
REF_H,
REF_W,
STEP,
STEP_FRAMES,
STOP_EARLY,
SWAP,
} from "./data";
/**
* A lead word and a wheel of brand pills that rolls through where you ship.
*
* "launch on" holds the left of the line; the pill to its
* right is one row of a column whose other rows sit above and below it, blurred
* and fading. The column rolls a row every two thirds of a second, never quite
* stopping, draws in as a cursor glides up, and freezes on the last brand just
* as the cursor clicks it. A ring answers the click, then the line slides away.
*
* Every number in `./data` was recovered frame by frame from a recording and is
* in that recording's pixels — the 57.45px pitch, the step curve that creeps
* through the slot and rushes between rows, the moment focus changes hands, the
* fade with distance, the cursor's glide. The constants below are the same
* frame's geometry: the scene is laid out at 712 × 402 and scaled by height.
*
* The recording is set in SF Pro, which no render farm has. Inter Tight is the
* nearest face a Remotion bundle can load — fingerprinted on five words against
* the reference's ink, 2.9% RMS with -0.012em of tracking — and each size below
* is fitted to the reference's ink height, not to a nominal point size.
*/
const { fontFamily: SANS } = loadFont("normal", {
weights: ["400", "500"],
subsets: ["latin"],
});
/* ── The lockup, in reference px ─────────────────────────────────────────── */
/** The slot's middle. Pill borders measured at 177.55 and 215.30. */
const ROW_Y = 196.43;
/** Centre of the whole lockup, lead.s left edge to pill's right (504.6). */
const ROW_X = 360.875;
const PILL_H = 38.75;
/** Border to brand box, and label's box to border, at the widest label. */
const PILL_PAD_L = 6.5;
const PILL_PAD_R = 12.86;
const MARK_H = 28;
const MARK_GAP = 10.73;
const LABEL = 22.8;
const LEAD = 30.65;
const TRACK = "-0.032em";
const LEAD_GAP = 20.05;
/**
* Baselines, as nudges off flex centring: the lead's ink sits on 206.65 and
* the label's on 204.9, neither of which is where centring a line box puts it.
*/
const LEAD_NUDGE = 0.31;
const LABEL_NUDGE = 0.75;
/** Rows out of focus. */
const BLUR = 2.4;
const DIM = 0.42;
/* ── Timing, in reference frames at 30fps, relative to the stop ──────────── */
/** The wheel draws in under the approaching cursor. */
const SHRINK = 0.93;
const SHRINK_AT: readonly [number, number] = [-33.6, -9.6];
const CURSOR_IN: readonly [number, number] = [-34.6, -19.6];
/** Click: the cursor presses to 0.9 and lets go. */
const PRESS: readonly [number, number, number, number] = [-2.6, -0.6, 4.4, 7.4];
/** The ring that answers the click: grows to 12.5px and fades out by +17.4. */
const RING_AT = 0.4;
const RING_W = 12.5;
const RING_FADE: readonly [number, number] = [3.4, 17.4];
const RING_ALPHA = 0.06;
/** The line leaves on an ease-in slide, fading over its last five frames. */
const EXIT_AT = 2.4;
const EXIT_FADE: readonly [number, number] = [20.4, 25.4];
type Table = readonly (readonly [number, number])[];
function read(table: Table, v: number): number {
const first = table[0];
const last = table[table.length - 1];
if (!first || !last) return 0;
if (v <= first[0]) return first[1];
if (v >= last[0]) return last[1];
for (let i = 1; i < table.length; i++) {
const hi = table[i];
const lo = table[i - 1];
if (hi && lo && v <= hi[0]) {
return lo[1] + ((hi[1] - lo[1]) * (v - lo[0])) / (hi[0] - lo[0]);
}
}
return last[1];
}
const clamp01 = (v: number) => Math.min(1, Math.max(0, v));
const ramp = (v: number, a: number, b: number) => clamp01((v - a) / (b - a));
const smooth = (v: number) => v * v * (3 - 2 * v);
/** The reference frame the strip freezes on, for a reel of `n`. */
export const stopFrame = (n: number) =>
FIRST_REST + STEP_FRAMES * Math.max(0, n - 2) - STOP_EARLY;
/** Frames at 30fps for a reel of `n`: the roll, the click, the exit. */
export const brandWheelDuration = (n: number) =>
Math.ceil(stopFrame(n) + EXIT_FADE[1]);
/** Rows travelled at reference frame `f`, for a reel of `n`. */
export function rollAt(f: number, n: number): number {
if (n < 2) return 0;
const g = Math.min(f, stopFrame(n));
if (g < FIRST_REST) return read(FIRST, g);
const k = (g - FIRST_REST) / STEP_FRAMES;
const whole = Math.floor(k);
const u = (k - whole) * STEP_FRAMES;
const i = Math.floor(u);
const a = STEP[i] ?? 1;
const b = STEP[i + 1] ?? 1;
return Math.min(n - 1, 1 + whole + a + (b - a) * (u - i));
}
/** The row in focus: it changes hands before the midpoint, at `SWAP`. */
export const focusAt = (q: number, n: number) =>
Math.min(n - 1, Math.floor(q + 1 - SWAP));
/** Interpolates a (t, x, y) track. */
function track(v: number): readonly [number, number] {
const first = CURSOR[0]!;
const last = CURSOR[CURSOR.length - 1]!;
if (v <= first[0]) return [first[1], first[2]];
for (let i = 1; i < CURSOR.length; i++) {
const hi = CURSOR[i]!;
const lo = CURSOR[i - 1]!;
if (v <= hi[0]) {
const k = (v - lo[0]) / (hi[0] - lo[0]);
return [lo[1] + (hi[1] - lo[1]) * k, lo[2] + (hi[2] - lo[2]) * k];
}
}
return [last[1], last[2]];
}
function Mark({
mark,
label,
ink,
card,
u,
}: {
mark?: BrandMark;
label: string;
ink: string;
card: string;
u: number;
}) {
const box = {
width: (mark?.w ?? MARK_H) * u,
height: MARK_H * u,
flexShrink: 0,
display: "flex",
alignItems: "center",
justifyContent: "center",
} as const;
if (!mark) {
// A brand with no mark gets its initial on a disc, so any copy works.
return (
<div style={box}>
<svg width={24 * u} height={24 * u} viewBox="0 0 24 24" aria-hidden>
<circle cx={12} cy={12} r={12} fill={ink} />
<text
x={12}
y={16.5}
textAnchor="middle"
fontSize={13}
fontWeight={600}
fill={card}
>
{label.charAt(0).toUpperCase()}
</text>
</svg>
</div>
);
}
const id = `bw-${brandKey(label)}`;
return (
<div style={box}>
<svg
width={mark.ink[0] * u}
height={mark.ink[1] * u}
viewBox={mark.view ?? "0 0 24 24"}
preserveAspectRatio="none"
aria-hidden
>
{mark.tile ? (
<>
<defs>
<radialGradient id={id} cx="0.3" cy="1.07" r="1.3">
{mark.tile.map((c, i, all) => (
<stop
key={c}
offset={0.05 + (0.85 * i) / (all.length - 1)}
stopColor={c}
/>
))}
</radialGradient>
</defs>
<rect width={24} height={24} rx={5} fill={`url(#${id})`} />
</>
) : null}
{mark.paths.map((p) => (
<path
key={p.d.slice(0, 32)}
d={p.d}
transform={p.t}
fill={p.fill === INK ? ink : p.fill}
/>
))}
</svg>
</div>
);
}
export interface BrandWheelProps {
/** The word that never changes. */
lead?: string;
/** The reel, comma separated, top to bottom. It comes to rest on the last. */
items?: string;
/** The lead word. Defaults to the theme's primary. */
accent?: string;
/** Glide a cursor onto the last pill and click it. */
cursor?: boolean;
speed?: number;
theme?: Partial<KuchiTheme>;
mode?: "light" | "dark";
fontFamily?: string;
}
export function BrandWheel({
lead = "launch on",
items = "X, YouTube, LinkedIn, Instagram, TikTok, Product Hunt",
accent,
cursor = true,
speed = 1,
theme,
mode = "light",
fontFamily = "Default",
}: BrandWheelProps) {
const frame = useCurrentFrame();
const { fps, width, height } = useVideoConfig();
const t = useKuchiTheme(theme, mode);
const face = resolveFont(fontFamily) ?? SANS;
const tint = accent ?? t.primary;
const reel = items
.split(",")
.map((s) => s.trim())
.filter(Boolean);
const n = reel.length;
const u = height / REF_H;
const ox = (width - REF_W * u) / 2;
const f = (frame * speed * 30) / fps;
const since = f - stopFrame(n);
const q = rollAt(f, n);
const focus = focusAt(q, n);
const slide = read(ENTER, f) - 0.0212 * Math.max(0, since - EXIT_AT) ** 2.24;
const gone = 1 - ramp(since, EXIT_FADE[0], EXIT_FADE[1]);
const shrink = 1 - (1 - SHRINK) * smooth(ramp(since, ...SHRINK_AT));
const ringW = RING_W * (1 - Math.exp(-Math.max(0, since - RING_AT) / 2.5));
const ringA =
since > RING_AT ? RING_ALPHA * (1 - ramp(since, ...RING_FADE)) : 0;
const wheelIn = ramp(f, -1, 3);
const [tx, ty] = track(since);
const press =
1 -
0.1 *
(smooth(ramp(since, PRESS[0], PRESS[1])) -
smooth(ramp(since, PRESS[2], PRESS[3])));
// Composite in the Player, re-rasterise in the render — see motion-quality.
const live = getRemotionEnvironment().isRendering
? null
: ({ willChange: "transform" } as const);
const pill = (label: string, ring?: string) => (
<div
style={{
boxSizing: "border-box",
height: PILL_H * u,
display: "flex",
alignItems: "center",
gap: MARK_GAP * u,
paddingLeft: PILL_PAD_L * u,
paddingRight: PILL_PAD_R * u,
borderRadius: t.radius * u,
border: `${u}px solid ${t.border}`,
background: t.card,
boxShadow: ring,
color: t.cardForeground,
}}
>
<Mark
mark={BRANDS[brandKey(label)]}
label={label}
ink={t.cardForeground}
card={t.card}
u={u}
/>
<span
style={{
fontSize: LABEL * u,
lineHeight: 1,
fontWeight: 500,
letterSpacing: TRACK,
transform: `translateY(${LABEL_NUDGE * u}px)`,
}}
>
{label}
</span>
</div>
);
return (
<AbsoluteFill style={{ backgroundColor: t.background }}>
<div
style={{
position: "absolute",
left: ox,
top: 0,
width: REF_W * u,
height: REF_H * u,
overflow: "hidden",
fontFamily: face,
fontWeight: 400,
textRendering: "geometricPrecision",
whiteSpace: "nowrap",
}}
>
<div
style={{
position: "absolute",
left: ROW_X * u,
top: (ROW_Y - PILL_H / 2) * u,
height: PILL_H * u,
display: "flex",
alignItems: "center",
opacity: gone,
transform: `translateX(calc(-50% + ${slide * u}px))`,
...live,
}}
>
<div
style={{
marginRight: LEAD_GAP * u,
fontSize: LEAD * u,
lineHeight: 1,
letterSpacing: "-0.024em",
color: tint,
transform: `translateY(${LEAD_NUDGE * u}px)`,
}}
>
{lead}
</div>
{/* Every pill in one grid cell: the column is as wide as its widest
label, so every row is the same pill and any copy fits. */}
<div
style={{
display: "grid",
height: PILL_H * u,
opacity: wheelIn,
transform: `scale(${shrink})`,
}}
>
{reel.map((label, i) => {
const d = (i - q) * PITCH;
const vis = read(FADE, Math.abs(d * shrink));
const sharp = i === focus;
return (
<div
key={`${i}-${label}`}
style={{
gridArea: "1 / 1",
visibility: vis > 0 ? "visible" : "hidden",
transform: `translateY(${d * u}px)`,
opacity: vis * (sharp ? 1 : DIM),
filter: sharp ? undefined : `blur(${BLUR * u}px)`,
...live,
}}
>
{pill(
label,
i === n - 1 && ringA > 0
? `0 0 0 ${ringW * u}px ${withAlpha(t.foreground, ringA)}`
: undefined,
)}
</div>
);
})}
</div>
</div>
{cursor && n > 1 ? (
<div
style={{
position: "absolute",
left: (tx - 1) * u,
top: (ty - 1) * u,
opacity: ramp(since, ...CURSOR_IN),
transform: `scale(${press})`,
transformOrigin: `${u}px ${u}px`,
}}
>
{/* A macOS arrow, its tip one unit in from the corner. */}
<svg
width={13 * u}
height={21 * u}
viewBox="-1 -1 13 21"
aria-hidden
>
<path
d="M0 0V16.2L3.9 12.6L6.6 18.7L9.1 17.6L6.5 11.6H11.6Z"
fill="#000000"
stroke="#ffffff"
strokeWidth={1}
strokeLinejoin="round"
/>
</svg>
</div>
) : null}
</div>
</AbsoluteFill>
);
}
components/kuchi/brand-wheel/data.ts
/**
* Everything Brand Wheel knows about its own motion, measured.
*
* The numbers below were recovered from a 4.6 second, 712 × 402 screen capture,
* every one of its 139 frames, and they are in that recording's own pixels and
* its own 30fps frames. The scene scales them by height, so a render at the
* reference's size is the reference's size and nothing resamples in between.
*/
export const REF_W = 712;
export const REF_H = 402;
/**
* Row to row, in px. Three rest crossings — 34.72, 54.35 and 74.76 — land
* 57.78, 57.11 and 57.44 apart on the strip; this is their mean.
*/
export const PITCH = 57.45;
/**
* A step of the wheel, from one row resting in the slot to the next, as
* (share of the 20 frames, share of the pitch).
*
* It is not an ease you can name. The strip never stops between rows: it
* creeps through the slot at 1.35px a frame, speeds up to 9px a frame as the
* next row comes in, and creeps again — which reads as a wheel with weight
* rather than as a carousel with a timer. Read by cross-correlating the column's
* vertical ink profile frame to frame (0.01px steps) and averaging the two
* cycles the cursor does not touch; they agree to 0.46px.
*/
export const STEP: readonly number[] = [
0, 0.0264, 0.055, 0.0864, 0.122, 0.1636, 0.2147, 0.2838, 0.3991, 0.5496,
0.656, 0.7222, 0.771, 0.8107, 0.8452, 0.8759, 0.9042, 0.9293, 0.953, 0.9763,
1,
];
/** Frames per step. Swaps land on 22.5, 42.5, 62.5, 82.5 and 102.5. */
export const STEP_FRAMES = 20;
/**
* The first step, which starts from a standstill and so is not a `STEP`: the
* first row holds the slot until frame 11.5, then the strip pulls away slowly
* and catches the rhythm by the time the second row rests at 34.72.
*/
export const FIRST: readonly (readonly [number, number])[] = [
[11.5, 0],
[12, 0.0003],
[13, 0.0015],
[14, 0.0041],
[15, 0.0077],
[16, 0.0145],
[17, 0.0228],
[18, 0.0363],
[19, 0.054],
[20, 0.0788],
[21, 0.1178],
[22, 0.1899],
[23, 0.3876],
[24, 0.567],
[25, 0.6587],
[26, 0.7226],
[27, 0.7733],
[28, 0.815],
[29, 0.8507],
[30, 0.8826],
[31, 0.9114],
[32, 0.9365],
[33, 0.9596],
[34, 0.9823],
[34.72, 1],
];
/** The frame the second row comes to rest; every later row is 20 frames on. */
export const FIRST_REST = 34.72;
/**
* Where in a step the slot changes hands, as a share of the pitch.
*
* Not half. The incoming row takes the focus when it is still 0.64 of a pitch
* out — between 0.319 and 0.388 on every swap in the recording — which is why
* each new row arrives already sharp instead of popping in at the midpoint.
*/
export const SWAP = 0.36;
/**
* The strip freezes this many frames before the last row would rest, still
* creeping at 1.15px a frame. Measured, and it is the beat that makes the stop
* read as a click landing rather than as the wheel running out.
*/
export const STOP_EARLY = 1.12;
/**
* How visible a row is by its distance from the slot, in px, as (distance,
* opacity). Read off the peak ink of every row in every frame of the Google
* cycle and normalised to the row in the slot. It is a property of position,
* not of focus: the row in the slot is faded by it too while it is arriving.
*/
export const FADE: readonly (readonly [number, number])[] = [
[0, 1],
[12, 1],
[21.4, 0.88],
[32.4, 0.81],
[41.7, 0.7],
[47, 0.61],
[53.9, 0.47],
[59.4, 0.36],
[67.2, 0.25],
[74.2, 0.14],
[82.6, 0.09],
[93.5, 0.04],
[105, 0],
];
/**
* The lockup sliding into place, as (frame, px to the right of home). It is a
* plain exponential settle — 0.8 of the remaining distance each frame.
*/
export const ENTER: readonly (readonly [number, number])[] = [
[0, 38],
[1, 31.5],
[2, 25],
[3, 20.5],
[4, 17],
[5, 14],
[6, 11.3],
[7, 9.2],
[8, 7.6],
[9, 6.2],
[10, 5],
[11, 4],
[12, 3.2],
[13, 2.5],
[14, 1.9],
[15, 1.4],
[16, 1],
[18, 0.45],
[21, 0],
];
/**
* The cursor's tip, as (frames before the stop, x, y). It glides in from the
* lower right, decelerating, and parks on the end of the pill a few frames
* before the wheel stops under it.
*/
export const CURSOR: readonly (readonly [number, number, number])[] = [
[-40, 640, 343],
[-37, 606, 314],
[-34, 580, 292],
[-31.6, 557, 273],
[-30.6, 553, 267],
[-29.6, 548, 263],
[-28.6, 542, 258],
[-27.6, 536, 253],
[-26.6, 528.5, 248],
[-25.6, 522, 242.5],
[-24.6, 515.5, 237.5],
[-23.6, 509.5, 233],
[-22.6, 504.5, 229],
[-21.6, 500, 225.5],
[-20.6, 496.5, 222.5],
[-19.6, 493.5, 220],
[-18.6, 491, 218],
[-17.6, 488.5, 216.2],
[-16.6, 486.5, 214.6],
[-15.6, 484.5, 213.2],
[-14.6, 483, 212],
[-13.6, 481.6, 211],
[-12.6, 480.5, 210.2],
[-11.6, 479.6, 209.6],
[-10.6, 479, 209.1],
[-8.6, 478.4, 208.6],
[-6.6, 478, 208.4],
];
/**
* Brand marks. Each sits in a box `w` wide and 28 tall at the reference's
* scale — the box is what the label is spaced from, and it is not square:
* YouTube's is 34, Meta's 31, which is why their labels start later in the
* recording. `ink` is the drawn size inside it, centred. Paths are Simple
* Icons (CC0) in their own 24-unit space unless `view` says otherwise.
*/
export interface BrandMark {
w: number;
ink: readonly [number, number];
view?: string;
paths: readonly { d: string; fill: string; t?: string }[];
/** A rounded gradient tile under the paths (Instagram). */
tile?: readonly string[];
}
/** Paints the ink colour, so a black mark survives `mode="dark"`. */
export const INK = "ink";
const DISC = "M12 0a12 12 0 1 1 0 24a12 12 0 1 1 0-24z";
export const BRANDS: Record<string, BrandMark> = {
x: {
w: 28,
ink: [21, 21],
paths: [
{
fill: INK,
d: "M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z",
},
],
},
youtube: {
w: 30.7,
ink: [26.2, 20.8],
view: "0 0 26.2 20.8",
paths: [
{
fill: "#cb1f1a",
d: "M5.4 0h15.4a5.4 5.4 0 0 1 5.4 5.4v10a5.4 5.4 0 0 1-5.4 5.4H5.4A5.4 5.4 0 0 1 0 15.4v-10A5.4 5.4 0 0 1 5.4 0z",
},
{ fill: "#ffffff", d: "M10.3 6.3v8.2l7-4.1z" },
],
},
linkedin: {
w: 28,
ink: [23, 23],
paths: [
{
fill: "#0a66c2",
d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",
},
],
},
instagram: {
w: 28,
ink: [24.2, 24.2],
tile: ["#fdf497", "#fd5949", "#d6249f", "#285aeb"],
paths: [
{
fill: "#ffffff",
t: "translate(3.6 3.6) scale(0.7)",
d: "M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077",
},
],
},
tiktok: {
w: 28,
ink: [21, 23],
view: "1.6 0 21 24",
paths: [
{
fill: INK,
d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z",
},
],
},
producthunt: {
w: 28,
ink: [24, 24],
paths: [
{
fill: "#da552f",
d: "M13.604 8.4h-3.405V12h3.405c.995 0 1.801-.806 1.801-1.801 0-.993-.805-1.799-1.801-1.799zM12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zm1.604 14.4h-3.405V18H7.801V6h5.804c2.319 0 4.2 1.88 4.2 4.199 0 2.321-1.881 4.201-4.201 4.201z",
},
],
},
google: {
w: 28,
ink: [26.6, 27.5],
view: "0 0.95 24 22",
paths: [
{
fill: "#f4af44",
d: "M7.5137 4.8438L1.5645 15.1484A4.5 4.5 0 0 1 4 14.4297c2.5597-.0075 4.6248 2.1585 4.4941 4.7148l3.2168-5.5723-3.6094-6.25c-.4499-.7793-.6322-1.6394-.5878-2.4784z",
},
{
fill: "#1775b7",
d: "M23.4641 16.9287L15.4632 3.072C14.3586 1.1587 11.9121.5028 9.9988 1.6074S7.4295 5.1585 8.5341 7.0718l8.0009 13.8567c1.1046 1.9133 3.5511 2.5679 5.4644 1.4646 1.9134-1.1046 2.568-3.5511 1.4647-5.4644z",
},
{
fill: "#34b24a",
d: "M3.9998 22.9291C1.7908 22.9291 0 21.1383 0 18.9293s1.7908-3.9998 3.9998-3.9998 3.9998 1.7908 3.9998 3.9998-1.7908 3.9998-3.9998 3.9998z",
},
],
},
shopify: {
w: 28,
ink: [23.3, 30],
view: "1.25 0 21.3 24",
paths: [
{
fill: "#95bf47",
d: "M11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z",
},
{
fill: "#5e8e3e",
d: "M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023z",
},
],
},
meta: {
w: 31,
ink: [27.5, 18.5],
view: "0 4.03 24 15.94",
paths: [
{
fill: "#3088e5",
d: "M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z",
},
],
},
stripe: {
w: 31.4,
ink: [28.6, 28.6],
paths: [
{ fill: "#625af4", d: DISC },
{
fill: "#ffffff",
t: "translate(4.6 4.6) scale(0.62)",
d: "M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z",
},
],
},
};
/** `"Product Hunt"` → `producthunt`, so the copy and the lookup can differ. */
export const brandKey = (label: string) =>
label.toLowerCase().replace(/[^a-z0-9]/g, "");