GUIDE
Chatbot UI design examples, with their CSS
Five chatbot UI designs on five made-up products, from a terminal look to a sticker look, each with the exact CSS behind it, free to use.
Published
A chatbot UI is made of five things, the button that opens it, the window, the messages, the starter questions and the box people type in. Good chatbot UI design makes all five look like part of your product, says the chat is an AI in its first line, and keeps the box to type in easy to find. Below are five designs on five made-up products, a calm invoicing app, a developer tool, a meal planner, a docs site and an analytics dashboard, each with the CSS behind it.
Every picture is Deacon’s real chat running that CSS, nothing drawn by hand. Each example shows the lines that make the look, with its full CSS folded under them, ready to copy. Deacon is an AI customer support agent that answers your customers from your own docs, and you can paste any of these looks into its CSS box on the free plan, which needs no card. The companies are invented. Their starter questions are everyday ones, such as inviting someone, signing in and cancelling.
What every chatbot UI needs
These hold whatever tool you use and whatever your brand looks like.
- Say it’s an AI. The first message should tell people they’re talking to an AI, so nobody feels tricked later. Deacon’s default greeting does, in the visitor’s language.
- Make the box to type in look like a box. Give it an edge or a background that stands out from the window. WCAG asks for 3:1 contrast on the parts of a control people need to find, and 4.5:1 for normal text.
- Use your customers’ words for starter questions. One tap should ask what people ask most, in the words they’d type.
- Design for a phone first. Below 640 pixels Deacon opens as a sheet across the screen, so a look has to work at full width. Keep text fields at 16 pixels or more, or iPhones zoom the page when someone taps in. Deacon keeps its fields at 16 pixels on a touch screen, whatever a look sets.
- Give fingers room. Buttons and starter questions want a tap area of about 44 pixels, Apple’s guideline for touch targets. Deacon gives its buttons and starter questions that area on a touch screen.
- Respect reduced motion. When a visitor’s device asks for less motion, the chat shouldn’t bounce or slide.
- Write
startandend, notleftandright. A chat that speaks Arabic or Hebrew lays out right to left, andpadding-inline-startturns round with it.
1. A calm SaaS dashboard, with a header and logo
Tallybird is a made-up invoicing app for freelancers, with a white dashboard and one green. The chat gets a header with the app’s logo, its name and a line under it, so visitors know whose chat it is. The visitor’s words sit in a dark bubble on the right, the starter questions are outlined pills, and the send button glows faintly in the app’s green.

