Skip to content

Add SCSS token output to build pipeline#6

Merged
OJBoon merged 1 commit into
mainfrom
feat/lotus-audit-ios-candidates-and-subagents
May 7, 2026
Merged

Add SCSS token output to build pipeline#6
OJBoon merged 1 commit into
mainfrom
feat/lotus-audit-ios-candidates-and-subagents

Conversation

@OJBoon
Copy link
Copy Markdown
Collaborator

@OJBoon OJBoon commented May 7, 2026

What

Adds dist/web/_lotus-tokens.scss as a generated output from build-platforms.mjs, alongside the existing CSS, Swift, and Android files.

Why

justpark-ui currently hand-maintains _colorPrimitives.scss — a static SCSS file that duplicates the values in DESIGN.md. This means token changes require a manual update in two places, and the values have already drifted (e.g. grey-500 is different between the two files).

This generated SCSS file is the concrete step that allows parkhub/frontend to consume Lotus token values and names from a single automated source, rather than keeping them in sync by hand.

Output

_lotus-tokens.scss contains four sections, all derived directly from tokens.json:

  • Primitive colors$grey-500, $green-500 etc.
  • Semantic colors$text-primary, $action-primary etc.
  • Spacing$spacing-xs, $spacing-s etc.
  • Border radius$rounded-sm, $rounded-md etc.
  • Typography$typography-h1-font-size etc.

Variable names match DESIGN.md token names exactly — the same names used in the Swift and Android outputs — establishing shared language across all three platforms.

Migration path (next step, separate PR in parkhub/frontend)

Once @justpark/lotus is published, justpark-ui/_colors.scss swaps:

// Before
@use "colorPrimitives";

// After
@use '@justpark/lotus/dist/web/lotus-tokens' as lotus;

Test plan

  • node scripts/build-platforms.mjs runs without errors
  • dist/web/_lotus-tokens.scss generated with correct values
  • All existing outputs (CSS, Swift, Android XML) unaffected

Generates dist/web/_lotus-tokens.scss from tokens.json alongside the existing
CSS, Swift, and Android outputs. This file replaces the hand-maintained
_colorPrimitives.scss in justpark-ui — it is the concrete step that lets
parkhub/frontend consume Lotus token values and names from a generated source
rather than keeping them in sync manually.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gitstream-cm
Copy link
Copy Markdown

gitstream-cm Bot commented May 7, 2026

🚨 gitStream Monthly Automation Limit Reached 🚨

Your organization has exceeded the number of pull requests allowed for automation with gitStream.
Monthly PRs automated: 250/250

To continue automating your PR workflows and unlock additional features, please contact LinearB.

@OJBoon OJBoon merged commit 1fcabc3 into main May 7, 2026
2 checks passed
@OJBoon OJBoon deleted the feat/lotus-audit-ios-candidates-and-subagents branch May 7, 2026 16:38
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