Compare commits

...

2 Commits

Author SHA1 Message Date
20d5c6dc4d tidy up 2025-03-05 15:47:53 +00:00
c05dcca091 after too many hours; fonts work now... 2025-03-05 15:42:56 +00:00
4 changed files with 17 additions and 13 deletions

View File

@ -9,7 +9,7 @@ import Footer from "@/components/Footer.astro";
<BaseHead>
<slot name="head" />
</BaseHead>
<body class="mx-auto min-h-screen max-w-xs p-3 sm:p-6">
<body class="mx-auto min-h-screen max-w-xs font-JetBrainsMono p-3 sm:p-6">
<main>
<slot />
</main>

View File

@ -1,15 +1,15 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@font-face {
font-family: 'jb';
src: url("/src/assets/JetBrainsMonoNLNerdFont-Regular.ttf") format("ttf");
}
@layer base {
:root {
color-scheme: light dark;
font-family: 'jb';
@layer base {
@font-face {
font-family: JetBrainsMono;
font-weight: 700;
src: url("../assets/fonts/JetBrainsMonoNLNerdFont-Regular.ttf");
}
:root {
color-scheme: dark;
/* replace colors from here... */
--light-mode-background: 240 240 240;
--light-mode-foreground: 0 0 0;
@ -44,12 +44,13 @@
--dark-mode-custom-link-text-hover: 255 255 255;
/* ...to here */
}
html {
font-family: "JetB";
}
body {
background-color: light-dark(
rgb(var(--light-mode-background)),
rgb(var(--dark-mode-background))
);
font-family: 'jb';
}
}
}
}

View File

@ -7,6 +7,9 @@ export default {
plugins: [require("@tailwindcss/typography")],
theme: {
extend: {
fontFamily: {
JetBrainsMono: ['JetBrainsMono'],
},
colors: {
lightModeBackground:
"rgb(var(--light-mode-background) / <alpha-value>)",