Skip to content

Colors, effects, and grid improvements#19

Merged
planetabhi merged 4 commits intomainfrom
feature
Apr 29, 2026
Merged

Colors, effects, and grid improvements#19
planetabhi merged 4 commits intomainfrom
feature

Conversation

@planetabhi
Copy link
Copy Markdown
Member

@planetabhi planetabhi commented Apr 28, 2026

Summary by CodeRabbit

  • नई सुविधाएं

    • बॉर्डर‑रेडियस, ब्लर और बैकड्रॉप‑ब्लर यूटिलिटीज़ जोड़ी गईं
    • ट्रांज़िशन यूटिलिटी और विस्तारित लेआउट यूटिलिटीज़ उपलब्ध
    • ग्रिड के लिए नए nu‑prefixed क्लासेस और विस्तृत उपयोगिता क्लासेस जोड़े गए
  • अद्यतन

    • डार्क थीम के ग्रे‑पैलेट में समायोजन
    • शैडो सिस्टम रीवाइज किया गया
    • ग्रिड कंटेनर साइजिंग व कुछ कॉलम मॉडिफायर्स बदले गए; फोकस‑आउटलाइन हटा दी गई; दृश्यता क्लास नाम बदले गए
  • कौशल/अन्य

    • कई पैकेज वर्शन अपडेट और निर्मित playground.html को .gitignore में जोड़ा गया

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 28, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b5f02ded-f9db-4a0f-a177-7222ecf1b8bc

📥 Commits

Reviewing files that changed from the base of the PR and between 6aecad4 and bec4ef0.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • package.json
✅ Files skipped from review due to trivial changes (1)
  • package.json

📝 Walkthrough

Walkthrough

यह PR पैकेज वर्ज़न बम्प, ग्रिड क्लास/मॉडिफायर रीनेमिंग, ग्रिड उपयोगिताएँ जोड़ने, इफेक्ट्स के शैडो वैरिएबल अपडेट और नई CSS उपयोगिता कक्षाएँ जोड़ता है; रंग थीम के dark--cold के grey-scale OKLCH मान भी अपडेट हुए हैं।

Changes

Cohort / File(s) Summary
Color Package
packages/colors/package.json, packages/colors/src/_theme-dark--cold.scss
@new-ui/colors वर्ज़न 2.2.4 → 2.2.5; dark--cold के 10 grey-scale OKLCH स्टॉप मान अपडेट किए गए।
Effects Package Metadata
packages/effects/package.json
@new-ui/effects वर्ज़न 0.1.10 → 0.1.11।
Effects Utilities & Variables
packages/effects/src/_utilities.scss, packages/effects/src/_variables.scss
नई उपयोगिता कक्षाएँ जोड़ीं (radius, blur, backdrop-blur, transition) और शैडो CSS कस्टम प्रॉपर्टीज़ (--dialog-strong, --dialog, --content, --canvas, --keyboard-key) को रूट और डार्क-थीम ओवरराइड के साथ अपडेट किया गया।
Grid Package Metadata
packages/grid/package.json
@new-ui/grid वर्ज़न 0.1.3 → 0.1.4।
Grid Core & API Renames
packages/grid/src/_grid.scss
मुख्य क्लासेज़ और मिक्सिन लक्ष्य nu प्रीफ़िक्स में रीनेम (.grid.nu-grid, .container.nu-container, .col.nu-col); कॉलम मॉडिफायर नाम बदले (--top/--bottom/--middle--content-top/..., --fixed--no-grow); :focus-visible आउटलाइन हटाई गई; gutter-reset लक्ष्यों को अपडेट किया गया।
Grid Utilities & Entry
packages/grid/src/_utilities.scss, packages/grid/src/index.scss
नया SCSS utilities फाइल जोड़ी गई (nu-u-* display/flex/sizing/overflow आदि) और index.scss में इसे इम्पोर्ट किया गया।
Repository Config
.gitignore, package.json
.gitignore में playground.html जोड़ा गया और .DS_Store EOF सुधार; रूट package.json वर्ज़न 0.3.5 → 0.3.6 और dev/runtime dependency वर्ज़न बम्प (stylelint, @new-ui/colors, @new-ui/effects)।

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • feat:Optimizations #14 — समान रंग थीम और effects शैडो चर फ़ाइलों (packages/colors/src/_theme-dark--cold.scss, packages/effects/src/_variables.scss) को संशोधित करता है।
  • feat: color updates #10packages/colors/src/_theme-dark--cold.scss में grey-scale OKLCH मानों के समान प्रकार के अपडेट करता है।
  • polishing #6packages/grid/src/_grid.scss को संशोधित करता है; grid क्लास/मॉडिफायर और मिक्सिन बदलावों पर कोड-स्तरीय overlap है।
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed शीर्षक विभिन्न पैकेजों में किए गए सुधारों को सटीकता से दर्शाता है और मुख्य परिवर्तनों को संक्षेप में प्रस्तुत करता है।
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

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

