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.
@getflip/swirl-tokens
Advanced tools
Readme
When using design systems colors, you would usually start with a color palette consisting of values from 100 to 900, like green600. These values are static and are not themable. In Swirl, we intentionally skip this core layer and instead work with the semantic color tokens.
Semantic color tokens represent not just a color value but also a semantic role it's used for. By assigning semantic roles to colors, we achieve predictable theming and dark mode support.
We use generic names for the color tokens, which means that color names don't rely on our component inventory. So you can build your custom components using the same color tokens, and they will still automatically support theming and dark mode.
npm install @getflip/swirl-tokens
Accessing all of the available token groups
import styles from "@getflip/swirl-tokens/dist/styles.json";
console.log("background-default", styles["background-default"]);
Importing all of the css variables. CSS variables are prefixed with --s
@import "@getflip/swirl-tokens/dist/css/styles.custom-properties.css";
div {
background-color: var(--s-background-default);
}
FAQs
Swirl Design System Tokens package with a number of different formats for Web and Mobile.
The npm package @getflip/swirl-tokens receives a total of 1,179 weekly downloads. As such, @getflip/swirl-tokens popularity was classified as popular.
We found that @getflip/swirl-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.