Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
typographic
Advanced tools
Responsive typography for the rest of us. Written in Stylus. SCSS port on the roadmap.
npm install typographic
Place @import 'typographic'
at the top of your style.styl
file
font-family
to one of the stacks variables, for instance helvetica
It's common for header and body font stacks to differ. With the t-headers()
mixin, you can change all headers to have the same font stack.
The presets file is a typography reset that applies some font-size
, line-height
, and margin-bottom
to common selectors. There is a preset()
mixin that accepts a ratio. A ratio can be any floated number and in the ratios file you will see a variable list of common modular scale ratios.
To enable typographic, use the presets()
mixin after @import
ing Typographic. Pass the presets()
mixin random numbers to see how it works.
Just set your html
selector's base font-size
, then adjust the font-size
with media queries.
stylus -u typographic -w css/style.styl
npm install -g typographic
@import 'typographic'
presets(major-sixth)
html
font-family: garamond
font-size: 12px
@media (min-width: 600px)
font-size: 14px
@media (min-width: 800px)
font-size: 16px
@media (min-width: 1000px)
font-size: 18px
t-headers(helvetica)
stylus -u typographic -w css/style.styl
Expand/contract the demo to see this in action.
FAQs
Responsive typography with modular scale, font stacks, and more.
The npm package typographic receives a total of 11 weekly downloads. As such, typographic popularity was classified as not popular.
We found that typographic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.