Update Design Tokens #31
Reference in New Issue
Block a user
Delete Branch "adilallo/maintenance/UpdateDesignTokens"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Update app design tokens and fix visual regression tests
Overview
This PR integrates design tokens from multiple CSS files (
base-default.css,theme-dark.css,theme-light.css,measures-default.css) into the maintailwind.cssfile, refactors blog-specific styles into a separate CSS file for better code organization, and fixes visual regression test failures. The work ensures all design tokens are properly consolidated in the design system and all tests pass successfully.Changes
tailwind.cssapp/blog/blog.cssand moved blog-specific.post-bodystyles fromtailwind.cssto follow best practices of keeping feature-specific styles separateblog.cssinapp/blog/[slug]/page.tsxtailwind.cssfor better readability (multi-line var() declarations)Files modified:
app/tailwind.css- Added design tokens and improved formattingapp/blog/blog.css- New file for blog-specific stylesapp/blog/[slug]/page.tsx- Added blog.css importapp/components/RelatedArticles/RelatedArticles.container.tsx- Reverted hydration fixapp/components/RelatedArticles/RelatedArticles.view.tsx- Reverted comment changestests/e2e/visual-regression.spec.ts-snapshots/- Updated homepage snapshotsScreenshots
How to Test
./scripts/test-local.shvar(--spacing-scale-018),var(--color-surface-default-brand-lime), etc./blog/resolving-active-conflictsand verify blog-specific styles are applied correctlyNotes
tailwind.cssfollowing the existing pattern. Tokens are organized by category for maintainability.RuleCard.view.tsxcomponent contains a typo (text-[--color-content-inverse-primary]missingvar()) that existed before this PR. This should be fixed in a future PR, which will require updating visual regression snapshots again.