loculus-project / loculus

An open-source software package to power microbial genomic databases
https://loculus.org
GNU Affero General Public License v3.0
37 stars 2 forks source link

Monospaced font for accessions? #1292

Open chaoran-chen opened 8 months ago

chaoran-chen commented 8 months ago

What do you think about using a monospaced font whenever we display accessions? I think that it would make them more recognizable on our website and easier to read.

theosanderson commented 8 months ago

I'm uncertain about this - I think inconsistent fonts might look a bit out of place. But of course very willing for a preview to be made and to see what people prefer.

corneliusroemer commented 8 months ago

I independently had that thought - I was also thinking of potentially using monospaced fonts for all data, not just accessions.

What font do we use right now? Looks like the system default?

image

Using font-variant-numeric: tabular-nums; would make sense - this wouldn't change the font, just make numbers display more nicely. https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric#numeric-spacing-values

theosanderson commented 8 months ago

Tabular nums is definitely a no-brainer for tables! 👍