Security News
RubyGems.org Adds New Maintainer Role
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.
@datacamp/waffles-tokens
Advanced tools
Usage documentation is available at [Waffles tokens documentation](https://waffles.datacamp.com/components/tokens/). It is possible to import tokens either with `import tokens from '@datacamp/waffles-tokens'` or individual groups with `import { colors } f
Usage documentation is available at Waffles tokens documentation.
It is possible to import tokens either with import tokens from '@datacamp/waffles-tokens'
or individual groups with import { colors } from '@datacamp/waffles-tokens'
. Thanks to types definitions tokens auto-completion is supported. Other legacy tokens could be imported from @datacamp/waffles-tokens/lib/name-of-legacy-tokens-file
.
This package contains all the design tokens used across Waffles, and also the build methods to generate exposed files with these values.
The new tokens are generated from base-tokens.json. The structure of that file is compatible with Figma Tokens plugin. In the first build step regular JS file (ES module with explicit and default exports) is generated with build:new-tokens
script, assuming lib
directory already exists. It serves as a base for transpiling both ESM and CJS modules (with appropriate build:cjs
and build:esm
scripts). Last step is to generate TS typings with build:types
.
The legacy tokens are for now kept for backward compatibility reasons. All tokens are stored in the /properties
directory as json files. On build, these are deep merged and augmented with the transforms. This full data structure is then passed to the formatters to output different files. This is all orchestrated using Style Dictionary and controlled with the buildLegacyTokens.js
file.
Tokens has been updated to stay in line with Design Guidelines and to be compatible with Figma Tokens plugin.
spatial
group is deprecated
sizing
, spacing
, and zIndex
groupsborder
group is deprecated
borderRadius
groupanimation
group is deprecatedsizing
spacing
borderWidth
opacity
zIndex
borderRadius
border.radius
-> borderRadius.medium
circle
border radius tokencolors
group:
brandFacebook
, brandTwitter
, brandGoogle
, brandLinkedIn
navySubtleTextOnDark
, navySubtleTextOnLight
greyDark
colornavyText
-> navyDark
greenText
-> greenDarkText
redText
-> redDarkText
orangeText
-> orangeDarkText
yellowText
-> yellowDarkText
blueText
-> blueDarkText
purpleText
-> purpleDarkText
pinkText
-> pinkDarkText
beige100
-> beigeSubtle
beige200
-> beigeLight
beige300
-> beige
beige400
-> beigeMedium
grey100
-> greySubtle
grey200
-> greyLight
grey300
-> grey
grey400
-> greyMedium
breakpoints
group
small
, medium
, large
breakpointsboxShadow
group
thin
, medium
, thick
, xthick
tokensfontFamily
-> fontFamilies
fontSize
-> fontSizes
micro
-> small
small
-> small
base
-> medium
h6
-> small
h5
-> small
h4
-> medium
h3
-> large
h2
-> xlarge
h1
-> xxlarge
huge
tokenfontWeight
-> fontWeights
letterSpacings
-> letterSpacing
base
-> default
mediumHeading
-> tight
largeHeading
-> tight
relaxed
tokenlineHeight
-> lineHeights
lineHeight
in tandem with fontSize
base
-> medium
heading
-> large
largeHeading
-> xlarge
small
tokenxxlarge
tokenFAQs
Usage documentation available at [waffles.datacamp.com/component-library/tokens](https://waffles.datacamp.com/component-library/tokens).
We found that @datacamp/waffles-tokens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 42 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
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.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.