Generative AI for Designer-Developers — Supercharge Your Workflow with ChatGPT, Midjourney, and beyond!

Kyle Ledbetter
11 min readMar 20, 2023

Dive into the world of generative AI and discover how it’s revolutionizing the design and development landscape. Learn the secrets behind ChatGPT, Midjourney, and other powerful AI tools that can elevate your designer-developer skills, streamline your workflow, and give you an edge in the ever-evolving digital space!

a desktop of devices generated by Midjourney AI

Designing in Code — Codesandbox.io + ChatGPT + MUI (React)

Almost 10 years ago in 2013 I wrote a blog about “Why I design in the browser”, referring to a personal preference to diving right into code when designing interfaces. While I certainly see the value in wireframing, I still skip the middle step of using Figma and dive right into code in Codesandbox to start prototyping. Codesandbox’s preview URL is perfect for sharing concepts 90% of the time, and when a prototype needs to be more reliable you can deploy your sandbox with 1 click. I like Vercel but you can also use Netlify or GitHub Pages.

📢 Responsible Usage of Generative AI 📢

Before diving in, it’s worth mentioning that one must always strive to use AI responsibly. Whether considering intellectual property or unintended harms of populations, we’re living in an incredibly fast paced advancement of technology that’s unprecedented. At my job with Credo AI, we strive to help companies develop Human-Centered AI and are working hard to help guide best practices for Generative AI.

ChatGPT as a code assistant with React and MUI

As a Designer primarily and Developer secondarily, my coding skills can always use a boost. Documentation helps a ton but sometimes falls short. Stackoverflow is great, especially when you use the most popular UI framework in React (which is why we chose MUI, along with my passion for Material Design articulated in this post from 2015), but sometimes you need a very niche and specific example with your code, not someone else’s. This is why I love ChatGPT. Within one chat session you can feed ChatGPT info about your app and get hyper-specific suggestions and fixes.

Example: MUI’s dropdown menu doc examples are great, but they only show a menu being used once. I often design a list or table which has a menu in a repeating list of items. So I asked ChatGPT to help create a function to point to unique IDs.

I start with a prompt telling who to act as and what to base answers on, where I paste the entire example code from the documentation:

a screenshot of a react code snippet for a Material-UI menu
Copy the entire example code

act as an experienced React developer and base your response from this example: <paste full example from docs>

ChatGPT responds with a detailed understanding of the code, great.

This example demonstrates a basic implementation of a dropdown menu using React and Material-UI. Material-Ul is a popular React UI framework that provides a set of reusable components to build responsive and accessible user interfaces. Here’s a breakdown of the code:

Now I ask it to apply that to my list of users:

now i want to add a unique menu instance for every repeating list item in this user list, triggered by the IconButton: <paste your own code here>

Voila! ChatGPT gives a great suggestion to create a new UserMenu component and feed in the UserID as the unique identifier. This code works perfectly for my needs.

a react code snippet generated by ChatGPT showing a full usermenu component
a well constructed new UserMenu component

It’s also worth mentioning that I’ve been learning Swift and SwiftUI on the side, and ChatGPT has been invaluable in getting started.

Browser of choice: Arc by The Browser Company

While coding in CodeSandbox I like having ChatGPT readily accessible in the same browser window. This feature (“Split View”) is one of many reasons I absolutely love the new Arc browser that’s taking the internet by storm. In fact I was dreaming of this feature in 2016. Along with having multiple tabs open in vertical columns or rows, there’s tons of developer-friendly features. Arc feels as revolutionary as Firebug was for Firefox back in the early 2000's.

the Arc browser with split views of Codesandbox and ChatGPT
Codesandbox & ChatGPT in Arc’s Split View

Combine the Split View feature with Arc Easels, Boosts, Notes, Developer Mode, Spaces, and Profiles, with a vibrant Arc developer community, and suddenly you will think the web feels new again.

Arc is currently in closed beta, so you can use my invite code to get access (I only have 5 so first come, first serve):

https://arc.net/gift/f13dbadd

Better sample data for wireframes and prototypes with ChatGPT

One of the most mundane tasks when designing a wireframe is coming up with good placeholder text. Coding JSON arrays of placeholder data in prototypes is exponentially more mundane. ChatGPT to the rescue.

In ChatGPT you can feed it a skeleton of the JSON object you want in the array, using // comments to describe specifically what you want for each key:value. You can ask it for things like a random value in a range, or to select from choices you provide, or to add logical text based on your description or other key:values. So for an example list of ecommerce customers, you can use something like:

