Gathering detailed insights and metrics for @markmichon/system-font-stacks
Gathering detailed insights and metrics for @markmichon/system-font-stacks
npm install @markmichon/system-font-stacks
Typescript
Module System
JavaScript (100%)
Total Downloads
1,200
Last Day
1
Last Week
1
Last Month
21
Last Year
124
27 Commits
2 Watching
7 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.2.3
Package Id
@markmichon/system-font-stacks@0.2.3
Unpacked Size
6.54 kB
Size
2.73 kB
File Count
12
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-75%
1
Compared to previous week
Last month
200%
21
Compared to previous month
Last year
-39.5%
124
Compared to previous year
3
A micro utility for using the latest system fonts in your font stacks. Designed for CSS-in-JS libraries. It does not add new typefaces to your project, but instead acts as an easy way to write a font stack string without the need to keep track of current "system stack" trends.
yarn add @markmichon/system-font-stacks
Import into your project:
1import { getSans, getSerif, getMono } from '@markmichon/system-font-stacks'
The following helpers are exposed to retrieve common system font stacks: getSans
, getSerif
, getMono
.
They each share the same API to get default system stacks, or prepend your own declarations to the list.
1// Get the default system fonts stack 2fontFamily: getSans() 3// ex. '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' 4 5// Append a single font-family 6fontFamily: getSans('Open Sans') 7//ex. '"Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' 8 9fontFamily: getSans(['Open Sans', 'source-serif-var']) 10//ex. '"Open Sans", source-serif-var, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
Issues and PRs welcome! If you'd like to see a new typeface added to any of the default lists or have an idea for useful improvements to the API, open an issue.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/21 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
46 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More