Development · Design2026

HTML Playground

A workspace for creating, previewing and experimenting with web pages, with tools that help users understand how their designs are put together.

Visit live project
Role
Independent project
Contribution
Design, development, testing
Technology
JavaScript · CodeMirror 6 · Prettier · Shiki
Status
Live
Full HTML Playground workspace showing Fieldwork Studio source code on the left and the rendered desktop preview on the right.

From code to design.

Building a web page often involves switching between writing code and checking how it looks in a browser. I wanted to bring those two activities together, making it easier to experiment with ideas and immediately see the results.

Open Explorer beside the editor, showing sample documents and fieldwork-demo.html saved locally.

01 / Workspace

Making room for the important things.

As I added more tools, the workspace started to feel crowded. I decided to keep the file management panel hidden until it was needed, leaving more room for writing code and viewing the design. Additional tools should be available without making the first experience overwhelming.

Mobile preview set to 390 × 844 with the viewport picker open, showing common device sizes and custom-dimension options.

02 / Responsive design

One design, different screen sizes.

A website that looks good on a computer may not work as well on a phone. I added a way to preview how the same page adapts to different screen sizes, including common mobile and tablet dimensions. Users can also save their own sizes for layouts they regularly work with.

Inspect mode highlighting the hero heading, with its dimensions, margin and typography shown in a contextual popover.

03 / Inspection

Connecting the design to the code.

Finding which part of the code controls a particular heading, button or image can take time. I made it possible to select something in the preview and immediately find the code behind it. The reverse also works: selecting the code highlights the corresponding part of the design.

04 / Refinement

Only show what matters.

I wanted users to understand details such as spacing, size and font choices without having to navigate another complicated panel. Instead, a small information window appears beside the selected part of the design, showing only the details that are relevant. This tool stays off until needed.

05 / Implementation

Making the workspace self-contained.

Early versions depended on resources loaded from other websites. I eventually included those resources directly within the application, reducing its reliance on outside services. Once loaded, the workspace itself can continue working even when the internet connection is unavailable. Web pages that use outside resources may still need a connection.

More than an editor.

What began as a simple way to write code and preview a web page became a workspace for exploring and understanding web design. Building it reinforced the importance of making powerful tools approachable, without overwhelming the people using them.

Visit the live demo.

Open HTML Playground