Add shared dark-surface color tokens to theme-styles.ts
Maintainer thường phản hồi trong vòng 1 ngày
@jbuckner đang làm issue này rồi.
Từ ngày 20/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 18
- Fork
- 5
- Merge trung bình
- 1 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của internetarchive/elements
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
internetarchive/elements#263 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create contributor wiki pageCó thể làm lại được @jbuckner đã nhận 351 ngày trước và không có pull request nào đang mở. Đang mở
internetarchive/elements#14 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add Github Issues / PR TemplatesCó thể làm lại được @jbuckner đã nhận 353 ngày trước và không có pull request nào đang mở. Đang mở
internetarchive/elements#13 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Component Catalog ImprovementsCó thể làm lại được @jbuckner đã nhận 353 ngày trước và không có pull request nào đang mở. Đang mở
internetarchive/elements#11 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Connect git repo to slackCó thể làm lại được @jbuckner đã nhận 353 ngày trước và không có pull request nào đang mở. Đang mở
internetarchive/elements#9 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của internetarchive/elements
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
makecindy/cindy#15342 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
kwitsch/claude-code-plugin-tooling#219 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
no-repo-link tool-submission
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100