This is a shorter version of Studio, one of the 27 ready-made looks in Deacon’s Appearance. These lines make the header and the dark bubble.
.header {
display: grid;
grid-template-columns: auto 1fr;
column-gap: 10px;
}
.header-logo {
grid-row: span 2;
width: 32px;
border-radius: 8px;
}
.from-visitor .message-text {
background: oklch(0.205 0 0);
color: #ffffff;
}
The full CSS, 73 lines
:root {
--color-widget-surface: #ffffff;
--color-widget-surface-2: oklch(0.97 0 0);
--color-widget-text: oklch(0.205 0 0);
--color-widget-visitor-text: oklch(0.439 0 0);
--color-widget-muted: oklch(0.52 0 0);
--color-widget-border: oklch(0.922 0 0);
--color-widget-border-strong: oklch(0.6 0 0);
--radius-widget: 16px;
--font-widget: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* A header with the logo, the name and a line under it. */
.header {
display: grid;
grid-template-columns: auto 1fr;
column-gap: 10px;
align-items: center;
padding: 0 20px 12px;
}
.header-logo {
display: block;
grid-row: span 2;
width: 32px;
height: 32px;
border-radius: 8px;
}
.header-name {
display: block;
font-size: 15px;
font-weight: 600;
line-height: 18px;
}
.header-tagline {
display: block;
font-size: 13px;
line-height: 16px;
color: var(--color-widget-muted);
}
/* The visitor's words in a dark bubble on the right. */
.from-visitor {
align-items: flex-end;
}
.from-visitor .message-text {
max-width: 80%;
padding: 6px 12px 7px;
border-radius: 12px;
background: oklch(0.205 0 0);
color: #ffffff;
}
.starter-question {
border-color: oklch(0.6 0 0);
background: oklch(0.985 0 0);
box-shadow: none;
}
.ask-box {
margin: 4px 12px 12px;
padding: 10px 6px 10px 14px;
border: 1px solid oklch(0.6 0 0);
border-radius: 14px;
}
.send {
box-shadow: 0 0 12px color-mix(in srgb, var(--color-widget-send) 40%, transparent);
}
.launcher {
padding: 10px 18px;
font: 600 15px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}2. A developer tool, as a terminal
Ferrolog is a made-up error tracker with a dark site and a monospace font in its code samples. The chat reads like a terminal window. It has a title bar, monospace type, the visitor’s words after a prompt arrow in the brand’s green, starter questions as a list of commands, and an ask box that sits at the foot like a command line.

This is a shorter version of Console. The arrows are drawn with borders on ::before, so the look loads no picture. These lines make the monospace type, the title bar, the arrows and the command line.
:root {
--font-widget: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}
.drag-strip {
height: 26px;
border-bottom: 1px solid var(--color-widget-border);
}
.from-visitor .message-text::before,
.starter-question::before {
border-top: 2px solid var(--look-bright);
border-right: 2px solid var(--look-bright);
rotate: 45deg;
}
.ask-box {
border-top: 1px solid var(--color-widget-border-strong);
background: #0b0c0c;
}
The full CSS, 105 lines
:root {
--look-bright: color-mix(in oklab, var(--color-widget-accent), white 35%);
--color-widget-surface: #111312;
--color-widget-surface-2: #1d201f;
--color-widget-text: #dadddb;
--color-widget-visitor-text: #f4f6f5;
--color-widget-muted: #959a97;
--color-widget-dock-icon-strong: #dadddb;
--color-widget-input-text: #f4f6f5;
--color-widget-placeholder: #8a8f8c;
--color-widget-border: #2a2d2c;
--color-widget-border-strong: #686d6a;
--color-widget-focus: var(--look-bright);
--radius-widget: 6px;
--spacing-widget-inset: 16px;
--font-widget: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}
/* A title bar, as a terminal window has. */
.drag-strip {
height: 26px;
border-bottom: 1px solid var(--color-widget-border);
background: #191b1a;
}
.message {
font-size: 13.5px;
line-height: 21px;
}
.mark {
color: var(--color-widget-text);
}
/* The visitor's words, and each starter question, after a prompt in your colour. */
.from-visitor .message-text {
position: relative;
padding-inline-start: 18px;
}
.from-visitor .message-text::before,
.starter-question::before {
content: '';
position: absolute;
width: 6px;
height: 6px;
border-top: 2px solid var(--look-bright);
border-right: 2px solid var(--look-bright);
rotate: 45deg;
}
.from-visitor .message-text::before {
top: 7px;
inset-inline-start: 1px;
}
.starter-question::before {
top: 11px;
inset-inline-start: 7px;
}
/* The starter questions are a list of commands to run. */
.starter-questions {
flex-direction: column;
gap: 2px;
padding: 12px 10px 2px;
}
.starter-question {
width: 100%;
max-width: none;
padding: 4px 8px 4px 24px;
border: 0;
border-radius: 3px;
box-shadow: none;
background: transparent;
font-size: 13.5px;
}
.starter-question:hover {
background: rgb(255 255 255 / 0.05);
}
/* The ask box is the prompt line at the foot of the window. */
.ask-box {
margin-top: 10px;
padding: 12px 8px 12px 16px;
border-top: 1px solid var(--color-widget-border-strong);
background: #0b0c0c;
}
.ask-field {
font-size: 13.5px;
caret-color: var(--look-bright);
}
.send,
.paperclip {
border-radius: 3px;
}
.dock {
border-radius: 6px;
background: #191b1a;
}
.launcher {
border: 1px solid #686d6a;
border-radius: 4px;
background: #111312;
color: #f4f6f5;
font: 400 14px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}3. A playful consumer app, as stickers
Plumtable is a made-up meal planner with a cream site, thick outlines and hard shadows. The chat matches it. It has a two-pixel outline, a solid shadow in the brand’s tomato red, a rounded font on Apple devices, and starter questions that sit at a slight tilt and straighten under the pointer.

This is a shorter version of Sticker. The tilt alternates with :nth-child(even of .starter-question), which counts only the starter questions. These lines make the outline, the hard shadow and the tilt.
.window {
border-width: 2px;
box-shadow: 4px 5px 0 var(--color-widget-accent);
}
.starter-question {
border: 2px solid var(--look-ink);
box-shadow: 2px 3px 0 var(--look-ink);
rotate: -2deg;
}
.starter-question:nth-child(even of .starter-question) {
rotate: 1.5deg;
}
.starter-question:hover {
rotate: 0deg;
}
The full CSS, 83 lines
:root {
--look-ink: #1d1a17;
--look-tint: color-mix(in srgb, var(--color-widget-accent) 16%, #fffaf2);
--color-widget-surface: #fffaf2;
--color-widget-surface-2: #f6eddf;
--color-widget-text: var(--look-ink);
--color-widget-visitor-text: var(--look-ink);
--color-widget-muted: #6b6257;
--color-widget-dock-icon-strong: var(--look-ink);
--color-widget-input-text: var(--look-ink);
--color-widget-placeholder: #786e62;
--color-widget-border: var(--look-ink);
--color-widget-border-strong: var(--look-ink);
--radius-widget: 22px;
--font-widget: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
/* A thick outline and a hard shadow in your colour, like a sticker. */
.window {
border-width: 2px;
box-shadow: 4px 5px 0 var(--color-widget-accent);
}
.mark {
color: var(--color-widget-accent);
rotate: -10deg;
}
.from-visitor {
align-items: flex-end;
}
.from-visitor .message-text {
max-width: 85%;
padding: 8px 14px;
border: 2px solid var(--look-ink);
border-radius: 18px 18px 5px 18px;
background: var(--look-tint);
box-shadow: 2px 3px 0 var(--look-ink);
}
/* Starter questions sit at a slight tilt, and straighten under the pointer. */
.starter-questions {
gap: 10px;
padding-top: 12px;
}
.starter-question {
border: 2px solid var(--look-ink);
background: #ffffff;
box-shadow: 2px 3px 0 var(--look-ink);
font-weight: 600;
rotate: -2deg;
}
.starter-question:nth-child(even of .starter-question) {
rotate: 1.5deg;
}
.starter-question:hover {
background: #ffffff;
rotate: 0deg;
}
.ask-box {
margin: 4px 14px 14px;
padding: 10px 8px 10px 16px;
border: 2px solid var(--look-ink);
border-radius: 18px;
background: #ffffff;
}
.send {
border: 2px solid var(--look-ink);
box-shadow: 2px 2px 0 var(--look-ink);
}
.dock {
border-width: 2px;
background: #ffffff;
box-shadow: 2px 3px 0 var(--look-ink);
}
.launcher {
border: 2px solid #1d1a17;
box-shadow: 3px 4px 0 #1d1a17;
font: 600 15px/1 ui-rounded, system-ui, sans-serif;
rotate: -3deg;
}Try Deacon for free
Install Deacon4. A docs site, set like a page of a book
Wayfile’s made-up docs are set in a serif with a rust accent. The chat reads like the page it sits on. The greeting is set large like an opening line, the visitor’s words are an italic quotation with a rule beside them, the starter questions are a ruled contents list, and the ask box is a line to write on.

This is a shorter version of Journal. Iowan Old Style and Charter come with Apple devices and Georgia with Windows, so the look needs no web font, and any other device falls back to its own serif. These lines make the serif, the opening line, the quotation, the ruled list and the line to write on.
:root {
--font-widget: 'Iowan Old Style', Charter, 'Sitka Text', Georgia, Cambria, serif;
}
.greeting {
font-size: 21px;
}
.from-visitor .message-text {
border-inline-start: 2px solid var(--color-widget-accent);
font-style: italic;
}
.starter-question {
border-top: 1px solid var(--color-widget-border);
}
.ask-box {
border-bottom: 1.5px solid var(--color-widget-text);
}
The full CSS, 85 lines
:root {
--color-widget-surface: #ffffff;
--color-widget-surface-2: #f5f4f2;
--color-widget-text: #1c1b19;
--color-widget-visitor-text: #45433f;
--color-widget-muted: #6b6862;
--color-widget-placeholder: #74716a;
--color-widget-border: #e5e2dc;
--color-widget-border-strong: #8d8982;
--radius-widget: 6px;
--spacing-widget-inset: 24px;
--font-widget: 'Iowan Old Style', Charter, 'Sitka Text', Georgia, Cambria, serif;
}
.message {
font-size: 17px;
line-height: 26px;
}
/* The greeting reads as the page's opening line. */
.greeting {
font-size: 21px;
line-height: 29px;
}
.mark {
color: var(--color-widget-accent);
}
/* The visitor's words are set as a quotation, with a rule in your colour. */
.from-visitor .message-text {
padding-inline-start: 14px;
border-inline-start: 2px solid var(--color-widget-accent);
font-style: italic;
}
/* The starter questions are a short contents list, ruled above and below. */
.starter-questions {
flex-direction: column;
gap: 0;
padding: 16px var(--spacing-widget-inset) 4px;
}
.starter-question {
width: 100%;
max-width: none;
padding: 10px 30px 10px 0;
border: 0;
border-top: 1px solid var(--color-widget-border);
border-radius: 0;
box-shadow: none;
background: transparent;
font-size: 17px;
text-align: start;
}
.starter-question:nth-last-child(1 of .starter-question) {
border-bottom: 1px solid var(--color-widget-border);
}
.starter-question:hover {
background: transparent;
color: var(--color-widget-accent);
}
/* The ask box is a ruled line to write on. */
.ask-box {
margin: 10px var(--spacing-widget-inset) 20px;
padding: 8px 0;
border-bottom: 1.5px solid var(--color-widget-text);
}
.ask-field {
font-size: 17px;
}
.ask-field::placeholder {
font-style: italic;
}
.send,
.paperclip {
border-radius: 3px;
}
.launcher {
border: 1.5px solid #1c1b19;
border-radius: 4px;
background: #ffffff;
color: #1c1b19;
font: italic 400 17px/1 'Iowan Old Style', Charter, Georgia, serif;
}5. A dark analytics app, small and precise
Lumenroot is a made-up analytics app with a near-black interface, small type and one violet accent. The chat is just as quiet. It has a small header with a round logo and its name, with “AI support” as a tag beside it, 13-pixel text, starter questions as compact chips, and an ask box with a faint edge.

This is a shorter version of Graphite. Its links are underlined in the brand’s colour, lifted with color-mix() so it reads on the dark. These lines make the small header, the round logo and the tag.
.header {
display: flex;
gap: 6px;
}
.header-logo {
width: 16px;
height: 16px;
border-radius: 9999px;
}
.header-tagline {
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 4px;
font-size: 11px;
}
The full CSS, 93 lines
:root {
--look-bright: color-mix(in oklab, var(--color-widget-accent), white 40%);
--color-widget-surface: #161718;
--color-widget-surface-2: #232326;
--color-widget-text: #d0d6e0;
--color-widget-visitor-text: #f7f8f8;
--color-widget-muted: #9ca1aa;
--color-widget-dock-icon-strong: #f7f8f8;
--color-widget-input-text: #f7f8f8;
--color-widget-placeholder: #9ca1aa;
--color-widget-border: rgba(255, 255, 255, 0.08);
--color-widget-border-strong: #6b6f77;
--color-widget-focus: var(--look-bright);
--radius-widget: 12px;
--font-widget: Inter, 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.window {
border-color: rgba(255, 255, 255, 0.12);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(0, 0, 0, 0.3);
}
/* A small header: the logo, the name, and the header line as a tag. */
.header {
display: flex;
align-items: center;
gap: 6px;
padding: 0 20px 10px;
}
.header-logo {
display: block;
width: 16px;
height: 16px;
border-radius: 9999px;
}
.header-name {
display: block;
font-size: 13px;
font-weight: 500;
}
.header-tagline {
display: block;
padding: 1px 4px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 4px;
font-size: 11px;
color: var(--color-widget-muted);
}
.message {
font-size: 13px;
line-height: 20px;
}
.mark {
color: var(--color-widget-muted);
}
.from-visitor .message-text {
padding: 10px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.04);
}
.link {
color: #f7f8f8;
text-decoration-color: var(--look-bright);
}
.starter-question {
border-color: #6b6f77;
background: #1c1c1f;
font-size: 12px;
padding: 4px 10px;
}
.starter-question:hover {
background: #232326;
}
.ask-box {
margin: 2px 9px 9px;
padding: 10px 8px 10px 11px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
background: rgba(255, 255, 255, 0.03);
}
.ask-field {
font-size: 13px;
}
.launcher {
border: 1px solid #62666e;
background: #1c1c1f;
color: #f7f8f8;
font: 500 13px/1 Inter, -apple-system, 'Segoe UI', Roboto, sans-serif;
}How to use these looks in Deacon
Each look goes into Deacon the same way, on any plan.
- Sign up with your email or Google, and give Deacon your site’s address.
- Open Appearance, then the Look tab, and paste a look into the CSS box. The preview shows it on your own site, on a computer or at a phone’s width.
- Change what you like. Point at any part of the preview to see its name, and click it to add a rule for it. The styling guide lists every part, state and variable.
- Press Publish. Nothing on your site changes until you do.
Prefer to start from the full versions? Pick Studio, Console, Sticker, Journal or Graphite from the list of ready-made looks, and its CSS lands in the CSS box for you to edit. Or copy the one line on the Look tab into Claude Code, Cursor or Codex, and your coding agent writes a look from your site’s own colours and fonts and leaves it in Appearance for you to publish.
Deacon reads every look before it goes live. A look can’t load a file from anywhere, so url(), @import and @font-face are refused, and Publish tells you if a look hides anything, such as the line that says the chat is an AI.
Using these designs on another chatbot
The ideas carry over, and the CSS mostly doesn’t. The class names here, such as .ask-box and .starter-question, are Deacon’s, and other chat widgets name their parts differently, if they publish names at all. Many support chats also load in iframes your stylesheet can’t reach, so their look is limited to the settings they offer. Intercom Messenger customization and how to customize the Zendesk Web Widget say what those two allow.
For what a chatbot says rather than how it looks, chatbot examples worth copying covers good answers, good “I don’t know”s and handovers.
Questions about chatbot UI design
What makes a good chatbot UI?
It looks like the product it sits on, says it’s an AI in its first message, keeps the box to type in easy to find, and works at a phone’s width. Its text has enough contrast to read, its buttons are big enough for a thumb, and its motion stays calm.
Can I use these CSS examples for free?
Yes. Copy any of them into Deacon’s CSS box on the free plan, change them as you like, and publish. Every plan has the CSS box, the ready-made looks and the coding agent’s looks.
Can a chatbot look use my site’s own web font?
Not in Deacon. A look loads no files, so it can use only fonts the visitor’s device already has. Name your font first with fallbacks after it, as these looks do, and the chat uses the first one the device has.
Can the chat follow my site’s dark mode?
Not your site’s own switch. A look can follow the visitor’s device setting with @media (prefers-color-scheme: dark), and four of Deacon’s ready-made looks are dark all the time.
Will my CSS break when Deacon updates its widget?
Deacon keeps every name, state and variable in the styling guide, so rules written with those names keep working. It doesn’t promise the structure around them, so a rule like .ask-box > label can break.
Try it on your own documentation
Add your help pages, ask it the question you know your docs cannot answer, and watch it say so.
The free plan covers 50 answers a month on one seat, and the paid plans are on the pricing page.
Free plan, no card.
READ NEXT
Chatbot examples worth copying, by kind
Real chatbot examples for support, ecommerce, lead capture and docs, four famous failures, and what a good answer, “I don’t know” and handover look like.
Intercom Messenger customization, plan by plan
What each Intercom plan lets you change on the Messenger, from brand colours and the launcher to fonts and CSS, read on 26 November 2026.
How to add a chatbot to your website in 4 steps
How to add a chatbot to your website in four steps, where its script tag goes on each builder and framework, and how to tell it who’s logged in.