Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
@kaizen/design-tokens
Advanced tools
Readme
Design tokens for all platforms.
Design tokens are named and stored visual design traits, including colors, typography, and animation timings. Design Tokens are the heart of every Design System.
The tokens represented here are platform-agnostic (JSON), as this will help us contribute to & facilitate the maintenance of living style guides. This package defines all the option tokens in Kaizen.
$color-purple-500: #898ba9;
is one color option available.In its current state this package supports Sass and Less variables, generated from a JSON tokens file.
Please note that the helpers in this package are specifically for accessing and using these design tokens. Component-specific helpers are best suited for kaizen-component-library.
As of V3, design tokens are also themable; they are intended to be used as if they can be switched at runtime. Because of this, we employ CSS Variables
to support this feature, so when consuming tokens in SASS/LESS you should assume they will contain values such as var(--color-...)
, rather than concrete values such as 1.5rem
or #fff
.
These values are supplied by the ThemeManager.
pnpm add @kaizen/design-tokens
## Note helper functions are provided
@import "~@kaizen/design-tokens/sass/[color/depth/layout/spacing/typography/helpers]";
## Note helper functions are provided
@import "~@kaizen/design-tokens/less/[color/depth/layout/spacing/typography/helpers]";
import * as tokens from "@kaizen/design-tokens/tokens/[color/depth/layout/spacing/typography]"
When adding support for another target the transformation should add the appropriate unit to the artefact. For example, converting typography sizes to Sass/Less should add REM.
All values in tokens are represented as rem, em or px.
See CONTRIBUTING.md
FAQs
Tokens used in the Kaizen Design System
The npm package @kaizen/design-tokens receives a total of 28,188 weekly downloads. As such, @kaizen/design-tokens popularity was classified as popular.
We found that @kaizen/design-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 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 is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.