diff --git a/apps/website/screens/components/footer/code/FooterCodePage.tsx b/apps/website/screens/components/footer/code/FooterCodePage.tsx
index a16ded6c4..e7eb69792 100644
--- a/apps/website/screens/components/footer/code/FooterCodePage.tsx
+++ b/apps/website/screens/components/footer/code/FooterCodePage.tsx
@@ -157,6 +157,30 @@ const sections = [
0
+
+ | variant |
+
+ 'branded' | 'neutral'
+ |
+
+ The available footer variants:
+
+ -
+ branded: Footer with branded styling, using the primary brand background and
+ contrasting content colors.
+
+ -
+ neutral: Footer with neutral styling, using a neutral background and content colors
+ instead of the branded treatment.
+
+
+ Changing the variant only changes the footer's visual styling; its layout, content, and behavior remain
+ the same.
+ |
+
+ 'branded'
+ |
+
),
diff --git a/packages/lib/src/footer/Footer.stories.tsx b/packages/lib/src/footer/Footer.stories.tsx
index 73cfea535..38eabd939 100644
--- a/packages/lib/src/footer/Footer.stories.tsx
+++ b/packages/lib/src/footer/Footer.stories.tsx
@@ -196,19 +196,20 @@ const bottomLong = [
},
];
-const Footer = () => (
+const FooterExamples = ({ variant }: { variant?: "branded" | "neutral" }) => (
<>
-
+
-
+
(
(
(
(
-
+
-
+
@@ -436,14 +440,27 @@ const Footer = () => (
},
}}
>
-
-
-
+
+
+
+
+
>
);
+const Footer = () => (
+ <>
+
+
+
+
+ >
+);
+
+const NeutralFooter = () => ;
+
const dxcLogo = (
);
-export const dxcSmallLogo = (
+export const dxcSmallLogo = (color = "#F6F3F0") => (
);
diff --git a/packages/lib/src/footer/types.ts b/packages/lib/src/footer/types.ts
index 857425607..99aa3a3cd 100644
--- a/packages/lib/src/footer/types.ts
+++ b/packages/lib/src/footer/types.ts
@@ -76,6 +76,10 @@ type FooterPropsType = {
* inside the leftContent and rightContent.
*/
tabIndex?: number;
+ /**
+ * Visual variant of the footer.
+ */
+ variant?: "branded" | "neutral";
};
export default FooterPropsType;
diff --git a/packages/lib/src/footer/utils.ts b/packages/lib/src/footer/utils.ts
index 56c9f6d6e..67d75f638 100644
--- a/packages/lib/src/footer/utils.ts
+++ b/packages/lib/src/footer/utils.ts
@@ -30,7 +30,7 @@ function getLuminance(color: string): number {
export const getContrastColor = (bgColor: string) => {
const luminance = getLuminance(bgColor);
- return luminance > 0.179 ? "var(--color-fg-neutral-dark)" : "var(--color-fg-neutral-bright)";
+ return luminance > 0.179 ? "var(--color-fg-primary-stronger)" : "var(--color-fg-neutral-bright)";
};
export const getResponsiveStyles = {