One, consistent set of fonts for the Virtru brand to be used by designers and engineers across our products.
These are the same fonts repeated again and again:
Where is this coming from? Which is canonical?
As of 2018, undocumented and thus, inconsistent.
- Download the latest release of this repo: Assets > Source code (zip)
- Open Font Book.
- In the User section, remove any font families that appear in this repo.
- Install the downloaded fonts by opening them in Font Book. There should be no validation or duplicate font warnings.
- Deactivate any fonts in this repo above in Adobe Fonts.
This repo is ready for installation as npm package:
npm install --save git+ssh://[email protected]/virtru/virtru-typography.git
Once it's installed, add this to your application:
require('virtru-typography');
This assumes that you're using webpack with relevant loaders for css and font files.
Feel free to use dashboard and dashboard-v2 commits as a reference for adding virtru-typography
to the existing projects:
https://github.com/virtru/dashboard/pull/649/files
https://github.com/virtru/dashboard-v2/pull/542/files
This repo ships css files with @font-face
directives as well as woff
, woff2
, ttf
fonts right into your project.
To use fonts in your app you just need to specify relevant font in your css:
.text {
font: 300 16px 'Open Sans', Helvetica, Arial, sans-serif;
}
.text {
font-style: italic;
font-family: 'Raleway', Helvetica, Arial, sans-serif;
}
- If your fonts don't load from CDN, check out this dashboard fix: https://github.com/virtru/dashboard/pull/665
TBD
TBD