Skip to content

improve(ui): refine Absolutely theme contrast and surfaces - #183405

Merged
vyctorbrzezowski merged 9 commits into
mainfrom
brzezowski/visual-02-absolutely-20261025
Oct 25, 2026
Merged

vyctorbrzezowski merged 9 commits into
mainfrom
brzezowski/visual-02-absolutely-20261025

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Refine Absolutely's light and dark surfaces with distinct reading, navigation, elevated, and composer layers. Light mode uses a subtle terracotta tint. Preserve the theme's typography and secondary accent, and give inline code and links their own contrast roles.

Initial-paint backgrounds and Appearance preview chips match the palette. Theme checks resolve semantic CSS colors before comparing these surfaces.

Visual comparison

Before: main at 866f693e95e4d0bf8779b18ddd722ea51cb72459. After: this PR at 6dbe07fdfb7452322a071796929d8af7c1bb2e17.

Both sides use the native Absolutely theme, the same conversation fixture and viewport, and unmodified production styles from their respective commits.

Absolutely light before and after
Absolutely dark before and after

Mobile light at the final PR head

Absolutely light mobile

Validation

  • 15 targeted contrast and theme checks passed.
  • Independent source review completed with no findings.
  • Native UI capture completed in light and dark mode, with mobile light context, without browser page errors.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR softens Absolutely’s light and dark palettes and updates startup backgrounds, Appearance samples, and contrast-test color handling.

Example: Open Control UI with Absolutely light selected.

  • Before: The palette uses burnt-clay accent #a8452a and ivory background #faf9f5.
  • After: The palette uses softer accent #cc7d5d, a neutral reading canvas #f8f8f7, and a separate darker primary-button fill #a5654b.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Strong visual evidence supports the scoped design change, but two accessibility regressions and deterministic mirror-test failures prevent a correctness pass.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected matching 1440×900 before/after screenshots of the real bundled Control UI loading Absolutely light and dark with synthetic mock-Gateway data; they demonstrate this isolated palette’s changed surfaces and typography, without claiming the pending combined consumer result.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Absolutely’s neutral surfaces need a softer visual hierarchy while retaining readable text and its terracotta identity.
Reason: The maintainer-authored direction is an owner decision, and the inspected screenshots demonstrate the intended refinement without new runtime machinery.

Merge readiness

⛔ Needs changes before merge - 4 items remain

Keep this maintainer-authored draft open: the visual direction is supported, but three concrete contrast and test regressions need repair before merge.

Priority: P2
Reviewed head: eb086b402c60ee4378b3d91026521bc2f6ef43f1

Before merge

  • [P2] Keep light-mode text off the softened accent (P2) - Selecting Absolutely light changes --accent from #a8452a to #cc7d5d, but ordinary anchors in base.css and settings consumers such as .settings-theme-import__external still paint their text directly with --accent. The new color is only about 2.87:1 against #f4f4f3, below the 4.5:1 normal-text floor; previously the accent was about 5.62:1 against the page. The new --link token only helps consumers that use it. Integrate the relevant semantic foreground repairs from fix(ui): use semantic foregrounds for secondary and selected controls #183401 before this palette can land, or retain readable accent text until those consumers are available.
  • [P2] Preserve a contrast-safe light-mode focus ring (P2) - Changing --ring to #cc7d5d also changes the inherited light-mode --focus-ring, which composites that color at 70% opacity. Against the new page background its contrast falls from approximately 3.17:1 to 2.04:1. Controls such as .settings-theme-import__input suppress their native outline and rely on this shadow, so keyboard focus loses the existing 3:1 contrast floor. Keep a darker semantic ring color independently of the soft accent and cover the rendered focus state.
  • [P2] Resolve mixed backgrounds in the existing mirror tests (P2) - Both cases in base-theme-tokens.node.test.ts read the raw --bg declaration and compare it directly with index.html or --theme-chip-bg. Replacing --bg with color-mix(...) while keeping those mirrors hexadecimal guarantees mismatches such as '#1f1f1e' versus 'color-mix(in srgb, var(--text) 2%, var(--bg-content))' at assertions 91 and 125. The contrast-reader update does not affect this separate suite. Update the mirror checks to compare resolved colors while preserving their independent startup and preview contracts; the failure is source-determined, not an observed test run.
  • Complete next step - Keep this PR in draft until the remaining named consumer contracts are integrated, as the author requested.

Findings

  • [P2] [P2] Keep light-mode text off the softened accent — ui/public/themes/absolutely.css:89-90
  • [P2] [P2] Preserve a contrast-safe light-mode focus ring — ui/public/themes/absolutely.css:88
  • [P2] [P2] Resolve mixed backgrounds in the existing mirror tests — ui/public/themes/absolutely.css:33
Agent review details

How this fits together

The theme owner loads Absolutely’s stylesheet, whose CSS tokens feed shared Control UI components; index.html and Appearance chips separately mirror its startup background.

flowchart LR
  A[Saved theme selection] --> B[Theme loader]
  B --> C[Absolutely palette]
  C --> D[Shared UI consumers]
  A --> E[Startup background]
  C --> F[Appearance samples]
Loading

Technical review

Best possible solution:

Retain the existing palette owner, integrate semantic text consumers first, preserve a contrast-safe focus color, and update the mirror tests to compare resolved colors.

