WokGen UI/UX

UI/UX Documentation

Complete guide to generating production-ready front-end code — React components, HTML/Tailwind sections, Next.js pages, and more.

1. What is WokGen UI/UX

WokGen UI/UX is a design-to-code studio that generates production-ready front-end code from natural language descriptions. Unlike image generators, it outputs real, copy-paste-ready source code — React JSX, HTML with Tailwind CSS, Next.js App Router components, or self-contained Vanilla CSS HTML.

What WokGen UI/UX is NOT

WokGen UI/UX is not an image generator. It does not produce screenshots, mockups, or design files. Every output is runnable source code you can drop straight into your project. If you need pixel art or general images, use WokGen Pixel instead.

Who it's for

  • Product teams building MVPs — scaffold a full landing page in minutes, not days.
  • Indie hackers and solopreneurs — ship a polished SaaS marketing site without a dedicated designer.
  • Front-end developers — skip boilerplate, get a working starting point for any common UI pattern.
  • Designers prototyping in code — translate design direction into real components immediately.
  • Agencies — accelerate client work by generating a first draft of landing pages and dashboards.

Use cases

Use caseRecommended components
SaaS landing pageHero, Features, Pricing, Testimonials, CTA, Footer, Navbar
Internal dashboardDashboard page, Sidebar, Data Table, Stats, Card Grid
Authentication flowAuth/Login page, Form
Marketing micrositeLanding page, Hero, CTA, FAQ
Admin panel skeletonSidebar, Table, Modal, Dashboard
E-commerce storefrontHero, Card Grid, Features, Footer
Start with the Landing Page component type for a full-page scaffold, then use individual section types (Hero, Pricing, etc.) to iterate on each section separately before assembling your final page.

2. Component Types

WokGen UI/UX supports 18 component types across four categories. Select the type before writing your prompt — it tells the model what structure and conventions to follow.

Sections

Page sections are the building blocks of marketing and product pages. Each generates a self-contained, full-width block ready to slot into any layout.

TypeIconDescription
Hero SectionFull-width headline, subtext, CTA buttons, optional background image or gradient
FeaturesGrid or list of feature cards with icons, titles, and descriptions
PricingTier cards with feature lists, highlighted plan, monthly/annual toggle
TestimonialsCustomer quote cards with name, avatar, role, and star ratings
FAQAccordion-style or list of questions and answers
CTAConversion-focused band with headline, supporting copy, and action button
FooterSite footer with columns, links, copyright, and social icons

Navigation components handle wayfinding — top bars, side drawers, and persistent navigation rails.

TypeDescription
NavbarHorizontal top navigation bar — logo, links, auth buttons, mobile hamburger menu
SidebarVertical navigation rail — collapsible, icon+label items, section groups

Components

Reusable UI components for displaying data, gathering input, and managing content.

TypeDescription
Card GridGrid of cards — product listings, blog posts, team members, feature highlights
FormInput form — contact, signup, settings, multi-step wizard
Data TableTabular data with columns, rows, sorting indicators, and pagination controls
ModalDialog overlay — confirmation, detail view, image lightbox, form in overlay
StatsKey metric blocks — KPI cards, number highlights, growth indicators

Pages

Full-page templates that generate a complete layout — including multiple sections, navigation, and content areas in a single output.

TypeDescription
Landing PageComplete marketing page scaffold — hero, features, pricing, CTA, footer
DashboardAdmin/analytics dashboard — sidebar, stat cards, charts placeholder, data table
Auth/Login PageAuthentication screen — sign in, sign up, forgot password, social OAuth buttons
Settings PageUser or app settings — profile form, preference toggles, danger zone
iThere is also a Custom type for anything that doesn't fit a predefined category. Use it with a detailed prompt describing exactly what you need.

3. Frameworks

Select your target framework before generating. The model tailors the output syntax, imports, and conventions to match your choice.

FrameworkExtensionBest forNotes
HTML + Tailwind.htmlRapid prototyping, static sites, email templatesRequires Tailwind CSS via CDN or build step
React / TSX.tsxReact apps, component libraries, Vite projectsTypeScript, default exports, standard React conventions
Next.js / TSX.tsxNext.js 14+ App Router projectsUses server components by default; add "use client" when needed
Vanilla CSS.htmlZero-dependency use, legacy projects, emailSelf-contained HTML + embedded <style> block, no external deps

Choosing the right framework

  • If you're unsure, start with HTML + Tailwind — it's the easiest to preview in a browser and copy into any project.
  • For React/Vite projects, use React TSX.
  • For Next.js apps using the App Router, use Next.js TSX — it avoids unnecessary 'use client' directives and follows Next.js conventions.
  • For a self-contained file with no build tools, use Vanilla CSS — the output includes all styles inline.