create a JSON array of 15 customers using the descriptions for each key:value that starts with a // comment in this example object:

{
id: 1001, // increment this
name: "Firstname Lastname", // choose random first and last names
category: "", // select on from "Customer", "Vendor", or "Admin"
lifetimeValue: 0, // select a random number from 0 - 50000
avatar: "", // this url ending with a random number https://i.pravatar.cc/
bio: "" // 10 - 100 word bio specific to the category selected
}

which results in this code that works perfectly:

a ChatGPT response of a JSON array of generated mock data

Dashboard design inspiration with Midjourney (and ChatGPT)

Midjourney v5 has greatly improved UI design, and is light years beyond Dalle2. To help come up with a prompt I start with ChatGPT:

what’s a good prompt to use in Midjourney or Dalle2 to design a sleek eCommerce Dashboard that shows everything you’d want to know if you run an ecommerce online store?

which resulted in this prompt, which honestly didn’t have a typical Midjourney prompt structure

ChatGPT response: Based on the information provided, here’s how you can construct a proper prompt for Midjourney to generate a sleek eCommerce Dashboard design: “/imagine a sleek and modern eCommerce Dashboard user interface in 4K resolution with clean UI and intuitive lavout. The desian should be inspired by professional examples found on Figma and Behance. Incorporate the following essential elements and KPIs for an online store owner:

BUT! When copied and pasted directly into Discord for Midjourney…

which resulted in several pretty slick eCommerce Dashboards:

several dashboards generated by Midjourney

System icons with Midjourney

Midjourney is also pretty good for coming up with ideas for system icon styles

shopping ecommerce icons, 2d icons, game icons, cart, money, checkout, purple and blue and pink, tags, bag, shop, store, shiny object, graphic design, high contrast, artstation

a grid of glowing icons generated by Midjourney

These icons are a lot of fun but less usable for system icons in an app. I still haven’t quite cracked the code for the best prompt there, here’s an example:

flat outlined icons, ecommerce icons, cart, money, bag, tag, price, shop, indigo purple blue, vector, graphic design, high contrast, icomoon, iconfinder, artstation

a grid of outlined icons generated by Midjourney

Illustrations with Midjourney

If you wanted to monetize this awesome ecommerce dashboard you might want an illustration for a website, here’s an example prompt ChatGPT helped me construct for Midjourney:

a stylish and modern vector illustration that highlights the key features of a sleek eCommerce Dashboard for an online store owner. The illustration should visually represent the following essential elements and KPIs: Total sales and revenue Average order value Orders per day/week/month Conversion rate Top-selling products Customer acquisition channels Customer lifetime value Active promotions and discount codes Inventory levels and low stock alerts Order fulfillment status (pending, shipped, delivered) Customer reviews and ratings Website traffic analytics (visitors, page views, bounce rate)

Which resulted in some pretty good general stylistic directions:

ecommerce illustrations generated by Midjourney

but maybe I wanted a more simple and visually appealing image for the landing page?

a visually appealing and minimalist vector illustration that represents the essential features of an eCommerce Dashboard for an online store owner. The illustration should convey the concept of effectively managing and growing an online business

That prompt led to a style that’s more marketing friendly and less technical:

several illustrations for ecommerce generated by Midjourney

Trace in Figma

Once I arrive at an illustration I like, I run through remove.bg and use the Image Tracer plugin in Figma

Image Tracer in Figma, tracing the Midjourney illustration

App Icons (iOS or macOS style)

Along with the prompt, I’ll also explain how you iterate on an idea in Midjourney to zero in on the best image.

