Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
dialog-typography
Advanced tools
Readme
Provides a central place to manage your typography across multiple breakpoints. Demo
npm install dialog-typography
yarn add dialog-typography
Set up your favorite breakpoint mixin.
typo
will call a mixin called bp($breakpointname)
. So it important to
set up your own breakpoint mixin within a mixin called bp
.
For example:
$dialog-breakpoints: (
desktop: 'min-width: 701px',
mobile: 'max-width: 700px'
);
@mixin bp($name) {
@media (#{map-get($dialog-breakpoints, $name)}) {
@content
}
}
Or you could also use any popular breakpoint mixin
@mixin bp($name)
@inlcude media-query($name) {
@content
}
}
Import dialog-typography.scss
after the creation of the bp
mixin.
@import 'dialog-typography/dist/dialog-typography';
PS: make sure to add node_modules
to your import paths
Set up your typography.
$dialog-typo: (
desktop: (
default: (
font-size : 1rem,
font-family : sans-serif,
font-weight : normal,
font-style : normal,
line-height : 1.5
),
title: (
font-weight : bold,
font-size : 2.25rem,
line-height : 1.3
),
subtitle: (
font-weight : bold,
font-size : 1.75rem,
line-height : 1.2
),
paragraph: (
font-size : 1rem
)
),
mobile: (
default: (
font-size : 1.15rem,
line-height : 1.5
),
title: (
font-size : 3rem
)
)
)
Use in your components
.yourComponent {
&__title {
@include typo(title)
}
}
Created with ♥ by meodai. Licensed under the MIT License.
FAQs
SASS/SCSS module settings
We found that dialog-typography demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).