Skip to content

Commit

Permalink
WCAG colour update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBeesley committed Aug 1, 2023
1 parent d45314a commit 32af95c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 19 deletions.
36 changes: 18 additions & 18 deletions src/Components/darkmodetoggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ export default function DarkModeToggle () {
console.log("dark mode:", toggle);

if (toggle) {
root.style.setProperty('--Primary', '#9FACBD');
root.style.setProperty('--Secondary', '#009AFA');
root.style.setProperty('--Tertiary', '#8FC3F7');
root.style.setProperty('--Quaternary', '#02629e');
root.style.setProperty('--Accent', '#F9F871');
root.style.setProperty('--background', '#00182e');
root.style.setProperty('--shadow', '#000d18');
root.style.setProperty('--highlight', '#002344');
root.style.setProperty('--light', '#ffffff5d');
root.style.setProperty('--Primary', '#d6d2c4');
root.style.setProperty('--Secondary', '#63807D');
root.style.setProperty('--Tertiary', '#d6d2c4');
root.style.setProperty('--Quaternary', '#FBF1CA');
root.style.setProperty('--Accent', '#00755F');
root.style.setProperty('--background', '#003b49');
root.style.setProperty('--shadow', '#001f29');
root.style.setProperty('--highlight', '#002939');
root.style.setProperty('--light', '#d6d2c4');
root.style.setProperty('--light-hover', '#F9F871');
}

else {
root.style.setProperty('--Primary', '#004D79');
root.style.setProperty('--Secondary', '#002B53');
root.style.setProperty('--Tertiary', '#009AFA');
root.style.setProperty('--Quaternary', '#02629e');
root.style.setProperty('--Accent', '#F9F871');
root.style.setProperty('--background', '#9ccaf7');
root.style.setProperty('--shadow', '#85acd2');
root.style.setProperty('--highlight', '#b3e8ff');
root.style.setProperty('--light', '#ffffff');
root.style.setProperty('--Primary', '#003b49');
root.style.setProperty('--Secondary', '#003b49');
root.style.setProperty('--Tertiary', '#003b49');
root.style.setProperty('--Quaternary', '#006269');
root.style.setProperty('--Accent', '#50B37B');
root.style.setProperty('--background', '#d6d2c4');
root.style.setProperty('--shadow', '#b6b3a7');
root.style.setProperty('--highlight', '#f6f2e1');
root.style.setProperty('--light', '#003b49');
root.style.setProperty('--light-hover', '#F9F871');
}

Expand Down
3 changes: 2 additions & 1 deletion src/Styles/main.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ body {
h1 {
font-weight: bold;
position: inline;
color: var(--Secondary);
color: var(--Quaternary);
}

h2,
Expand Down Expand Up @@ -67,6 +67,7 @@ a {
}

.inlineLink {
color: var(--Quaternary);
padding: 0;
font-weight: bold;
}
Expand Down
1 change: 1 addition & 0 deletions src/Styles/pages.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
}

.inlineLink {
color: var(--Quaternary);
padding: 0;
font-weight: bold;
transition: color 0.5s;
Expand Down
Empty file added src/Tests/test.js
Empty file.
Empty file added src/Tests/test.py
Empty file.

0 comments on commit 32af95c

Please sign in to comment.