July 10th, 2024

Asking an LLM to build a simple web tool

The author used ChatGPT 4o to create a CSS box shadow tool, allowing users to adjust settings and copy CSS code. Despite minor issues, the tool's efficiency and accuracy show promise for quick prototyping.

Read original articleLink Icon
Asking an LLM to build a simple web tool

The article discusses the author's experiment of using a language model (LLM), specifically ChatGPT 4o, to build a web tool without any dependencies. Inspired by Simon Willison's blog post, the author aimed to create a tool for configuring box shadow settings in CSS. The resulting tool, deployed at https://eliben.org/box-shadow-tool/, allows users to adjust settings, preview the changes, and copy the CSS code. The author requested improvements to the tool's appearance, such as centering elements and adding a copy-paste button. Despite some initial issues with alignment and space, the author found the experience positive and efficient. The LLM's stability in output and ability to follow prompts accurately were highlighted, indicating potential for quick prototyping of simple tools. The author noted the need for manual tweaks for perfection but appreciated the LLM's performance in this coding task.

Link Icon 4 comments
By @didgeoridoo - 6 months
Claude 3.5 is an absolute revelation. Its writing is very humanlike, and the new “artifacts” window is a fantastic UX improvement. It has completely replaced GPT-4o for me in every use case.
By @agmater - 6 months
> The results are still not perfect in terms of alignment and space, but they're good enough.

CSS frameworks come in very useful for this, ask it to generate Bulma or Bootstrap valid markup.