Colour

A color system designed with everyone in mind, built on the principles of visual perception, inclusive design, and accessibility.

Our design system includes colour functions that you can use in your project. These functions are written in SCSS and output CSS variables that correspond to our semantic colours.

Semantic colours help us focus on what each colour represents, rather than its specific value. This approach allows us to apply design decisions consistently and makes it easier to adjust themes based on colour usage.

Using design system colours

We provide the ds-color function to map semantic colours to CSS variables.

The ds-color($type, $semantic-name) function accepts two parameters:

  • $type: The category of the colour, such as bg (background), fg (foreground), border, or focus.
  • $semantic-name: The purpose or meaning of the colour, such as danger, strong, or muted.

Example SCSS Code


                                                        
                                                        
                                                            .c-alert { 
                                                            background-color: ds-color("bg", "status-danger");
                                                        }
                                                        
                                                            

Set the background colour of the alert component to the background colour called "status-danger".

Example CSS Output


                                                        
                                                        
                                                            .c-alert { 
                                                            background-color: var(--ds-color-bg-status-danger);
                                                        }
                                                        
                                                            

The function has returned a semantic CSS variable that can represent different colours based on the theme and mode.

Colour values

Below are the tables of token values for each category of colours:

Foreground colours (fg)

Foreground colours are used primarily for text, and will typically be set in CSS as a color property.

color / fg
#213d46
default
Default text color. Used as the main text color throughout the UI. Provides good and legible contrast for our content.
#4d646b
muted
Muted secondary text color. Used for e.g. introduction paragraphs and texts with less emphasis than the default text color.
#4d646b
subtle
⚠ Deprecated! Subtle text color. Currently only accessible for large text (24px and above).
rgba(33,61,70,0.4)
disabled
For disabled text and component link states.
#213d46
dark
Default text color that won't change in dark mode.
#ffffff
light
White text color that won't change in dark mode.
#00788a
link
Default link text color. Used for all paragraph level links in an user interface.
#00515d
link-hover
Hover color for default text links.
#4cbcd1
link-on-color
Link text color on a colored surface.
#00788a
link-on-color-hover
Link text color on a colored surface.
#00788a
interactive
Highlighted text color for e.g. various button states.
#b4bdc0
on-disabled
#ffffff
on-color
Text on interactive colors or on button colors.
rgba(255,255,255,0.8)
on-color-muted
Muted text on interactive colors or on button colors.
#ffffff
inverse
Text color to use on inverted backgrounds e.g. tooltip text.
#4cbcd1
inverse-link
For links used on top of bg.inverse.
#00788a
inverse-link-hover
For links used on top of bg.inverse.
#cad0d3
inverse-muted
#4d646b
placeholder
For form input placeholder texts.
#00a2ba
brand
Default brand text. Use for brand specific icons and large text.
#276460
success
Default text color for success messages.
#7a6d38
attention
Default text color for attention messages.
#c00c31
danger
Default text color for error messages.

Background colours (bg)

Background colours are used behind text, or to fill surfaces, they will typically be used in background and background-color properties in CSS.

