Skip to content

Add color var() names in the ECL guidelines [feature] #3750

Open
@joarod-eu

Description

@joarod-eu

Expected behavior

Using CSS var() colors are the best practice to keep all components aligned with the same UI. Searching for the right color in the guidelines will be helpful for developers and designers so we can customize external components quicker.

Actual behavior

ECL color guidelines show the hexadecimal color code but not the CSS var() name. Impossible to know which var name is associated.

Steps to reproduce the issue

Visit the page:
https://ec.europa.eu/component-library/ec/guidelines/colours/

Find the color needed, inspect the element in the list. No var() name is declared or used. All colors are hardcoded in rgb format. The only way to know the CSS var() color associated is to copy the hexadecimal color, then go to the ecl-ec.css or ecl-eu.css an search by #hex code the variable associated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions