Skip to content

Commit

Permalink
WCAG colour update #2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBeesley committed Aug 1, 2023
1 parent 32af95c commit 94869cb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Components/codebox.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Styles from "../Styles/codebox.module.scss";
import { FunctionComponent } from "react";
import SyntaxHighlighter from 'react-syntax-highlighter';
import { monoBlue } from "react-syntax-highlighter/dist/esm/styles/hljs";
import { gruvboxDark } from "react-syntax-highlighter/dist/esm/styles/hljs";

type CodeBoxProps = {
children: string;
Expand All @@ -12,7 +12,7 @@ const CodeBox: FunctionComponent<CodeBoxProps> = ({ children, language }) => {
return (
<>
<div className={Styles.codebox}>
<SyntaxHighlighter className={Styles.highlighter} language={language} style={monoBlue}>
<SyntaxHighlighter className={Styles.highlighter} language={language} style={gruvboxDark}>
{children}
</SyntaxHighlighter>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/Pages/WebDev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ const post1f1 = () => {
</p>
</article>
</div>
</div>
. . .
</main>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/Styles/pages.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

.inlineCode {
font-weight: bold;
color: #0048ab;
color: #EBDBB2;
background-color: var(--codebox);
padding: 0 0.2rem;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Styles/variables.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
--Tertiary: #fff;
--Quaternary: #fff;
--Accent: #fff;
--background: #8fc3f7;
--background: #fff;

--shadow: #fff;
--highlight: #fff;

--codebox: #ffffff86;
--codebox: #2a2b28;

--light: #ffffff;
--light-hover: #f9f871;
--light-hover: #fff;
}

0 comments on commit 94869cb

Please sign in to comment.