{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "title": "Circular Badge",
  "name": "brandy/circular-badge",
  "category": "brandy-blocks",
  "description": "A phrase set around a circle, wrapped around whatever you put in the middle — a thank-you seal, a sale stamp, a shipping promise.",
  "keywords": [
    "badge",
    "seal",
    "stamp",
    "circular text",
    "sticker",
    "rotating"
  ],
  "attributes": {
    "text": {
      "type": "string",
      "default": "Thank you"
    },
    "separator": {
      "type": "string",
      "default": "•"
    },
    "repeat": {
      "type": "number",
      "default": 3
    },
    "size": {
      "type": "number",
      "default": 220
    },
    "textInset": {
      "type": "number",
      "default": 18
    },
    "centreBackground": {
      "type": "string",
      "default": ""
    },
    "spin": {
      "type": "boolean",
      "default": true
    },
    "spinDuration": {
      "type": "number",
      "default": 16
    },
    "spinDirection": {
      "type": "string",
      "enum": [
        "clockwise",
        "counter-clockwise"
      ],
      "default": "clockwise"
    }
  },
  "supports": {
    "html": false,
    "anchor": true,
    "align": [
      "left",
      "center",
      "right"
    ],
    "color": {
      "background": true,
      "text": true,
      "gradients": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true
      }
    },
    "spacing": {
      "margin": true,
      "__experimentalDefaultControls": {
        "margin": false
      }
    },
    "typography": {
      "fontSize": true,
      "__experimentalFontFamily": true,
      "__experimentalFontWeight": true,
      "__experimentalFontStyle": true,
      "__experimentalTextTransform": true,
      "__experimentalLetterSpacing": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    },
    "__experimentalBorder": {
      "color": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "width": false
      }
    }
  },
  "example": {
    "viewportWidth": 320,
    "attributes": {
      "text": "Thank you",
      "separator": "•",
      "repeat": 3,
      "size": 220,
      "centreBackground": "#ffffff",
      "style": {
        "color": {
          "background": "#e7e4fb",
          "text": "#15132b"
        },
        "typography": {
          "fontSize": "15px",
          "fontWeight": "600",
          "letterSpacing": "1px",
          "textTransform": "uppercase"
        }
      }
    }
  },
  "textdomain": "brandy-blocks",
  "editorScript": "file:./index.js",
  "style": "file:./style-index.css"
}