-
Notifications
You must be signed in to change notification settings - Fork 369
feat(clerk-js): Update color logic utils to support CSS variable usage #6187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(clerk-js): Update color logic utils to support CSS variable usage #6187
Conversation
🦋 Changeset detectedLatest commit: a84db2d The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
- Added custom appearance variables in app.ts for improved styling. - Introduced a new CSS variable for brand color in template.html. - Removed unused simpleColorMix function from color utilities in utils.ts.
!snapshot |
Hey @alexcarpenter - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/clerk-expo@2.14.0-snapshot.v20250625145444 --save-exact |
…hub.com:clerk/javascript into alexcarpenter/user-2201-add-color-mix-utilities
!snapshot |
Hey @alexcarpenter - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/agent-toolkit@0.1.5-snapshot.v20250703142444 --save-exact
npm i @clerk/astro@2.10.2-snapshot.v20250703142444 --save-exact
npm i @clerk/backend@2.4.0-snapshot.v20250703142444 --save-exact
npm i @clerk/chrome-extension@2.5.3-snapshot.v20250703142444 --save-exact
npm i @clerk/clerk-js@5.70.0-snapshot.v20250703142444 --save-exact
npm i @clerk/elements@0.23.37-snapshot.v20250703142444 --save-exact
npm i @clerk/clerk-expo@2.14.2-snapshot.v20250703142444 --save-exact
npm i @clerk/expo-passkeys@0.3.14-snapshot.v20250703142444 --save-exact
npm i @clerk/express@1.7.4-snapshot.v20250703142444 --save-exact
npm i @clerk/fastify@2.4.4-snapshot.v20250703142444 --save-exact
npm i @clerk/localizations@3.17.3-snapshot.v20250703142444 --save-exact
npm i @clerk/nextjs@6.23.3-snapshot.v20250703142444 --save-exact
npm i @clerk/nuxt@1.7.5-snapshot.v20250703142444 --save-exact
npm i @clerk/clerk-react@5.32.4-snapshot.v20250703142444 --save-exact
npm i @clerk/react-router@1.6.4-snapshot.v20250703142444 --save-exact
npm i @clerk/remix@4.8.5-snapshot.v20250703142444 --save-exact
npm i @clerk/shared@3.10.2-snapshot.v20250703142444 --save-exact
npm i @clerk/tanstack-react-start@0.18.3-snapshot.v20250703142444 --save-exact
npm i @clerk/testing@1.9.2-snapshot.v20250703142444 --save-exact
npm i @clerk/themes@2.2.54-snapshot.v20250703142444 --save-exact
npm i @clerk/types@4.63.0-snapshot.v20250703142444 --save-exact
npm i @clerk/vue@1.8.12-snapshot.v20250703142444 --save-exact |
!snapshot |
Hey @alexcarpenter - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/agent-toolkit@0.1.6-snapshot.v20250707175819 --save-exact
npm i @clerk/astro@2.10.3-snapshot.v20250707175819 --save-exact
npm i @clerk/backend@2.4.1-snapshot.v20250707175819 --save-exact
npm i @clerk/chrome-extension@2.5.4-snapshot.v20250707175819 --save-exact
npm i @clerk/clerk-js@5.71.0-snapshot.v20250707175819 --save-exact
npm i @clerk/elements@0.23.38-snapshot.v20250707175819 --save-exact
npm i @clerk/clerk-expo@2.14.3-snapshot.v20250707175819 --save-exact
npm i @clerk/expo-passkeys@0.3.15-snapshot.v20250707175819 --save-exact
npm i @clerk/express@1.7.5-snapshot.v20250707175819 --save-exact
npm i @clerk/fastify@2.4.5-snapshot.v20250707175819 --save-exact
npm i @clerk/localizations@3.17.4-snapshot.v20250707175819 --save-exact
npm i @clerk/nextjs@6.24.0-snapshot.v20250707175819 --save-exact
npm i @clerk/nuxt@1.7.6-snapshot.v20250707175819 --save-exact
npm i @clerk/clerk-react@5.33.0-snapshot.v20250707175819 --save-exact
npm i @clerk/react-router@1.7.0-snapshot.v20250707175819 --save-exact
npm i @clerk/remix@4.9.0-snapshot.v20250707175819 --save-exact
npm i @clerk/shared@3.11.0-snapshot.v20250707175819 --save-exact
npm i @clerk/tanstack-react-start@0.19.0-snapshot.v20250707175819 --save-exact
npm i @clerk/testing@1.9.3-snapshot.v20250707175819 --save-exact
npm i @clerk/themes@2.2.55-snapshot.v20250707175819 --save-exact
npm i @clerk/types@4.64.0-snapshot.v20250707175819 --save-exact
npm i @clerk/vue@1.8.13-snapshot.v20250707175819 --save-exact |
🎨 Add Modern CSS Color-Mix Utilities
Resolves USER-2201
Overview
This PR introduces modern CSS color manipulation utilities that leverage native browser features like
color-mix()
and relative color syntax when supported, while maintaining backward compatibility with legacy HSLA-based color manipulation.What's New
Progressive Enhancement Architecture
Modern CSS Features
color-mix()
Support: Leverages native CSS color mixinghsl(from color h s l)
syntax when supportedcolor-mix(in srgb, transparent, color X%)
for opacityCSS Variable Support
This enhancement enables CSS custom property support within the
appearance.variables
object:Checklist
pnpm test
runs as expected.pnpm build
runs as expected.Type of change
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
calc()
for negative spacing, ensuring more robust and readable CSS.Documentation
Tests
Chores