Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@bothrs/zeplin
Advanced tools
This script will fetch a styleguide form a Zeplin project, convert it into a variable css file or a tailwind file that can be imported in the tailwind.config
This script will fetch a styleguide form a Zeplin project, convert it into a variable css file or a tailwind file that can be imported in the tailwind.config
yarn add --dev @bothrs/zeplin
The command take a few input flags:
--token
the bearer token from the Zeplin designer. Can be found under the Zeplin settings--projectId
the projectId of the Zeplin project--destination
This is is the path to the file where you want your files to be generated. (Example: ./src/styles/variables.css)--tailwind
This flag will change some configuration in the theme to make it work with tailwind (optional)When you want to use the tailwind feature of the package, you'll need to update the tailwind.config file to use thie design token file. What you need to do is extend your tailwind theme with the file created by the bothrs/zeplin package e.g
const tailwindExtend = require("./tailwindExtend.json");
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
...tailwindExtend,
},
},
plugins: [],
};
After you extended the tailwind config with your design tokens you can use the generated custom tailwind classes in your html like this:
<h2 className="text-h1-mb font-h1-mb">Post</h2>
yarn sync-zeplin --token gh123hf1 --projectId 61c2fc3cbc2bbe6 --destination ./src/styles/variables.css
FAQs
This script will fetch a styleguide form a Zeplin project, convert it into a variable css file or a tailwind file that can be imported in the tailwind.config
The npm package @bothrs/zeplin receives a total of 2 weekly downloads. As such, @bothrs/zeplin popularity was classified as not popular.
We found that @bothrs/zeplin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.