diff --git a/apps/_components/src/Header/Header.module.css b/apps/_components/src/Header/Header.module.css
index 22f4fc7911..efa649d6e6 100644
--- a/apps/_components/src/Header/Header.module.css
+++ b/apps/_components/src/Header/Header.module.css
@@ -6,8 +6,8 @@
z-index: 5;
background-color: var(--ds-color-neutral-background-default);
- [data-ds-color-mode='dark'] &,
- [data-ds-color-mode='auto'] & {
+ [data-color-scheme='dark'] &,
+ [data-color-scheme='auto'] & {
background-color: var(--ds-color-neutral-background-subtle);
}
}
diff --git a/apps/_components/src/Header/Header.tsx b/apps/_components/src/Header/Header.tsx
index f1c2c1ba5d..c3a1a07cd7 100644
--- a/apps/_components/src/Header/Header.tsx
+++ b/apps/_components/src/Header/Header.tsx
@@ -74,7 +74,7 @@ const Header = ({
const handleThemeChange = (newTheme: 'dark' | 'light') => {
setTheme(newTheme);
- document.documentElement.setAttribute('data-ds-color-mode', newTheme);
+ document.documentElement.setAttribute('data-color-scheme', newTheme);
};
useEffect(() => {
diff --git a/apps/storefront/app/bloggen/(frontpage)/layout.module.css b/apps/storefront/app/bloggen/(frontpage)/layout.module.css
index 61169be5c0..0d59007d84 100644
--- a/apps/storefront/app/bloggen/(frontpage)/layout.module.css
+++ b/apps/storefront/app/bloggen/(frontpage)/layout.module.css
@@ -6,8 +6,8 @@
padding-top: var(--ds-spacing-18) !important;
padding-bottom: var(--page-spacing-bottom) !important;
- [data-ds-color-mode='dark'] &,
- [data-ds-color-mode='auto'] & {
+ [data-color-scheme='dark'] &,
+ [data-color-scheme='auto'] & {
background-color: var(--ds-color-neutral-background-default);
}
}
diff --git a/apps/storefront/app/bloggen/(frontpage)/page.mdx b/apps/storefront/app/bloggen/(frontpage)/page.mdx
index 6b6f26b91f..dcbd34e171 100644
--- a/apps/storefront/app/bloggen/(frontpage)/page.mdx
+++ b/apps/storefront/app/bloggen/(frontpage)/page.mdx
@@ -77,8 +77,8 @@ export const metadata = {
body {
background-color: var(--ds-color-neutral-background-subtle);
- [data-ds-color-mode='dark'] &,
- [data-ds-color-mode='auto'] & {
+ [data-color-scheme='dark'] &,
+ [data-color-scheme='auto'] & {
background-color: var(--ds-color-neutral-backround-default);
}
}
diff --git a/apps/storefront/app/bloggen/2024/v1rc1/page.mdx b/apps/storefront/app/bloggen/2024/v1rc1/page.mdx
index e8d4a4ad4e..00db28fd12 100644
--- a/apps/storefront/app/bloggen/2024/v1rc1/page.mdx
+++ b/apps/storefront/app/bloggen/2024/v1rc1/page.mdx
@@ -94,11 +94,11 @@ Denne installerer alle tre pakken, og inneholder tokens, CSS og React komponente
#### Fargemodus
-Ønsker du å teste `dark`, `light` eller `contrast` modus kan du legge på data-atributtet `data-ds-color-mode="MODE"`.
+Ønsker du å teste `dark`, `light` eller `contrast` modus kan du legge på data-atributtet `data-color-scheme="MODE"`.
Denne kan legges hvor som helst, og endrer alle barn til modusen du har valgt.
- {`...`}
+ {`...`}
#### Design-tokens templat
diff --git a/apps/storefront/app/bloggen/_components/Card/BlogCard.module.css b/apps/storefront/app/bloggen/_components/Card/BlogCard.module.css
index 2e139e16a6..4c024aaf53 100644
--- a/apps/storefront/app/bloggen/_components/Card/BlogCard.module.css
+++ b/apps/storefront/app/bloggen/_components/Card/BlogCard.module.css
@@ -17,8 +17,8 @@
}
.card {
- [data-ds-color-mode='dark'] &,
- [data-ds-color-mode='auto'] & {
+ [data-color-scheme='dark'] &,
+ [data-color-scheme='auto'] & {
--dsc-card-background: var(--ds-color-neutral-surface-default);
}
}
diff --git a/apps/storefront/app/bloggen/_components/PostLayout/PostLayout.tsx b/apps/storefront/app/bloggen/_components/PostLayout/PostLayout.tsx
index 07cf0b1618..9ca96326d3 100644
--- a/apps/storefront/app/bloggen/_components/PostLayout/PostLayout.tsx
+++ b/apps/storefront/app/bloggen/_components/PostLayout/PostLayout.tsx
@@ -89,8 +89,8 @@ function PostLayout({