Add a color and font theme configurator

Open
#384 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
TypeScript
Stars
36
Forks
14
Avg merge
2d 10h
Merged PRs (30d)
12

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from suitenumerique/ui-kit

All issues in suitenumerique/ui-kit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.