Skip to content

feat(demos/custom-ui): color pickers for tracked changes and comments#3212

Merged
caio-pizzol merged 1 commit into
mainfrom
caio/demo-custom-ui-color-pickers
May 8, 2026
Merged

feat(demos/custom-ui): color pickers for tracked changes and comments#3212
caio-pizzol merged 1 commit into
mainfrom
caio/demo-custom-ui-color-pickers

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

Adds two color swatches to the custom-ui demo toolbar that re-theme tracked changes and comment highlights by writing the public --sd-* CSS variables on :root, and centers the editor in its column with a max-width wrapper.

  • Native <input type="color"> hidden behind a tb-btn label keeps the no-UI-kit posture of the demo.
  • Icons inside each swatch use mix-blend-mode: difference so they stay legible across any picked color.
  • The editor sits inside an .editor-canvas wrapper (max-width 880px, margin auto) so the document is centered between the toolbar and the activity sidebar.

Adds two color swatches to the toolbar that re-theme tracked changes and
comment highlights by writing the public --sd-* CSS variables on :root,
and centers the editor in its column with a max-width wrapper.

- Native <input type="color"> hidden behind a tb-btn label keeps the
  no-UI-kit posture of the demo.
- Icons inside each swatch use mix-blend-mode: difference so they stay
  legible across any picked color.
- The editor sits inside an .editor-canvas wrapper (max-width 880px,
  margin auto) so the document is centered between the toolbar and the
  activity sidebar.
@caio-pizzol caio-pizzol requested a review from a team as a code owner May 8, 2026 20:35
@caio-pizzol caio-pizzol merged commit a81c2d4 into main May 8, 2026
14 checks passed
@caio-pizzol caio-pizzol deleted the caio/demo-custom-ui-color-pickers branch May 8, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant