Add a color and font theme configurator

Aperta
#384 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

The payload names no source files, so start by finding how the ui-kit repo currently defines its color primitives and default palettes, and compare them with the Color Primitive collection in the linked Figma file. Confirm the shade steps and reference luminances there before writing any generator. Done means one base color produces the Brand palette, logo colors follow the rules above, and the exported JSON with its font entry is accepted by the UI kit. This is design work spanning several parts of the project, so a maintainer should agree on the scope first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

People self-hosting LaSuite apps should be able to create a theme without manually defining every color shade.

Build a minimal web configurator with the following behavior:

  • Brand: require one base color and automatically generate the Brand palette.
  • Logo colors: by default, derive a single-color logo from Brand, with the appropriate luminance for light and dark backgrounds. Allow users to override this with one or two independent logo colors. Preserve these custom values exactly.
  • Other palettes: offer an optional base color for each palette (Warning, Error, Blue 1, etc.). Keep the existing defaults when no color is supplied.
  • Generation: follow the names, shade steps and reference luminances of the UI kit's Color Primitive collection. Prioritize reference luminances over the exact input color.
  • Fonts: allow users to upload a font file and use it as the theme font.
  • Preview and export: show the generated palettes, then export a JSON directly usable by the UI kit, including the font configuration. Explain how to supply the uploaded font alongside the JSON.

Figma reference — Color Primitive collection

Lingua principale
TypeScript
Stelle
36
Fork
14
Merge medio
2g 10h
PR unite (30g)
12

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna 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 suitenumerique/ui-kit

Tutte le issue di suitenumerique/ui-kit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.