Repository navigation
feat(mosaic): split control and container borders and use washes for states - #10496
prestonwebdev wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 39fa9d9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
5636b0b to
3ff6a6f
Compare
…states Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3ff6a6f to
39fa9d9
Compare
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
| const neutralHoverWash = `inset 0 0 0 100vmax ${colorVars['--cl-color-neutral-alpha-100']}`; | ||
| const neutralPressedWash = `inset 0 0 0 100vmax ${colorVars['--cl-color-neutral-alpha-200']}`; | ||
| const negativeHoverWash = `inset 0 0 0 100vmax ${colorVars['--cl-color-negative-alpha-200']}`; | ||
| const negativePressedWash = `inset 0 0 0 100vmax ${colorVars['--cl-color-negative-alpha-300']}`; |
There was a problem hiding this comment.
hmm, not sure we want to be doing this for a hover effect. any strong reason not to use color mix to achieve this hover state?
|
|
||
| import { colorVars, radiusVars, space } from '../../tokens.stylex'; | ||
|
|
||
| const filledWash = `light-dark(color-mix(in oklab, ${colorVars['--cl-color-neutral']} 3.5%, transparent), color-mix(in oklab, ${colorVars['--cl-color-neutral']} 4.5%, transparent))`; |
There was a problem hiding this comment.
was hopeful to reduce spreading different opacity usages like this through the implementations. was pat of the goal of the alphas. non-blocking if we think we need this custom here though.
Description
Moves Mosaic components onto the new border and tint tokens.
--cl-color-border. Containers and dividers (cards, sections, tables, menus, the profile nav) use--cl-color-border-subtle.-subtleand-bordertokens, and the neutral badge and banner use--cl-color-neutral-subtle.Stacked on #10493.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude Code