Skip to content

Conversation

@alikashef
Copy link
Contributor

@alikashef alikashef commented Feb 6, 2025

Updated "PixelGenius Platform" from zeroheight

The token set "PixelGenius Platform" has been updated via a sync from zeroheight.

Tokens have been exported in the following formats: DTCG JSON

Push initiated by pixelgenius
Token Set on zeroheight Tokens Management

Review the changes to ensure the tokens have been updated accordingly

Summary by CodeRabbit

  • New Features
    • Introduced new icon size options to standardize visuals.
    • Expanded the color palette with additional sidebar themes for a more cohesive interface.
    • Added comprehensive typography settings to ensure consistent text styling across the application.
    • Introduced new CSS custom properties for sidebar elements in both light and dark themes.

@vercel
Copy link

vercel bot commented Feb 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pixel-client ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 8:39pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 6, 2025

Walkthrough

This pull request adds new design tokens to the design system. A new file for icon size tokens is introduced with definitions for large, medium, and extra small icons. Two token files for colors now include a set of sidebar-related color tokens with various properties, and a new file provides comprehensive typography tokens that cover text color, font family, line height, size, and weight settings. Additionally, CSS custom properties and Tailwind color references for the sidebar have been added to enhance styling capabilities.

Changes

Files Change Summary
packages/design-system/.../token_Icon_size_Mode1.json Added a new file defining icon size tokens for three categories (“LG”, “MD”, “XS”) with their numerical values.
packages/design-system/.../token_color_default.json,
packages/design-system/.../token_color_light.json
Added new sidebar color tokens – properties such as sidebar, sidebar-accent, sidebar-accent-foreground, sidebar-border, sidebar-forground, sidebar-primary, etc.
packages/design-system/.../token_typography_Mode1.json Introduced a typography tokens file that defines color, font family, line height, size, and weight settings.
packages/design-system/.../_colors-dark.scss,
packages/design-system/.../_colors-light.scss
Added new CSS custom properties for sidebar-related colors in both dark and light themes.
packages/design-system/.../colors.ts New color properties for sidebar elements added to the Tailwind colors object, referencing corresponding CSS variables.

Suggested reviewers

  • mrbadri

Poem

I'm a bunny in a code-filled glen,
Hoping through tokens again and again.
New icons, colors, and text so fine,
In design tokens, every detail does shine.
I nibble on code like a crunchy leaf,
Celebrating changes with joy and rabbit relief!
🐰🌸

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.

Scope: all 2 workspace projects
 ERR_PNPM_FETCH_404  GET http://10.0.0.28:4873/@repo%2Feslint-config: Not Found - 404

This error happened while installing a direct dependency of /tmp/eslint

@repo/eslint-config is not in the npm registry, or you have no permission to fetch it.

No authorization header was set for the request.

Tip

🌐 Web search-backed reviews and chat
  • We have enabled web search-based reviews and chat for all users. This feature allows CodeRabbit to access the latest documentation and information on the web.
  • You can disable this feature by setting web_search: false in the knowledge_base settings.
  • Please share any feedback in the Discord discussion.
✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
packages/design-system/src/tokens/token_typography_Mode1.json (2)

13-94: Comprehensive Line-Height Tokens
The “line height” settings for various text categories (Display, Heading, Labels, Paragraphs) are well organized with clear numerical values for different screen sizes. Consider whether adding a description (as seen in some other token files) might help document their purpose further.


181-198: Naming Consistency in Font Weight Tokens
The font weight tokens are defined with keys "Bold", "Medium", and "Regular" using capitalized names; however, the fourth key is "light" (in lowercase) while its value is "Light". For consistency and to avoid potential mismatches in token lookup, consider renaming the key to "Light".

Proposed diff:

-      "light": {
-        "$type": "string",
-        "$value": "Light"
-      }
+      "Light": {
+        "$type": "string",
+        "$value": "Light"
+      }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 25c6dfa and 73256c0.

