Add shared dark-surface color tokens to theme-styles.ts
Maintainers usually reply within 1 day
@jbuckner is already working on this.
Since Aug 20, 2026.
Assessment
This issue has not been assessed yet.
Description
Problem
The house palette in src/themes/theme-styles.ts is light-theme oriented — --primary-text-color (dark-gray) sits on --primary-background-color (off-white), and the darkest base color is --dark-gray (#2c2c2c). Dark-surface components can't consume the semantic tokens without inverting them, so they carry local hex defaults instead.
Surfaced during the item-navigator migration (PR #64). ia-item-navigator is a dark UI (white text/icons on near-black) and currently re-declares these hexes because the palette has no equivalent:
- near-blacks
#000,#151515,#212121(theater / embed field / drawer) - border
#4b4b4b— sits between--mid-gray(#333) and--light-gray(#666) - active-file highlight
#538bc5— neither--navy-blue(#194880) nor--bright-blue(#4b64ff) - translucent overlays
rgba(255,255,255,.1)/rgba(255,255,255,.05), scrimrgba(0,0,0,.7)
Sibling elements components (ia-button, ia-otp, ia-status-indicator) all consume the semantic tokens; none reference raw base names. Dark components have no such path today.
Proposal
- Add a small set of shared dark-surface base tokens to
theme-styles.ts(e.g.--surface-dark-1/2/3for the near-black ladder,--border-dark, a--scrim, and an overlay-hover token for the translucent whites). - Optionally expose matching semantic/adjustable tokens (
--ia-theme-*fallbacks) consistent with the existing convention. - Re-point
ia-item-navigator's--item-navigator-*fallbacks at the new tokens, replacing the local hexes.
Out of scope
ia-item-navigatorbehavior or layout — this is palette infrastructure only.- The
#538bc5active-file blue can be revisited here (fold into a shared accent) or left as a component knob; call it out during design.
Tracking
- Jira: WEBDEV-8796
- Surfaced by: item-navigator migration — WEBDEV-8458 / #64
- Dominant language
- TypeScript
- Stars
- 18
- Forks
- 5
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 15
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from internetarchive/elements
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
internetarchive/elements#263 ·
Maintainers usually reply within 1 day
-
Create contributor wiki pageMay be free again @jbuckner claimed this 351 days ago, and no pull request is open. Open
internetarchive/elements#14 · 1 assignee ·
Maintainers usually reply within 1 day
-
Add Github Issues / PR TemplatesMay be free again @jbuckner claimed this 353 days ago, and no pull request is open. Open
internetarchive/elements#13 · 1 assignee ·
Maintainers usually reply within 1 day
-
Component Catalog ImprovementsMay be free again @jbuckner claimed this 353 days ago, and no pull request is open. Open
internetarchive/elements#11 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Connect git repo to slackMay be free again @jbuckner claimed this 353 days ago, and no pull request is open. Open
internetarchive/elements#9 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in internetarchive/elements
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
makecindy/cindy#15342 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
kwitsch/claude-code-plugin-tooling#219 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
no-repo-link tool-submission
Difficulty 1/5 Under an hour Newbie friendliness 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100