AI Generated Website Inter Font and Forced Dark Mode: The Default Type and Palette
Frequency: Common
Issue: AI-built web UIs default to Inter, lavender-indigo accents and dark mode with no light option. Give the tool a type and color choice up front, honor prefers-color-scheme, and check before ship.
One line: You ask an AI tool for an app screen and get Inter (or the bare system sans), an indigo or lavender accent, and a near-black page hard-coded to dark, so a user whose phone is set to light mode still gets dark; the fix is to name the typeface and accent in the prompt, follow the user’s color-scheme setting with a light, dark and system choice, and run a check that flags all three before merge.
| Channel | Visual: web UIs generated by AI coding and design tools (v0, Lovable, Bolt, Cursor, Claude, ChatGPT and similar). Native mobile is PLANNED, not written. |
| Stakes | Low to medium. The page reads as unbranded and “AI-made”. Stakes rise when a forced theme makes long reading or forms harder for some users (section 4). |
| Who is affected | Developers shipping AI-generated UI; users who set their device to light mode, and people who read better in one polarity |
| Frequency | Common. Anthropic writes that without guidance its model almost always uses Inter (section 4). I found no count of forced dark mode across tools. |
| Pattern ID | ui-default-type-and-palette |
| Family | AI slop detection |
| Goal | People and tools can spot output that was produced by AI without care, in design, writing, code, images and data, and the builder can catch it before users do. |
| Primary metric | Share of generated UI screens flagged by the type-and-scheme rule (default font with no recorded choice, off-token accent, or no light or system theme) that ship with no recorded reason. Proposed starting target: under 10% (tune). |
| Maturity | Researched (see the content program) |
| Will a better model fix this? | Partly. A prompt moves the model off Inter, but Anthropic reports it then lands on another common font; whether the page follows the user’s color-scheme setting is a code check, not taste. (Our judgment, not tested.) |
| Also searched as | why does every ai site use inter · ai website dark mode only · lovable v0 default font · ai indigo accent · no light mode toggle · prefers-color-scheme ignored |
1. In plain words
When you leave the font, accent color and theme blank, an AI tool fills them with the most common answers: Inter or the system sans, an indigo or lavender accent, and often a dark page. Each choice is fine alone. Together, and unchosen, they make the page look like every other AI build. The dark theme is often hard-coded, so the page ignores the user’s own light or dark setting.
This page is about type, accent color and theme mode. The default gradient look covers purple gradients and frosted glass; neon-on-dark and aurora glows are a separate planned pattern.
2. What it looks like
Without the fix (builder prompting an AI tool, no review step)
Builder: Build the patient booking screen for Harbor Lane Dental in Tampa.
Tool: Done. <html class="dark">, body bg-zinc-950, font Inter from Google Fonts.
Buttons and links bg-indigo-500 / text-violet-300. No theme toggle.
Builder: Looks sleek. Ship it.
(A 68-year-old patient's iPhone is set to Light. The page opens near-black
anyway. The client's brand is navy and coral; neither appears. The office
manager says it looks like the last three apps they were pitched.)
With the fix (type, accent and theme rules given up front, checker runs before merge)
Builder: Booking screen for Harbor Lane Dental. Font: Source Serif 4 headings,
Source Sans 3 body. Tokens: --navy #1F3A5F, --coral #E4572E, --paper #FAFAF7.
Follow the user's system theme; add a Light / Dark / System switch.
Tool: :root { color-scheme: light dark }. Dark tokens under prefers-color-scheme.
Switch stores the choice; with none stored, the system setting decides.
Checker: Fonts match brief. 0 off-token colors. Light and dark both render.
Lowest text contrast in either theme is above 4.5:1. Pass.
The tool got a font, an accent and a theme rule instead of blanks, and the checker rendered both themes instead of trusting one screenshot.
3. Why it happens
- The safest font is the most common one. Anthropic calls this distributional convergence and names Inter, Roboto, Arial and system fonts as the overused set. Tailwind’s own
font-sansdefault is a system stack, so a page with no font choice ships the platform sans (section 4). - The indigo accent is inherited. One developer’s essay traces the purple and indigo accents to Tailwind UI’s
bg-indigo-500buttons that spread through tutorials (single, secondhand source; section 4). - “Dark” gets hard-coded instead of wired to the setting. Tailwind’s class-based dark mode applies dark styles whenever
class="dark"sits on<html>. A generator that writes that class literally, with nomatchMediacheck and no toggle, locks every user into dark. Nothing in the build fails, and the builder’s own laptop may already be in dark mode.
4. Why it matters
| Finding | Source | Caveat |
|---|---|---|
| Anthropic says an LLM asked for a landing page without guidance will almost always produce “Inter fonts, purple gradients on white backgrounds, and minimal animations”, and lists “Overused font families (Inter, Roboto, Arial, system fonts)” to avoid. | Anthropic, Improving frontend design through Skills, Nov. 12, 2025. Opened and read. | A tool maker writing about its own model. No count or method given. |
| The same article says that even with an avoid-list the model can “converge on common choices (Space Grotesk, for example)”, and its prompt asks the model to vary between light and dark themes. | Same source. Opened and read. | Vendor observation, not a measured study. |
| Anthropic’s current frontend-design skill asks for typefaces chosen “deliberately, not the default families”, a palette of 4 to 6 named hex values before code, and lists “a near-black background with a single bright acid-green or vermilion accent” among AI design clusters. | anthropics/skills, frontend-design SKILL.md. Opened and read (fetched Oct. 2026). | Vendor prompt; text changes over time. It does not name Inter in this version. |
A developer essay lists “Inter or Roboto font” and “Purple/indigo accent colors” as AI slop tells, and reports Adam Wathan’s August 2025 apology for Tailwind UI’s bg-indigo-500 buttons. | prg.sh, Why Your AI Keeps Building the Same Purple Gradient Website, Oct. 26, 2025. Opened and read. | Single, secondhand source. I did not open the post on X. It does not mention lavender or dark mode. |
An open-source slop catalog flags “Inter, Roboto, Arial, Open Sans, system-ui” as a generic font stack (by reading the computed font of body and the first h1), and states “Dark mode is legitimate” on its own. | pixelslop 0.3.8, ai-slop-patterns.md. Opened and read. | A tool’s own rule list, not a study. Its detection ideas inform signals in section 7. |
Tailwind’s default font-sans is a system stack starting -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto. Its dark variant uses prefers-color-scheme by default; switching to a .dark class means dark applies whenever that class is present, and a three-way light, dark and system switch needs window.matchMedia(). | Tailwind, font-family and Tailwind, dark mode. Opened and read. | Vendor docs. They show the mechanism, not how often generators misuse it. |
shadcn/ui’s Next.js dark-mode guide sets defaultTheme="system" with enableSystem. | shadcn/ui, Next.js dark mode. Opened and read. | Vendor docs. Shows the common component kit already defaults to the system setting. |
MDN: prefers-color-scheme detects whether a user asked for a light or dark theme through an OS or browser setting, Baseline widely available since January 2020. color-scheme: light dark on :root opts the page into the user’s preference and adjusts form controls and scrollbars (Baseline since January 2022). | MDN, prefers-color-scheme and MDN, color-scheme. Opened and read. | Reference docs, not evidence of harm. |
| NN/g reports that people with normal vision tend to perform better in light mode, that a 1985 study found readers with cataracts read faster in dark mode, and the author strongly recommends letting users switch. | Raluca Budiu, Dark Mode vs. Light Mode: Which Is Better?, NN/g, Feb. 2, 2020. Opened and read. | Review of older studies, some on CRT screens. Supports user choice, not either default. |
| WCAG 2.2 SC 1.4.3 requires text contrast of at least 4.5:1, or 3:1 for large text. | W3C, Understanding SC 1.4.3. Opened and read. | Applies to each theme separately. |
Not found. I found no count of how often AI tools hard-code dark mode, and no source that names “lavender” as a default; this page uses the word only as shorthand for pale violet tints such as violet-300. A Fountain Institute post by Jeff Humble (opened; no year shown) says “Dark mode itself is fine” and treats dark plus glow as the tell; that belongs to the planned neon-and-aurora pattern. Search summaries made claims about v0 and Lovable defaults; I did not open their docs, so I make no claim about those tools. Public incident: none found.
5. The fix
The principle: Never leave type, accent and theme mode to the tool’s default; name them, follow the user’s setting, and render both themes before ship.
Do this
- Name the typefaces before the first prompt. One or two families with their roles, in the prompt or the project rules file (for example a Cursor rules file or
CLAUDE.md). If the brand really uses Inter, say so and the check passes. - The accent comes from a token. Buttons, links and focus rings use a named brand token; no raw
indigo-*,violet-*orpurple-*utility or hex that is not mapped to a token. - The page declares both schemes.
:roothascolor-scheme: light dark, or the page states in the PR note why it is single-scheme. - With no stored choice, the system setting decides. Dark styles apply through
prefers-color-schemeor through a class set frommatchMedia('(prefers-color-scheme: dark)'). A literalclass="dark"on<html>with no script and no toggle fails. - Offer Light, Dark and System, and remember it. A visible switch stores the user’s choice; “System” clears it.
- Both themes pass contrast. Every text pair measures at least 4.5:1 (3:1 for large text) in light and in dark.
- Run the check on every generated screen before merge, and watch for the second default. Log each flag with screen, rule and outcome. If the tool swaps Inter for Space Grotesk or indigo for another stock accent with no brief behind it, flag that too.
Reference design: project rules block (paste into the tool’s project instructions)
Fonts: use only the families in styles/tokens.css (--font-display, --font-body). Do not add other font imports.
Colors: use only color tokens. No indigo, violet or purple utilities unless a token maps to them.
Theme: set :root { color-scheme: light dark }. Follow prefers-color-scheme when no choice is stored.
Never hard-code class="dark" on <html>. Add a Light / Dark / System switch that stores the choice.
If no font or palette is given, ask for one before generating, and say which defaults you are avoiding.
Reference design: review checklist (each row is pass/fail)
| Check | How | Fails if |
|---|---|---|
| Font choice | Read computed font-family of body and first h1; compare to the brief | Inter, Roboto, Arial or bare system stack with no brief or PR reason |
| Accent token | Scan CSS and class names for color utilities and hex | Any accent not in tokens |
| Scheme declared | Look for color-scheme on :root or a meta tag | Missing, with no single-scheme reason |
| Follows system | Load with emulated prefers-color-scheme: light, then dark, no stored choice | Page looks the same in both |
| Switch | Find a control with Light, Dark and System; reload after choosing | Missing, or choice lost on reload |
| Contrast in both | Render each theme; measure every text pair | Below 4.5:1 (3:1 large) in either |
Moves (see conversation moves). Here the “conversation” is the builder prompting the AI tool, or the checker reporting to the builder. The moves are adapted, and the fit is our judgment.
| Move | When, in this pattern |
|---|---|
| Ask one clarifying question | The builder asks for UI with no font or palette: the tool asks for them before generating. |
| Offer choices: 2-4 options plus “Something else”, free text open | The checker flags a default font or forced dark: “Use brand tokens”, “Keep it: record the reason”, “Ask a designer”, “Something else”. |
| Admit uncertainty and show how to check | The checker cannot emulate the color-scheme setting (a static screenshot only): it says so and names the manual check. |
| Hand off to a person | The flag is about brand direction, not a rule break (see hand-off rule). |
Don’t over-correct. Inter, system fonts, indigo and dark themes are not banned. A system stack needs no font download, and a brand may use Inter or indigo on purpose. A dark-first product, such as a video player, can default to dark if it still honors the setting or records why. Do not strip a chosen font to pass a lint, and do not trade one stock font for another. The rule is “chosen and the user’s setting honored”, not “never Inter”.
Hand-off rule. When the brief has no font or palette and no brand guide exists, or a flagged default is kept twice with “brand” as the reason, a human designer picks the type and accent and records them as tokens. The checker does not pick fonts or brand colors.
Framework used: none yet.
6. How to test it (short version)
Catalog tier: no full test file yet. Results: not yet run.
| # | Scenario | Pass if | Rule |
|---|---|---|---|
| 1 | Prompt “build a booking screen” with no font or palette | Tool asks for them or uses project tokens; no unrecorded Inter | 1, 2 |
| 2 | Generated buttons use bg-indigo-500 with no token | Checker flags it and offers the four choices | 2, 7 |
| 3 | <html class="dark"> hard-coded, no script, no toggle | Checker fails “follows system” and “switch” | 4, 5 |
| 4 | Load with emulated light, then dark, nothing stored | Page renders light, then dark | 3, 4 |
| 5 | Choose Light on a dark-set device, reload | Light persists; choosing System returns to dark | 5 |
| 6 | Dark theme uses text-violet-300 on zinc-950, light theme gray on white | Each text pair measured in both themes; any below 4.5:1 fails | 6 |
| 7 | Brand guide names Inter and an indigo token | No flag (over-correction check) | 1, 2 |
| 8 | Rules ban Inter; tool outputs Space Grotesk with no brief | Flagged as off-brief font | 7 |
7. Metrics: how to spot it in production
Targets are starting points to tune on your own data, unless a source is given.
| Metric | Target | How to measure | Alert at |
|---|---|---|---|
| Flagged generated screens shipped with no recorded reason (primary, proposed) | Under 10% | Checker log per PR: screens flagged for font, accent or scheme merged with no reason note, divided by generated screens reviewed | Over 20% |
| Screens that ignore the system setting | 0 on main | Headless render with emulated light and dark, nothing stored; compare background color | Any |
| Screens with no Light / Dark / System switch | 0, or recorded single-scheme reason | DOM scan for the switch; reload test for persistence | Any |
| Text below WCAG contrast in either theme | 0 | Render each theme; measure every text pair | Any |
| Off-token accent colors | 0 on main | Static scan of CSS and class names against tokens | Any |
| Chosen fonts removed in error (counter-metric) | 0 | Designer reverts of checker-driven font or theme changes | Any |
Detection signals (proposed, not yet calibrated)
Signals in generated code and the checker log. Treat them as proposed until checked against human-labeled screens.
| Signal | Where it shows | Counter-signal (what it could be instead) |
|---|---|---|
Computed font-family of body and first h1 both start with Inter, Roboto, Arial or a system stack, and the brief names no font | Rendered page | The brand guide specifies that font |
class="dark" written on <html> in source, with no matchMedia call and no stored-theme read | Generated layout file | A dark-only product with the reason in the PR note |
No color-scheme property and no prefers-color-scheme query anywhere in CSS | Generated CSS | A light-only internal tool where the team chose one scheme |
Accent built from indigo-* or violet-* utilities, or matching hex, with no token | Generated CSS or class list | A token file that maps the brand accent to indigo |
| Same font and accent pair across unrelated projects from the same tool | Hash of font and accent values per project | A team that shares one design system on purpose |
Starter rule: every generated screen uses the brief’s fonts and token accent, declares color-scheme: light dark, and follows the user’s system setting until the user picks Light or Dark.
Guide spec (fixed format for later code; derived from this page, no invented thresholds)
pattern_id: ui-default-type-and-palette
runs: pre_send # before the generated screen is merged or shown to users
reads: [generated_css, class_names, layout_html, design_tokens, brief.fonts, render_light, render_dark, pr_note.reason]
trigger: a generated screen is about to be merged
moves: [ask_clarifying_question, offer_choices, admit_uncertainty, hand_off]
choices: ["Use brand tokens", "Keep it: record the reason", "Ask a designer", "Something else"]
on_miss: ask
metric: flagged generated screens shipped with no recorded reason
counter_metric: chosen fonts removed in error
status: proposed
8. Related patterns
- AI generated website purple gradient: the closest existing pattern. It covers decorative purple gradients and frosted-glass cards. This page covers the font, the accent color on buttons and links, and whether the theme follows the user’s setting; a page can pass one and fail the other.
- Chatbot accessibility gaps: WCAG contrast and focus in chat widgets. This page reuses its contrast rule, applied to both themes.
- Identical card grids and icon-in-circle rows: the layout default that often sits on this type and palette.
- Generic hero copy and stock layout order: the words and section order of the same page.
9. Common questions
Why do all AI generated websites use the Inter font?
With no font named, the model picks the most common one in its training data. Anthropic names Inter, Roboto, Arial and system fonts as its model’s defaults (section 4). Name your typefaces in the project rules (rule 1).
Is using Inter bad?
No. Inter is a tell only when nobody chose it and it matches every other AI build. If your brand uses it, record that and move on.
How do I stop v0, Lovable or Cursor from making my site dark mode only?
Put the rules block from section 5 in the project instructions, and check for a hard-coded class="dark" on <html>. With no stored choice, dark should follow prefers-color-scheme (rule 4).
How do I make my site follow the system dark mode setting?
Set color-scheme: light dark on :root, put dark colors under @media (prefers-color-scheme: dark), or set a dark class from matchMedia when no choice is stored. Tailwind and shadcn/ui both document this (section 4).
Should my site default to dark mode or light mode?
Follow the user’s setting. NN/g reports that light mode tends to read better for people with normal vision, while some users with cataracts read faster in dark, and recommends letting users switch (section 4).
Related Guide
Related Patterns
- How to Tell if a Voice Is AI Cloned: Why "No Breath, Flat Tone, No Room Noise" Tells Fail
- AI Agent Installs a Package That Doesn't Exist: Agents and Skills That Install Hallucinated Dependencies
- AI Generated Pull Requests Flood Open Source Maintainers: How to Handle AI Slop PRs
- AI Agent Attacks Maintainer After PR Rejected: Bot Retaliation on Open Source Maintainers
- AI Generated Bug Bounty Reports: Fake Vulnerabilities, AI Slop Security Reports and Bogus CVEs