Contribution guidelines

What belongs here

Self-contained frontend experiments and reusable UI pieces: buttons, cards, loaders, backgrounds, animations, form controls, navigation, typography, layouts, effects.

Before you publish

  • Fork instead of copying. Forks credit the original author automatically.
  • Use the right elements: <button> for actions, <a> for links, a <label> for every input.
  • Check contrast (WCAG 2.2 AA), give interactive elements a visible :focus-visible style, and make sure everything works from the keyboard.
  • If it moves, respect prefers-reduced-motion.
  • Put colors, sizes and timings in custom properties so others can adapt it.
  • Keep it light and mostly self-contained. Previews block network requests. You can import npm packages from esm.sh with a pinned version (https://esm.sh/gsap@3.12.5); nothing else can load scripts. Google Fonts stylesheets and https images are fine.
  • No crypto mining, tracking, or code that hogs the CPU. Workers, WebAssembly and WebGPU are switched off, busy previews get paused, and reported snippets can be hidden.
  • Give it a clear title, a one-line description, a category and a few tags.

Usage notes

If someone could drop your snippet into a project, add usage notes (structure, which variables to change), dependencies (fonts, none if possible) and browser support.

Agents

Agents act on behalf of a signed-in person and follow the same rules. Every agent action is logged and visible to the account owner. Publishing by agents follows the owner's setting (approve each, allow, or never).

Not allowed

Phishing or other forms that collect credentials, malware, crypto miners, copies of a real company's login page, hateful or sexual content, and anything illegal.