Copy link
Copy Markdown

@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 (3)
packages/effects/src/_utilities.scss (1)

30-158: यहाँ भी utility generation को token maps से drive करने पर duplication काफी घटेगी।

radius/blur/backdrop/transition blocks repeat हो रहे हैं; @each pattern से consistency और maintenance बेहतर होगी।

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/effects/src/_utilities.scss` around lines 30 - 158, The utilities
file duplicates radius, blur, backdrop-blur and transition classes; replace the
repeated blocks with token-driven generation using Sass maps and `@each` loops:
create maps for radii (e.g., keys xs, sm, md...), blurs (xs, sm...),
backdrop-blurs and transition variants, then loop to emit .nu-u-radius-#{key},
.nu-u-blur-#{key}, .nu-u-backdrop-blur-#{key} and .nu-u-transition-#{variant}
classes using the corresponding map values; update or add map names and loop
logic near the existing .nu-u-radius-*, .nu-u-blur-*, .nu-u-backdrop-blur-*, and
.nu-u-transition* definitions so the generated output matches current variable
names (e.g., --radius-*, --blur-*,
--default-transition-duration/timing-function).
packages/grid/src/_utilities.scss (1)

2-172: रीपीटेड utility declarations को Sass maps + @each से generate करना maintainability बढ़ाएगा।

अभी file में काफी duplication है; map-driven generation से future additions safer और कम error-prone होंगी।

♻️ छोटा refactor pattern (उदाहरण)
- .nu-u-d-block { display: block; }
- .nu-u-d-inline { display: inline; }
- .nu-u-d-inline-block { display: inline-block; }
- .nu-u-d-flex { display: flex; }
- .nu-u-d-inline-flex { display: inline-flex; }
- .nu-u-d-grid { display: grid; }
- .nu-u-d-none { display: none; }
+ $display-utils: (
+   block: block,
+   inline: inline,
+   inline-block: inline-block,
+   flex: flex,
+   inline-flex: inline-flex,
+   grid: grid,
+   none: none
+ );
+
+ `@each` $name, $value in $display-utils {
+   .nu-u-d-#{$name} {
+     display: $value;
+   }
+ }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/grid/src/_utilities.scss` around lines 2 - 172, The file
_utilities.scss repeats many utility classes (e.g.,
.nu-u-d-block/.nu-u-d-inline/.nu-u-d-flex, .nu-u-flex-row/.nu-u-flex-col,
.nu-u-flex-wrap/.nu-u-flex-nowrap, .nu-u-justify-start/.nu-u-justify-center,
.nu-u-items-start/.nu-u-items-center, .nu-u-self-start/.nu-u-self-center,
.nu-u-flex-grow/.nu-u-flex-grow-0, sizing like .nu-u-w-full/.nu-u-w-auto, and
overflow utilities) — convert these into Sass maps and generate the classes with
`@each` loops to remove duplication; create maps keyed by utility suffix (e.g.,
("d": (block: block, inline: inline, flex: flex, none: none)),
("flex-direction": (row: row, row-reverse: row-reverse, col: column, ...)),
("justify": (start: flex-start, center: center ...)), etc.), then loop to output
the selector names (.nu-u-<prefix>-<key>) with the corresponding property/value;
ensure unique selectors like .nu-u-d-*, .nu-u-flex-*, .nu-u-justify-*,
.nu-u-items-*, .nu-u-self-*, .nu-u-flex-grow-*, .nu-u-w-*, .nu-u-h-*, and
.nu-u-overflow-* match existing names so behavior is preserved.
packages/grid/src/_grid.scss (1)

