Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@flip-app/swirl-tokens
Advanced tools
Design tokens represent design decisions such as color, spacing, and typography. Each token has a unique name that references a specific value.
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 @flip/swirl-tokens
Accessing all of the available token groups
import { tokens } from "@flip-app/swirl-tokens";
console.log(tokens.colors);
Importing all of the css variables. CSS variables are prefixed with --s
import '@flip-app/swirl-tokens/css/styles.css';
div {
background: var(--s-background);
}
Accessing a specific token group file via the dist folder
const spacing = require("@flip/swirl-tokens/json/spacing.json");
FAQs
Design tokens represent design decisions such as color, spacing, and typography. Each token has a unique name that references a specific value.
We found that @flip-app/swirl-tokens 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.