mi6 / mi6/ic-ui-kit

Create a colour calculator for use when specifying theme colours

Offen
#1,663 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

customisation spike theming
Vorherrschende Sprache
TypeScript
Sterne
53
Forks
63
Ø Merge
2 T. 4 Std.
Gemergte PRs (30 T.)
15

Beschreibung

Summary

We are expanding the theming to allow mor colours to be customised. Ideally we would allow these colours to be specified in any colour space (rgb, hex, hsl). However, in order to easily perform calculations on the different channels, we need to convert any theme colour to hsl. This ticket is to explore methods to do this using pure CSS.

💬 Description

  • Explore how to perfrom colour conversions using pure CSS.
  • If can't be done with pure CSS, explore other methods: CSS preprocessor, javascript applet, etc.
  • Determine where in the flow this happens.
    • Is this an applet on the webiste that outputs colour values that can be used to set tokens?
    • Does this happen in background when setting a theme token value?
    • Do we provide a number of tokens for people to specify in different ways? (--ic-action-h, --ic-action-s, --ic-action-l, --ic-action-r, --ic-action-g, --ic-action-b, --ic-action-hex)

💰 User value

This makes it easier for users to specify colours, and provides ICDS with ability to perform complex calculations on the individual channels.

📚 User Stories

If relevant, describe the high-level functionality as user stories.

As an ICDS user:
I need
So that

📝 Acceptance Criteria

If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.

Given
When
Then

✏ Designs

If there's a Figma design file (or other mock-up), include it here.

## 🧾 Guidance
If there's written guidance or documentation, include a link to it here.

Related tickets

#1496
#1047
#1662

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Es wird keine Datei, kein Test und kein Einstiegspunkt genannt. Beginne mit der Prüfung der verwandten Tickets #1496, #1047 und #1662 und vergleiche anschließend Ansätze mit reinem CSS, Präprozessoren und JavaScript zur Konvertierung von Theme-Farben. Als abgeschlossen gilt die Auswahl eines Ansatzes sowie die Festlegung, wo die Konvertierung erfolgt und wie Benutzer Farbwerte angeben.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
css, javascript
Bereich
design, frontend
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.