mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
19 stars 22 forks source link

Dark mode research #2065

Open GCHQ-Developer-094 opened 4 days ago

GCHQ-Developer-094 commented 4 days ago

Summary

Research various approaches and patterns for smoothly implementing a new color-scheme into our component library that would enable dark mode support.

💬 Description

Typically when implementing dark mode, colours tokens that are used in the overall styles come in pairs (light and dark variant), e.g. light and dark action colour. When we eventually have these pairs of colours, we will need to determine the most efficient way of adding them to our component styles.

💰 Use value

Determine the ideal approach early will reduce design time for the actual implementation, and create less technical debt since we will have a solution that hopefully won't require much adjustment.

Dark mode allows greater accessibility and is eco-friendlier, should a user chose to activate.

📝 Outcomes

Items to document and consider:

Whether this is all achieved individually or not, a summary of the above will be presented back to the wider team to prompt discussion and agree the approach going forward.

Additional info:

See this original related ticket for more context (some of it is repeated in this ticket).

https://github.com/mi6/ic-ui-kit/issues/1654

Also -https://github.com/mi6/ic-ui-kit/issues/1496