From fe30cf171ba1a53ab0cd1854cc8c7a15205c02fa Mon Sep 17 00:00:00 2001 From: Jacob Parker Date: Sun, 5 May 2024 18:27:54 +0100 Subject: [PATCH] . --- assets/base.css | 9 +++------ assets/index.css | 19 ++++++++++++++++--- pages/index.mdx | 24 ++++++++++++------------ 3 files changed, 31 insertions(+), 21 deletions(-) diff --git a/assets/base.css b/assets/base.css index 84f763e..21e592c 100644 --- a/assets/base.css +++ b/assets/base.css @@ -51,12 +51,10 @@ :root { --pocket-jam: #f97f51; --piano-tabs: #fc427b; - --technicalc-light: #0652dd; - --technicalc-dark: #2771f9; /* 12% lighter */ - --technicalc: var(--technicalc-light); + --technicalc: #2874ff; --calipers: #ffc312; - --freebies: #5f27cd; - --blog: #341f97; + --freebies: var(--color); + --blog: var(--color); --primary: var(--color); --color: black; --background: white; @@ -157,7 +155,6 @@ a.header__logo { @media (prefers-color-scheme: dark) { :root { - --technicalc: var(--technicalc-dark); --color: white; --background: black; } diff --git a/assets/index.css b/assets/index.css index e45c485..c53acea 100644 --- a/assets/index.css +++ b/assets/index.css @@ -1,3 +1,8 @@ +:root { + /* Lighter to fit other app colours better */ + --calipers: #ffc636; +} + .links { display: grid; grid-template-columns: repeat(auto-fit, calc(100% / var(--columns))); @@ -6,15 +11,23 @@ .link { position: relative; - background-color: currentColor; overflow: hidden; --allow-font-scaling: 0; } +.link--primary { + color: white; + background: var(--color); +} + +.link--secondary { + color: var(--color); +} + .link__app { display: block; width: 100%; - fill: white; + fill: currentColor; transform-origin: center; transition-duration: 300ms; } @@ -26,7 +39,7 @@ bottom: 0.5em; text-align: center; --font-weight: 600; - color: white; + color: currentColor; } .link__title--discretionary { diff --git a/pages/index.mdx b/pages/index.mdx index 8dacc73..0dba1e4 100644 --- a/pages/index.mdx +++ b/pages/index.mdx @@ -7,8 +7,8 @@ export const css = "/assets/index.css";
{/* MDX makes this a paragraph element without using the string */} @@ -19,8 +19,8 @@ export const css = "/assets/index.css";