AI for UI Design and Automated Testing
29 lessons2 hr 31 minPlus
Lesson 1 is free now. The rest comes with Plus.

Syllabus
29 lessons · 2 hr 31 minLet's Learn More
7 lessons2
Don't Always Start From Scratch: Use a Template
This video details the initial setup of a Nuxt UI portfolio template for a project, emphasizing the advantages of starting with a human-designed template when working with AI to avoid generic designs and leverage robust design systems. The template offers a nice aesthetic and a blog powered by Nuxt Content. The creator highlights the NuxtUI component library's well-documented design system and its MCP server's utility for AI agents. The video guides viewers through installing the template, mentioning various IDE and CLI support, and briefly explains key directories like `content`, `public`, `pages`, and `components`.
6 min
3Setup the Project Design System to Work for Our Brand
This video explains the process of defining the visual identity for a website before writing any code. The speaker used Google Gemini to brainstorm ideas and settled on a 'sunset in the metaverse' vibe, featuring dark mode, warm gradients, 3D gradient blobs, and glassmorphism. The color palette includes a deep dark background, orange and red gradients, and white text. Typography will use 'Outfit' for headings and 'Enter' for body text. The video then demonstrates how to encode this visual identity into a project's design system using Nuxt.UI's semantic color tokens, which allow AI agents to generate consistent designs. An AI agent is used to configure these tokens based on the branding, updating the app.config and main.css files to reflect the chosen colors, fonts, and button styles. The speaker emphasizes the benefits of using a robust design system with AI for productivity and consistency.
11 min
4Focus on the Details and Aura.build
Ming Tu, creator of aura.build, emphasizes that AI product design benefits from obsessive iteration, rather than one-shotting ideas. He demonstrates this with diverse websites built on aura.build, showcasing how focusing on details yields non-generic results, especially with tools like Gemini 3. While aura.build offers beautiful designs and components, the speaker personally prefers to stick with an existing Nuxt UI design system for their Mentora platform. However, he recommends checking out aura.build for inspiration, templates, and components, noting that some require a subscription.
3 min
5Scaffold Home Page, Refine Orange Color, and Solidify Dark Mode
This video describes an iterative process to update a website's homepage, focusing on content and design refinements. The presenter starts by using an AI agent to populate the homepage of 'Mentora,' a platform connecting students and teachers, with new content sections like a hero, 'how it works,' 'meet our teachers,' testimonials, FAQs, and a call to action. An initial error related to schema validation is encountered and corrected by aligning the content configuration with the new data. Subsequently, the video addresses the website's color scheme, specifically adjusting the primary orange color to appear correctly in dark mode. Finally, it discusses setting a default 'dark' class on the HTML element to enforce a dark aesthetic, while temporarily retaining the light/dark mode toggle for future inspiration.
8 min
6Use Image Generators to Brainstorm Designs
The video focuses on creating an impactful hero section for a website. The first step involved removing a container element from the default layout to allow for a full-width hero section. The speaker used Gemini Flash (Google Anti-Gravity and gemini.google.com) to brainstorm design ideas, showing how to generate images based on existing website screenshots and branding guidelines. The process involved several iterations, starting with a screenshot of the current hero, then incorporating YAML content, refining color schemes, and finally integrating detailed branding guidelines to achieve an on-brand and visually appealing design. The key takeaways emphasize using image generators for design brainstorming over code generators and the importance of providing comprehensive brand guidelines for optimal AI-generated design output.
5 min
7Generate Image Assets with Gemini Flash (Nano Banana) Without a Watermark
This video details how to extract image assets from a mockup using Gemini and later, AI Studio, to avoid watermarks and gain more control. It demonstrates extracting specific images like a woman and abstract 'blobs', emphasizing the importance of specifying solid background colors to prevent transparent, checkerboard-like textures. The speaker notes a limitation of Gemini-generated images, which include a watermark. While the watermark can be manually removed in editing software like Photoshop, the video suggests using Google Gemini APIs or AI Studio to generate images without watermarks. The tutorial then walks through setting up an API key, linking it to a project with active billing in AI Studio, and using it to generate watermark-free images, showcasing greater control over generated content, including resolution and aspect ratio.
5 min
8Give Cursor (Or Any Agent) Image Generation Capabilities
This video explores how to generate images directly within an IDE using the Google Gemini API. The presenter demonstrates using an AI agent to create a bash script that interacts with the Gemini REST API via cURL. This approach allows for quick and simple image generation without JavaScript or TypeScript dependencies. The process involves providing prompts and reference images, with the ability to dynamically fetch project assets like colors and automatically save generated images to specific project locations. While there were initial challenges with replicating precise image details, the presenter refined prompts to achieve desired results. The video concludes by highlighting the benefits of IDE-based image generation, including access to project assets and direct file saving, and suggests that simple bash scripts offer a portable and efficient solution compared to browser-based tools or more complex server setups.
6 min
There's More, Lets Keep Going
16 lessons9
Go from Image to Code Accurately with the Browser Tool
This video describes how an AI agent, using Opus 4.5, can transform a hero component based on a provided mockup. The agent uses a browser to verify changes, leverages a Nuxt UI MCP server for components, and refines the hero section through iterative screenshot analysis. The process involves adjustments to text, colors, transitions, and image styling to match the mockup while considering design system integration. Manual adjustments are also incorporated to finalize the design, including optimizing image tags for performance. The resulting hero section closely resembles the mockup, with minor issues like blob image backgrounds remaining for future refinement.
7 min
10Use ImageMagick or Sharp To Remove Generated Image Backgrounds
This video describes how to enable AI agents to generate images with transparent backgrounds using tools like ImageMagick or Sharp. The speaker demonstrates using ImageMagick to remove the background from specific images, explaining the process and the commands involved. While ImageMagick is fast and effective for clean edges, it can struggle with images containing glows or shadows, leading to imperfect results. The speaker suggests using traditional image editing software for such cases but emphasizes the utility of ImageMagick and Sharp for images with clearer boundaries, providing examples in the source code.
3 min
11Create Engaging Heroes with Video Backgrounds
This video demonstrates how to enhance a hero section with a video background using AI tools, specifically Google Flow. It explains that Google Flow, a Google Labs experiment, allows users to generate videos from text prompts and provides the option to define start and end frames for seamless looping. The video outlines the process, including creating appropriately sized images (1920x1080) for the start and end frames using tools like ImageMagic or an image editing program. It highlights that Flow requires a Google AI Pro, Ultra, or AI Ultra for business account and that credits are limited. The video then showcases generating the video, dealing with initial stuttering during looping, and how to use an AI agent to fix the looping issue by crossfading two videos. Finally, it recommends exploring other AI video generators mentioned in the description, noting that video generation is generally a paid service.
6 min
12Create an Interactive Animated Hero Section with AI
This video explores using 3JS for hero backgrounds, demonstrating both a failed attempt at creating interactive blobs and successful examples with AI assistance. The creator, despite not understanding 3JS under the hood, managed to achieve impressive interactive effects like a space theme with warp speed on button hover and a hexagon background that reacts to mouse movement and clicks. The video concludes by encouraging viewers to check the description for a detailed guide on how these successful examples were made.
3 min
13Repurpose UI Ideas to Create a Reveal Video Micro Interaction
This video describes the process of integrating a video reveal micro-interaction into a website's hero section, inspired by a light/dark mode toggle effect. The speaker demonstrates how to use an AI agent to create a dedicated video reveal component, initially requesting it to stretch across the entire page, but later refining the design to include margins and a modal overlay. The video then explores an alternative where the video fills a specific parent container rather than the whole screen, acknowledging potential aspect ratio issues. The speaker encourages viewers to consider other micro-interactions for their projects.
6 min
14Organic Images, More Background Removal Options, and AI Image Upscaling
This video explains how to incorporate organic shapes and movement into website design to reduce boxiness. The speaker describes using Google Gemini to generate an image with an organic blob and then removing the background using tools like Adobe Photoshop, Image Magic, Adobe Express, or remove.bg. The video also covers upscaling AI-generated images using tools such as imageupscaler.com and pixelcut.ai when they are too small.
2 min
15Use AI to Design a Layout Based on a Screenshot
This lesson focuses on building a homepage section using an AI agent. The process involves taking a screenshot of a desired design and providing it to the AI. Initially, the AI generated a section that wasn't perfect, requiring refinement through additional prompts and manual adjustments. The creator encountered issues with image cropping and component styling, which were addressed by modifying parameters and manually editing the code. The lesson highlights the efficiency of using AI for duplicating layouts from screenshots, recommending tools like a built-in screenshot tool for sections and the 'Go Full Page' Chrome extension for entire pages.
7 min
16Generate Spritesheets for Organic Re-usable and On-Brand Elements
This video details the process of using Google Gemini to create and implement a sprite sheet of 'blob' shapes for a website's teacher cards. The creator first generated blob images, then used Gemini to create a sprite sheet with specific layout and naming conventions in JavaScript. After preparing the sprite sheet, Gemini 3 Pro was used to create an `AppBlobSprite` component, with a thorough verification process. The component was then integrated into the 'Meet Our Teachers' section of the homepage, with several iterations of prompting Gemini to refine the design, including adjusting blob size, ensuring visibility behind avatars, improving design style around avatars, and correcting issues like blurring and opacity, eventually achieving a visually appealing and interactive design.
6 min
17When to Edit Multiple Sections at a Time
This video details the process of fixing layout issues on a webpage, specifically focusing on the "Meet Our Teachers" section. The main problems identified were the section's squeezed width compared to other parts of the page and the heading butting directly against the section above it. The speaker instructs an agent to adjust the width to match the hero section, add vertical breathing room, and ensure consistent heading styles and width across all sections below the "Meet Our Teachers" section. After an initial error during the fix, the agent successfully addresses the issues, leading to a much improved layout.
3 min
18Use Components from 21st.dev Even If You Aren't Using React
This video describes how to leverage existing human-created resources alongside AI for web development. The presenter demonstrates using components from 21st.dev, specifically a testimonial section, and converting its React/TypeScript code to Vue using an IDE. The process involves copying the code, prompting the IDE for conversion, and then integrating it into a project. The video also highlights a debugging challenge with the Cursor IDE's browser tool, showing how to troubleshoot and resolve issues related to browser automation settings for effective web development.
6 min
19Add Subtle Scroll-Based Animations For Extra Polish
This video discusses adding subtle scroll-based animations to a homepage to enhance its visual appeal, drawing inspiration from a Twitter thread on building AI websites. The speaker emphasizes that while animations add polish, they shouldn't be overdone. They demonstrate how easy it is to implement these animations, noting that an animation library was already included in the project's template, and even if it wasn't, AI is proficient at installing such libraries.
2 min
20Prep to Work on the Blog
This video shows how to create consistent and branded images for blog posts, including open graph images and related on-page images with a glass morphism border. The process involves using brand guidelines and post context to generate images. The presenter demonstrates how to set up the necessary code, including updated blog pages, new components, and relevant blog post content (generated by AI for variety) within the project. The video also teases the use of image templates and a command for generating blog post OG images, which will be covered in the next lesson.
4 min
21Create Consistent and Relevant OG Imagery for Blog Posts with Workflows-Commands
This video explains the concept of commands in Cursor, which are step-by-step workflows for LLMs, differing from more generic rules. The speaker demonstrates a custom command to generate "Open Graph" images for blog posts, highlighting its multi-step process. This process includes brainstorming a photorealistic image, generating the image using a bash script and a placeholder template, and then a critical quality check by the LLM itself to ensure relevance and absence of errors. Finally, the speaker shows the command in action, successfully generating relevant and aesthetically pleasing images for blog posts.
6 min
22Generate Multiple Related Images with Stacked Commands
This video explains how to generate multiple images for blog posts, including OG images and longer post images, by breaking down the image generation process into several commands. It starts by generating a subject image, then expands it for different aspect ratios. The OG image is generated next, requiring an update to the script to accept multiple input images (subject image and template). Finally, a long image for individual post pages is generated using a different template and the expanded subject image. The speaker acknowledges that while the output isn't perfect and costs slightly more due to extra image generation, this method yielded the best results after experimentation.
5 min
23Combine ImageMagick with Gemini Image Generation for Deterministic Text
This video addresses issues with AI-generated text in images, specifically misspellings and poor layout, even with advanced models. The speaker introduces a solution using ImageMagick for programmatic text control. An AI-generated script variables for text sizing and positioning, enabling better text placement within the image. The process involves using a text-free image template, directing the LLM's output to a new image, and then using a bash script to precisely overlay the text. This method provides programmatic control over text, resulting in improved image design, demonstrated by re-running the image generation for a blog post with previous layout problems.
4 min
24Agentic Code from Figma Designs
This video describes how to integrate Figma designs into an IDE using the Figma MCP server to quickly convert designs into code with the help of an LLM. It covers installation options for the Figma server, including desktop and remote versions, and walks through the process of connecting it to an IDE like Cursor. The video demonstrates importing a Figma mockup by copying its link and prompting the LLM. It then evaluates the generated code, noting successes in basic elements and areas requiring manual refinement, emphasizing the efficiency gained compared to starting from scratch.
3 min
Stepping Into the Final Chapters
4 lessons25
Install Playwright and the Playwright VS Code Extension
<p>This video introduces Playwright for writing robust end-to-end tests, highlighting that Large Language Models (LLMs) are effective at generating them. The lesson covers installing the Playwright VS Code/Cursor extension, setting up Playwright in a project using `npm init playwright` (or pnpm equivalent), and configuring the test environment. It explains how to interpret and format the generated example test spec, which includes checking page titles and interacting with elements. The video demonstrates running tests via the terminal and suggests adding a test command to `package.json` for easier execution, finally showcasing the Playwright extension's integrated play buttons for individual tests, preparing for AI-driven testing.</p>
4 min
26Writing E2E Tests for Existing Functionality with a Simple Reusable Workflow
This video describes a workflow for creating end-to-end tests using Playwright, leveraging AI agents for planning, generating, and healing tests. It outlines the three types of Playwright test agents (planner, generator, healer) and explains their roles. The speaker then presents a personal 8-step workflow for creating end-to-end tests, emphasizing the use of `data-test-ID` attributes for precise element selection. The video demonstrates the AI-powered process of generating tests for a homepage, showing how the AI adds `data-test-ID` attributes, updates the Playwright configuration, and generates comprehensive test cases. It also illustrates the 'healing' phase where the AI identifies and fixes issues, such as a missing dev server or incorrect ID application based on documentation. Finally, the speaker validates the generated tests by intentionally making them fail and offers a strategy for effectively using AI to build a robust test suite, recommending manual inspection for critical functionalities.
11 min
27Use TDD to Build the Teachers Grid Filter
TDD or Test Driven Development is the process of writing tests that describe HOW you want some code to work before writing the code itself. Some devs swear by this method, even for use with AI agents, but in my experience the process is less than ideal.
7 min
28Visual Regression Testing: Catch UI Drift with AI Comparisons
In this lesson, learn how to use AI to write visual regression tests for you with playwright.
8 min
Closing Off
1 lessonAccess
It's part of Plus. Lesson 1 is free to watch for everyone, no account needed.
Every lesson of every course, the full notes, transcripts and prompts, and the Unlearn-built tools. Blog posts and the tools that are public on GitHub stay free for everyone.
It shows as Completed on your profile and counts toward its role. Finishing every step of a role earns the role certificate.
Yes. Team plans can assign this course, or a whole role, and follow progress in Team.
Next step
More in Review and testing
Reviewing AI-Written Code
Workflow · 12 lessons · 1 hr 34 min