Skip to content

feat(figma-variables): Figma variables exported 2026-05-15 08:51 CET - #408

Merged
Luko248 merged 1 commit into
masterfrom
feat/figma-variables-20260515-0851
May 15, 2026
Merged

feat(figma-variables): Figma variables exported 2026-05-15 08:51 CET#408
Luko248 merged 1 commit into
masterfrom
feat/figma-variables-20260515-0851

Conversation

@Luko248

@Luko248 Luko248 commented May 15, 2026

Copy link
Copy Markdown
Collaborator

Format: CSS variables
Exported themes: 2 themes (light, dark)
Base branch: master

Summary by CodeRabbit

  • New Features
    • Introduced design tokens for both dark and light theme variants, providing standardised colour palettes, typography weights, spacing scales, border radius definitions, sizing measurements, and animation durations to enable consistent visual styling across the application interface.

Review Change Stack

Format: CSS variables
Exported themes: 2 themes (light, dark)
Base branch: master
@semanticdiff-com

semanticdiff-com Bot commented May 15, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  libs/ui/src/tokens/figma/dark/variables.css  0% smaller
  libs/ui/src/tokens/figma/light/variables.css  0% smaller

@vercel

vercel Bot commented May 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
new-engine-ui-storybook Building Building Preview, Comment May 15, 2026 7:51am

@coderabbitai

coderabbitai Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: d6f21c00-4a3e-45a9-9f97-668d97b7cd57

📥 Commits

Reviewing files that changed from the base of the PR and between a910410 and 6a4874b.

📒 Files selected for processing (2)
  • libs/ui/src/tokens/figma/dark/variables.css
  • libs/ui/src/tokens/figma/light/variables.css

Walkthrough

Two generated CSS files export Figma design tokens as CSS custom properties for dark and light themes. Each file declares colour palettes, font weight tokens, and layout measures (borders, radii, sizes, spacing, text metrics, and durations) under :root.

Changes

Design Token Exports

Layer / File(s) Summary
Dark theme tokens
libs/ui/src/tokens/figma/dark/variables.css
Dark theme CSS custom properties for semantic and component-level colours, font weights, and measures (borders, radii, sizes, spacing, typography sizing, and durations).
Light theme tokens
libs/ui/src/tokens/figma/light/variables.css
Light theme CSS custom properties mirroring dark theme structure for colour values, font weights, and layout/measure tokens.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/figma-variables-20260515-0851
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch feat/figma-variables-20260515-0851

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

libs/ui/src/tokens/figma/light/variables.css

