Drag-and-Drop Kanban Board with AI-Powered Code Assistance
Every high-performing team needs a visual way to track work. In this tutorial, I will walk you through how to build a Kanban board app from scratch using AI code generators. We will turn a comprehensive specification into clean HTML, CSS, and modern JavaScript with card metadata, filtering, and responsive columns.
This prompt was originally published by prompts.chat under their vibe coding collection. By running this prompt through tools like Cursor, Claude, v0, or Bolt, you get an accessible project management board running entirely in your browser with zero subscription fees.
What you need
- An AI coding assistant (Cursor, Claude, ChatGPT, v0, or Bolt.new)
- A modern web browser with developer tools enabled
- A code editor like VS Code if running locally
- A free GitHub or Netlify account for hosting
The full prompt
Build a Kanban project management board using HTML5, CSS3, and JavaScript. Create a flexible board layout with customizable columns (To Do, In Progress, Done, etc.). Implement drag-and-drop card movement between columns with smooth animations. Add card creation with rich text formatting, labels, due dates, and priority levels. Include user assignment with avatars and filtering by assignee. Implement card comments and activity history. Add board customization with column reordering and color themes. Support multiple boards with quick switching. Implement data persistence using localStorage with export/import functionality. Create a responsive design that adapts to different screen sizes. Add keyboard shortcuts for common actions.1Pick Your AI Builder and Feed the Prompt
To build a clean single-file or lightweight project, choose an AI workspace that matches your workflow. For quick zero-setup browser prototyping, tools like v0 and Bolt.new generate and render web apps instantly. If you prefer editing code directly on your machine, launch Cursor or open Claude and ChatGPT.
Copy the full prompt on this page directly into your assistant chat window. The prompt defines core architectural requirements: HTML5, CSS3, and vanilla JavaScript without unnecessary heavy libraries. Keeping dependencies minimal ensures that the AI generates transparent, maintainable code rather than bloated boilerplate.
Build a Kanban project management board using HTML5, CSS3, and JavaScript.
Create a flexible board layout with customizable columns...
If you are using Cursor, open an empty folder, create an index.html file, and press Ctrl+K or Cmd+L to prompt the assistant inline. Request that the AI put everything inside a single index.html bundle with embedded <style> and <script> tags, or split neatly into index.html, styles.css, and app.js.

Pro tip: Ask the AI for a single-file delivery first to test fast without setting up build tools or local servers.
2Inspect the Core Data Model and State
Before rendering pixels, examine how the AI structures state. A robust Kanban board requires a predictable nested data architecture. Check that the script establishes an array of boards, columns, and task cards rather than reading raw text directly from the DOM.
Each card object needs specific fields to support the features requested in the prompt:
- Unique identifier (
id) - Title and description strings
- Priority string (
low,medium,high) - Due date in ISO format
- Assignee object with display name and avatar URL
- Array of string labels
- Array of comment objects with timestamps and text
Columns should maintain an array of card IDs to preserve sorting order. If your AI model hardcodes cards inside static HTML tags, stop immediately. Ask it to generate an initial state JavaScript object that renders the DOM dynamically via a clear renderBoard() function. Decoupling data from markup ensures smooth updates when cards move across stages.
Pro tip: Verify that timestamps use standard ISO strings so sorting and overdue calculations stay consistent across time zones.
3Review Layout Typography and Contrast Choices
A project management tool lives and dies by readability. Take a close look at the generated CSS. The layout should use CSS Grid or Flexbox with horizontal scrolling on the board container (overflow-x: auto), allowing columns to retain a fixed minimum width of roughly 280 to 320 pixels on smaller viewports.
Check the typography and colour contrast. Clean system font stacks like Inter, Roboto, or standard sans-serif work best for dense information displays. Priority tags require distinct visual cues without sacrificing accessibility:
- High priority: soft red background with deep dark red text
- Medium priority: warm amber with dark brown text
- Low priority: subtle slate or cool blue
Ensure that the text meets WCAG AA standards with at least a 4.5:1 contrast ratio against card surfaces. Card elements should feature distinct 1-pixel borders and subtle box shadows to create visual elevation against the board background canvas.

