Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/spooky-developer/llms.txt
Use this file to discover all available pages before exploring further.
SpookyIcons.js exports five lightweight inline-SVG React components that are used throughout the Spooky Developer UI. Every icon is built from a single <path> on a 24 × 24 viewBox with fill="currentColor", meaning size is controlled entirely by Tailwind width/height utilities and colour by text-* utilities (or the CSS color property). There are no external image assets, no sprite sheets, and no icon font to load.
Installation / import
The icons are co-located incomponents/icons/SpookyIcons.js. Import only what you need:
The compiled/minified build exports these components with single-letter names (
G, B, S, P, C). When working directly from the source file — or importing into other source modules — use the full descriptive names shown above. The single-letter aliases are a bundler artefact and should not be relied upon in application code.Icon reference
All five icons share the same prop signature:<svg> element.
| Export | Shape description | Default className | Used in |
|---|---|---|---|
GhostIcon | Classic rounded ghost body with a scalloped hem and two circular eye cutouts | w-6 h-6 | CursorTrail, IdleGhost |
BatIcon | Bat in flight — two outstretched wings meeting at a central body with a small head | w-6 h-6 | General decoration |
SpiderIcon | Round spider body with eight segmented legs radiating outward and two small eye dots | w-6 h-6 | SpiderScare |
PumpkinIcon | Jack-o’-lantern pumpkin with triangular eyes and a toothy grin, plus a short stem | w-6 h-6 | General decoration |
CandyIcon | Wrapped candy / sweet shape with a diagonal twist | w-6 h-6 | General decoration |
Usage examples
SVG technical details
| Property | Value |
|---|---|
viewBox | 0 0 24 24 |
fill | currentColor |
| Path count | 1 per icon |
| External dependencies | None |
| Accessible label | None built-in — add aria-label or wrap in a <span aria-hidden="true"> as needed |
These icons have no built-in
aria-label or role attribute. When using them as meaningful content (e.g. a button with only an icon), pass aria-label="..." and role="img" as props. When they are purely decorative, add aria-hidden="true".Sizing reference
The24 × 24 viewBox maps cleanly to common Tailwind size utilities:
| Tailwind class | Rendered size |
|---|---|
w-4 h-4 | 16 × 16 px (cursor trail ghosts) |
w-6 h-6 | 24 × 24 px (default) |
w-8 h-8 | 32 × 32 px |
w-16 h-16 | 64 × 64 px (SpiderScare spider) |
w-24 h-24 | 96 × 96 px (IdleGhost ghost) |