Oops! Something went wrong! :(

ESLint: 9.39.1

ESLint couldn't find an eslint.config.(js|mjs|cjs) file.

From ESLint v9.0.0, the default configuration file is now eslint.config.js.
If you are using a .eslintrc.* file, please follow the migration guide
to update your configuration file to the new format:

https://eslint.org/docs/latest/use/configure/migration-guide

If you still have problems after following the migration guide, please stop by
https://eslint.org/chat/help to chat with the team.

libs/ui/src/tokens/figma/dark/variables.css

Oops! Something went wrong! :(

ESLint: 9.39.1

ESLint couldn't find an eslint.config.(js|mjs|cjs) file.

From ESLint v9.0.0, the default configuration file is now eslint.config.js.
If you are using a .eslintrc.* file, please follow the migration guide
to update your configuration file to the new format:

https://eslint.org/docs/latest/use/configure/migration-guide

If you still have problems after following the migration guide, please stop by
https://eslint.org/chat/help to chat with the team.

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Luko248
Luko248 merged commit 001bfd5 into master May 15, 2026
4 of 6 checks passed
--width-header-max: 0rem;
--width-numeric-input-lg: 2.75rem;
--width-numeric-input-md: 2.5rem;
--width-numeric-input-sm: 2.25rem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Duplicate CSS variable definition

The variable --text-xl is defined twice on consecutive lines. This could cause confusion and the second definition will override the first. Please remove the duplicate.

--width-numeric-input-md: 2.5rem;
--width-numeric-input-sm: 2.25rem;
--width-product-card-image-max: 12rem;
--width-product-card-image-min: 8rem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Duplicate CSS variable definition

The variable --text-xs is defined twice on consecutive lines. This could cause confusion and the second definition will override the first. Please remove the duplicate.

@greptile-apps

greptile-apps Bot commented May 15, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds two new Figma-exported CSS variable files — one for the dark theme and one for the light theme — each containing ~1 400 raw :root custom properties covering colors, fonts, measures, spacing, and typography for the full component library.

  • Both files share two export artefacts: --border-width-color-select appears in the /* Colors */ section (line 8) as well as in the correct /* Measures */ section (line 751), and six generic typographic scale tokens (--text-2xl, --text-lg, --text-md, --text-sm, --text-xl, --text-xs) are each emitted twice consecutively — these should be cleaned up before the files are treated as a canonical reference.
  • The files are structurally grouped by kind (Colors → Fonts → Measures → Spacing → Text/Typography), which matches the intended Figma export format.

Confidence Score: 3/5

Safe to merge only after cleaning up the duplicate and misplaced declarations; as-is the files carry stale/misleading token entries that will create noise in every future diff.

Both files have a border-width token placed inside the Colors section that is also redeclared in the correct Measures section — the first declaration is both structurally wrong and redundant. Six typographic scale tokens are also emitted twice consecutively, appearing to be Figma export artefacts.

Both dark and light variables.css files need the duplicate --border-width-color-select on line 8 removed and the six consecutively-duplicated --text-* scale tokens de-duped.

Important Files Changed

Filename Overview
libs/ui/src/tokens/figma/dark/variables.css New Figma dark-theme CSS export with 1 406 lines of raw :root custom properties; contains one border-width token misplaced in the Colors section that is also a duplicate of its correct declaration in the Measures section, and 6 generic typographic scale tokens each declared twice consecutively.
libs/ui/src/tokens/figma/light/variables.css New Figma light-theme CSS export with 1 406 lines; carries the same structural issues as the dark file — --border-width-color-select duplicated across Colors and Measures sections, and 6 typographic scale tokens each declared twice.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    F[Figma Variables] -->|Export| D[figma/dark/variables.css]
    F -->|Export| L[figma/light/variables.css]
    D --> R1[root dark - Colors, Fonts, Measures, Spacing, Typography]
    L --> R2[root light - Colors, Fonts, Measures, Spacing, Typography]
    R1 -->|Reference| T[tokens/components]
    R2 -->|Reference| T
    T -->|theme static| TW[Tailwind v4 utility classes]
    TW -->|tv slots| C[React Components]
Loading

Fix All in Codex

Reviews (1): Last reviewed commit: "feat(figma-variables): Figma variables e..." | Re-trigger Greptile

*/
:root {
/* Colors */
--border-width-color-select: 0.13rem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 --border-width-color-select misplaced in Colors section and duplicated

This token appears on line 8 inside the /* Colors */ block and again at line 751 inside the /* Measures */ section (where it belongs). In CSS the second declaration silently overrides the first, so the value is technically correct, but the orphaned declaration in the Colors block is misleading and inconsistent with the rest of the file structure. The same issue exists in libs/ui/src/tokens/figma/light/variables.css (line 8 and line 751). The declaration on line 8 in both files should be removed.

Fix in Codex

Comment on lines +1222 to +1223
--text-2xl: 2.44rem;
--text-2xl: 2.44rem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Duplicate typographic scale token declarations

Several generic typographic scale tokens are emitted twice consecutively in both files: --text-2xl (lines 1222–1223), --text-lg (1288–1289), --text-md (1291–1292), --text-sm (1346–1347), --text-xl (1396–1397), and --text-xs (1398–1399). Since both copies carry the same value, the second silently shadows the first. The duplicates appear to be a Figma export artefact. Each duplicate declaration should be removed from both theme files to keep the output canonical and to avoid confusion during future diffs.

Fix in Codex

--width-header-max: 0rem;
--width-numeric-input-lg: 2.75rem;
--width-numeric-input-md: 2.5rem;
--width-numeric-input-sm: 2.25rem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Duplicate CSS variable definition

The variable --text-xl is defined twice on consecutive lines. This could cause confusion and the second definition will override the first. Please remove the duplicate.

--width-numeric-input-md: 2.5rem;
--width-numeric-input-sm: 2.25rem;
--width-product-card-image-max: 12rem;
--width-product-card-image-min: 8rem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Duplicate CSS variable definition

The variable --text-xs is defined twice on consecutive lines. This could cause confusion and the second definition will override the first. Please remove the duplicate.

@kilo-code-bot

kilo-code-bot Bot commented May 15, 2026

Copy link
Copy Markdown

Code Review Summary

Status: 4 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 4
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
libs/ui/src/tokens/figma/dark/variables.css 1403 Duplicate CSS variable definition

The variable --text-xl is defined twice on consecutive lines. This could cause confusion and the second definition will override the first. |
| libs/ui/src/tokens/figma/dark/variables.css | 1405 | Duplicate CSS variable definition

The variable --text-xs is defined twice on consecutive lines. This could cause confusion and the second definition will override the first. |
| libs/ui/src/tokens/figma/light/variables.css | 1403 | Duplicate CSS variable definition

The variable --text-xl is defined twice on consecutive lines. This could cause confusion and the second definition will override the first. |
| libs/ui/src/tokens/figma/light/variables.css | 1405 | Duplicate CSS variable definition

The variable --text-xs is defined twice on consecutive lines. This could cause confusion and the second definition will override the first. |

Files Reviewed (2 files)
  • libs/ui/src/tokens/figma/dark/variables.css - 2 issues
  • libs/ui/src/tokens/figma/light/variables.css - 2 issues

Reviewed by nemotron-3-super-120b-a12b-20230311:free · 583,886 tokens

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