!The framework selection cannot be changed after generation. If you want the same component in a different framework, re-generate with the new selection. Prompts are preserved, so switching is fast.

4. Style Presets

Style presets give the model a strong visual direction — color palette, typography personality, spacing philosophy, and overall aesthetic. Select a preset that matches your brand or intended design language before writing your prompt.

PresetPaletteDescriptionIdeal for
SaaS Dark#0f0f10 / #6366f1Dark backgrounds, indigo accents, modern SaaS aestheticB2B SaaS products, developer tools, analytics platforms
Minimal Light#ffffff / #6366f1Clean white space, light grays, understated typeContent sites, documentation, personal portfolios
Bold Consumer#fbbf24 / #ef4444High-energy yellows and reds, big typography, strong contrastE-commerce, gaming, lifestyle brands, consumer apps
Corporate Clean#1e3a5f / #3b82f6Navy blues, professional grays, enterprise trustworthinessEnterprise software, financial services, consulting
Dev Terminal#0d1117 / #22c55eBlack backgrounds, green monospace accents, code-editor feelDeveloper tools, CLI interfaces, hacker-aesthetic products
Warm Brand#fffbeb / #f59e0bWarm creams and ambers, friendly rounded shapes, community feelCommunity products, food & beverage, local businesses
Glassmorphism#667eea / rgba(255,255,255,0.1)Frosted glass cards, gradient backgrounds, translucencyModern apps, crypto/web3, premium consumer products
Brutalist#000000 / #ff0000Black and white with bold red, raw typography, no ornamentationArt projects, editorial, unconventional brands
Mention the style in your prompt too for stronger results. Example: dark SaaS pricing section with indigo gradient CTA button reinforces the SaaS Dark preset selection.

5. Prompting Guide

The quality of the generated code is directly proportional to the specificity of your prompt. A vague prompt produces generic output; a detailed prompt produces something much closer to your vision.

Anatomy of a good UI/UX prompt

A strong prompt answers four questions:

  1. What is the component? — "a pricing section", "a SaaS hero", "an admin sidebar"
  2. What is it for? — "for a project management tool", "for a food delivery app"
  3. What content does it contain? — tier names, feature list items, navigation links, stat labels
  4. What is the design direction? — color hints, mood, layout preference (grid vs list, centered vs left-aligned)

Example prompts by type

Pricing section

Generate a SaaS pricing section with 3 tiers: Free, Pro ($29/mo), and Enterprise
(contact us). Dark theme. Monthly/annual toggle at the top. Pro tier highlighted
with a purple border. Feature list per tier: API access, custom dashboards, team
seats, priority support.

Hero section

SaaS analytics platform called "Chartly". Headline: "Turn your data into
decisions". Subtitle: real-time dashboards for engineering teams. Two CTAs:
"Start Free" (primary, indigo) and "Watch Demo" (ghost). Dark gradient
background with a subtle grid pattern.

Navbar

Company "Nexus" — logo on the left, navigation links: Product, Pricing, Docs,
Blog — Sign In (ghost) and Get Started (primary, purple) buttons on the right.
Sticky on scroll. Mobile hamburger menu.

Dashboard page

Admin dashboard for an e-commerce platform. Left sidebar with icons and labels:
Orders, Products, Customers, Analytics, Settings. Top header with search and
user avatar. Four stat cards at the top (Total Sales, Active Orders, Customers,
Revenue). Recent orders data table below.

Auth page

Sign-in page for a developer tool called "Forge". Centered card layout on a
dark background. Email and password fields, "Remember me" checkbox, Forgot
Password link, Sign In button. OAuth row: GitHub and Google. Link to sign up.

Prompting tips

  • Specify counts — "3 pricing tiers", "6 feature cards", "5 nav links". The model defaults to 3 items if unspecified.
  • Name your product — using your actual product name produces labels and copy that feel real rather than generic.
  • Include key labels — name your CTAs, tiers, links, and section headings. Placeholder text is generic; real labels are immediately useful.
  • State color preferences — "indigo accent", "red warning states", "green success badges". These reinforce the style preset.
  • Describe layout — "two-column", "centered card", "full-width band", "grid of 3 columns on desktop, 1 on mobile".
  • Mention responsive behavior — "mobile hamburger menu", "stack to single column on mobile".
!Avoid vague superlatives like "beautiful", "modern", "clean", "perfect". These add noise without direction. Instead, describe what makes it clean or modern in concrete terms: "lots of white space", "16px base font", "rounded-2xl cards with subtle shadows".
If the first result misses the mark, don't start over — extend your prompt with one or two specific corrections: "make the CTA button full width", "use a grid instead of a list for the features", "add a dark overlay to the hero background image".

6. Output Modes

After generation, the studio shows two tabs in the output panel:

Preview tab

The Preview tab renders the generated code inside an <iframe> — you see a live, interactive rendering of the component at desktop width. You can scroll within the preview and interact with any interactive elements (hover states, open/close toggles, tab switches).

  • Preview is injected with the Tailwind CDN for HTML+Tailwind outputs so you see styles immediately.
  • React/TSX and Next.js outputs are shown as static HTML in the preview (the actual JSX is in the Code tab).
  • Use the preview to verify layout, spacing, and visual hierarchy before copying.

Code tab

The Code tab shows the raw source code exactly as generated — syntax-highlighted and copy-paste ready. A Copy button in the top-right of the panel copies the entire output to your clipboard.

  • For React/Next.js outputs: one complete component file, ready to save as a .tsx file.
  • For HTML+Tailwind: a complete .html file with Tailwind CDN included.
  • For Vanilla CSS: a complete .html file with an embedded <style> block.
iThe Code tab also shows metadata about the generation — the model used, the framework, component type, style preset, and generation time in milliseconds.

7. Using Generated Code

Copy the output from the Code tab and integrate it into your project. Instructions differ by framework:

React TSX

  1. Copy the code from the Code tab.
  2. Create a new file in your project, e.g. src/components/HeroSection.tsx.
  3. Paste the code. The component uses a default export — import it as import HeroSection from './HeroSection'.
  4. Ensure Tailwind CSS is configured in your project (tailwind.config.js and globals.css).
  5. Drop the component into your page: <HeroSection />.

Next.js TSX

  1. Copy the code from the Code tab.
  2. Save it as a file in app/ or components/, e.g. components/PricingSection.tsx.
  3. If the component uses interactivity (click handlers, state), add 'use client' to the top of the file.
  4. Import and render in your page: import PricingSection from '@/components/PricingSection'.

HTML + Tailwind

  1. Copy the code from the Code tab.
  2. Open the file directly in a browser — the output includes the Tailwind CDN script tag, so styles work immediately with no build step.
  3. For a production project with a build step, remove the CDN script tag and ensure Tailwind is processing your file via your tailwind.config.js content paths.

Vanilla CSS

  1. Copy the code from the Code tab.
  2. Save as a .html file. The output is entirely self-contained — no external dependencies, no CDN scripts.
  3. Open in any browser. To extract into a CSS file, move the <style> block content to a separate .css file and link it.
For React and Next.js outputs, rename the default exported function to match your file name convention before committing. Example: the generated export default function Component() should become export default function PricingSection().

8. Customization

Generated output is a starting point, not a final product. It is designed to be 80% of the way there — close enough to your vision that the remaining 20% is fast, targeted editing rather than building from scratch.

Changing colors

  • Tailwind classes — find color classes like bg-indigo-600 or text-gray-900 and replace them with your brand colors (e.g., bg-brand-500 if you have a custom palette configured).
  • CSS variables — for Vanilla CSS outputs, colors are often defined as CSS custom properties at the top of the <style> block. Update the variable values to retheme the entire component at once.
  • Inline styles — some gradient backgrounds are defined as inline style props. These are clearly visible in the code and easy to swap.

Swapping placeholder content

  • All text content is hardcoded in the component. Search for lorem ipsum, "Placeholder", "Feature name", or "Lorem" to find and replace generated copy.
  • For image placeholders, swap the src attribute of <img> tags or background image URLs.
  • Icon placeholders (SVG inline blocks or emoji) can be replaced with your preferred icon library components (e.g., Lucide, Heroicons).

Adjusting layout

  • Grid columns — change grid-cols-3 to grid-cols-2 or grid-cols-4 to adjust item counts per row.
  • Max width — the outer container typically uses max-w-7xl or max-w-5xl. Adjust to control content width.
  • Spacing — padding and gap utilities (py-24, gap-8) are all Tailwind classes — easy to find and tune.
  • Responsive breakpoints — responsive prefixes (md:, lg:) are already present in most outputs. Extend them to add more breakpoints.
iIf a change is structural (add a fourth pricing tier, add a new nav section, change the layout from two-column to three-column), it's often faster to regenerate with an updated prompt than to manually restructure the HTML.

9. Workspaces

Workspaces let you organize your generated components by project. Every generation can be saved to a workspace so your UI/UX components stay grouped, named, and easy to find later.

How workspaces work

  • Create a workspace per product or client project — e.g., Chartly MVP, Client: Acme Corp.
  • The UI/UX workspace keeps all your generated components together, separate from Pixel art assets and other generator outputs.
  • Saved components retain their prompt, framework, component type, style preset, and generated code — you can view and copy them at any time without regenerating.
  • Rename, duplicate, or delete saved components from the workspace panel.