color / bg
#ffffff
body
Default background color. Should be used as the primary page/canvas background.
#ffffff
default
Default surface color. Use this for e.g. cards and optionally combine with elevation shadow "surface".
#f2f3f3
body-alt
Secondary page background color. Should be used as the primary page/canvas background.
#00a2ba
brand
Background color to signify the Coloplast brand.
#eaf7fa
brand-subtle
Surface color to signify the Coloplast brand.
#ccecf3
brand-muted
Surface color to signify the Coloplast brand.
#006a7a
brand-strong
Surface color to signify the Coloplast brand.
#00515d
brand-stronger
Surface color to signify the Coloplast brand.
#ebeeef
neutral
Muted neutral background color. Use this when you need to separate an element from the default background color, e.g. steps items.
#f2f3f3
neutral-subtle
Subtle neutral background color for sections or larger component surfaces to separate an element from the default background.
#dde2e4
neutral-strong
Use as contrast background on top of default or subtle surfaces e.g. steps.
#f1f0ec
accent
Muted secondary neutral background color. Use this when you need to separate an element from the default background color.
#f4f4f0
accent-subtle
Subtle secondary neutral background color. Use this when you need to separate an element from the default background color.
#e7e5df
accent-strong
Strong secondary neutral background color. Use this when you need to separate an element from the default background color.
#15272d
dark
Dark contrasty background that remains dark across themes
#213d46
dark-muted
Dark less contrasty background that remains dark across themes
#15272d
inverse
Default inverse surface color for high contrast surfaces e.g. tooltips.
#213d46
inverse-muted
rgba(21,39,45,0.8)
backdrop
Default overlay color to distinguish modal and popout layers from underlaying content.
#eaf7fa
interactive-subtle
For highlighting active states in e.g. navigation components.
#ccecf3
interactive-muted
Coming...
#00a2ba
interactive
Used for selected states in checkboxes and radio-buttons, active tabs etc.
#ffffff
elevation-raised
Raised surface color. Use this with elevation shadow "surface-raised".
#ffffff
elevation-overlay
Overlay surface color. Use this for e.g. dropdowns and modals combined with elevation shadow "surface-overlay".
#e20f3a
danger
Background color to signify critical, negative or error states.
#ebeeef
status-neutral
Status background color to indicate general information, can be used behind text.
#f1f0ec
status-neutral-alt
Alternative status background color to indicate general information, can be used behind text.
#e0f5f9
status-highlight
Status background color to indicate important information that don't require immidiate action. Can be used behind text.
#cdede4
status-success
Background color to indicate success, can be used behind text.
#ffefc1
status-attention
Status background to indicate states that requires the user's attention. Can be used behind text.
#ffe5ea
status-danger
Background color to indicate errors. Can be used behind text.
#f7f8f8
decorative-1-subtle
For use as a decorative background color for page sections. Based on the grey palette.
#f2f3f3
decorative-1-muted
For use as a decorative background color for page sections.
#f9f9f7
decorative-2-subtle
For use as a decorative background color for page sections. Based on the sand palette.
#f4f4f0
decorative-2-muted
For use as a decorative background color for page sections. Based on the sand palette.
#f6fbfd
decorative-3-subtle
For use as a decorative background color for page sections. Based on the turquoise palette.
#eaf7fa
decorative-3-muted
For use as a decorative background color for page sections. Based on the turquoise palette.
#ffffff
field
Background color for form input fields.
#f2f3f3
hover
Default hover color used on default backgrounds surfaces.
#7a8b90
toggle-off
For switch component backgrounds.
#ffffff
block-default
For block backgrounds only.
#f7f8f8
block-neutral
For block backgrounds only.
#f9f9f7
block-theme
For block backgrounds only.
#f4f4f0
decorative-theme-muted
#f9f9f7
decorative-theme-subtle
#f4f4f0
menu-hover
#f1f0ec
menu-active
#4cbcd1
brand-gradient-start
#4cbcd1
brand-gradient-end
#497738
forest-gradient-start
#497738
forest-gradient-end
#378c87
emerald-gradient-start
#378c87
emerald-gradient-end
#f0c044
amber-gradient-start
#f0c044
amber-gradient-end

Border colours (border)

Border colours are intended to be used in the border or border-color property in CSS.

For other border options, read the border documentation.

color / border
#cad0d3
default
Used to outline container, cards or as separators.
#dde2e4
muted
Muted border color for sitations where a hint of a border is enough. Not accessible.
#7a8b90
strong
Strong border used to for specific UI elements with contrast requirements like e.g. Input, Checkbox or RadioButton.
#dde2e4
disabled
#00a2ba
interactive
Selected and active borders.
#378c87
success
Use as borders on success components such as text inputs.
#e20f3a
danger
Default error border color. Use to highlight validation errors or critical situtions in flows e.g. a mandatory input field left empty.
rgba(255,255,255,0.32)
on-color
rgba(255,255,255,0.16)
on-color-muted

Focus colours (focus)

Focus colours are used to highlight the currently focused interactive element, they are typically set on the outline property in CSS.

color / focus
rgba(0,120,138,0.9)
default
Default focus color. Use to indicate tab focus on interactive elements e.g. form fields and buttons.
rgba(76,188,209,0.9)
inverse
#e83f61
danger
Use to indicate error states in interactive elements on tab focus e.g. form fields and buttons.
#378c87
success
Use to indicate successful states in interactive elements on tab focus e.g. form fields and buttons.