Skip to content

Resource Format

Every resource in StealThis is a self-contained bundle — a directory with MDX frontmatter, code snippets, and assets.

Directory Structure

resources/
└── my-resource/
├── index.mdx # Frontmatter metadata + prose documentation
├── snippets/
│ ├── html.html # Standalone HTML page
│ ├── style.css # Styles (used by html.html)
│ ├── script.js # Vanilla JS (used by html.html)
│ └── react.tsx # React component
└── assets/
└── preview.gif # Preview image/gif

Frontmatter Schema

---
slug: my-resource # Unique identifier (URL-safe)
title: My Resource # Display title
description: Short description of what this does.
category: web-animations # web-animations | web-pages | ui-components | patterns
type: animation # animation | page | component | pattern
tags: [scroll, fade] # Searchable tags
tech: [css, js] # Technologies used
difficulty: easy # easy | med | hard
targets: [html, react] # Available snippet targets
preview: ./assets/preview.gif
labRoute: /web-animations/my-resource # Lab demo path
license: MIT
createdAt: 2026-02-20
updatedAt: 2026-02-20
---

Snippet Targets

TargetFileNotes
htmlsnippets/html.htmlFull standalone HTML page
CSS stylessnippets/style.cssReferenced by html.html
JSsnippets/script.jsReferenced by html.html
reactsnippets/react.tsxReact component (default export = demo)
nextsnippets/next.tsxNext.js variant
vuesnippets/vue.vueVue SFC

Writing Guidelines

  • Include a full <!DOCTYPE html> page
  • Use pure CSS by default (no Tailwind in HTML target)
  • Add <link rel="stylesheet" href="style.css" /> and <script src="script.js"></script>
  • Add role and aria-label attributes for accessibility
  • Respect prefers-reduced-motion

Category Taxonomy

CategoryTypeDescription
web-animationsanimationScroll effects, parallax, canvas, WebGL
web-pagespageFull page templates and sections
ui-componentscomponentReusable UI elements
patternspatternMicro-interactions, loaders, hover effects