Do we have a high-confidence way to reproduce the issue?

The current source establishes the affected text, focus, and assertion paths; independent color arithmetic confirms the contrast reductions, and no target code or tests were executed.

Is this the best way to solve the issue?

Editing the existing palette and extending its existing contrast reader is appropriately small, but shared consumers and literal-color mirror assertions must be brought along.

Full review comments:

  • [P2] [P2] Keep light-mode text off the softened accent — ui/public/themes/absolutely.css:89-90
    Selecting Absolutely light changes --accent from #a8452a to #cc7d5d, but ordinary anchors in base.css and settings consumers such as .settings-theme-import__external still paint their text directly with --accent. The new color is only about 2.87:1 against #f4f4f3, below the 4.5:1 normal-text floor; previously the accent was about 5.62:1 against the page. The new --link token only helps consumers that use it. Integrate the relevant semantic foreground repairs from fix(ui): use semantic foregrounds for secondary and selected controls #183401 before this palette can land, or retain readable accent text until those consumers are available.
    Confidence: 0.99
  • [P2] [P2] Preserve a contrast-safe light-mode focus ring — ui/public/themes/absolutely.css:88
    Changing --ring to #cc7d5d also changes the inherited light-mode --focus-ring, which composites that color at 70% opacity. Against the new page background its contrast falls from approximately 3.17:1 to 2.04:1. Controls such as .settings-theme-import__input suppress their native outline and rely on this shadow, so keyboard focus loses the existing 3:1 contrast floor. Keep a darker semantic ring color independently of the soft accent and cover the rendered focus state.
    Confidence: 0.98
  • [P2] [P2] Resolve mixed backgrounds in the existing mirror tests — ui/public/themes/absolutely.css:33
    Both cases in base-theme-tokens.node.test.ts read the raw --bg declaration and compare it directly with index.html or --theme-chip-bg. Replacing --bg with color-mix(...) while keeping those mirrors hexadecimal guarantees mismatches such as '#1f1f1e' versus 'color-mix(in srgb, var(--text) 2%, var(--bg-content))' at assertions 91 and 125. The contrast-reader update does not affect this separate suite. Update the mirror checks to compare resolved colors while preserving their independent startup and preview contracts; the failure is source-determined, not an observed test run.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d79ab6195d8d.

Provenance checked

  • Absolutely palette and typography changes intended behavior with a stated reason (80ecc7c: Provide a warm writing-oriented theme with theme-owned typography and accessible color pairings.)
  • Surface ramp and startup/Appearance mirrors changes intended behavior with a stated reason (a868258: Deepen the dark surface hierarchy while keeping first paint and preview chips synchronized with the palette.)
  • Semantic action foreground pairs keeps the original intent (1f91207: Keep action fills and glyph foregrounds paired across selected and imported palettes.)
  • Contrast-test color resolution keeps the original intent (3dff172: Protect readable links and distinguishable content against actual theme and bubble colors.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Verified PR scope and current-main context: The pinned introduction changes only the five supplied files; fetched main and the merge base have identical contents for those paths. (ui/public/themes/absolutely.css:33, eb086b402c60)
  • Readable text consumers remain on the accent: Ordinary anchors, theme-import links, configuration summaries, and selected accordion items still consume --accent directly; #cc7d5d has approximately 2.87:1 contrast on #f4f4f3. (ui/src/styles/config.css:592, eb086b402c60)
  • Existing focus-ring contract: Light mode composites --ring at 70% opacity; the new ring yields approximately 2.04:1 against the new page background, versus approximately 3.17:1 previously. (ui/src/styles/base.css:648, eb086b402c60)
  • Unupdated background-mirror assertions: Both existing mirror tests compare raw --bg strings with hexadecimal startup or chip colors, so the introduced color-mix expressions cannot satisfy either assertion. (ui/src/styles/base-theme-tokens.node.test.ts:91, eb086b402c60)
  • Visual proof inspected: Inspected all four prepared full-size before/after images: matching synthetic chat content demonstrates the isolated light/dark palette changes in the bundled Control UI. (eb086b402c60)
  • Explicit integration hold and existing repair: The author explicitly keeps this PR in draft pending consumer integration; fix(ui): use semantic foregrounds for secondary and selected controls #183401 already proposes semantic foreground repairs for ordinary anchors and several affected settings consumers. (ui/src/styles/base.css:852, eb086b402c60)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 66aa578 adds ui/src/styles/config.css:101 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 66aa578c81e6; files: ui/src/styles/config.css)

PR surface

Source -2, Tests 0. Total -2 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 112 114 -2
Tests 2 12 12 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 124 126 -2

Labels

Label changes:

  • add P2: The isolated palette introduces accessibility regressions in one theme and deterministically breaks its existing background-mirror tests.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The isolated palette introduces accessibility regressions in one theme and deterministically breaks its existing background-mirror tests.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 25, 2026, 3:56 AM ET / 07:56 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 25, 2026 13:37
@vyctorbrzezowski
vyctorbrzezowski merged commit 8da78db into main Oct 25, 2026
97 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/visual-02-absolutely-20261025 branch October 25, 2026 22:57
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…183405)

Refine Absolutely surfaces, contrast, and interaction layers in light and dark modes. Apply a subtle terracotta tint to the light palette.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant