| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/recipe-scaler", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Recipe Scaler", |
| 7 |
"category": "bkbg-calculators", |
| 8 |
"icon": "food", |
| 9 |
"description": "Scale recipe ingredient quantities up or down by adjusting the number of servings. Add, edit and remove ingredients with a live WYSIWYG preview.", |
| 10 |
"keywords": [ |
| 11 |
"recipe", |
| 12 |
"scaler", |
| 13 |
"ingredients", |
| 14 |
"servings", |
| 15 |
"cooking", |
| 16 |
"food", |
| 17 |
"scale", |
| 18 |
"multiply" |
| 19 |
], |
| 20 |
"textdomain": "blockenberg", |
| 21 |
"editorScript": "bkbg-recipe-scaler-editor", |
| 22 |
"style": "bkbg-recipe-scaler-style", |
| 23 |
"viewScript": "bkbg-recipe-scaler-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide", |
| 30 |
"full" |
| 31 |
] |
| 32 |
}, |
| 33 |
"attributes": { |
| 34 |
"title": { |
| 35 |
"type": "string", |
| 36 |
"default": "Recipe Scaler" |
| 37 |
}, |
| 38 |
"subtitle": { |
| 39 |
"type": "string", |
| 40 |
"default": "Adjust serving size and all ingredient quantities update automatically" |
| 41 |
}, |
| 42 |
"recipeName": { |
| 43 |
"type": "string", |
| 44 |
"default": "Classic Pancakes" |
| 45 |
}, |
| 46 |
"defaultServings": { |
| 47 |
"type": "number", |
| 48 |
"default": 4 |
| 49 |
}, |
| 50 |
"maxServings": { |
| 51 |
"type": "number", |
| 52 |
"default": 24 |
| 53 |
}, |
| 54 |
"showQuickBtns": { |
| 55 |
"type": "boolean", |
| 56 |
"default": true |
| 57 |
}, |
| 58 |
"showNotes": { |
| 59 |
"type": "boolean", |
| 60 |
"default": true |
| 61 |
}, |
| 62 |
"recipeNotes": { |
| 63 |
"type": "string", |
| 64 |
"default": "Do not over-mix the batter \u2014 a few lumps are fine!" |
| 65 |
}, |
| 66 |
"accentColor": { |
| 67 |
"type": "string", |
| 68 |
"default": "#f97316" |
| 69 |
}, |
| 70 |
"sectionBg": { |
| 71 |
"type": "string", |
| 72 |
"default": "#fff7ed" |
| 73 |
}, |
| 74 |
"cardBg": { |
| 75 |
"type": "string", |
| 76 |
"default": "#ffffff" |
| 77 |
}, |
| 78 |
"inputBg": { |
| 79 |
"type": "string", |
| 80 |
"default": "#fafafa" |
| 81 |
}, |
| 82 |
"ingredientBg": { |
| 83 |
"type": "string", |
| 84 |
"default": "#fef3c7" |
| 85 |
}, |
| 86 |
"titleColor": { |
| 87 |
"type": "string", |
| 88 |
"default": "#111827" |
| 89 |
}, |
| 90 |
"subtitleColor": { |
| 91 |
"type": "string", |
| 92 |
"default": "#6b7280" |
| 93 |
}, |
| 94 |
"labelColor": { |
| 95 |
"type": "string", |
| 96 |
"default": "#374151" |
| 97 |
}, |
| 98 |
"contentMaxWidth": { |
| 99 |
"type": "integer", |
| 100 |
"default": 660 |
| 101 |
}, |
| 102 |
"titleTypo": { |
| 103 |
"type": "object", |
| 104 |
"default": {} |
| 105 |
} |
| 106 |
} |
| 107 |
} |
| 108 |
|