Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@vonage/vvd-fonts
Advanced tools
As part of the One Vonage unified branding and look'n'feel experience, we are providing a common Web fonts set. Our font loading service will load a variable fonts for any supporting platform, while falling back to the static fonts on the non-supporting ones.
There are two API approaches to init the fonts in your application:
JS/TS
driven - import our module and invoke the API methodCSS
driven - link a single CSS
stylesheet to rule them allSee more details about each of those approaches down below.
To use Vivid fonts in your application please apply the following CSS
rule:
body {
font-family: var(--vvd-font-family-spezia);
}
regular fonts | ✔ | ✔ | ✔ | ✔ | ✔ |
variable fonts | ✔ 62+ | ✔ 62+ | ✔ 17+ | ✔ 49+ | ✔ 11+ |
JS/TS
driven initializationIf the JS/TS
approach is taken, you should follow the example below:
import fonts from '@vonage/vvd-fonts';
...
fonts.init().then(() =>
// do post init stuff here
);
Note: this approach won't block site's contents rendering, so you'll most likely to experience FOUC behaviour unless employing some kind of loading vilon on start up.
CSS
driven initializationLink the vvd-fonts.css
from the location you've put our library in.
It is highly advised to link this resource early in the application lifecycle (for example, up in the head
).
<link rel="stylesheet" href="@vonage/vvd-fonts/vvd-fonts.css" />
Note: this approach will block the site's contents rendering until the fonts are fully fetched, yet no FOUC (flash of unstyled content) expected.
FAQs
Vivid fonts initialisation service
The npm package @vonage/vvd-fonts receives a total of 488 weekly downloads. As such, @vonage/vvd-fonts popularity was classified as not popular.
We found that @vonage/vvd-fonts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.