How I Turned Claude Into a Design Tool with Pencil.dev

BBetter Stack
Computing/SoftwareSmall Business/StartupsPhotography/ArtInternet Technology

Transcript

00:00:00This is Pencil, a vibe design tool that turns prompts from any AI assistant
00:00:05into visually appealing designs right in front of your eyes that you can edit just like in Figma.
00:00:10It supports components, UI kits, CSS variables, and it's completely free.
00:00:15But with Sketch and now Figma's new MCP tool that seems to do a similar thing,
00:00:19is Pencil a tool that designers are going to use?
00:00:22Hit subscribe and let's get into it.
00:00:24It's no secret that AI isn't amazing at design.
00:00:28I mean, take a look at this.
00:00:30And even though adding skills with state of the art models does help,
00:00:33sometimes you want to tweak the design or get clients sign off before jumping into code.
00:00:38And this is where Pencil comes in.
00:00:40It's an agent driven design tool that works locally in your IDE or as a standalone app.
00:00:46And it's a perfect design tool for people who like to use clause code like me.
00:00:51So let's go through a quick demo.
00:00:52Now here is Pencil in all its glory.
00:00:54And if you've ever used Figma, it'll feel very familiar with options on the left here
00:00:59and some more specific options to the canvas or frame here on the right.
00:01:03Now, this is the first file you'll see when you finish setting up Pencil.
00:01:07And instead of going through step one and step two,
00:01:09I'm going to go straight to step three so you can see what's going on.
00:01:12Now, this is a prompt over here,
00:01:14and you could click run to run this prompt inside the chat window over here.
00:01:18But what I'm actually going to do is I'm going to use my Claude code in the terminal,
00:01:22which has my skills, my MCP servers and everything that I'm used to
00:01:26so that Pencil can benefit from all of that.
00:01:29So I'm going to copy this prompt and inside Claude code, happy first birthday, by the way,
00:01:33I'm going to paste in the prompt and I'll just tell it to use the Pencil MCP server
00:01:37just to be on the safe side.
00:01:39Basically, the prompt here is telling Pencil to design a dashboard for a rover management platform
00:01:44using the components.
00:01:45So the components that exist down here inside this Lunaris UI kit.
00:01:50So if I go back to the frame, you can see that it's creating the dashboard for me in real time.
00:01:56And if I go back to Claude code, we can have a look at exactly what it's doing.
00:01:59So it's using the Pencil MCP batch design tool to populate the navigation bar.
00:02:05It's already done step one, which has set up the main layout structure.
00:02:08And if you go back to Pencil, you can see the design being added and changed in real time.
00:02:13And now that Claude has finished, we can go ahead and change the design in real time.
00:02:17Now I'm just going to say I'm super impressed at what it's been able to do
00:02:20from selecting the right icons to having the right colours and the nice pill over here
00:02:25to having these awesome buttons.
00:02:27Now I've noticed the show 10 records is a bit too close to the side.
00:02:31So I'm going to click on it here and then change the padding slightly.
00:02:34And that is the beauty of Pencil.
00:02:36Anything you want to change in the design, you can do so just like you can in Figma,
00:02:40but you're not bound to this UI kit.
00:02:42In fact, there's so many you can choose from, from Chateaune to this Lunaris, Halo, Nitro,
00:02:48and there's even more from there.
00:02:49Because if I do click on Chateaune, you can see I have more options in the theming area
00:02:54to change it to dark mode, change some of the themes, so yellow for the buttons,
00:02:58and even change the overall background.
00:03:01But there are also UI kits that I can use to guide me in my design.
00:03:05For example, let's do something completely from scratch.
00:03:08I'm going to click here and by default it uses the chat,
00:03:11but I can copy this and take it into the chat window.
00:03:13But before I do that, I'm going to go to file, new to have a blank slate.
00:03:17Then I'm going to give this a width of above 800, maybe 1024 and make the height a bit longer.
00:03:24Now from here, I'm going to have the frame selected, get Claude to use the style guide.
00:03:28And then once it's done, I'm going to give it a prompt of create a website
00:03:32for a Bohemian style French bakery getting images from Unsplash and so on.
00:03:36So I'm going to hit enter and see what it produces.
00:03:39Now I have no idea what to expect, so let's see what it does.
00:03:42Now, because I'm using the superpower skill,
00:03:45it asks me some follow-up questions about the website.
00:03:47And now it's getting to work.
00:03:49It's actually suggested a wider frame than the one I initially put.
00:03:52I'm going to speed up the video to make things go along a bit quicker.
00:03:55And now it looks like Claude has finished the three pages it said it's going to make.
00:03:59And if we take a look at the designs, this honestly looks impressive.
00:04:02I mean, yes, there are things here that I would change,
00:04:06but if I saw this on a website, I wouldn't assume this was created by AI
00:04:10from the logo to the images used to the whole layout.
00:04:14This looks incredible.
00:04:16And I'm not too worried about the issues
00:04:17because all I need to do is double click on what I want to change.
00:04:20And here I can drag the text in like so change the text a bit.
00:04:24And there we go. That's pretty much fixed.
00:04:26I'm going to ask Claude to code this into a functioning website.
00:04:30And here it is. This is the site.
00:04:32Now, I didn't expect it to add this bread background to it.
00:04:35Since that doesn't exist in the designs, but it's fine.
00:04:38Let's scroll down.
00:04:39It's matched pretty much everything one for one, which is very impressive.
00:04:44Let's go to the our story page and perfect.
00:04:47That looks exactly how it does in the designs with the nice text, the three steps
00:04:52and the fact they only use ingredients that they eat, which is very cool.
00:04:56All the images are exactly in place and even the menu looks really impressive.
00:05:00I like the horizontal rule. It's added at the end of every item.
00:05:04Now, the beauty of this design is because it's created by AI,
00:05:07I can connect it to any database I have. So this uses real data.
00:05:10I can use any other MCP tools or skills to enhance the quality of the site.
00:05:15Not to mention, if I had designs already in Figma,
00:05:18I could go to file an import from Figma to use them in pencil as well.
00:05:22I've added a link to this website in the description so you can play with it yourself.
00:05:25I've honestly had so much fun prompting different designs into existence
00:05:29and seeing them built right in front of my eyes with the ability to edit them later feels very magical.
00:05:35Not to mention that pencil files are pure JSON,
00:05:38so it's easy for an AI agent to understand and translate into code.
00:05:42But as awesome as pencil is, it's not perfect.
00:05:46I did have an issue with the build chat, which for some reason didn't seem to respond.
00:05:50The generating overlay on new files wouldn't go away sometimes unless I saved or restarted pencil,
00:05:56and it did feel quite slow when performing certain actions.
00:05:59But honestly, I think these are small things that the team are most likely working on right now,
00:06:04as well as the ability to create or import custom UI kits like the ones from Tailwind Plus.
00:06:11And let me remind you, this tool is completely free to use right now.
00:06:15So go and make the most of it because it won't last forever since it's venture backed.
00:06:19Now I'm no designer. Yes, surprise, surprise.
00:06:22And although I haven't tried Figma's MCP tool or the one from Sketch, from what I've seen online,
00:06:28it looks like pencil is way easier to set up because of its seamless integration with so many tools.
00:06:34Speaking of seamless, if you ever wanted a Claude code to design terminal UIs on the fly instead of,
00:06:39say, coding it by hand, then check out this video on Claude Canvas,
00:06:42which will show you exactly how to do that.

