Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Jan 28, 2026

Note

Adds an optional cssReset config that injects a global CSS reset the first time styles are generated. Reset is defined in CSS_RESET (unnamed @layer) and re-exported.

  • New cssReset?: boolean in configure(); when true, markStylesGenerated() injects CSS_RESET
  • New tasty/css-reset.ts with the reset; docs updated to list cssReset option
  • Zero-runtime: tasty/zero/babel accepts config.cssReset and prepends CSS_RESET via new CSSWriter.prepend()
  • Minor cleanup in styles/reset.ts input reset map

Changeset: minor release for @cube-dev/ui-kit

Written by Cursor Bugbot for commit 1771dad. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Jan 28, 2026

🦋 Changeset detected

Latest commit: 1771dad

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jan 28, 2026

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

Project Deployment Review Updated (UTC)
cube-ui-kit Ready Ready Preview, Comment Jan 28, 2026 3:36pm
cube-ui-kit-cursor Ready Ready Preview, Comment Jan 28, 2026 3:36pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2026

📦 NPM canary release

Deployed canary version 0.0.0-canary-af0a11a.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2026

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2026

🏋️ Size limit report

Name Size Passed?
All 377.11 KB (+0.17% 🔺) Yes 🎉
Tree shaking (just a Button) 57.52 KB (+1.22% 🔺) Yes 🎉
Tree shaking (just tasty) 33.91 KB (+2.08% 🔺) Yes 🎉

Click here if you want to find out what is changed in this build

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

newBlocks.set(existingKey, existingBlock);
}
this.cssBlocks = newBlocks;
}
Copy link

Choose a reason for hiding this comment

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

Prepend method overwrites new value with old value

Low Severity

The prepend method has a logic flaw: it first sets the new entry with newBlocks.set(key, { css, source }), then iterates over all existing blocks including any entry with the same key, which overwrites the newly set value with the old one. This doesn't currently manifest because CSS_RESET is a constant and source is always undefined, making old and new values identical. However, the method would fail to update content if called with the same key but different css or source values.

Fix in Cursor Fix in Web

import type { StyleHandlerDefinition } from './utils/styles';

// Re-export CSS_RESET for external use
export { CSS_RESET };
Copy link

Choose a reason for hiding this comment

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

Unused re-export of CSS_RESET from config module

Low Severity

The CSS_RESET re-export from config.ts is marked "for external use" but is never included in the package's barrel file (src/tasty/index.ts). The barrel file only exports specific named exports from ./config and doesn't include CSS_RESET. Both internal consumers (config.ts and zero/babel.ts) import directly from ./css-reset, not from the re-export. This makes the re-export dead code that's inaccessible to external users.

Fix in Cursor Fix in Web

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.

2 participants