Saving a generation

  1. After generating a component you want to keep, click the Save button in the output panel.
  2. Give it a descriptive name (e.g., Pricing section — dark 3-tier).
  3. Select or create a workspace to save it into.
  4. The component is now accessible from your workspace sidebar.
Save intermediate versions as you refine a component — you can always go back to an earlier iteration if a later prompt revision takes the design in the wrong direction.

10. Credits & Plans

UI/UX generation is powered by large language models. Here's how usage and credits work:

Models used

ModelProviderUsed for
Llama 3.1 70B InstructTogether.aiPrimary generation model — fast, high-quality code output
DeepSeek CoderDeepSeekAlternative model for code-heavy or complex component requests

Credit usage

  • Standard generation is free. There is no HD tier for UI/UX code generation — code generation does not have an image quality distinction.
  • Each generation request consumes a small amount of API quota, managed transparently. Normal usage (a few dozen generations per day) stays within free limits.
  • If you hit rate limits, a brief cooldown period applies before you can generate again.
iUnlike WokGen Pixel (which has a paid HD tier for premium image models), WokGen UI/UX has a single generation tier. There is no paid upgrade for code generation quality — the same model is available to all users.

11. Limitations

WokGen UI/UX is a powerful first-draft tool, but it has known limitations you should be aware of before relying on it for production:

  • Output is a starting point, not always production-perfect. Generated code may have minor inconsistencies — duplicate class names, slightly off spacing, or over-verbose markup. Review before shipping.
  • Complex interactions need manual implementation. Animations, drag-and-drop, multi-step flows, and real-time data binding are beyond what a single-generation component can reliably produce. The output provides the static scaffold; you add the behavior.
  • No animations generated yet. CSS keyframe animations and Framer Motion transitions are not currently included in generated output. Transition and hover classes are present, but full animation sequences require manual addition.
  • No actual data binding. All data in generated components is hardcoded. To connect to a real API or database, you add useState, useEffect, or server-side data fetching logic yourself.
  • Occasional over-engineering. The model sometimes generates more complex markup than needed for a simple component. Don't hesitate to simplify after copying.
  • Long outputs may truncate. For very complex full-page components, the model may truncate near the token limit. If output looks cut off, try a more focused component type (a section rather than a full page) or break the page into multiple generations.
Think of WokGen UI/UX the way you'd think of a senior developer writing a first draft. It's fast and 80% right — your job is the final 20%: polish, data wiring, and brand-specific tweaks.

12. FAQ

Is the generated code accessible?

Yes, to a reasonable baseline. Generated code includes semantic HTML elements (<nav>, <main>, <section>,<button>), ARIA attributes where commonly expected (aria-label on icon buttons, role="dialog" on modals), and keyboard-focusable interactive elements. However, the output is not WCAG-audited and should be reviewed for accessibility compliance before shipping to production, especially for forms and modals.

Can I use the generated code commercially?

Yes. All code generated by WokGen UI/UX is released under the Apache 2.0 license. You can use it in commercial projects, client work, products, and open-source software without restriction. Attribution is not required.

Does it generate TypeScript?

Yes. Both React TSX and Next.js TSX framework options generate TypeScript (.tsx). Props are typed where they are passed explicitly, and the component signature uses TypeScript function syntax. For JavaScript output without types, use HTML + Tailwind orVanilla CSS.

Does it work with shadcn/ui or other component libraries?

Generated components use plain Tailwind CSS classes and do not import from shadcn/ui, Radix, or other component libraries by default. This keeps the output self-contained and portable. If you want to migrate to shadcn/ui components, use the generated output as a layout reference and swap primitive elements (buttons, inputs, dialogs) for their shadcn equivalents.

Can I regenerate just part of the output?

Not directly — each generation produces a complete component. To refine a specific part, either edit the code manually or regenerate with a prompt that describes the desired change. Regeneration is fast (typically 5–15 seconds), so iterating on prompts is usually the quickest path to the result you want.

What happens if I select the wrong component type?

The component type helps the model understand structure and conventions, but a mismatch just produces slightly less optimal output — it doesn't cause errors. If you selected Hero but your prompt describes a pricing section, the model will likely produce a reasonable pricing section anyway. For best results, match the type to your intent.

Is there a rate limit?

Yes. Generation requests are subject to per-user rate limits to ensure fair access for all users. If you see a rate-limit error, wait 30–60 seconds before retrying. For high-volume usage, contact us about team or enterprise plans.

Does it support dark mode?

Style presets like SaaS Dark and Dev Terminal produce components already styled in dark mode. For light-mode presets with automatic dark mode support, mention it in your prompt: with dark mode support using Tailwind dark: classes. The model will add dark: variants to the relevant Tailwind utility classes.

Ready to generate your first component? Open UI/UX mode →