Add fonts module: document and load Raleway/Roboto in solid-ui#736
Closed
Add fonts module: document and load Raleway/Roboto in solid-ui#736
Conversation
…lity Agent-Logs-Url: https://github.com/SolidOS/solid-ui/sessions/bba396e8-692d-4718-b749-8f7e56cc15df Co-authored-by: SharonStrats <9412507+SharonStrats@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate installed fonts in Mashlib
Add fonts module: document and load Raleway/Roboto in solid-ui
Apr 9, 2026
Contributor
|
I was just asking a question didn't want a PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
style.jsreferencedRaleway,Roboto, andArialin inline style strings, but none of these web fonts were ever loaded — Raleway and Roboto silently fell back to the browser'ssans-serifon most systems.Changes
src/styleConstants.js— two new constants centralise the font stacks:src/style.js— all hard-codedfont-familyliterals replaced with template-literal references to those constants.src/fonts.ts(new) — public module exposing:fontNames— individual font names (Raleway,Roboto)fontFamilies— full CSS font-family stacksloadFonts(url?)— idempotent function that injects a<link rel="stylesheet">intodocument.head; defaults to Google Fonts but accepts any self-hosted URL for privacy-conscious deployments:src/index.ts—fontsadded to named exports andwindow.UI.