themes: A mobile-first theme with light and dark mode
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- css, javascript, php
調査の方向性
The proposed theme lives in data/themes/hyphae/, with .gitignore also mentioned; compare it with data/themes/default/ to understand the compatibility requirements. The issue links open pull request #615, so review that work first. Done means a selectable mobile-first theme with the described light and dark modes, accessibility, responsive layouts, icons, and preserved default-theme compatibility.
索引モデルが issue の本文から書いたものです。
説明
Proposal. Hypha ships one theme, default, which is desktop-first, light only, and uses web fonts and small icons. Many readers and authors now use a phone, often in dark mode. This proposes a second theme, hyphae, next to default (which stays unchanged), so a site can choose it in the settings.
What it offers
- Light and dark mode: follows
prefers-color-scheme, plus a switch in the header (system, light, dark) kept inlocalStorage(no cookie), applied before the page paints, withtheme-colorfor both. - Accessible colours: every text/background pair meets WCAG 2.2 AA (lowest text pair 4.8:1; field borders 4.5:1 where 3:1 is required).
- Mobile first: touch targets of at least 44 px, the menu and commands on one scrolling row, the login and new-page popup as a bottom sheet on a phone and a dialog on larger screens, tables that scroll sideways.
- Icons for current devices: an SVG favicon that follows the scheme, an apple-touch-icon (180), a web app manifest with 192/512 and maskable icons (Android adaptive safe zone), and the six command icons redrawn on a 24 px grid. The mark is original (a hub with branching threads).
- Lighter: the system font stack instead of the Dosis web font; Fork Awesome stays for pages that use it.
Compatibility: every id and class of the default theme that Hypha's PHP and JavaScript use is kept, and the CSS variables of default are mapped on the new tokens, so no PHP changes. .gitignore gets one line to track data/themes/hyphae/ like default.
Not themed yet: WYMeditor keeps its own light look; the share images sit on a white chip in dark mode; the manifest name is a fixed "Hypha" because a theme cannot know the site title.
Tested on a fictional test site with main (d97ab7b) on PHP 8.4, in Chrome at desktop width and as a 402 pt phone, light and dark; not yet on real devices.
🤖 Generated with Claude Code
- 主要言語
- JavaScript
- スター
- 5
- フォーク
- 9
- 平均マージ
- 18時間 7分
- マージ済み PR(30日)
- 11
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PlanBCode/hypha のほかの issue
-
Component: User interface Impact: Low Level: Easy Pagetype: Peer reviewed article Type: Bug Value: Visitors
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Impact: Medium Level: Easy Type: Bug Value: Users
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
Impact: Low Level: Easy Type: Bug Value: Coders
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
PlanBCode/hypha#586 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
PlanBCode/hypha の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
feimacode/open-design-agent-kit#66 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
xojs/eslint-config-xo#134 ·
-
FEATURE REQUEST
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
linuxmint/cinnamon-spices-extensions#1193 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
huggingface/transformers.js#1839 ·
メンテナーはふだん 1 日以内に返信