Pro tip: Avoid pure black borders on cards; use muted slate tones like #E2E8F0 for a modern, calm interface.
4Set Up HTML5 Drag and Drop Movement
The prompt asks for drag-and-drop card movement with smooth animations. Examine the card event listeners in the generated JavaScript. The AI should attach native HTML5 drag event handlers:
dragstart: stores the dragged card ID insidee.dataTransferand adds a ghosting styling classdragover: callse.preventDefault()on column containers to permit droppingdrop: extracts the card ID, updates the column ID in state, and triggers a re-renderdragend: clears active visual drop indicators
Check how the model handles column-to-column animations. Modern browsers allow CSS transitions on transform and opacity properties. If dragging feels rigid or cards snap awkwardly, request CSS transition classes on list elements.
Ensure card dragging uses native HTML5 Drag and Drop events.
Add a visual placeholder line where the card will land upon drop.
Make sure the board also supports keyboard reordering for accessibility, letting users focus a card and move it using arrow keys.
Pro tip: Always include e.preventDefault() in the dragover handler or the drop event will never fire in standard browsers.
5Verify Card Details Assignees and History
Now test the rich task management capabilities. Click the button to add a new card. A modal dialog should appear providing input fields for the title, markdown or rich description, priority select, tags, and assignee selection.
Verify that avatar icons render cleanly. The AI often uses UI avatar services or initials in coloured circles. Click into an existing card to test comments and the activity history log. Whenever a card moves between columns or changes priority, the script must push an entry to an activityLog array with an automated message like 'Moved to In Progress' alongside a timestamp.
Test label filtering. The top navigation bar should display clickable tag chips. Selecting 'Bug' or 'Feature' must hide non-matching cards without altering column widths or distorting the layout. If filtering permanently deletes hidden items from the screen, instruct the AI to use CSS classes like .hidden { display: none; } or filter during render passes.
Pro tip: Use HTML5 <dialog> elements for task modals because they provide built-in focus trapping and escape-key dismissal.
6Implement LocalStorage and Export Import
Your Kanban board must survive browser refreshes. Inspect the persistence layer in app.js. The AI should call localStorage.setItem('kanban_data', JSON.stringify(state)) after every write operation, including adding cards, reordering columns, or posting comments.
Next, evaluate the backup system. The prompt requires export and import functionality. The application should generate a downloadable kanban-backup.json blob when the user clicks 'Export'. For importing, an <input type="file" accept=".json"> element should read the uploaded file, validate the JSON schema, update state, save to localStorage, and re-render the view.
If the AI forgot import error handling, test by loading an invalid JSON file. Patch it with a follow-up prompt:
Wrap the JSON.parse import logic in a try-catch block.
If the file structure is invalid, display an accessible alert without crashing the board.
This safeguard prevents corrupted state files from locking users out.
Pro tip: Add a schema version number to your exported JSON so future board upgrades can migrate legacy data cleanly.
7Add Keyboard Shortcuts and Accessibility
Fast workflows rely on keyboard navigation. Test the shortcut listener configured on the window object. Standard productivity combinations include:
norc: open new card modal/: jump focus to search and tag filterEscape: dismiss open modals and menus?: display a keyboard shortcut cheat sheet
Verify that shortcuts do not fire while the user is actively typing inside an input or textarea element. The handler should check e.target.tagName and return early if an input field is focused.
Audit accessibility compliance. Screen readers must announce column titles and card counts. Ensure that columns use semantic <section> tags with aria-labelledby attributes pointing to column headings. Cards should feature role="article" or tabindex="0" so non-mouse users can navigate the entire board seamlessly using standard tab stops.
Pro tip: Guard global keyboard listeners by checking if event.target.matches('input, textarea, select') before triggering hotkeys.
8Test Edge Cases and Fix Common Drift
AI models often skip edge conditions on the first generation. Run through this testing checklist to spot issues:
- Create empty columns and verify that drag targets still accept dropped cards
- Enter very long titles with zero spaces to ensure words break without overflowing columns
- Set past due dates and confirm that an overdue badge displays in warning red
- Switch rapidly between multiple boards to make sure card IDs do not leak across projects
If your columns collapse when empty, add min-height: 200px to the column card wrapper in your stylesheet. If multiple board switching fails to switch contexts cleanly, paste this follow-up prompt:
Fix board switching so that the activeBoardId updates localStorage correctly.
When switching boards, clear all column DOM nodes and render only cards belonging to the active board.
Refresh the page between tests to confirm persistence holds across every action.
Pro tip: Use CSS overflow-wrap: anywhere on card titles so long strings never break column boundaries.
9Deploy Your Kanban Board App Free
With your code tested and functioning locally, deploy it to the web so you can access it on any device. Because this application relies strictly on client-side code and browser storage, you do not need paid servers or complex database configurations.
Here are three instant free hosting paths:
- GitHub Pages: Push your code to a public GitHub repository. Go to Settings > Pages, select the
mainbranch root, and hit Save. Your board goes live on a customgithub.ioURL within two minutes. - Netlify: Drag and drop your project folder directly into the Netlify Drop interface. Your site gets an instant HTTPS address and custom domain support.
- Vercel: Link your GitHub repository for automated deployments on every git commit.
Once hosted, test the board on a mobile phone browser. Columns should swipe smoothly, modal overlays should fit within touch viewports, and local storage should maintain your board state on your phone.
Pro tip: Add a manifest.json file to make your board installable as a progressive web app on your home screen.
Adapt it to your own brand
- Software sprint tracker: Add story point badges, sprint burndown tags, and dedicated Code Review columns.
- Marketing editorial calendar: Replace priority levels with content channels and due dates with publication deadlines.
- Sales pipeline CRM: Rename columns to Lead, Contacted, Proposal, and Won, adding deal value custom fields.
- Personal habit organizer: Configure daily recurring task columns with checklist completion percentages.
- Branded company theme: Swap CSS custom properties with your organization corporate colour palette and logo mark.
- Customer support desk: Add ticket severity indicators and response time trackers to incoming inquiry cards.
Common mistakes and fixes
- Drop target height zero: Empty columns collapse completely. Fix by setting a minimum height of 150px on column drop zones.
- Data loss on storage limits: Storing large base64 avatar images fills localStorage. Fix by using compact image URLs or SVG initials.
- Keyboard shortcuts firing in text fields: Typing 'n' into a card description opens another modal. Fix by ignoring events on input tags.
- Broken drag on mobile: HTML5 drag and drop fails on iOS and Android touchscreens. Fix by adding touch-to-drag polyfills or tap menus.
Frequently asked questions
Will my Kanban board data stay saved after closing the browser?
Yes. The app saves all board data to localStorage in your browser. As long as you do not clear your browser cache or site data, your tasks, columns, and history remain intact.
Can I sync tasks across multiple devices without a database?
LocalStorage is strictly local to one device. To transfer your board to a laptop or phone, use the Export button to save a JSON file, then click Import on the new device.
Which AI coding tool gives the best result for this prompt?
Claude 3.5 Sonnet inside Cursor or v0 delivers exceptional vanilla JavaScript and clean CSS layouts. Both tools handle complex single-file prompts with high accuracy and minimal code drift.
Can I convert this vanilla JavaScript board into React or Vue later?
Yes. Because the state object is cleanly separated from rendering logic, you can easily prompt an AI assistant to migrate the data model into React hooks or Vue reactive stores.
Final thoughts
You now have a fast, accessible, fully customizable Kanban board running entirely in your browser without recurring SaaS fees. By pairing a comprehensive specification with modern AI tools, you can prototype, debug, and ship production-ready web utilities in minutes. Copy the full prompt on this page, paste it into your favorite AI code editor, and build your custom workspace today.