Skip to content

Impl styleVars#216

Merged
owjs3901 merged 2 commits intomainfrom
feat-style-vars
Jul 1, 2025
Merged

Impl styleVars#216
owjs3901 merged 2 commits intomainfrom
feat-style-vars

Conversation

@owjs3901
Copy link
Contributor

@owjs3901 owjs3901 commented Jul 1, 2025

Implement styleVars prop

make local css variable like this

// before
<Box styleVars={{ hello: "red"}} />
// after
<Box style={{ "--hello": "red"}} />

Now, we can avoid type error from css variable

@changeset-bot
Copy link

changeset-bot bot commented Jul 1, 2025

🦋 Changeset detected

Latest commit: b4fc65d

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

This PR includes changesets to release 6 packages
Name Type
@devup-ui/wasm Patch
@devup-ui/react Patch
@devup-ui/rsbuild-plugin Patch
@devup-ui/vite-plugin Patch
@devup-ui/webpack-plugin Patch
@devup-ui/next-plugin Patch

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

@codecov
Copy link

codecov bot commented Jul 1, 2025

Codecov Report

Attention: Patch coverage is 81.22271% with 43 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
libs/extractor/src/prop_modify_utils.rs 76.82% 38 Missing ⚠️
bindings/devup-ui-wasm/src/lib.rs 66.66% 1 Missing ⚠️
libs/css/src/lib.rs 91.66% 1 Missing ⚠️
libs/extractor/src/gen_style.rs 75.00% 1 Missing ⚠️
libs/extractor/src/style_extractor.rs 94.44% 1 Missing ⚠️
libs/extractor/src/visit.rs 94.73% 1 Missing ⚠️
Files with missing lines Coverage Δ
libs/extractor/src/extract_style/mod.rs 90.32% <100.00%> (ø)
libs/extractor/src/gen_class_name.rs 71.85% <ø> (-0.20%) ⬇️
libs/extractor/src/lib.rs 100.00% <ø> (ø)
libs/extractor/src/utils.rs 100.00% <ø> (ø)
libs/sheet/src/lib.rs 100.00% <100.00%> (ø)
libs/sheet/src/theme.rs 100.00% <100.00%> (ø)
bindings/devup-ui-wasm/src/lib.rs 23.95% <66.66%> (ø)
libs/css/src/lib.rs 96.09% <91.66%> (ø)
libs/extractor/src/gen_style.rs 61.70% <75.00%> (-1.65%) ⬇️
libs/extractor/src/style_extractor.rs 73.23% <94.44%> (+1.33%) ⬆️
... and 2 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@owjs3901 owjs3901 merged commit c8d003c into main Jul 1, 2025
1 of 2 checks passed
@owjs3901 owjs3901 deleted the feat-style-vars branch July 1, 2025 18:44
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