Add OpenDyslexic font face.

This commit is contained in:
Benjamin A. Shelton 2026-11-23 14:43:00 -07:00
commit 14e7eab636
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
3 changed files with 66 additions and 2 deletions

30
package-lock.json generated
View file

@ -10,6 +10,9 @@
"dependencies": { "dependencies": {
"@astrojs/markdown-remark": "^7.3.5", "@astrojs/markdown-remark": "^7.3.5",
"@astrojs/mdx": "^8.1.2", "@astrojs/mdx": "^8.1.2",
"@fontsource/atkinson-hyperlegible": "^5.3.0",
"@fontsource/lexend": "^5.3.0",
"@fontsource/opendyslexic": "^5.3.0",
"@tailwindcss/vite": "^4.3.0", "@tailwindcss/vite": "^4.3.0",
"astro": "^7.4.5", "astro": "^7.4.5",
"astro-icon": "^1.1.5", "astro-icon": "^1.1.5",
@ -649,6 +652,33 @@
"tslib": "^2.4.0" "tslib": "^2.4.0"
} }
}, },
"node_modules/@fontsource/atkinson-hyperlegible": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/atkinson-hyperlegible/-/atkinson-hyperlegible-5.3.0.tgz",
"integrity": "sha512-Sp8Ve8+rQmENY2Lv02VH7sLpntzTTvnncnJMTbRE7DX6TLxGraN4ykZfzaUWIoCFmaomwkvNiqmlPkrKBuDoSA==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@fontsource/lexend": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/lexend/-/lexend-5.3.0.tgz",
"integrity": "sha512-4igbsooynC6xwfagkAW6eo9JMrw8ALFGkWn1YChYmYchufMJSPgWihD+cy5ruX5YX/gDk/gllcl1Oj7q6KUZmw==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@fontsource/opendyslexic": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/opendyslexic/-/opendyslexic-5.3.0.tgz",
"integrity": "sha512-BVYIW/ghc1U2iAghhYTN+GFWiZ3lnCy8Jf2KkZC23aHQHBNcMqKT718zckfqVxRx4qsXJmIMPWvczirRuhmtsg==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@iconify/tools": { "node_modules/@iconify/tools": {
"version": "4.2.0", "version": "4.2.0",
"resolved": "https://registry.npmjs.org/@iconify/tools/-/tools-4.2.0.tgz", "resolved": "https://registry.npmjs.org/@iconify/tools/-/tools-4.2.0.tgz",

View file

@ -15,6 +15,9 @@
"dependencies": { "dependencies": {
"@astrojs/markdown-remark": "^7.3.5", "@astrojs/markdown-remark": "^7.3.5",
"@astrojs/mdx": "^8.1.2", "@astrojs/mdx": "^8.1.2",
"@fontsource/atkinson-hyperlegible": "^5.3.0",
"@fontsource/lexend": "^5.3.0",
"@fontsource/opendyslexic": "^5.3.0",
"@tailwindcss/vite": "^4.3.0", "@tailwindcss/vite": "^4.3.0",
"astro": "^7.4.5", "astro": "^7.4.5",
"astro-icon": "^1.1.5", "astro-icon": "^1.1.5",

View file

@ -1,4 +1,11 @@
@import "tailwindcss"; @import "tailwindcss";
@import '@fontsource/atkinson-hyperlegible/400.css';
@import '@fontsource/atkinson-hyperlegible/700.css';
@import '@fontsource/opendyslexic/400.css';
@import '@fontsource/opendyslexic/700.css';
@source "../layouts/**/*.astro"; @source "../layouts/**/*.astro";
@source "../pages/**/*.astro"; @source "../pages/**/*.astro";
@ -23,6 +30,30 @@
--color-devotional-dark: #6b757d; --color-devotional-dark: #6b757d;
} }
@theme inline {
--font-reading: var(--reading-font-family);
}
:root {
--reading-font-family: inherit;
}
html.df {
--reading-font-family: "OpenDyslexic", sans-serif;
}
html.df .study-notes :is(em, i, blockquote) {
font-style: normal;
}
@utility study-notes {
font-family: var(--reading-font-family);
letter-spacing: 0.035em;
line-height: 1.7;
max-width: 65ch;
word-spacing: 0.12em;
}
#notes-list ul.tags { #notes-list ul.tags {
li.gospels { li.gospels {
@apply bg-gospels; @apply bg-gospels;
@ -117,8 +148,8 @@ header {
#menu { #menu {
cursor: pointer; cursor: pointer;
} }
#menu span { #menu span.label-text {
@apply align-top; @apply align-top inline ml-4;
} }
#hamburger { #hamburger {
display: inline-block; display: inline-block;