Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Nov 18, 2025

Describe changes

Checklist

Before taking this PR from the draft, please, make sure you have done the following:

  • Pipeline is passed
  • Tests are added (including unit tests and stories in the storybook)
  • Tests are passed successfully
  • If you're adding a new component/new props, add stories that describe how this component/prop works
  • Changeset(s) is(are) added
  • You have passed the threshold of the library size
  • Commit message follows commit guidelines

Closes: N/A

Other information


Note

Introduces a more powerful styling system with advanced states, new hooks, and a static build path.

  • Implements advanced state mapping across media/container/root/own/starting states with exclusive CSS generation; extensive tests and Storybook docs (AdvancedStates.stories.tsx, Tasty.docs.mdx, StyleInjector.docs.mdx)
  • New hooks: useStyles (scoped classes), useGlobalStyles (selector-scoped), and useRawCSS (raw CSS injection); remove createGlobalStyle
  • Refactors GlobalStyles to hooks, updates Root (drops breakpoints logic, tokens applied via globals), exports tokens
  • Adds zero-runtime integration: tasty/static, tasty/zero, tasty/zero/babel, tasty/zero/next; updates package.json exports and adds Babel deps
  • Style chunking optimization for better CSS reuse/caching; minor style fixes in components (Button, Item, CopyPasteBlock, Layout, etc.)
  • Adjusts size limits; updates lockfile and dev tooling

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

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2025

🦋 Changeset detected

Latest commit: d3cc9f8

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 Nov 18, 2025

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 2, 2026 9:15pm
cube-ui-kit-cursor Ready Ready Preview, Comment Jan 2, 2026 9:15pm

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-7df2db2.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

🏋️ Size limit report

Name Size Passed?
All 317.86 KB (+2.63% 🔺) Yes 🎉
Tree shaking (just a Button) 48.87 KB (+11.72% 🔺) Yes 🎉
Tree shaking (just an Icon) 26.29 KB (+24.1% 🔺) Yes 🎉

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

🧪 Storybook is successfully deployed!

export const GlobalStyles = (props: GlobalStylesProps) => {
const newProps: GlobalStylesElementProps = {};
export function GlobalStyles(props: GlobalStylesProps) {
const { bodyStyles, font, monospaceFont } = props;
Copy link

Choose a reason for hiding this comment

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

GlobalStyles silently ignores fonts, fontDisplay, and publicUrl props

The GlobalStyles component declares fonts, fontDisplay, and publicUrl in its props interface (lines 10-12) but the function only destructures bodyStyles, font, and monospaceFont on line 303. These three props are passed from Root.tsx but are completely ignored. This is a silent regression where existing code using these props (e.g., fontDisplay="auto" in storybook) will have no effect. Either the props need to be implemented or marked as deprecated in the interface.

Additional Locations (1)

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