designsystemet icon indicating copy to clipboard operation
designsystemet copied to clipboard

Custom global/severity colors

Open mimarz opened this issue 8 months ago • 2 comments

Feature request after meeting with Enova about the possibility for defining the base color used for global colors.

This is due to need for global/system colors to resonate better with brand colors and their ui as a whole.

They are override this today by adding "global colors" in the main/support set and manually copying the json color scale and overwriting global colors.

Image
//Designsystemet  // Enova
blue: '#0A71C0', // '#3c7c97'
green: '#068718', // '#267352'
orange: '#EA9B1B', // '#fbde51'
purple: '#663299', // '#8156ab'
red: '#C01B1B', // '#ac3d3a'

This could be an advanced feature we support only via the config file.

ieg.

 "digdir": {
      "colors": {
        "main": {
          "accent": "#0062BA"
        },
        "support": {
          "brand1": "#F45F63",
          "brand2": "#E5AA20",
          "brand3": "#1E98F5"
        },
        "neutral": "#1E2B3C",
        "global": {
          "blue": "#3c7c97",
          "green": "#267352",
          "orange": "#fbde51",
          "purple": "#8156ab",
          "red": "#ac3d3a"
       }
      }
    },

mimarz avatar Apr 29 '25 12:04 mimarz

We had a presentation at an IxDA meetup today where people were asking for this feature.

mimarz avatar Apr 29 '25 19:04 mimarz

We should check if this is a breaking change.

mrosvik avatar May 06 '25 08:05 mrosvik

2025.08.28 Try with only config file to begin with. We should do #3718 first

Barsnes avatar Aug 28 '25 11:08 Barsnes