Key Takeaway

Pencil.dev bridges the gap between AI generation and professional UI design by providing an editable, MCP-compatible canvas that turns Claude's code into production-ready visual assets.

Highlights

Pencil.dev is a free

Timeline

Introduction to Pencil and the AI Design Gap

The speaker introduces Pencil as a "vibe design" tool that transforms AI prompts into visually appealing, editable designs. While AI is traditionally mediocre at high-end design, Pencil aims to fix this by offering a bridge between raw LLM output and professional tools like Figma. The platform supports essential features such as CSS variables, UI kits, and components while remaining completely free for users. This section establishes the problem of needing client-ready visuals before jumping straight into the coding phase. It sets the stage for how Pencil competes with newer tools from Sketch and Figma's own MCP integrations.

Workflow Integration with Claude Code and MCP

The video demonstrates how to use Pencil as an agent-driven tool that works locally in an IDE or as a standalone application. The speaker shows a live demo using Claude Code in the terminal to trigger the Pencil MCP server for a dashboard design. By using the Lunaris UI kit, the AI populates a rover management platform dashboard in real-time right before the viewer's eyes. This integration is significant because it allows the design tool to benefit from all the custom skills and servers already set up in the user's Claude environment. The process highlights the "batch design" tool capabilities where Claude structures the layout and navigation programmatically.

Customization, Theming, and UI Kits

Once the initial design is generated, the speaker explores the granular editing capabilities that make Pencil feel like a familiar design environment. Users can click on specific elements like buttons or record tables to adjust padding and alignment manually. The tool offers a variety of UI kits, including Shadcn, Halo, and Nitro, which can be swapped to change the entire aesthetic instantly. Theming options allow for quick transitions to dark mode or changing primary button colors to specific hues like yellow. This flexibility ensures that the designer isn't strictly bound to a single AI-generated style and can iterate rapidly.

From Blank Slate to Bohemian Bakery Website

The speaker moves from a template-based approach to creating a Bohemian-style French bakery website from a completely blank canvas. By providing a detailed prompt and using Unsplash for imagery, Claude generates a three-page website layout including a logo and custom images. The resulting design is surprisingly professional, featuring cohesive layouts that the speaker claims wouldn't immediately look like AI-generated content. Small imperfections are easily corrected by double-clicking text or dragging elements into better positions. This section emphasizes the tool's ability to handle creative, non-technical prompts to produce high-fidelity marketing visuals.

Converting Designs to Code and Real Data

After finalizing the visual design, the speaker asks Claude to code the design into a fully functioning website. The transition is remarkably accurate, matching the visual elements, typography, and spacing nearly one-for-one in the live browser. Because the design files are stored as pure JSON, they are natively "legible" to AI agents, facilitating a smooth handoff from design to development. This allows the final site to be connected to real databases or enhanced with other MCP tools for dynamic functionality. The speaker notes that users can also import existing designs from Figma, making it a versatile addition to an existing stack.

Current Limitations and Competitive Analysis

The video concludes with a candid look at the tool's current shortcomings, including occasional bugs with the build chat and lingering UI overlays. Performance can sometimes feel slow when performing complex actions, but the speaker views these as minor growing pains for a venture-backed free tool. Despite these issues, Pencil is praised for being significantly easier to set up than the MCP tools for Sketch or Figma. The creator encourages users to take advantage of the free access before the business model inevitably shifts. Finally, the speaker points viewers toward additional resources for designing terminal UIs using Claude Canvas.

Community Posts

View all posts