
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@wrtnlabs/autoview-figma-cli
Advanced tools
Figma CLI for design token extraction using Personal Access Token
Personal Access Tokenμ μ¬μ©νμ¬ Figma νμΌμμ λμμΈ ν ν°μ μΆμΆνκ³ , boilerplateμ ν¨κ» μλ‘μ΄ νλ‘μ νΈλ₯Ό μμ±νλ CLI λꡬμ λλ€.
extract
λͺ
λ Ήμ΄)/file/
νμκ³Ό μλ‘μ΄ /design/
νμ λͺ¨λ μ§μcreate
λͺ
λ Ήμ΄)cd apps/figma-cli
pnpm install
pnpm build
pnpm link --global
extract
- λμμΈ ν ν° μΆμΆfigma-cli extract
# ν ν°κ³Ό URL 미리 μ 곡
figma-cli extract --token YOUR_TOKEN --url "https://www.figma.com/design/FILE_KEY/FILE_NAME"
# μΆλ ₯ νμΌ κ²½λ‘ μ§μ
figma-cli extract --output ./my-tokens.json
# νκ²½λ³μ μ¬μ©
export FIGMA_ACCESS_TOKEN=your_token_here
figma-cli extract --url "https://www.figma.com/design/FILE_KEY/FILE_NAME"
create
- νλ‘μ νΈ μμ± (NEW!)figma-cli create my-awesome-project
# ν ν° μΆμΆ 건λλ°κΈ°
figma-cli create my-project --skip-tokens
# λ€λ₯Έ boilerplate μ μ₯μ μ¬μ©
figma-cli create my-project --source github:your-org/your-boilerplate
# νΉμ κ²½λ‘μ μμ±
figma-cli create my-project --destination ./projects
# Private repositoryμμ git clone μ¬μ©
figma-cli create my-project --source github:your-org/private-repo --use-git
# νΉμ λΈλμΉ μ¬μ©
figma-cli create my-project --source github:your-org/repo --use-git --branch develop
# Figma μ 보 미리 μ 곡
figma-cli create my-project --token YOUR_TOKEN --url "https://www.figma.com/design/FILE_KEY/FILE_NAME"
# GitHub ν ν°μ νκ²½λ³μλ‘ μ€μ
export GITHUB_TOKEN=ghp_xxxxxxxxxxxxxx
# Private repository μ¬μ© (degit λ°©μ)
figma-cli create my-project --source github:your-org/private-boilerplate
# Git clone λ°©μμΌλ‘ private repository ν΄λ‘
figma-cli create my-project --source github:your-org/private-repo --use-git
# νΉμ λΈλμΉμμ ν΄λ‘
figma-cli create my-project \
--source github:your-org/private-repo \
--use-git \
--branch develop
Git clone λ°©μμ μ¬μ©ν λλ λ€μ μ€ νλμ μΈμ¦ λ°©λ²μ΄ νμν©λλ€:
SSH ν€ μ€μ
# SSH URL μ¬μ©
figma-cli create my-project --source git@github.com:your-org/private-repo.git --use-git
GitHub CLI λ‘κ·ΈμΈ
gh auth login
figma-cli create my-project --source github:your-org/private-repo --use-git
create
λͺ
λ Ήμ΄)CLIλ λ€μ νμΌλ€μ μλμΌλ‘ μμ±ν©λλ€:
my-project/
βββ src/
β βββ styles/
β β βββ tokens.css # CSS Variables
β βββ tokens/
β βββ index.ts # TypeScript νμ
μ μ
βββ design-tokens.json # μλ³Έ ν ν° JSON
βββ package.json # νλ‘μ νΈλͺ
μ
λ°μ΄νΈλ¨
βββ README.md # νλ‘μ νΈλͺ
μ
λ°μ΄νΈλ¨
:root {
/* Colors */
--color-blue-500: #71a9dc;
--color-pink-400: #e6bce6;
--color-system-blue-000: #2388f3;
/* μΆκ°λ μμλ€... */
}
// Auto-generated design tokens from Figma
export type ColorToken = "blue-500" | "pink-400" | "system-blue-000";
export const colors = {
"blue-500": "#71a9dc",
"pink-400": "#e6bce6",
"system-blue-000": "#2388f3",
} as const;
extract
λͺ
λ Ήμ΄ μ΅μ
-t, --token <token>
: Figma Personal Access Token (μ νμ¬ν)-u, --url <url>
: Figma νμΌ URL (μ νμ¬ν)-k, --key <key>
: Figma νμΌ ν€ (μ νμ¬ν)-o, --output <path>
: μΆλ ₯ νμΌ κ²½λ‘ (κΈ°λ³Έκ°: ./design-tokens.json)-j, --json <path>
: μΆκ° JSON νμΌμμ λ³μ μΆμΆ-v, --variable <name>
: JSON νμΌμμ μΆμΆν λ³μλͺ
create
λͺ
λ Ήμ΄ μ΅μ
-s, --source <url>
: Boilerplate Git μ μ₯μ URL (κΈ°λ³Έκ°: github:wrtnlabs/autoview-boilerplate)-d, --destination <path>
: μμ±ν λλ ν 리 (κΈ°λ³Έκ°: νμ¬ λλ ν 리)--skip-tokens
: Figma ν ν° μΆμΆ 건λλ°κΈ°--use-git
: Git clone μ¬μ© (private repoμ©)--branch <branch>
: ν΄λ‘ ν λΈλμΉ (git clone μ¬μ©μ)-t, --token <token>
: Figma Personal Access Token (μ νμ¬ν)-u, --url <url>
: Figma νμΌ URL (μ νμ¬ν)-k, --key <key>
: Figma νμΌ ν€ (μ νμ¬ν)# νκ²½λ³μ μ€μ
export FIGMA_ACCESS_TOKEN=figd_xxxxxxxxxxxxxx
export GITHUB_TOKEN=ghp_xxxxxxxxxxxxxx
# νλ‘μ νΈ μμ± (ν ν° μ
λ ₯ μμ΄)
figma-cli create design-system-app
# κ²°κ³Ό: Figma ν ν°μ΄ ν΅ν©λ μμ±λ νλ‘μ νΈ
# Private boilerplate + Figma ν ν° ν΅ν©
figma-cli create my-company-project \
--source github:my-company/private-boilerplate \
--use-git \
--branch company-template \
--token figd_xxxxxxxxxxxxxx \
--url "https://www.figma.com/design/FILE_KEY/FILE_NAME"
# λμμΈ ν ν°λ§ μΆμΆνκ³ μΆμ λ
figma-cli extract --token figd_xxxxxxxxxxxxxx --url "https://www.figma.com/design/FILE_KEY/FILE_NAME"
# 1. ν ν° μΆμΆ + νλ‘μ νΈ μμ±
figma-cli create my-project
# 2. νλ‘μ νΈ λλ ν λ¦¬λ‘ μ΄λ
cd my-project
# 3. μμ‘΄μ± μ€μΉ
npm install
# 4. κ°λ° μλ² μμ
npm run dev
# Private repositoryμΈ κ²½μ°
figma-cli create my-project --source github:org/repo --use-git
# λλ GitHub token μ€μ
export GITHUB_TOKEN=ghp_xxxxxxxxxxxxxx
figma-cli create my-project --source github:org/private-repo
# SSH ν€ μ€μ νμΈ
ssh -T git@github.com
# λλ HTTPS μΈμ¦ μ€μ
gh auth login
extract
λͺ
λ Ήμ΄)μΆμΆλ λμμΈ ν ν°μ λ€μκ³Ό κ°μ JSON νμμΌλ‘ μ μ₯λ©λλ€:
{
"colors": [
{
"name": "Primary Blue",
"description": "Main brand color",
"type": "color",
"value": "rgba(0, 123, 255, 1)",
"source": "style"
}
],
"typography": [
{
"name": "Heading 1",
"description": "Main heading style",
"type": "typography",
"value": {
"fontFamily": "Inter",
"fontSize": 32,
"fontWeight": 700,
"lineHeight": "normal"
},
"source": "style"
}
]
}
FAQs
Figma CLI for design token extraction using Personal Access Token
The npm package @wrtnlabs/autoview-figma-cli receives a total of 1 weekly downloads. As such, @wrtnlabs/autoview-figma-cli popularity was classified as not popular.
We found that @wrtnlabs/autoview-figma-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 4 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.