245-253: --no-grow और --auto में duplicate flex rule को dedupe करें।

दोनों modifiers में flex: 0 0 auto; repeat हो रहा है; इसे merge करने से maintenance आसान होगी।

♻️ Suggested cleanup
-  &--no-grow {
-    flex: 0 0 auto;
-  }
+  &--no-grow,
+  &--auto {
+    flex: 0 0 auto;
+  }

   // Size to content, remove max-width constraint
   &--auto {
-    flex: 0 0 auto;
     width: auto;
     max-width: none;
   }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/grid/src/_grid.scss` around lines 245 - 253, Both &--no-grow and
&--auto contain the identical rule "flex: 0 0 auto"; remove duplication by
moving that common declaration into a shared selector so both modifiers inherit
it (for example combine the selectors like "&--no-grow, &--auto" or extract a
shared placeholder/mixin used by both), then keep unique rules (width/
max-width) only in &--auto; update only the selectors &--no-grow and &--auto (or
the new shared placeholder/mixin) so the visual behavior is unchanged while the
duplicate flex declaration is removed.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/effects/src/_variables.scss`:
- Around line 3-5: The CSS custom properties --dialog-strong, --dialog,
--content (and the other shadow/color declarations later in the file) use legacy
rgba() alpha syntax which violates stylelint rules; replace each rgba(r, g, b,
a) instance with the modern color-function notation rgb(r g b / X%) (e.g.
rgba(0,0,0,0.16) -> rgb(0 0 0 / 16%); rgba(255,255,255,0.04) -> rgb(255 255 255
/ 4%)) throughout the file so the variables (--dialog-strong, --dialog,
--content and the other affected variables) use the modern notation and the lint
errors are resolved.

In `@packages/grid/src/_grid.scss`:
- Around line 72-73: You renamed public CSS classes (.nu-container, .nu-grid,
.nu-col and the content/utility modifiers) which breaks downstream consumers;
restore backward compatibility by adding deprecated aliases that map the old
class names to the new ones (e.g., keep .nu-container, .nu-grid, .nu-col
selectors that simply `@extend` or re-apply the new rules), add clear deprecation
comments above each alias, update the stylesheet comment/header to document the
deprecation/migration plan and target removal version, and add or update
unit/visual tests to assert the old class names still produce the same styling
until the major-version removal.

---

Nitpick comments:
In `@packages/effects/src/_utilities.scss`:
- Around line 30-158: The utilities file duplicates radius, blur, backdrop-blur
and transition classes; replace the repeated blocks with token-driven generation
using Sass maps and `@each` loops: create maps for radii (e.g., keys xs, sm,
md...), blurs (xs, sm...), backdrop-blurs and transition variants, then loop to
emit .nu-u-radius-#{key}, .nu-u-blur-#{key}, .nu-u-backdrop-blur-#{key} and
.nu-u-transition-#{variant} classes using the corresponding map values; update
or add map names and loop logic near the existing .nu-u-radius-*, .nu-u-blur-*,
.nu-u-backdrop-blur-*, and .nu-u-transition* definitions so the generated output
matches current variable names (e.g., --radius-*, --blur-*,
--default-transition-duration/timing-function).

