Rules
Shared elements run on other people's desktops, so templates can display content but can't run code or load anything from outside. Anything not allowed is removed.
Allowed
- Common HTML for layout, text, lists and tables.
- SVG shapes, text, gradients, masks and patterns.
class,style,id,data-*and ARIA attributes.
Removed
| Removed | Instead |
|---|---|
<script> | Liquid logic |
<style> | Tailwind classes and inline styles |
onclick | Hooks |
<a> <button> <form> <iframe> | Not supported |
SVG <animate> <filter> | Tailwind animations and filters |
Images
Images from the internet and data: URLs are blocked. Draw icons as inline SVG, for example from Lucide. Dock icons are the only images.
Before sharing
- It looks right at start-up, in normal use and at 100%.
- It follows the theme's colour, opacity and light or dark mode.
- It works at different sizes.
- Its manifest lists only the data it uses.
- Its artwork is yours to share.

