diff --git a/package-lock.json b/package-lock.json index 8add3ed..12d6aba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,9 @@ "dependencies": { "@astrojs/markdown-remark": "^7.3.5", "@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", "astro": "^7.4.5", "astro-icon": "^1.1.5", @@ -649,6 +652,33 @@ "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": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/@iconify/tools/-/tools-4.2.0.tgz", diff --git a/package.json b/package.json index 8489cea..9a61f6f 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,9 @@ "dependencies": { "@astrojs/markdown-remark": "^7.3.5", "@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", "astro": "^7.4.5", "astro-icon": "^1.1.5", diff --git a/src/styles/global.css b/src/styles/global.css index f9441ba..da09d19 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -1,4 +1,11 @@ @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 "../pages/**/*.astro"; @@ -23,6 +30,30 @@ --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 { li.gospels { @apply bg-gospels; @@ -117,8 +148,8 @@ header { #menu { cursor: pointer; } - #menu span { - @apply align-top; + #menu span.label-text { + @apply align-top inline ml-4; } #hamburger { display: inline-block;