From ab6f0f91d00f11b644f6414eb1ea49e24a4b0a80 Mon Sep 17 00:00:00 2001 From: Elizabet Oliveira Date: Fri, 20 Nov 2026 14:13:47 +0000 Subject: [PATCH 1/2] refactor(app): set field background directly in theme tokens The dark field background came from a Click UI token that resolved to a solid #2d2d2d. Set the field background directly in both themes instead. Dark mode now uses a translucent white overlay, so the field follows the surface beneath it. Light mode keeps its existing value. --- .changeset/theme-field-background-tokens.md | 8 ++++++++ packages/app/src/theme/_tokens.scss | 6 ++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .changeset/theme-field-background-tokens.md diff --git a/.changeset/theme-field-background-tokens.md b/.changeset/theme-field-background-tokens.md new file mode 100644 index 0000000000..7a12819acf --- /dev/null +++ b/.changeset/theme-field-background-tokens.md @@ -0,0 +1,8 @@ +--- +'@hyperdx/app': patch +--- + +Set the form field background directly in the light and dark theme tokens +instead of through a Click UI token. In dark mode the field is now a translucent +white overlay rather than a solid `#2d2d2d`, so it matches the surface beneath +it. diff --git a/packages/app/src/theme/_tokens.scss b/packages/app/src/theme/_tokens.scss index c9087ba403..5b63f68d37 100644 --- a/packages/app/src/theme/_tokens.scss +++ b/packages/app/src/theme/_tokens.scss @@ -103,7 +103,6 @@ --click-global-color-title-default: rgb(97.5% 97.5% 97.5%); --click-global-color-title-muted: #b3b6bd; --click-global-color-outline-default: #faff69; - --click-field-color-background-default: #2d2d2d; /* Backgrounds - Using Click UI tokens */ --color-bg-body: var(--click-global-color-background-default); @@ -132,7 +131,7 @@ (Select/Combobox options, Menu items, popover/dropdown lists) when it is hovered or is the currently-selected entry. */ --color-bg-option-active: var(--palette-neutral-712); - --color-bg-field: var(--click-field-color-background-default); + --color-bg-field: rgb(255 255 255 / 6%); --color-bg-field-highlighted: var(--palette-neutral-650); --color-bg-field-addon: var(--palette-neutral-712); --color-bg-neutral: #4d4f66; @@ -328,7 +327,6 @@ --click-global-color-title-default: lch(11.126% 1.374 305.43deg); --click-global-color-title-muted: #696e79; --click-global-color-outline-default: #437eef; - --click-field-color-background-default: #fbfcff; /* Backgrounds - Using Click UI tokens */ --color-bg-body: var(--click-global-color-background-default); @@ -358,7 +356,7 @@ (Select/Combobox options, Menu items, popover/dropdown lists) when it is hovered or is the currently-selected entry. */ --color-bg-option-active: var(--click-global-color-background-muted); - --color-bg-field: var(--click-field-color-background-default); + --color-bg-field: #fbfcff; --color-bg-field-highlighted: var(--click-global-color-background-default); --color-bg-field-addon: var(--click-global-color-background-default); --color-bg-neutral: #adb5bd; From 0132a28f951a8527a52e5412345082cf08ef1e96 Mon Sep 17 00:00:00 2001 From: Elizabet Oliveira Date: Fri, 20 Nov 2026 14:45:03 +0000 Subject: [PATCH 2/2] docs(app): explain the dark field background opacity The changelog should say why the field background is translucent: in dark mode it needs opacity so it works on different backgrounds, such as popovers. --- .changeset/theme-field-background-tokens.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.changeset/theme-field-background-tokens.md b/.changeset/theme-field-background-tokens.md index 7a12819acf..d49446ac38 100644 --- a/.changeset/theme-field-background-tokens.md +++ b/.changeset/theme-field-background-tokens.md @@ -2,7 +2,6 @@ '@hyperdx/app': patch --- -Set the form field background directly in the light and dark theme tokens -instead of through a Click UI token. In dark mode the field is now a translucent -white overlay rather than a solid `#2d2d2d`, so it matches the surface beneath -it. +In dark mode, the field background now has opacity so it works on different +backgrounds, such as popovers. It is set directly in the theme tokens instead of +through a Click UI token that resolved to a solid color.