@bcc-code/design-tokens 3.0.10 → 3.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +37 -2
  2. package/package.json +6 -3
package/README.md CHANGED
@@ -186,9 +186,44 @@ We welcome contributions! Here's how to get started:
186
186
  - **Build configuration** is in `export-tokens/build.js` using Style Dictionary
187
187
  - **Output files** are generated in `build/bcc/` with organized folders for `css/` and `js/`
188
188
 
189
+ ### GitHub-Figma Workflow
190
+
191
+ The design token system integrates with Figma through Figma Token Studio, creating a streamlined workflow between design and development:
192
+
193
+ **1. Design in Figma**
194
+ - Design tokens are created and managed in Figma using the Token Studio plugin
195
+ - Tokens are organized into collections: primitives, semantic (light/dark), typeface, and PrimeVue
196
+ - Designers can make changes directly in Figma and preview them in real-time
197
+
198
+ **2. Export from Figma Token Studio**
199
+ - Use the Token Studio plugin to export tokens as JSON files
200
+ - Export collections separately or as a complete token set
201
+ - Tokens are exported in the Figma Token Studio format with proper references
202
+
203
+ **3. Sync to GitHub**
204
+ - Export token files from Figma Token Studio
205
+ - Update the corresponding files in the `tokens/` directory:
206
+ - `tokens/primitives/` - Base design tokens (colors, dimensions, typography)
207
+ - `tokens/semantic/light.json` - Light theme semantic tokens
208
+ - `tokens/semantic/dark.json` - Dark theme semantic tokens
209
+ - `tokens/typeface/` - Font definitions
210
+ - `tokens/primevue/aura-primitive.json` - PrimeVue Aura primitive tokens
211
+ - Commit changes to your feature branch
212
+
213
+ **4. Build and Deploy**
214
+ - Run `npm run build` to transform tokens into CSS, JS, and Tailwind formats
215
+ - The Style Dictionary build system processes tokens with custom transforms
216
+ - Generated files in `build/bcc/` are ready for distribution
217
+
218
+ **5. Version and Release**
219
+ - Create pull request with token changes
220
+ - Review generated output files and test with demo application
221
+ - Merge to main branch triggers automated release process
222
+ - New package version is published to npm with updated tokens
223
+
189
224
  ### Making Changes
190
225
 
191
- 1. **Token updates:** Modify files in `tokens/` directory or sync from Figma Token Studio
226
+ 1. **Token updates:** Export from Figma Token Studio and update files in `tokens/` directory
192
227
  2. **Build system changes:** Update `export-tokens/build.js` for new formats or transformations
193
228
  3. **PrimeVue preset:** Modify `config/primevue.config.js` for theme mapping changes
194
229
 
@@ -203,7 +238,7 @@ We welcome contributions! Here's how to get started:
203
238
 
204
239
  A comprehensive demo application is available in the `demo/` directory featuring:
205
240
 
206
- - **CSS Variables showcase**: E-commerce product cards, newsletter forms, and status displays using pure CSS with BCC tokens
241
+ - **CSS Variables showcase**: Custom cards, newsletter forms, and status displays using pure CSS with BCC tokens
207
242
  - **Tailwind Utilities showcase**: Project management dashboard with utility-first CSS classes
208
243
  - **PrimeVue Components showcase**: User profiles, settings panels, and component galleries
209
244
  - **Theme switching**: Manual dark/light mode toggle with system preference detection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/design-tokens",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "description": "Design tokens build system",
5
5
  "type": "module",
6
6
  "exports": {
@@ -37,10 +37,13 @@
37
37
  },
38
38
  "homepage": "https://github.com/bcc-code/bcc-tokens#readme",
39
39
  "dependencies": {
40
- "@tokens-studio/sd-transforms": "^1.3.0",
41
- "style-dictionary": "^5.0.0"
40
+ "@tokens-studio/sd-transforms": "^2.0.1",
41
+ "style-dictionary": "^5.0.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@primeuix/themes": "^1.1.1"
45
+ },
46
+ "overrides": {
47
+ "tmp": "^0.2.4"
45
48
  }
46
49
  }