
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@design-sync/sync
Advanced tools
Design Sync CLI
Install package:
# npm
npm install -D @design-sync/sync
# yarn
yarn add --dev @design-sync/sync
# pnpm
pnpm install @design-sync/sync
# bun
bun install @design-sync/sync
Initialize:
# npm
npm run design-sync init
# yarn
yarn design-sync init
# pnpm
pnpm design-sync init
# bun
bun design-sync init
follow the prompt to create a design-sync.config
file or pass -y
to skip the prompt and use the default values.
Sync:
# npm
npm run design-sync sync
# yarn
yarn dlx design-sync sync
# pnpm
pnpm dlx design-sync sync
# bun
bun design-sync sync
The configuration file is a design-sync.config.ts
file in the root of your project.
uri
: (string) the uri of a git repository to download the design tokens from, eg gh:owner/repo/path/to/file/or/folder#branch
supports github
, gitlab
, sourcehut
and bitbucket
see giget for more info.auth
: (string) Custom Authorization token to use for downloading tokens. (Can be overridden with GIGET_AUTH
environment variable).out
: (string) the output directory for the generated filesplugins
: (array) plugins to use, see plugins for more infoschemaExtensions
(array)- schema extensions to use, see schema extensions for more infoprettify
: (boolean) format the generated files using prettier
, default: false
Transforms DTFM json to css variables and classes
Usage:
in the config file add the plugin to the plugins array
import { cssPlugin } from '@design-sync/sync'
export default {
plugins: [cssPlugin({
// extract token types as css classes default: ['typography']
extractAsStyles: ['typography'],
// relative path in the `out` root config, default ''
outDir: 'css',
// extract typography as css variables in the format of `font` css property, default: false
typographyAsFontProperty: false,
// css selector per mode to wrap the css variables, default: ':root'
selectors: {
dark: '@media (prefers-color-scheme: dark)',
light: '@media (prefers-color-scheme: light)',
},
})],
}
Transforms DTFM json to vanilla extract themes
Usage:
in the config file add the plugin to the plugins array
import { vanillaExtractPlugin } from '@design-sync/sync'
export default {
plugins: [vanillaExtractPlugin({
// relative path in the `out` root config, default ''
outDir: 'vanilla-extract',
// name of the file used to export the theme contract using `createThemeContract`, default: 'contract.css.ts'
themeContractName: 'contract',
// name of the exported variable from the theme contract and would also be used to reference the tokens, default: 'vars'
themeContractVarName: 'theme',
})],
}
Transforms DTFM json to flat json file without all the tokens metadata and types, also dereference all token aliases
Usage:
in the config file add the plugin to the plugins array
import { jsonPlugin } from '@design-sync/sync'
export default {
plugins: [jsonPlugin({
// relative path in the `out` root config, default ''
outDir: 'json',
})],
}
corepack enable
pnpm install
pnpm dev
Made with 💛
Published under MIT License.
FAQs
CLI for Design Sync
The npm package @design-sync/sync receives a total of 0 weekly downloads. As such, @design-sync/sync popularity was classified as not popular.
We found that @design-sync/sync demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.