Skip to content

@sikt/sds-core: Possible wrong token in background-color CSS property

Discussion

Possible wrong token in background-color CSS property

I noticed that the token used in the background-color CSS property conflicts with what is recommended in the documentation.

Details

The designtoken used is --sds-color-layout-background-default, which applies this color on the page background. This token should primarily be used as background color for components, not pages. The documentation states that --sds-color-layout-page-default is preferable.

Here is a link to the line in question:

https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/-/blob/main/packages/core/src/index.pcss?ref_type=heads#L20