# Feature DREAM-81 - Color of text and icons of primary buttons shall adapt when color is light

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-81

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 14.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Henriette Darge |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**Problem**

*   Currently when a light colour or white is selected in a Custom theme in the _Administration &gt; Design_ for **Primary buttons** the text and icons on top of it is still white.&nbsp;
    

**Acceptance criteria**

*   Use a calculation to detect when a colour is too light to have white text on top of it and then change the icon and text to the &quot;black&quot; Primer colour instead of white.