In `@packages/grid/src/_grid.scss`:
- Around line 245-253: Both &--no-grow and &--auto contain the identical rule
"flex: 0 0 auto"; remove duplication by moving that common declaration into a
shared selector so both modifiers inherit it (for example combine the selectors
like "&--no-grow, &--auto" or extract a shared placeholder/mixin used by both),
then keep unique rules (width/ max-width) only in &--auto; update only the
selectors &--no-grow and &--auto (or the new shared placeholder/mixin) so the
visual behavior is unchanged while the duplicate flex declaration is removed.

In `@packages/grid/src/_utilities.scss`:
- Around line 2-172: The file _utilities.scss repeats many utility classes
(e.g., .nu-u-d-block/.nu-u-d-inline/.nu-u-d-flex, .nu-u-flex-row/.nu-u-flex-col,
.nu-u-flex-wrap/.nu-u-flex-nowrap, .nu-u-justify-start/.nu-u-justify-center,
.nu-u-items-start/.nu-u-items-center, .nu-u-self-start/.nu-u-self-center,
.nu-u-flex-grow/.nu-u-flex-grow-0, sizing like .nu-u-w-full/.nu-u-w-auto, and
overflow utilities) — convert these into Sass maps and generate the classes with
`@each` loops to remove duplication; create maps keyed by utility suffix (e.g.,
("d": (block: block, inline: inline, flex: flex, none: none)),
("flex-direction": (row: row, row-reverse: row-reverse, col: column, ...)),
("justify": (start: flex-start, center: center ...)), etc.), then loop to output
the selector names (.nu-u-<prefix>-<key>) with the corresponding property/value;
ensure unique selectors like .nu-u-d-*, .nu-u-flex-*, .nu-u-justify-*,
.nu-u-items-*, .nu-u-self-*, .nu-u-flex-grow-*, .nu-u-w-*, .nu-u-h-*, and
.nu-u-overflow-* match existing names so behavior is preserved.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7f0417d0-98a7-449c-bec0-cda9f48af559

📥 Commits

Reviewing files that changed from the base of the PR and between d9114a6 and fd3405e.

⛔ Files ignored due to path filters (12)
  • bun.lock is excluded by !**/*.lock
  • dist/index.css is excluded by !**/dist/**
  • dist/index.css.map is excluded by !**/dist/**, !**/*.map
  • packages/colors/dist/index.css is excluded by !**/dist/**
  • packages/colors/dist/index.css.map is excluded by !**/dist/**, !**/*.map
  • packages/effects/dist/index.css is excluded by !**/dist/**
  • packages/effects/dist/index.css.map is excluded by !**/dist/**, !**/*.map
  • packages/grid/dist/index.css is excluded by !**/dist/**
  • packages/grid/dist/index.css.map is excluded by !**/dist/**, !**/*.map
  • packages/reset/dist/index.css is excluded by !**/dist/**
  • packages/spacings/dist/index.css is excluded by !**/dist/**
  • packages/typography/dist/index.css is excluded by !**/dist/**
📒 Files selected for processing (10)
  • .gitignore
  • packages/colors/package.json
  • packages/colors/src/_theme-dark--cold.scss
  • packages/effects/package.json
  • packages/effects/src/_utilities.scss
  • packages/effects/src/_variables.scss
  • packages/grid/package.json
  • packages/grid/src/_grid.scss
  • packages/grid/src/_utilities.scss
  • packages/grid/src/index.scss

Comment thread packages/effects/src/_variables.scss Outdated
Comment thread packages/grid/src/_grid.scss
@planetabhi planetabhi changed the title Opt. Colors, effects, and grid improvements Apr 29, 2026
@planetabhi
Copy link
Copy Markdown
Member Author

@coderabbitai कृपया इस PR की समीक्षा करें

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

@planetabhi: बिल्कुल! मैं अभी इस PR की समीक्षा शुरू करता हूँ। 🐇

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@planetabhi planetabhi merged commit de84897 into main Apr 29, 2026
1 check passed
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