Light theme (3/3): add a light theme and a theme toggle
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 56/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, react, tailwindcss, vite
Hướng nghiên cứu
Read the preceding “Light theme (2/3)” issue and inspect client/src/index.css, client/src/components/Layout/Sidebar.jsx, and client/index.html. Start by checking how the existing theme tokens are applied across pages, then test the toggle, saved preference, system setting, and initial page load. Done means every page, including Login and Signup, switches themes accessibly and loads with the selected theme without a flash.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
Last step: with every colour going through theme tokens, a light theme is now mostly a second set of values. Builds on "Light theme (2/3): use the theme tokens on the remaining pages".
Please start this after "Light theme (2/3)" is merged.
Files likely involved
client/src/index.css(light values for the tokens)client/src/components/Layout/Sidebar.jsx(the toggle)client/index.html(to avoid a flash of the wrong theme on load)
Acceptance criteria
- A light theme: the same tokens with light values, set when
<html data-theme="light">. Text keeps good contrast (WCAG AA, 4.5:1 for normal text). - A theme toggle in the sidebar (with an
aria-label, and working when the sidebar is collapsed) switches between dark and light. - The choice is saved in
localStorage. On a first visit, the theme follows the system setting (prefers-color-scheme). - No flash of the wrong theme when the page loads: a tiny inline script in
index.htmlsetsdata-themebefore React starts. - The Login and Signup pages follow the theme too.
How to test
- Toggle the theme: every page switches, including dialogs, toasts and the loading skeletons.
- Reload: the chosen theme stays, with no flash.
- Clear
localStorageand set your system to light mode: the app starts in light mode. - Check contrast with DevTools (select some text → Accessibility → Contrast).
New here? 👋 Comment below to ask to work on this issue, and wait to be assigned. Then follow CONTRIBUTING.md for setup and how to open a pull request. Questions are welcome in the comments or in Discussions.
- Ngôn ngữ chính
- JavaScript
- Star
- 3
- Fork
- 2
- Merge trung bình
- 9 giờ 29 phút
- Pull request đã merge (30 ngày)
- 40
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 KEX-03/taskflow
-
Due dates (3/3): highlight overdue tasksCó thể đã có người làm @maansi1004 đã nhận 3 ngày trước. Đang mởdifficulty: medium enhancement frontend hacktoberfest help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
KEX-03/taskflow#70 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Keep keyboard focus inside open dialogsCó thể đã có người làm @100rabheimer đã nhận 6 ngày trước. Đang mởdifficulty: easy enhancement frontend good first issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
KEX-03/taskflow#62 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Warn users when selecting past due datesCó thể đã có người làm @the-coder-aadi đã nhận 3 ngày trước. Đang mởenhancement frontend
KEX-03/taskflow#94 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
difficulty: medium enhancement frontend hacktoberfest help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
difficulty: medium enhancement frontend hacktoberfest help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của KEX-03/taskflow
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
micromatch/picomatch#243 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
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 70/100
b310-digital/teammapper#1515 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
c1overzz/dsh-bili-scroll#153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
01 type: bug 21 status: confirmed 41 lvl: easy 62 scope: viewer
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày