stevenpetryk / mafs

React components for interactive math
https://mafs.dev
MIT License
3.23k stars 87 forks source link

Include CMU Serif, simplify CSS imports #72

Closed stevenpetryk closed 1 year ago

stevenpetryk commented 1 year ago

This uses my new computer-modern package to make Computer Modern Serif available directly from Mafs.

This changes the CSS import in Mafs:

-@import "mafs/build/index.css";
+@import "mafs/core.css";
+@import "mafs/font.css";

font.css is optional. It just imports computer-modern/cmun-serif.css and sets the MafsView font.


One thing that might be handy in the future would be to subset the fonts to only have numbers and common characters, so that the browser doesn't have to load so much content just to show axes.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
mafs ✅ Ready (Inspect) Visit Preview Jan 6, 2023 at 6:57AM (UTC)