Create a colour calculator for use when specifying theme colours
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 53
- Forks
- 63
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 15
Descripción
## 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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
No se nombra ningún archivo, prueba ni punto de entrada. Empieza revisando los tickets relacionados #1496, #1047 y #1662; después, compara los enfoques de CSS puro, preprocesador y JavaScript para convertir los colores del tema. Se considera terminado cuando se haya seleccionado un enfoque y definido dónde se realiza la conversión y cómo proporcionan los usuarios los valores de color.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- css, javascript
- Área
- design, frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100