Skip to content

fix(storybook): update color import after Figma token pipeline removal#26

Closed
vianmora wants to merge 2 commits into
developfrom
fix/storybook-figma-tokens-import
Closed

fix(storybook): update color import after Figma token pipeline removal#26
vianmora wants to merge 2 commits into
developfrom
fix/storybook-figma-tokens-import

Conversation

@vianmora

Copy link
Copy Markdown
Collaborator

Problem

Upstream commit db78ae4dc removed the Figma token sync pipeline, deleting packages/design-system/src/__generated__/figma-design-tokens. Chromatic was failing because .storybook/preview.tsx still imported color from that deleted file.

Fix

Update the import to point to design-tokens.ts where the same color export already exists.

Test plan

  • Chromatic passes on this PR

vianmora and others added 2 commits June 17, 2026 15:32
serve-built-remix.ts expected the Vercel preset build format
(build/server/<hash>/index.js). Since vite.config.ts skips vercelPreset()
for non-Vercel builds, the output is now build/server/index.js directly,
with build/server/assets/ as a subdirectory — causing the script to try
to import assets/index.js (ERR_MODULE_NOT_FOUND).

Check for index.js at the root of build/server/ first; fall back to the
hash-subdirectory format for Vercel preset builds.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Upstream removed the Figma token sync pipeline (db78ae4), deleting
packages/design-system/src/__generated__/figma-design-tokens. The same
color values are exported directly from design-tokens.ts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vianmora vianmora deployed to development June 17, 2026 13:34 — with GitHub Actions Active
@vianmora vianmora closed this Jun 17, 2026
@vianmora vianmora deleted the fix/storybook-figma-tokens-import branch June 17, 2026 13:37
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