I start with this prompt (notice the critical “macos app icon” and “symmetrical”:

macos app icon of a symmetrical cash register, 3d render, soft light, blue and pink accents, highly detailed, rendered in Blender, concept art, photorealistic

a screenshot of Discord showing how to interact with Midjourney

Then you typicall “Redo” to generate several versions until you get close, which is when you generate “Versions” of the one you like (#1–4), until finally when you’re happy you “Upscale” that number.

I ended up with a version of #1 which I always run through remove.bg or their Figma plugin:

an app icon of a cash register with the background removed by remove.bg

Drafting Persona Cards with ChatGPT and Notion AI

So far we’ve covered lots of Generative AI tips for designing and developing, but there’s also plenty you can do in the realm of UX Experience and UX User Research.

A couple of months ago I posted about an AI workflow to get a rough draft for a new persona card

a screenshot from LinkedIn of ChatGPT and Midjourney assisting in the creation of a user persona card for a data scientist

I took a different approach and started in Notion’s new AI Assistant feature to help generate a scaffolding for the persona data:

a prompt in Notion AI reading “Generate an outline for all the fields required to create a robust user persona card”

which produced these fields:

bulleted lists of traits for a user persona generated by Notion AI

Then I jumped into ChatGPT and give it this prompt:

generate a user persona for the key customer that would purchase an ecommerce dashboard following this outline: <paste from Notion>

Which resulted in a pretty good starting point

a partial screenshot of a response from ChatGPT with the text: Here’s a user persona for the key customer who would purchase an eCommerce Dashboard, with bulleted info

You’ll notice the screenshot is cut off since the response was long, so I asked for a table:

can you convert that list into a single table?

Pretty nice for a start!

Over to Midjourney to generate an avatar for this persona

woman headshot, seated, front facing, studio lighting, shot on fujifilm

I my preface I mentioned using AI responsibly and looking out for bias. Generating an avatar is where you will absolutely see societal bias creep in from the training data, which of course reflects our society. With the prompt above, I get these results:

a group of light to medium skin shaded women headshots

and when I change one word in the prompt:

businesswoman headshot, seated, front facing, studio lighting, gray backdrop, shot on fujifilm

notice the shift in shade of skin, and notice both images completely ignore darker skin tones:

a group of even lighter shaded women headshots generated by Midjourney from including “businesswoman” in the prompt

even worse, what if I change the prompt to just ask for a data scientist?

data scientist headshot, seated, front facing, studio lighting, gray backdrop, shot on fujifilm

changing “businesswoman” to “data scientist” results in Midjourney only generating white men
Oh is that was a Data Scientist looks like?

Damn. Hopefully this is painfully clear how you must be very aware of the shortcomings of AI and the reason why we need to double down on Responsible AI Governance instead of laying off entire governance teams.

I intentionally wanted to call this out right when it seemed like we were having a lot of fun with AI. Working with AI is a blast and I’m obsessed with it, but there’s so many dragons lurking around the corner. Beware!

Wireframing

For wireframes, Whimsical is my favorite wireframing tool

Sure I get that you can wireframe in Figma, but it can feel like overkill. Whimsical is a super lightweight app designed specifically for rapid wireframing.

Screenshot of Whimsical, a wireframing tool

Whimsical is more than wireframes. They also provide features you might find in FigJam or Miro, but again much more lightweight and specialized (and they recently added a cool AI feature to auto-populate mindmap nodes).

Who to follow for generative AI inspiration

There’s lots of AI warriors out there on the bleeding edge of this tech, but for me there’s 2 individuals that continuously inspire me:

  1. Linus Ekenstam: Linus covers all of GenAI, but primarily Midjourney and ChatGPT. Linus also runs https://www.bedtimestory.ai/ which is a fun AI generated story telling app.

https://twitter.com/LinusEkenstam

2. Nick St. Pierre: Nick focuses more on Midjourney, but goes a bit deeper into image explorations.

https://twitter.com/nickfloats

Additional apps and tools I love

TextSniper

TextSniper saves me SO much time. It’s a tiny menubar app that can easily copy any text from anything on your screen. It comes in hand all the time when designing wireframes or coding prototypes.

a product screenshot of TextSniper selecting and copying text

If you’re curious about what I used for the screenshots in this post, I use and love both Xnapper and Cleanshot for macOS.

Xnapper

Xnapper has a text capture tool like TextSniper, but I primarily use it when I want to make a boring screenshot look nice w/ a background.

Cleanshot

Cleanshot has features like Xnapper but many more features for capturing images and screen recordings.

Whew! I’m exhausted, ChatGPT can you write a closing for me?

🤖 🤖 🤖

In conclusion, the ever-evolving world of generative AI has opened up a treasure trove of possibilities for designer-developers to augment their skills and create more efficient, visually appealing, and functional designs. As we’ve explored the various applications of AI tools like ChatGPT, Midjourney, and Notion AI, it’s essential to remember the importance of responsible AI usage and always be mindful of potential biases and unintended consequences. By staying up to date on the latest advancements in AI technology and following the inspirational work of fellow designers and developers, we can continue to push the boundaries of our craft while ensuring a human-centered approach. So, embrace the potential of generative AI and embark on an exciting journey to reinvent your design and development processes, but never forget the responsibility we have to use this powerful technology ethically and conscientiously.

🤖 🤖 🤖

(Thanks ChatGPT, be safe out there everyone and have fun! -Kyle)

--

--

Kyle Ledbetter

VP of Design at Credo AI — Former UX leader for Teradata, eBay, MicroStrategy and Sears Holdings.