Skip to content

Commit 7c08677

Browse files
committed
feat: add color variables for the surface
1 parent 247cf8b commit 7c08677

File tree

4 files changed

+54
-2
lines changed

4 files changed

+54
-2
lines changed

src/components/layout/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default function Footer({ backgroundColor = false }: FooterProps): ReactE
7575

7676
return (
7777
<Section padding="pt-20" type={backgroundColor ? "secondary-light" : "default"}>
78-
<div className="py-8 text-base text-center text-gray-400 border-t border-gray-200 border-t-solid lg:flex md:flex lg:text-left">
78+
<div className="py-8 text-surface-text-tertiary text-base text-center border-t border-gray-200 border-surface-border-primary border-t-solid lg:flex md:flex lg:text-left">
7979
<div className="w-full border-b border-gray-200 lg:w-1/2 lg:border-none md:border-none border-b-solid">
8080
<p className="block text-with-links" dangerouslySetInnerHTML={{ __html: t("footer.text") }} />
8181
<div className="flex items-center justify-center mt-8 mb-12 lg:mb-0 lg:justify-start space-x-9">

src/components/ui/SocialLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function SocialLink({ link, testId = "socialLink", socialLinkIcon
4747
href={link.url}
4848
target="_blank"
4949
title={link.title}
50-
className="h-14 w-14 border border-solid bg-gray-50 border-gray-200 box-border inline-flex items-center justify-center text-lg rounded-full"
50+
className="h-14 w-14 border border-solid bg-surface-bg-secondary border-surface-border-primary box-border inline-flex items-center justify-center text-lg rounded-full"
5151
>
5252
{icon && (
5353
<div title={link.title} className="w-4.5 inline-block" data-testid={socialLinkIconTestId}>

src/styles/globals.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
:root {
6+
--surface-text-primary: #271f11;
7+
--surface-text-secondary: #4B5563;
8+
--surface-text-tertiary: #9CA3AF;
9+
--surface-text-label: var(--surface-text-tertiary);
10+
--surface-text-disabled: #D1D5D8;
11+
--surface-text-invert: #FFFFFF;
12+
--surface-text-brand: #1B66F8;
13+
--surface-icon-primary: var(--surface-text-primary);
14+
--surface-icon-disabled: var(--surface-text-disabled);
15+
--surface-icon-invert: var(--surface-text-invert);
16+
--surface-bg-primary: var(--surface-text-invert);
17+
--surface-bg-secondary:#F9FAFB;
18+
--surface-bg-tertiary: #F3F4F6;
19+
--surface-bg-disabled: var(--surface-bg-secondary);
20+
--surface-bg-highlight: #F5F9FF;
21+
--surface-border-primary: #E5E7E8;
22+
--surface-border-secondary: var(--surface-text-disabled);
23+
--surface-border-inverted: var(--surface-text-invert);
24+
--surface-border-brand: #DBEAFE;
25+
}
26+
27+
528
@font-face {
629
font-family: "Graphik";
730
src: url("/fonts/Graphik-Medium-Web.woff2") format("woff2"), url("/fonts/Graphik-Medium-Web.woff") format("woff");

tailwind.config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,35 @@ module.exports = {
2929
accent: "var(--tm-accent)",
3030
muted: "var(--tm-muted)",
3131
},
32+
surface: {
33+
text: {
34+
primary: "var(--surface-text-primary)",
35+
secondary: "var(--surface-text-secondary)",
36+
tertiary: "var(--surface-text-tertiary)",
37+
label: "var(--surface-text-label)",
38+
disabled: "var(--surface-text-disabled)",
39+
invert: "var(--surface-text-invert)",
40+
brand: "var(--surface-text-brand)",
41+
},
42+
icon: {
43+
primary: "var(--surface-icon-primary)",
44+
disabled: "var--surface-icon-disabled)",
45+
invert: "var(--surface-icon-invert)",
46+
},
47+
bg: {
48+
primary: "var(--surface-bg-primary)",
49+
secondary: "var(--surface-bg-secondary)",
50+
tertiary: "var(--surface-bg-tertiary)",
51+
disabled: "var(--surface-bg-disabled)",
52+
highlight: "var(--surface-bg-highlight)",
53+
},
54+
border: {
55+
primary: "var(--surface-border-primary)",
56+
secondary: "var(--surface-border-secondary)",
57+
inverted: "var(--surface-border-inverted)",
58+
brand: "var(--surface-border-brand)",
59+
},
60+
},
3261
},
3362
spacing: {
3463
3.75: "0.9375rem",

0 commit comments

Comments
 (0)