Skip to content

Commit

Permalink
Refactor Text so it allows for change of color in Text
Browse files Browse the repository at this point in the history
  • Loading branch information
idamand committed Nov 4, 2024
1 parent 455cf41 commit 4fc5dbd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/text/text.module.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
.desktopLink,
/*
---- Declaring color here will overwrite any other color applied later
:where(.desktopLink,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.bodyXl {
color: var(--primary-black);
.bodyXl) {
color: var(--primary-black);
font-family: var(--font-britti-sans);
}
*/

.bodyBig,
.bodyNormal,
Expand All @@ -24,8 +27,8 @@
.bodyNormal,
.bodyBig,
.list {
color: var(--primary-black);
font-family: var(--font-britti-sans);
/*color: var(--primary-black);
font-family: var(--font-britti-sans);*/
line-height: 140%;
}

Expand Down
3 changes: 3 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ html {

--focus-color: #8b0f40;

--blue-dark: #0014CD;

/* TODO: upgrade color-scheme with correct colors */
--secondary-red: #f0503f;

Expand All @@ -47,6 +49,7 @@ body {
width: 100vw;
background-color: var(--primary-bg);
font-family: var(--font-britti-sans);
color: var(--primary-black);
}

h1,
Expand Down

0 comments on commit 4fc5dbd

Please sign in to comment.