Skip to content

refactor(landing): consume design-system from npm; drop local copies#35

Merged
vreshch merged 1 commit into
masterfrom
refactor/consume-ds-from-npm
Jul 5, 2026
Merged

refactor(landing): consume design-system from npm; drop local copies#35
vreshch merged 1 commit into
masterfrom
refactor/consume-ds-from-npm

Conversation

@vreshch

@vreshch vreshch commented Jul 5, 2026

Copy link
Copy Markdown
Member

What

The design system now lives in its own repo (agentage/design-system, published to npm). This removes landing's duplicated local copy and consumes the package instead.

  • Delete packages/design-system (duplicate) and packages/showcase (a Next wrapper that only rendered the DS's dev playground via a relative path — that playground now lives in the DS repo and deploys to ds.agentage.io).
  • packages/landing: @agentage/design-system *^0.3.0 (npm). The site imports only @agentage/design-system/theme.css; the JS barrel is still never imported.
  • Root scripts / Dockerfile / eslint / vitest / CI: drop the two removed packages. Repo is now shared + landing.
  • CLAUDE.md: updated to the 2-package layout.

⚠️ One visible change (please eyeball)

The npm DS's base.css wraps the *{border-color} reset in @layer base (the Tailwind v4 fix that was in web's copy but not landing's). So border-<color> utilities now win instead of being suppressed by the reset. I verified via computed styles:

.border-primary/30 box ("Agentage Memory")
prod today dark default border (--color-border) — utility suppressed
this PR intended primary/30 gold-tinted border

It's a latent design-intent fix. On the homepage it affects exactly one box; site-wide it affects any colored-border utility. Since it changes the live site's appearance, I'd like your OK before merging.

Verify

npm run verify + full landing e2e (33 passed) green locally; DS resolves from the npm tarball (@agentage/design-system@0.3.0). −10k LOC (the two deleted packages).

…al copies

The design system now lives in its own repo (agentage/design-system) and is
published to npm. Remove the duplicated local packages/design-system copy and
packages/showcase (which only rendered the DS's dev playground - that now lives
in the DS repo), and depend on @agentage/design-system@^0.3.0 instead.

- landing: dep '*' -> '^0.3.0'; the site imports @agentage/design-system/theme.css
  from node_modules (JS barrel is still never imported).
- Root scripts, Dockerfile, eslint, vitest, CI: drop design-system + showcase.
- CLAUDE.md: 4 packages -> 2 (shared + landing).

Visible change: the npm DS's base.css wraps the '*{border-color}' reset in
@layer base (Tailwind v4 fix), so 'border-<color>' utilities now win. On the
homepage the 'Agentage Memory' box gets its intended primary/30 border instead
of the default dark one (utility was previously suppressed).

verify + full landing e2e (33) green.
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

CI - Verify PASSED

Commit: 1add10d1ef3797f2a8eb8529bc4cb9a3d9413b10 · Branch: refactor/consume-ds-from-npm

  • ✅ Type check
  • ✅ Lint
  • ✅ Format check
  • ✅ Unit tests
  • ✅ Build
  • ✅ Landing e2e

🔗 View workflow run

@vreshch vreshch merged commit faa6f03 into master Jul 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant