sneakers-the-rat / paper-feeds

A FastAPI web server for creating RSS feeds for scholarly journals with the magic of adversarial interoperability
GNU General Public License v3.0
63 stars 4 forks source link

Replace font #12

Open roaldarbol opened 10 months ago

roaldarbol commented 10 months ago

The current one screams 1987 - there are some really nice ones on e.g. https://open-foundry.com/.

Do folks have preferences whether we include a file in the repo, or get them through a CDN?

sneakers-the-rat commented 10 months ago

as much love as i have for system default font, hell ya. i'd prefer to vendor them as .woff/.woff2 vs. a CDN :). i'll come help with styles after i get the basic stuff working!

roaldarbol commented 10 months ago

I can just select one for starters and implement the code, then we can just change it afterwards. BTW, is there an easy way to use parameters with CSS, or do we SCSS - and in that case, do you happen to know how we convert SCSS to CSS? Would be great to have a something like a parameters.css where we could specify e.g. $primary_font: "Times" or primary_color: teal and then use those throughout the site. I do that in Jekyll, but I'm not sure where the SCSS magically convert to CSS.

sneakers-the-rat commented 10 months ago

vanilla css has variables :)

:root {
  --font-body: "Papyrus";
}

span {
  font-family: var(--font-body);
}
sneakers-the-rat commented 10 months ago

if you want sass/scss tho we can definitely do that, i'm sure there's some sass middleware lying around here somewhere

sneakers-the-rat commented 10 months ago

see also this wonderful tool https://gwfh.mranftl.com/fonts

roaldarbol commented 10 months ago

I image so few variables that vanilla will probably do just fine then - no need to complicate things further. :P