Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@box/blueprint-web-assets
Advanced tools
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Readme
@box/blueprint-web-assets
@box/blueprint-web-assets
@box/blueprint-web-assets
is a comprehensive collection of Box assets(icons, illustrations) and tokens (color, font, spacing, etc..). You can check available assets in our Portal.
yarn add @box/blueprint-web-assets
In scss
files:
If possible, use css variables:
@use '@box/blueprint-web-assets/tokens/tokens-css-vars.scss';
...
.component {
background-color: var(--background-background);
}
Otherwise, you can use scss tokens, but bear in mind that this method is deprecated:
@use '@box/blueprint-web-assets/tokens/tokens.scss'; // or @import if you're not using dart sass
...
.component {
background-color: tokens.$background-background;
}
In tsx
files:
import { BackgroundBackground } from '@box/blueprint-web-assets/tokens/tokens';
...
<Checkmark color={BackgroundBackground} />
Currently we also distribute '@box/blueprint-web-assets/tokens/px-tokens' - js file containing tokens in pixel values. You should use it only if your use case doesn't support rem units, e.g. e-mail clients.
You can use all icons as regular React components.
import { InfoBadge } from '@box/blueprint-web-assets/icons/Line';
...
<InfoBadge />
To change icon color you can use color
prop:
import { Alert } from '@box/blueprint-web-assets/icons/Fill';
import { IconIconErrorOnLight } from '@box/blueprint-web-assets/tokens/tokens';
...
<Alert color={IconIconErrorOnLight} />
Icon path defines icon style:
import { InfoBadge } from '@box/blueprint-web-assets/icons/Line';
import { Alert } from '@box/blueprint-web-assets/icons/Fill';
import { FileAudio } from '@box/blueprint-web-assets/icons/Content';
import { BoxLogo } from '@box/blueprint-web-assets/icons/Logo';
yarn nx build-local-all blueprint-web-assets
yarn nx lint blueprint-web-assets --fix
yarn nx format blueprint-web-assets
Push changes to a new branch. New version of package will be released after merge.
FAQs
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
The npm package @box/blueprint-web-assets receives a total of 27 weekly downloads. As such, @box/blueprint-web-assets popularity was classified as not popular.
We found that @box/blueprint-web-assets demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.