@promptui-lib/figma-parser 0.1.2 → 0.1.3

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 +87 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="./logo.png" alt="PromptUI Logo" width="200" />
2
+ <img src="https://raw.githubusercontent.com/desireemenezes/promptUI/main/logo.png" alt="PromptUI Logo" width="200" />
3
3
  </p>
4
4
 
5
5
  <h1 align="center">PromptUI</h1>
@@ -356,6 +356,92 @@ Create `promptui.config.json`:
356
356
 
357
357
  ---
358
358
 
359
+ ## Figma Support
360
+
361
+ ### What We Extract from Figma
362
+
363
+ | Element | Supported | Notes |
364
+ |---------|-----------|-------|
365
+ | **Colors** | ✅ Yes | RGB, Hex, tokens |
366
+ | **Spacing** | ✅ Yes | Padding, margin, gap |
367
+ | **Typography** | ✅ Yes | Font size, weight, family |
368
+ | **Border Radius** | ✅ Yes | All corners |
369
+ | **Shadows** | ✅ Yes | Drop shadow, inner shadow |
370
+ | **Layout** | ✅ Yes | Auto Layout → Flexbox |
371
+ | **SVG/Icons** | ✅ Yes | Exported as inline SVG |
372
+ | **Images** | ⚠️ Partial | Placeholder generated |
373
+ | **Gradients** | ⚠️ Partial | Linear gradients |
374
+ | **Animations** | ❌ No | Not available via Figma API |
375
+ | **Prototype Links** | ❌ No | Prototype data only |
376
+
377
+ ### Bootstrap Components Mapping
378
+
379
+ Name your Figma frames to auto-map to Bootstrap components:
380
+
381
+ | Figma Frame Name | Bootstrap Output |
382
+ |------------------|------------------|
383
+ | `#Alert` | `<div class="alert">` |
384
+ | `#Badge` | `<span class="badge">` |
385
+ | `#Breadcrumb` | `<nav class="breadcrumb">` |
386
+ | `#Button` | `<button class="btn">` |
387
+ | `#ButtonGroup` | `<div class="btn-group">` |
388
+ | `#Card` | `<div class="card">` |
389
+ | `#Carousel` | `<div class="carousel">` |
390
+ | `#Collapse` | `<div class="collapse">` |
391
+ | `#Dropdown` | `<div class="dropdown">` |
392
+ | `#ListGroup` | `<ul class="list-group">` |
393
+ | `#Modal` | `<div class="modal">` |
394
+ | `#Navbar` | `<nav class="navbar">` |
395
+ | `#Nav` or `#Tabs` | `<ul class="nav">` |
396
+ | `#Offcanvas` | `<div class="offcanvas">` |
397
+ | `#Pagination` | `<nav class="pagination">` |
398
+ | `#Progress` | `<div class="progress">` |
399
+ | `#Spinner` | `<div class="spinner">` |
400
+ | `#Toast` | `<div class="toast">` |
401
+ | `#Tooltip` | `data-bs-toggle="tooltip"` |
402
+
403
+ ### Material UI Components Mapping
404
+
405
+ | Figma Frame Name | MUI Output |
406
+ |------------------|------------|
407
+ | `#Alert` | `<Alert>` |
408
+ | `#Avatar` | `<Avatar>` |
409
+ | `#Badge` | `<Badge>` |
410
+ | `#Breadcrumb` | `<Breadcrumbs>` |
411
+ | `#Button` | `<Button>` |
412
+ | `#Card` | `<Card>` |
413
+ | `#Checkbox` | `<Checkbox>` |
414
+ | `#Chip` | `<Chip>` |
415
+ | `#Dialog` or `#Modal` | `<Dialog>` |
416
+ | `#Drawer` | `<Drawer>` |
417
+ | `#Input` or `#TextField` | `<TextField>` |
418
+ | `#List` | `<List>` |
419
+ | `#Menu` | `<Menu>` |
420
+ | `#Pagination` | `<Pagination>` |
421
+ | `#Progress` | `<LinearProgress>` |
422
+ | `#Radio` | `<Radio>` |
423
+ | `#Select` | `<Select>` |
424
+ | `#Slider` | `<Slider>` |
425
+ | `#Snackbar` | `<Snackbar>` |
426
+ | `#Switch` | `<Switch>` |
427
+ | `#Table` | `<Table>` |
428
+ | `#Tabs` | `<Tabs>` |
429
+ | `#Tooltip` | `<Tooltip>` |
430
+
431
+ ### Form Components
432
+
433
+ | Figma Frame Name | React + SCSS | Bootstrap | MUI |
434
+ |------------------|--------------|-----------|-----|
435
+ | `#Input` | `<input>` | `<input class="form-control">` | `<TextField>` |
436
+ | `#Select` | `<select>` | `<select class="form-select">` | `<Select>` |
437
+ | `#Checkbox` | `<input type="checkbox">` | `<input class="form-check-input">` | `<Checkbox>` |
438
+ | `#Radio` | `<input type="radio">` | `<input class="form-check-input">` | `<Radio>` |
439
+ | `#Switch` | `<input type="checkbox">` | `<div class="form-switch">` | `<Switch>` |
440
+ | `#Textarea` | `<textarea>` | `<textarea class="form-control">` | `<TextField multiline>` |
441
+ | `#FormGroup` | `<div class="form-group">` | `<div class="mb-3">` | `<FormControl>` |
442
+
443
+ ---
444
+
359
445
  ## For Designers
360
446
 
361
447
  ### Figma Rules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptui-lib/figma-parser",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "description": "Figma API client and parser for PromptUI",
6
6
  "license": "UNLICENSED",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@promptui-lib/core": "0.1.2"
33
+ "@promptui-lib/core": "0.1.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20.0.0",