a live css editor
Live Editor
Edit the CSS on the left. The panel on the right re-renders on every keystroke. The preview lives inside a Shadow DOM, so whatever you type stays sandboxed and can’t reach the rest of the page. The syntax highlighter is hand-rolled (no library), the tokenizer fits in about 30 lines, and the whole thing runs without a build step.
Try changing --accent to #facc15, --radius to 32px, or the linear-gradient direction. Press Escape and then Tab to leave the editor.