diff --git a/.claude/skills/engine-design-system/SKILL.md b/.claude/skills/engine-design-system/SKILL.md index f9c2ff6..6db892e 100644 --- a/.claude/skills/engine-design-system/SKILL.md +++ b/.claude/skills/engine-design-system/SKILL.md @@ -1,26 +1,32 @@ --- name: engine-design-system -description: Rules and component reference for the Engine design system (@engineio/ui). Use when building or reviewing any Engine surface — Svelte components, styles, tokens, colour, type, spacing, the brand marks — or when choosing a Button/Badge/Alert variant, adding a component variant, or picking a colour. +description: Rules and component reference for the Engine design system (engineio/ui). Use when building or reviewing any Engine surface — Svelte components, styles, tokens, themes, colour, type, spacing, the brand marks — or when choosing a Button/Badge/Alert variant, adding a component variant, or picking a colour. --- -Read `node_modules/@engineio/ui/AGENTS.md` before writing UI. It ships with the -package, so it matches the installed version — do not rely on memory of these -rules, and do not copy them into a repo where they will go stale. +Read the Engine design system's `AGENTS.md` before writing UI: `../engine-ui/AGENTS.md` +in the sibling checkout, or https://engineio.github.io/ui/AGENTS.md. Don't rely +on memory of these rules, and don't copy them into a repo where they will go +stale. -If that file is absent the package is not installed here; say so rather than -guessing at the system. +The components are a reference. A product copies them into its own tree with +`bun ../engine-ui/scripts/copy-into.ts ` and owns the copy. `ENGINE-UI.md` +in the copy records the upstream commit it matches. Non-negotiable, and worth having in mind before you read further: - Three brand colours: Off Black `#0E0E0E`, Pure White `#FFFFFF`, Magenta `#FF006A`. One accent per surface. -- Never a hex literal or a Tailwind stock colour. Use a token. CI fails on both. +- Never a hex literal or a Tailwind stock colour. Use a token. Name a role + (`text-foreground`, `bg-card`), never `white` or `black`, so the light theme + works. - `success` / `warning` / `danger` are FUNCTIONAL. They report state, never category, and never decoration. -- Ink on any status or accent fill is Off Black. White fails AA on all three. -- No emoji. No gradients. No light theme. No `dark:` variants. -- Add a variant by `tv({ extend: … })` in the product, never by forking a - component or upstreaming a product-only variant. +- Ink on a status or accent fill is its `-foreground` token. +- Nothing people read is under 16px: `text-body` for sub text, `text-nav` for + navigation. Make sub text grey, not smaller. +- No emoji. No gradients. No `dark:` variants: light is a theme. +- Add a variant by `tv({ extend: … })` beside the copy, rather than editing + the copied component, so the copy stays diffable against upstream. For anything the file does not cover, choose the quieter and more mechanical option, and flag the gap rather than inventing a rule. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00c5db9..126bd57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,10 +27,12 @@ jobs: - name: Types and Svelte check run: bun run check - # `svelte-package` + publint. publint is the guard that matters: it - # validates the exports map against what consumers actually resolve, so - # a broken subpath or a missing `svelte` condition fails here rather - # than in engine or rgs after a release. + - name: Themes complete and readable + run: bun run check:themes + + # `svelte-package` + publint. Nothing installs the package any more + # (products copy src/lib), but packaging is still the quickest proof + # that src/lib compiles on its own, with no help from the gallery. - name: Build package run: bun run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index e9016d3..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,186 +0,0 @@ -name: release - -# Every push to main releases, if the commits since the last tag warrant one. -# No release PR, no approval step: semantic-release reads the conventional -# commits, works out the next version, tags it, writes the GitHub release notes -# and publishes to npm in a single run. -# -# A push with nothing releasable in it (docs:, chore:, ci:) is a no-op. That is -# the behaviour to expect rather than a failure — see .releaserc.json for which -# commit types earn which bump. -# -# PUBLISHES TO npmjs, PUBLICLY, WITH NO TOKEN. Authentication is npm trusted -# publishing: GitHub Actions mints a short-lived OIDC token, npm verifies it -# against the Trusted Publisher configured on the package, and no long-lived -# secret exists to leak or expire. `id-token: write` below is what makes that -# possible, and @semantic-release/npm@13 detects the OIDC context and skips its -# token check. -# -# Every release goes to BOTH registries: npmjs first (canonical), then mirrored -# to GitHub Packages. npm is what the consumer repos install from, because -# GitHub Packages requires an access token to install even for public packages — -# per GitHub's own docs — which would put a PAT back in every developer's -# ~/.npmrc and every CI job. The mirror exists for the org-internal listing, not -# for consumption. -# -# npm provenance is generated automatically under trusted publishing, so the -# published package carries a verifiable link back to this repo and this -# workflow run. It requires a public repo and a public package; both hold. -# -# ONE-TIME SETUP ON npmjs, which cannot be done from here: -# npmjs.com -> @engineio/ui -> Settings -> Trusted Publisher -# Organization or user: engineio -# Repository: ui -# Workflow filename: release.yml -# Until that exists the publish step fails with an auth error, which is correct -# — it means nothing can publish under this name without going through here. -# -# WHAT THIS DELIBERATELY DOES NOT DO: write anything back to main. The usual -# semantic-release setup adds @semantic-release/changelog and -# @semantic-release/git so the version bump and CHANGELOG land as a commit on -# the release branch. Both are omitted, because main requires pull requests and -# a bot pushing straight to it would need a bypass nobody should hand a CI job. -# So package.json's version stays the placeholder 0.0.0-development — tags are -# the source of truth, and the real version is written in the runner just -# before publishing — and the GitHub release notes are the changelog. - -on: - push: - branches: [main] - workflow_dispatch: - -concurrency: - group: release - cancel-in-progress: false - -permissions: - contents: write # create tags and releases - id-token: write # mint the OIDC token for npm trusted publishing - packages: write # mirror the release to GitHub Packages - issues: write # semantic-release/github verifies these even with - pull-requests: write # comments switched off - -jobs: - release: - runs-on: ubuntu-latest - steps: - # fetch-depth: 0 is required, not tidiness — semantic-release works out - # the next version by reading every commit since the last tag, and a - # shallow clone has neither the tags nor the history to do it. - - uses: actions/checkout@v7 - with: - fetch-depth: 0 - - - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.14 - - # Node 22.14+ is the floor for trusted publishing. registry-url points - # npm at npmjs and writes the .npmrc it reads; there is no token to put - # in it. - - uses: actions/setup-node@v6 - with: - node-version: "22.14" - registry-url: https://registry.npmjs.org - - # Node 22 bundles npm 10.x, and trusted publishing needs npm >= 11.5.1. - # Without this the publish fails asking for credentials, which looks like - # a misconfigured Trusted Publisher rather than an old CLI. - - name: Ensure npm supports trusted publishing - run: | - npm install -g npm@^11 - npm --version - - - run: bun install --frozen-lockfile - - # Gate the release on the same checks CI runs. A broken build must not - # become a published version — once a version exists on the registry it - # cannot be replaced, only superseded. - - name: Verify before releasing - run: | - bun run check - bun run build - - - name: Release - run: bunx semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Bootstrap escape hatch, and normally empty. - # - # npm's docs do not say whether a Trusted Publisher can be registered - # for a package name that does not exist yet, and a Trusted Publisher - # is configured in a package's settings — which a package needs to - # exist to have. If pre-registering turns out to be impossible, add an - # npm automation token as the NPM_TOKEN secret, let the first publish - # use it, then configure the Trusted Publisher and DELETE the secret. - # - # Passing it unconditionally is safe either way: an unset secret - # arrives as an empty string, @semantic-release/npm only writes an - # authToken when the value is truthy, and with nothing written it - # falls through to the OIDC path. So this line needs no edit when the - # secret is added or removed. - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - # BOTH names are required, and leaving this one out is why five - # release attempts failed with `401 GET /-/whoami`. - # - # `setup-node` with `registry-url` writes its own user-level .npmrc - # containing `//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}` - # and points NPM_CONFIG_USERCONFIG at it. With NODE_AUTH_TOKEN unset, - # npm expands it to an empty string and every registry call is - # unauthenticated — the same shadowing bug that an empty - # ${NODE_AUTH_TOKEN} in a project .npmrc causes locally, except - # inflicted by the action rather than by a checked-in file. - # - # NPM_TOKEN is what @semantic-release/npm reads; NODE_AUTH_TOKEN is - # what setup-node's .npmrc dereferences. Both point at the same - # secret. Under trusted publishing this whole block becomes - # unnecessary and can go. - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - # npm is the CANONICAL registry — it is what both consumer repos install - # from, and the only one that needs no credential. This mirrors the same - # version to GitHub Packages for the org-internal package listing and for - # anything still pointed there. If the two ever disagree, npm is right. - # - # Runs only when semantic-release actually released: its npm plugin writes - # the real version into package.json in the workspace during prepare, so a - # version other than the placeholder is the signal. A push with nothing - # releasable leaves the placeholder and this no-ops. - # - # --registry overrides publishConfig.registry on the command line, which - # is why package.json stays pinned to npmjs. GITHUB_TOKEN suffices — - # GitHub Packages accepts it for a same-repo publish, so there is no extra - # secret. Note this does NOT make GitHub Packages installable without a - # token: that is a GitHub restriction on reads, not on publishing. - - name: Mirror to GitHub Packages - run: | - set -euo pipefail - version=$(node -p "require('./package.json').version") - if [ "$version" = "0.0.0-development" ]; then - echo "no release this run — nothing to mirror" - exit 0 - fi - - # A DEDICATED npmrc, because setup-node's one only carries auth for - # registry.npmjs.org. Publishing with --registry=npm.pkg.github.com - # against it fails ENEEDAUTH: npm finds no credential for that host - # and does not fall back. NPM_CONFIG_USERCONFIG also means the - # runner's ~/.npmrc is ignored, so appending there does nothing. - rc=$(mktemp) - printf '//npm.pkg.github.com/:_authToken=%s\n' "$NODE_AUTH_TOKEN" > "$rc" - - echo "mirroring @engineio/ui@$version to GitHub Packages" - # A version already present on the mirror is success, not failure — - # it means a previous run got this far. Anything else is a real error. - if NPM_CONFIG_USERCONFIG="$rc" npm publish \ - --registry=https://npm.pkg.github.com \ - --ignore-scripts --tag latest 2>&1 | tee /tmp/mirror.log; then - echo "mirrored" - elif grep -qE 'EPUBLISHCONFLICT|cannot publish over|already exists' /tmp/mirror.log; then - echo "$version already on GitHub Packages — nothing to do" - else - echo "::error::mirror to GitHub Packages failed" - exit 1 - fi - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json deleted file mode 100644 index 34fffbe..0000000 --- a/.releaserc.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "branches": [ - "main" - ], - "tagFormat": "v${version}", - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "minor" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "perf", - "release": "patch" - }, - { - "type": "tokens", - "release": "minor" - }, - { - "type": "style", - "release": "patch" - }, - { - "type": "refactor", - "release": "patch" - }, - { - "type": "docs", - "release": false - }, - { - "type": "test", - "release": false - }, - { - "type": "build", - "release": false - }, - { - "type": "ci", - "release": false - }, - { - "type": "chore", - "release": false - } - ], - "parserOpts": { - "issuePrefixes": [ - "GH-" - ] - } - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "tokens", - "section": "Tokens" - }, - { - "type": "style", - "section": "Styling" - }, - { - "type": "perf", - "section": "Performance" - }, - { - "type": "refactor", - "section": "Refactors" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "build", - "section": "Build", - "hidden": true - }, - { - "type": "ci", - "section": "CI", - "hidden": true - }, - { - "type": "chore", - "hidden": true - } - ] - }, - "parserOpts": { - "issuePrefixes": [ - "GH-" - ] - } - } - ], - "@semantic-release/npm", - [ - "@semantic-release/github", - { - "successComment": false, - "failComment": false, - "failTitle": false, - "releasedLabels": false - } - ] - ] -} diff --git a/AGENTS.md b/AGENTS.md index 8c43d70..e4e2b39 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,8 +1,8 @@ -# @engineio/ui — agent reference +# Engine design system — agent reference -The Engine design system. This file ships inside the package, so it arrives in -`node_modules/@engineio/ui/AGENTS.md` and versions with the code — point at it -rather than copying its contents into a repo, or the copy goes stale. +The Engine design system (engineio/ui). Read this file in the sibling checkout +(`../engine-ui/AGENTS.md`) or at https://engineio.github.io/ui/AGENTS.md. Point +at it rather than copying its contents into a repo, or the copy goes stale. Authoritative source: `docs/brand/ENGINE-DESIGN-SYSTEM.md` and `ENGINE-BRAND.md` in the `engineio/engine` repo. Where this file and those @@ -10,36 +10,49 @@ disagree, **they win and this is a bug**. ## Setup +The components are a reference, not a dependency. Nothing is published to npm; +`@engineio/ui@0.11.0` is the last release (the products, pinned to `^0.10.0`, run 0.10.0), and only the products that haven't +switched yet still install it. A product copies `src/lib` into its own tree +and owns the copy: + +```bash +bun ../engine-ui/scripts/copy-into.ts packages/shared/src/lib/engine-ui +bun add bits-ui clsx tailwind-merge tailwind-variants @lucide/svelte +``` + ```css @import "tailwindcss"; -@import "@engineio/ui/styles"; -@source "../../../node_modules/@engineio/ui/dist"; +@import "./lib/engine-ui/styles/index.css"; /* relative to this CSS file */ ``` -**The `@source` line is not optional and its absence is silent.** Tailwind 4 -does not scan `node_modules`, so without it the utility classes the components -are written against are never generated. The tokens still land and any class -that also appears in local source still works, so you get a half-styled app -that reads like a component bug. Path is relative to the CSS file declaring it. +No `@source` line: the copy is in the app's source tree, so Tailwind scans it. +`ENGINE-UI.md` in the copy records the upstream commit it matches. To pick up a +later change, diff upstream from that commit and port it: +`git -C ../engine-ui diff HEAD -- src/lib`. Running the copy script again +refuses to overwrite and prints that command. + +Every import inside `src/lib` is relative. **Keep it that way:** a `$lib/` +import here resolves to the product's `$lib` once copied, and breaks. ## Importing +From wherever the product put its copy: + ```svelte -import { Button, Card, CardHeader } from "@engineio/ui" -import { Button } from "@engineio/ui/components/ui/button/index.js" -import * as Card from "@engineio/ui/components/ui/card/index.js" -import { EngineWordmark } from "@engineio/ui/components/brand/index.js" -import { Tour, type TourStep } from "@engineio/ui/components/marketing/index.js" +import { Button, Card, CardHeader } from "$lib/engine-ui/index.js" +import { Button } from "$lib/engine-ui/components/ui/button/index.js" +import * as Card from "$lib/engine-ui/components/ui/card/index.js" +import { EngineWordmark } from "$lib/engine-ui/components/brand/index.js" +import { Tour, type TourStep } from "$lib/engine-ui/components/marketing/index.js" ``` Root barrel exports flat prefixed names (`CardHeader`). Subpath modules export -`Root`/`Header`/`Content`, so `import * as Card` works. Both `/index.js` and the -bare subpath resolve. +`Root`/`Header`/`Content`, so `import * as Card` works. ## Components Alert, Badge, Button, Card, Checkbox, Dialog, Input, Label, Popover, Progress, -RadioGroup, ResponsiveDialog, Select, Separator, Skeleton, Switch, Table, Tabs, +RadioGroup, ResponsiveDialog, Segmented, Select, Separator, Skeleton, Switch, Table, Tabs, Textarea, Tooltip. Marks: `EngineWordmark`, `EngineIcon`. Marketing: `Hero`, `SectionHead`, `SiteBanner`, `SiteHeader`, `SiteFooter`, `Marquee`, `Tour`, `BentoGrid`, `BentoCard`, `StatBand`, plus the `inView` attachment and @@ -54,7 +67,8 @@ not on that list because ResponsiveDialog covers what one was wanted for. | Button | `default` `inverse` `outline` `ghost` `secondary` `link` `icon` `destructive` `success`; sizes `sm` `default` `lg` `icon` `icon-sm` `icon-lg` | | Badge | `default` `secondary` `outline` `partner` `success` `warning` `danger` `destructive` | | Alert | `default` `success` `warning` `danger` `destructive`; optional `onDismiss` | -| Marks | `variant="primary"` (white) or `"secondary"` (Off Black) | +| Segmented | rail `Root` + `segmentVariants({ active })` for any trigger; `active` = white pill like the selected tab | +| Marks | `variant="primary"` (the page's ink: white on Engine Magenta) or `"secondary"` (the page colour) | ### ResponsiveDialog @@ -178,7 +192,9 @@ weight) on one utility. Cap headings in `ch`, not px, and `text-balance` them. | `text-lead` | clamp(17px, 1.4vw, 20px) · 1.5 | under an h2, `max-w-[52ch]` | | `text-card-title` | 17px · 1.35 · 600 | the one sentence under a bento mock | | `text-stat` | 42px · 0.94 · 900, tabular | a proof figure (32px below `md`) | -| `text-small` | 13px · 1.5 | labels, captions, footer links | +| `text-body` | 16px · 1.5 | every caption, label, footer line and line of sub text | +| `text-nav` | 16px · 1.25 | every navigation item: header links, footer links, tabs, segments, tour steps | +| `text-small` | 13px · 1.5 | badge chips and mock screens only | Inside a mock screen the scale is smaller again — 15px bold titles, 11–13px text, 10px tags — because a mock is a picture of a product, not the page. @@ -266,7 +282,7 @@ Rules, each learned the expensive way: The Tour frame keeps its one `grey-600` border because it is a device. - A `SiteBanner` is the press shade with white text — a measured exception to "ink on accent is Off Black" (5.25:1 vs 3.67:1 on that shade). It is the - one place a brand fill carries 13px text. + one place a brand fill carries 16px regular-weight text. - Announce nothing above the h1. Announcement pills, eyebrows and "How it works" labels were all removed; the h1 starts the page. @@ -278,9 +294,43 @@ grey text against any tinted backdrop — `grey-400` on a magenta wash drops under AA and has to be lifted a step. Anchor targets must land with the heading fully below the glass. +## Themes + +Two ship: **Engine Magenta** (dark, the default) and **Engine Magenta Light**. +Select one with `data-theme` on `` or on any subtree: + +```html + +
…
+``` + +With no `data-theme`, the page is Engine Magenta, which is the token values below. +Existing apps change nothing. + +- **Name a role, never a colour.** `text-foreground`, not `text-white`; + `bg-foreground/6` for a hover wash, not `bg-white/6`; `bg-scrim` behind a + modal. A literal `white` or `black` is a light-theme bug. +- **The grey ramp is relative to the page.** `grey-900` is the page in every + theme and the steps fall toward the ink, so `bg-grey-850` field / + `border-grey-600` hairline / `text-grey-300` secondary text are correct in + both themes. Don't pick a grey step for its absolute lightness. +- **Ink on a fill is the fill's `-foreground`.** Engine Magenta's status fills + take Off Black; the light theme's deeper status steps take white. + `primary-300` is "ink on a magenta tint": lighter magenta on dark, deeper + magenta (#C2004F) on light. +- **Landings stay dark.** The hero render's `mix-blend-screen` needs a dark + page. Pin marketing pages to `data-theme="engine-magenta"`. +- **New themes.** Copy a file in `styles/themes/`, change the selector and + values, and run `bun run check:themes`. It checks the full contract, + dark/default parity, and AA contrast on every text pair. An overlay theme + (no `color-scheme`) changes a few roles and stacks: + `data-theme="engine-magenta volt"`. The contract and the worked overlay + example are in `styles/themes/README.md`, which ships in `dist`. +- `themes` (name, label, scheme) is exported for pickers. + ## Tokens -Use these names; never a literal. +Use these names; never a literal. Values shown are Engine Magenta. ``` colour --color-background #0E0E0E --color-foreground #FFFFFF @@ -296,8 +346,10 @@ status --color-success #00C46A --color-warning #FFB020 --color-danger #FF3 layout --container-marketing 1180px --spacing-gutter clamp(20px,5vw,64px) --spacing-section clamp(88px,12vw,160px) --spacing-header 72 / -sm 64 --spacing-anchor 120 / -sm 96 --blur-glass 20px -type sizes --text-hero --text-section --text-standfirst --text-lead - --text-card-title --text-stat --text-small (marketing pages only) +type sizes --text-body 16px (all reading text) --text-nav 16px (navigation) + --text-hero --text-section --text-standfirst --text-lead + --text-card-title --text-stat (marketing pages only) + --text-small 13px (badge chips and mock screens only) radii --radius-tag 6 --radius-field 10 --radius-card-inner 10 --radius-media 14 --radius-card 18 --radius-frame 26 --radius-control 999 @@ -310,12 +362,22 @@ motion --ease-brand --ease-brand-out --ease-brand-accelerate type --font-brand = DM Sans, from Google Fonts — you add the link (see below); --font-condensed --font-extra-condensed --font-mono are roles that resolve to the brand face -depth --shadow-panel --shadow-modal (product chrome and modals only) +depth --shadow-panel --shadow-modal (product chrome and modals only; + a theme tints them via --shadow-panel-color / --shadow-modal-color) + --color-scrim rgb(10 10 10 / 0.72) (behind a modal or sheet) utility `field` — the shared input skin, incl. the focus ring ``` ## Rules +- **Nothing people read is under 16px.** Body copy, sub text, descriptions, + captions, labels, field values, table cells, tooltips and menu items are + `text-body` (16px). Every navigation item is `text-nav` (16px) or larger. + The only things under 16px are badge chips, button labels (15px bold, or + 13px on `sm`), and the inside of a mock screen. Don't reach for + `text-[13px]`, `text-small`, `text-xs` or `text-sm` for sub text: make it + grey, not smaller. + - **Three brand colours**: Off Black, Pure White, Magenta. One accent per surface, never two. - **Status colour is functional.** `success`/`warning`/`danger` report state. @@ -325,10 +387,10 @@ utility `field` — the shared input skin, incl. the focus ring fails on both. - **Retired and unavailable**: Originals Orange `#FF6200`, Sportsbook Blue `#00CCFF`. No accents, no charts, no status. -- **Ink on any status or accent fill is Off Black.** White fails AA on all three. +- **Ink on any status or accent fill is its `-foreground` token.** On Engine Magenta that is Off Black, because white fails AA on all three status fills there. - **Magenta text**: never below 15px bold. Use `--color-primary-300` on a tint. -- No gradients. No light theme. No `dark:` variants — the dark palette is the - only palette. No drop shadows on brand surfaces. No coloured borders, and no +- No gradients. No `dark:` variants: light is a theme, and a component that + names roles needs none. No drop shadows on brand surfaces. No coloured borders, and no coloured left-edge accent to signal category or ownership. - Radii by role, and the outer frame is always larger than the inner panel. - Borders are 1px hairline or 1.5px container rule. Nothing else. @@ -338,11 +400,12 @@ utility `field` — the shared input skin, incl. the focus ring ## Extending -Do not fork a component to add a variant, and do not upstream a product-only -variant. Every variant map is exported: +The copy is the product's to edit, but prefer extending a variant map beside +it. That keeps the copy diffable against upstream for the next port. Don't +upstream a product-only variant. Every variant map is exported: ```ts -import { buttonVariants } from "@engineio/ui" +import { buttonVariants } from "$lib/engine-ui/index.js" import { tv } from "tailwind-variants" export const appButtonVariants = tv({ @@ -351,12 +414,12 @@ export const appButtonVariants = tv({ }) ``` -Brand rules stay in the package; product variants stay in the product. Every +Brand rules stay in the copy; product variants stay beside it. Every primitive also passes `class` through `cn`, so `