{
  "registryVersion": 1,
  "id": "backgrounds/chalkboard-doodles",
  "slug": "chalkboard-doodles",
  "category": "backgrounds",
  "title": "Chalkboard Doodles",
  "description": "A slate chalkboard background where colored chalk doodles draw themselves around your content, linger, then get wiped by an eraser, in an endless calm loop.",
  "tags": [
    "background",
    "hand-drawn",
    "line",
    "loop",
    "ambient",
    "texture",
    "decoration"
  ],
  "useCases": [
    "Section background for an online course, school, or tutoring landing page",
    "Announcement or sign-up CTA for a kids' workshop or community class",
    "Backdrop for a 'How it works' or lesson content section with a classroom feel"
  ],
  "placement": [
    "background",
    "content",
    "cta"
  ],
  "style": [
    "handmade",
    "playful"
  ],
  "intensity": "subtle",
  "stack": {
    "framework": "react",
    "styling": "tailwindcss"
  },
  "dependencies": {
    "npm": {
      "gsap": "^3.13.0",
      "@gsap/react": "^2.1.0"
    },
    "gsapPlugins": []
  },
  "variants": [],
  "version": "1.0.3",
  "updatedAt": "2026-10-07",
  "design": {
    "motion": "smooth",
    "pace": "moderate",
    "radius": "round",
    "scheme": "both",
    "palette": "multicolor",
    "hues": [
      "orange",
      "amber",
      "yellow",
      "emerald",
      "pink",
      "sky"
    ],
    "triggers": [
      "load",
      "click",
      "loop"
    ]
  },
  "adapt": {
    "colors": [
      {
        "hue": "orange",
        "classes": 0,
        "literals": 13
      },
      {
        "hue": "amber",
        "classes": 0,
        "literals": 11
      },
      {
        "hue": "yellow",
        "classes": 0,
        "literals": 3
      },
      {
        "hue": "emerald",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "pink",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "sky",
        "classes": 0,
        "literals": 1
      }
    ],
    "radiusClasses": [
      "rounded-3xl",
      "rounded-[16px]",
      "rounded-[3px]",
      "rounded-[4px]",
      "rounded-[6px]",
      "rounded-full"
    ],
    "eases": [
      "none",
      "power1",
      "power2"
    ],
    "durations": [
      0.2,
      6
    ]
  },
  "photoSlots": [],
  "sprinkles": [
    {
      "id": "sprinkle/lines/chalk-star@v2",
      "file": "sprinkles/v2/lines/chalk-star.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-star.webp",
      "description": "Star colored in with chalk strokes, pastel yellow (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-spiral@v2",
      "file": "sprinkles/v2/lines/chalk-spiral.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-spiral.webp",
      "description": "Open spiral, sky blue (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-heart@v2",
      "file": "sprinkles/v2/lines/chalk-heart.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-heart.webp",
      "description": "Heart colored in with chalk strokes, pink (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-swirl@v2",
      "file": "sprinkles/v2/lines/chalk-swirl.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-swirl.webp",
      "description": "Loose swirl, pastel yellow (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-arrow@v2",
      "file": "sprinkles/v2/lines/chalk-arrow.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-arrow.webp",
      "description": "Curved arrow pointing right, pink (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-sparkle@v2",
      "file": "sprinkles/v2/lines/chalk-sparkle.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-sparkle.webp",
      "description": "Four-point sparkle, white (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-burst@v2",
      "file": "sprinkles/v2/lines/chalk-burst.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-burst.webp",
      "description": "Short lines radiating from an empty center, pastel yellow (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-zigzag@v2",
      "file": "sprinkles/v2/lines/chalk-zigzag.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-zigzag.webp",
      "description": "Zigzag line, sky blue (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-wave@v2",
      "file": "sprinkles/v2/lines/chalk-wave.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-wave.webp",
      "description": "Wave line, white (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-check@v2",
      "file": "sprinkles/v2/lines/chalk-check.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-check.webp",
      "description": "Check mark, white (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-circle-open@v2",
      "file": "sprinkles/v2/lines/chalk-circle-open.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-circle-open.webp",
      "description": "Hand-drawn circle whose ends do not meet, white (chalk)."
    },
    {
      "id": "sprinkle/lines/chalk-underline@v2",
      "file": "sprinkles/v2/lines/chalk-underline.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/lines/chalk-underline.webp",
      "description": "Single underline stroke, white (chalk)."
    }
  ],
  "page": "/snippets/backgrounds/chalkboard-doodles",
  "preview": "/preview/backgrounds/chalkboard-doodles",
  "registryPath": "/registry/snippets/backgrounds/chalkboard-doodles.json",
  "install": "npm i gsap @gsap/react",
  "codeLines": 553,
  "readme": "# Chalkboard Doodles\r\n\r\n`backgrounds/chalkboard-doodles`\r\n\r\nA slate chalkboard in a wooden frame where colored chalk doodles draw themselves around your content, linger for a few seconds with a little wobble, and are scrubbed away by a felt eraser that slides in from the nearest edge, leaving a faint smudge. The headline underline draws itself on mount and is re-drawn about every 12 seconds. It runs by itself; clicking an empty part of the board adds a bonus doodle.\r\n\r\n## When to use\r\n\r\n- Section background for an online course, school, or tutoring landing page.\r\n- Announcement or sign-up CTA for a kids' workshop or community class.\r\n- Backdrop for a \"How it works\" or lesson content section with a classroom feel.\r\n\r\n## Install\r\n\r\n1. `npm i gsap @gsap/react`\r\n2. Copy the code with the **Copy** button on the snippet page and save it as a React component.\r\n3. Use it with your own content, and mark the part doodles must stay away from with `data-chalk-safe`:\r\n\r\n```tsx\r\n<ChalkboardDoodles board=\"black\">\r\n  <div data-chalk-safe className=\"max-w-md text-center text-white\">\r\n    <h2 className=\"text-4xl font-bold\">Learn to code, one doodle at a time</h2>\r\n    <a href=\"/signup\" className=\"mt-6 inline-block rounded-full border-2 border-dashed border-white/80 px-5 py-2\">Join free</a>\r\n  </div>\r\n</ChalkboardDoodles>\r\n```\r\n\r\nWithout children it shows the sample class sign-up (eyebrow, headline with a chalk underline, dashed pill button, byline).\r\n\r\n## Props\r\n\r\n| Prop | Type | Default | Description |\r\n| --- | --- | --- | --- |\r\n| `board` | `\"green\" \\| \"black\"` | `\"green\"` | Slate color: classic green (`#2f4a3e`) or blackboard (`#1f2326`). |\r\n| `maxDoodles` | `number` | `6` | Most doodles on the board at once (1-10). |\r\n| `speed` | `number` | `1` | Playback speed of drawing, lingering, and erasing (`2` = twice as fast). |\r\n| `children` | `ReactNode` | sample content | Content centered on the board. Elements with `data-chalk-safe` (measured per direct child, text by its lines) are kept clear of doodles. |\r\n| `className` | `string` | `\"\"` | Extra classes for the frame (for example a different height than `h-[480px] sm:h-[420px]`). |\r\n\r\n## Photos\r\n\r\nNo photos. Every image is a chalk sprinkle from the `lines-chalk` family; each can be used directly from its public URL and swapped for another sprinkle of the same family:\r\n\r\n- `sprinkle/lines/chalk-star@v2`\r\n- `sprinkle/lines/chalk-spiral@v2`\r\n- `sprinkle/lines/chalk-heart@v2`\r\n- `sprinkle/lines/chalk-swirl@v2`\r\n- `sprinkle/lines/chalk-arrow@v2`\r\n- `sprinkle/lines/chalk-sparkle@v2`\r\n- `sprinkle/lines/chalk-burst@v2`\r\n- `sprinkle/lines/chalk-zigzag@v2`\r\n- `sprinkle/lines/chalk-wave@v2`\r\n- `sprinkle/lines/chalk-check@v2`\r\n- `sprinkle/lines/chalk-circle-open@v2`\r\n- `sprinkle/lines/chalk-underline@v2` (the headline underline, shown as a cropped strip)\r\n\r\n## Customization\r\n\r\n- Doodles are the `DOODLES` list. `linear: true` marks (arrow, zigzag, wave, check) draw left to right with a clip-path; the rest draw with a turning conic mask.\r\n- Doodle spots are `SLOTS` (desktop) and `PHONE_SLOTS` (under 480px wide), in % of the board. A spot that would touch the content is shrunk or skipped automatically.\r\n- The frame is warm oak on light sites and walnut on dark sites; the slate stays dark in both, so light chalk text always has contrast.\r\n- The frame, chalk ledge, sticks, and erasers are drawn in code, so there is nothing else to download.\r\n- Users with `prefers-reduced-motion` see up to five finished doodles (never more than `maxDoodles`) in fixed spots and the underline already drawn, with no drawing, erasing, or dust.\r\n",
  "sourceDir": "snippets/backgrounds/chalkboard-doodles",
  "thumbnail": "/registry/thumbnails/backgrounds/chalkboard-doodles.webp",
  "thumbnailDark": "/registry/thumbnails/backgrounds/chalkboard-doodles.dark.webp",
  "codeAccess": "The code is not in this file. Get it with the MCP tool get_snippet and an InWebAsset API key (header Authorization: Bearer aw_...; sign in at /agents to create one), or with the Copy button on the snippet page after signing in. Free accounts can take snippet code 5 times per day (every fetch counts, also of a snippet fetched before); Pro accounts have no limit."
}
