Skip to content

Add Liquid Leaf, a glossy green sap surface, and use it for live state - #8

Open
maceip wants to merge 1 commit into
mainfrom
exp/liquid-leaf
Open

Add Liquid Leaf, a glossy green sap surface, and use it for live state#8
maceip wants to merge 1 commit into
mainfrom
exp/liquid-leaf

Conversation

@maceip

@maceip maceip commented Sep 6, 2026

Copy link
Copy Markdown
Owner

What

Liquid Leaf: liquid glass, outdoors. A translucent green sap surface with a meniscus along the top, a specular highlight that follows the pointer, a lit rim and shaded foot, backdrop frost, a coloured glow into the page, and a squash-then-spring press with a short turbulence wobble. Two scenes share one set of tokens: outdoor (default, day) and indoor ([data-scene="indoor"], night, moss under lamplight) — the first sketch of a dark theme.

Rebuilt in CSS and SVG from the model liquid-dom uses in its WebGPU shader (SDF rim, lit specular band, adaptive blur, corner smoothing). liquid-dom itself needs WebGPU plus a Chrome flag for DOM content and its core package carries no license file, so nothing is vendored.

  • ui/src/liquid/liquid-leaf.css: tokens, the .leaf surface, button/pill/card/dot variants, goo (metaball) and wobble filters
  • ui/src/liquid/LiquidLeaf.tsx: <LeafDefs/>, <Leaf variant=…/>, useLeafLight, useLeafPress
  • Applied to the live pill, the primary action, the sidebar agent card and presence drops; everything else keeps the flat chrome for comparison
  • Reduced motion disables the spring, wobble and breathing

Look at

Verification

npm run check and npm run test:ui pass.

Landing

Real overlap with the Grove PR (both add a defs component and an import at the top of App.tsx); otherwise adjacent-line conflicts only.

Liquid glass outdoors: a translucent green surface with a meniscus, a
specular highlight that follows the pointer, a lit rim and shaded foot,
backdrop frost, a coloured glow, and a squash-then-spring press with a short
turbulence wobble. Two scenes share the tokens: outdoor (day) and indoor
(night), the first sketch of a dark theme.

Rebuilt in CSS and SVG from the model liquid-dom uses in its WebGPU shader
(SDF rim, lit specular band, adaptive blur, corner smoothing), because that
renderer needs WebGPU plus a Chrome flag and carries no license; nothing is
vendored.

- ui/src/liquid: tokens, .leaf surface and button/pill/card/dot variants,
  goo (metaball) and wobble filters, <Leaf/> with light and press hooks
- Applied to the live pill, the primary action, the sidebar agent card and
  presence drops; everything else keeps the flat chrome for comparison
- docs/design/liquid-leaf.html shows both scenes; liquid-leaf.md explains
  what was taken from liquid-dom and how to build on it
- Reduced motion disables the spring, wobble and breathing
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-06T22:12:04.873218Z e1b434b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e1b434bb34

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/App.tsx
Comment on lines +315 to +316
<Leaf
variant="button"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Retarget the mobile rule to the leaf button

At viewport widths up to 780px, the responsive stylesheet still targets .page-heading > .button to collapse this action to a 34px icon-only control, but the replacement no longer has the button class. Consequently, the full “New contribution” label and desktop padding remain on narrow screens, squeezing and wrapping the heading content; update the media-query selectors to include the new leaf button.

Useful? React with 👍 / 👎.

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