Skip to content

Kanban Task Card with Assignee Photos

Detailed Tailwind CSS Kanban task card with labels, due date, interactive checklist progress and overlapping assignee photos.

Also known as: kanban card, task card with checklist, project board card, sprint task card, kanban board card

Kanban Task Card with Assignee Photos live demo

Open in new tab

Tailwind CSS code (HTML, CSS, JS)

A detailed Kanban task card built with Tailwind CSS and a few lines of vanilla JavaScript. It shows colored labels, a ticket ID, a due date chip, an interactive checklist with a progress bar, overlapping assignee photos and comment and attachment counts. Drop it into a project board, a sprint view or a task detail sidebar.

How it works

The wrapper .tkc-wrap centers a column header ("In progress") and the card itself, article.tkc-card. A thin violet-to-fuchsia gradient strip on the left edge marks the column color. Labels are a ul of small pills, followed by the ticket ID, the title, a short summary and an amber due date with a time element. The script fills that date from data-tkc-due-in (days from today) and sets its datetime; without JavaScript it reads "next week".

The checklist is a fieldset.tkc-checklist. Each checkbox carries data-tkc-item, and the labels use has-[:checked]:line-through so finished steps are struck through with pure CSS. On DOMContentLoaded the script finds every .tkc-card, listens for change events on its checkboxes and recalculates the result: the data-tkc-count text ("3 of 5 done"), the width of the data-tkc-fill bar and aria-valuenow on the data-tkc-bar progressbar. When every item is ticked the bar and counter turn green and the card gets the .tkc-card--done class, which draws a green outline in style.css.

The footer holds the .tkc-avatars stack, built with -space-x-2.5 and white rings, a "+2" counter for hidden assignees, and icons for comments and attachments. style.css adds the progress transition and small hover lifts for the card and avatars.

The assignee photos come from Unsplash; replace them with your team's own profile pictures.

Customization

  • Add or remove data-tkc-item checkboxes; the counter and progress bar recalculate automatically.
  • .tkc-card--done in style.css: change the outline color shown when the checklist is complete.
  • from-violet-500 to-fuchsia-500 on the left strip: match it to the column color, e.g. from-amber-400 to-orange-500 for "To do".
  • bg-violet-500 on .tkc-fill and accent-violet-600 on the checkboxes: change the progress and checkbox color (also update the class names in script.js).
  • -space-x-2.5 on .tkc-avatars: increase or reduce the avatar overlap; change h-9 w-9 on the images for larger photos.
  • bg-amber-50 text-amber-800 on the due date chip: switch to rose for overdue tasks.
  • data-tkc-due-in on the due date time: change 8 to move the due date closer or further from today.

Use cases

  • Project management apps: a board card with labels, ticket ID, due date and assignee avatars
  • Sprint planning views: tick checklist items and watch the progress bar and counter update
  • Task detail sidebars: show the full card with summary, comments and attachments counts
  • Team workspaces: overlapping assignee photos with a plus counter show who is on the task
  • Issue trackers: the card turns green with a done outline when every checklist step is complete

Accessibility

The card is an article labelled by its title. Labels and assignees are lists with aria-label, and each photo uses the person's name as alt text. The checklist is a fieldset with a hidden legend, native checkboxes with visible focus outlines, and a role="progressbar" with a live counter (aria-live="polite") that announces progress. Icon-only counts include screen reader text such as "8 comments". Hover transitions are disabled under prefers-reduced-motion: reduce.

Usage notes

Several cards can share one page; the script initializes each .tkc-card independently.

Kanban Task Card with Assignee Photos at a glance

Framework
Tailwind CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Tailwind CSS
Layout
Responsive, works on mobile
Category
Kanban Boards
License
Free for personal and commercial use

Questions about this template

Can I use the Kanban Task Card with Assignee Photos code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Tailwind CSS from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

The Tailwind browser build is for prototyping. In production, compile Tailwind with its CLI or your bundler.

Kanban Task Card with Assignee Photos – Tailwind CSS kanban boards component screenshot
Kanban Task Card with Assignee Photos · Tailwind CSS Kanban Boards

More Kanban Boards

Kanban Board with Bootstrap Cards – Bootstrap 5 kanban boards preview

Kanban Board with Bootstrap Cards

Bootstrap 5 kanban board with four columns, labelled task cards, drag and drop, a keyboard-friendly move menu, live counts and inline add-card forms.

Kanban Board with Drag and Drop – Tailwind CSS kanban boards preview

Kanban Board with Drag and Drop

Dark Tailwind CSS kanban board with three task columns, native drag and drop, keyboard move buttons, live counters and screen reader announcements.