Add dark/light theme toggle to docs.layer5.io

Aperta
#1,069 15 commenti 0 reazioni 1 assegnatario Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

framework/hugo help wanted kind/enhancement language/css language/html language/javascript
Current Behavior

The Layer5 Docs website (https://docs.layer5.io) does not have a dark/light theme toggle option.

Other Layer5 websites like the Kanvas page already include this feature.

Desired Behavior

Add a dark/light theme toggle to the Layer5 Docs website so users can switch between light mode and dark mode.

Implementation

1.Add a theme toggle button in the navbar/header.
2.Reuse the existing theme toggle design from other Layer5 websites if possible.

Acceptance Tests

1.Theme toggle is visible in the navbar.
2.Users can switch between dark and light themes.
3.Works properly on desktop and mobile.

Mockups

Current Docs Website (No theme toggle)

https://github.com/user-attachments/assets/5e77fc76-2216-49f5-930a-44ad1f1aeee9

Reference from Kanvas Website (Theme toggle available)

https://github.com/user-attachments/assets/277f6910-f353-4f45-bf4d-09791fe19feb


Contributor Guide and Resources
Lingua principale
JavaScript
Stelle
99
Fork
226
Merge medio
1g 22h
PR unite (30g)
26

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di layer5io/docs

Tutte le issue di layer5io/docs

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.