📒 Files selected for processing (4)
  • packages/design-system/src/tokens/token_Icon_size_Mode1.json (1 hunks)
  • packages/design-system/src/tokens/token_color_default.json (1 hunks)
  • packages/design-system/src/tokens/token_color_light.json (1 hunks)
  • packages/design-system/src/tokens/token_typography_Mode1.json (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • packages/design-system/src/tokens/token_Icon_size_Mode1.json
🔇 Additional comments (3)
packages/design-system/src/tokens/token_typography_Mode1.json (3)

1-5: General JSON Structure and New File Creation
This new typography token file is well structured. The JSON syntax is correct and it appropriately encapsulates the typography tokens for the design system.


6-12: Font Family Definition is Clear
The font family token ("Poppins") is clearly defined under "family". This simple and self-descriptive configuration supports maintainability.


95-180: Font Size Tokens are Well Defined
The size tokens mirror the structure of the "line height" tokens and provide a consistent approach for different text types across breakpoints. No issues noted here, and the hierarchical organization supports scalability.

@mrbadri mrbadri merged commit 184842a into main Feb 6, 2025
3 checks passed
@mrbadri mrbadri deleted the zeroheight-tokens-20250206203038 branch February 6, 2025 20:39
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 5

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 73256c0 and 674bcb4.

📒 Files selected for processing (3)
  • packages/design-system/src/styles/base/_colors-dark.scss (1 hunks)
  • packages/design-system/src/styles/base/_colors-light.scss (1 hunks)
  • packages/design-system/src/tailwind/colors.ts (1 hunks)
🔇 Additional comments (2)
packages/design-system/src/tailwind/colors.ts (1)

29-36: LGTM! Consistent token pattern.

The new sidebar color tokens follow the established pattern of using HSL with CSS variables, maintaining consistency with the existing color system.

packages/design-system/src/styles/base/_colors-dark.scss (1)

32-39: Verify sidebar color tokens in zeroheight.

Since these tokens were imported from zeroheight, please verify that the values match the source design system.

"sidebar-accent": "hsl(var(--sidebar-accent))",
"sidebar-accent-foreground": "hsl(var(--sidebar-accent-foreground))",
"sidebar-border": "hsl(var(--sidebar-border))",
"sidebar-forground": "hsl(var(--sidebar-forground))",
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix typo in color token name.

The token name contains a typo: "forground" should be "foreground".

-  "sidebar-forground": "hsl(var(--sidebar-forground))",
+  "sidebar-foreground": "hsl(var(--sidebar-foreground))",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"sidebar-forground": "hsl(var(--sidebar-forground))",
"sidebar-foreground": "hsl(var(--sidebar-foreground))",

Comment on lines +32 to +34
--sidebar: var(--color-card);
--sidebar-accent: var(--color-background);
--sidebar-accent-foreground: var(--color-foreground);
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix incorrect CSS variable references.

The variables reference non-existent --color-* variables. They should reference the corresponding base variables instead.

-    --sidebar: var(--color-card);
-    --sidebar-accent: var(--color-background);
-    --sidebar-accent-foreground: var(--color-foreground);
-    --sidebar-forground: var(--color-foreground);
+    --sidebar: var(--card);
+    --sidebar-accent: var(--background);
+    --sidebar-accent-foreground: var(--foreground);
+    --sidebar-foreground: var(--foreground);

Also applies to: 36-36

Comment on lines +37 to +39
--sidebar-primary: #ff0000;
--sidebar-primary-foreground: #ff0000;
--sidebar-ring: #ff0000;
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Replace placeholder red colors with proper design tokens.

The hardcoded #ff0000 values appear to be placeholder development values and should be replaced with appropriate design tokens.

-    --sidebar-primary: #ff0000;
-    --sidebar-primary-foreground: #ff0000;
-    --sidebar-ring: #ff0000;
+    --sidebar-primary: var(--primary);
+    --sidebar-primary-foreground: var(--primary-foreground);
+    --sidebar-ring: var(--ring);

Comment on lines +32 to +34
--sidebar: var(--color-card);
--sidebar-accent: var(--color-background);
--sidebar-accent-foreground: var(--color-foreground);
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix incorrect CSS variable references.

The variables reference non-existent --color-* variables. They should reference the corresponding base variables instead.

-    --sidebar: var(--color-card);
-    --sidebar-accent: var(--color-background);
-    --sidebar-accent-foreground: var(--color-foreground);
-    --sidebar-forground: var(--color-foreground);
+    --sidebar: var(--card);
+    --sidebar-accent: var(--background);
+    --sidebar-accent-foreground: var(--foreground);
+    --sidebar-foreground: var(--foreground);

Also applies to: 36-36

Comment on lines +37 to +39
--sidebar-primary: #ff0000;
--sidebar-primary-foreground: #ff0000;
--sidebar-ring: #ff0000;
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Replace placeholder red colors with proper design tokens.

The hardcoded #ff0000 values appear to be placeholder development values and should be replaced with appropriate design tokens.

-    --sidebar-primary: #ff0000;
-    --sidebar-primary-foreground: #ff0000;
-    --sidebar-ring: #ff0000;
+    --sidebar-primary: var(--primary);
+    --sidebar-primary-foreground: var(--primary-foreground);
+    --sidebar-ring: var(--ring);
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
--sidebar-primary: #ff0000;
--sidebar-primary-foreground: #ff0000;
--sidebar-ring: #ff0000;
--sidebar-primary: var(--primary);
--sidebar-primary-foreground: var(--primary-foreground);
--sidebar-ring: var(--ring);

This was referenced Feb 6, 2025
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.

3 participants