Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@openameba/spindle-tokens
Advanced tools
Spindle (Ameba Design System) Design Tokens
Spindle TokensはAmebaのデザインシステム「Spindle」で定義されたデザイントークンを管理します。デザイントークンはStyle Dictionary準拠のJSON形式で管理され、各アプリケーション向けの形式に変換されます。
デザイントークンのデータをJSON(オブジェクト)形式で表現した形式です。
dist/json/spindle-tokens.json
{
"Color": {
"Primitive": {
"Black": {
"100": {
"value": "rgba(0, 0, 0, 1)",
"filePath": "tokens/color/primitive.json",
"isSource": true,
"original": {
"value": "rgba(0, 0, 0, 1)"
},
"name": "100",
"attributes": {},
"path": [
"Color",
"Primitive",
"Black",
"100"
]
}
}
}
}
}
デザイントークンのデータをJSON(配列)形式で表現した形式です。データのソートやフィルタリングする際に役立つかもしれません。以下の点がJSON形式と異なっていますので、注意して利用してください。
value
はstring
に統一されますoriginal.value
は元データ型を保持しますpath
を.
で連結したpathString
プロパティが付与されますdist/json/spindle-tokens-flat.json
[
{
"value": "rgba(0, 0, 0, 1)",
"filePath": "tokens/color/primitive.json",
"isSource": true,
"original": {
"value": "rgba(0, 0, 0, 1)"
},
"name": "100",
"attributes": {},
"path": [
"Color",
"Primitive",
"Black",
"100"
],
"pathString": "Color.Primitive.Black.100"
}
]
# Figmaで定義されたデザイントークンをJSON形式のファイルに変換し、保存します
FIGMA_TOKEN=*** FIGMA_COLOR_PRIMITIVE_FILE_ID=*** FIGMA_COLOR_THEME_FILE_ID=*** FIGMA_COLOR_THEME_DARK_FILE_ID=*** FIGMA_DROP_SHADOW_FILE_ID=*** yarn export
# JSONファイルを元に各プラットフォームで利用する形式に変換します
yarn build
Spindle TokensはMITライセンスで公開されています。
FAQs
Spindle design tokens.
The npm package @openameba/spindle-tokens receives a total of 748 weekly downloads. As such, @openameba/spindle-tokens popularity was classified as not popular.
We found that @openameba/spindle-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.