news

Why Does AI Love Purple? A CSS Syntax Sparks a "Global Design Convergence" Phenomenon

August 10, 2025
Updated Aug 10
7 min read

Have you ever wondered why the buttons on many AI-generated web interfaces are always that familiar purple? It all started with an apology tweet from the founder of Tailwind CSS. This article delves into this interesting phenomenon, revealing how a small piece of code influenced global AI design trends and the important lesson it teaches us about AI bias.


Have you ever been using an AI tool to generate a webpage or application interface (UI) and had a thought flash through your mind: “Huh? Why this purple button again?” If so, congratulations, you’re not the only one. This phenomenon is so common that even the original “culprit” has come forward to apologize.

This is no joke.

On August 7, 2025, Adam Wathan, co-founder of the popular front-end framework Tailwind CSS, posted a tweet on the social media platform X that sparked a heated discussion:

“I’d like to formally apologize for making every button in Tailwind UI bg-indigo-500 five years ago, which has resulted in every AI-generated interface on planet earth also ending up indigo.”

A seemingly lighthearted apology unexpectedly unveiled a technological marvel hidden deep within code and algorithms: the astonishing “purple preference” in AI design, and the profound insights it offers about training data and bias.

The Beginning of It All: The “Culprit” bg-indigo-500

To understand the origin of this “purple storm,” we need to go back five years and talk about Tailwind CSS, a tool that has changed the workflow of many front-end developers.

Tailwind CSS is a “utility-first” CSS framework. What does that mean? Simply put, unlike traditional frameworks like Bootstrap that provide ready-made components (like buttons and cards), it provides a large number of highly descriptive small classes that allow developers to quickly assemble their desired styles, much like building with LEGOs.

For example, to create a button with an indigo background, white text, and padding in Tailwind, you just need to write:

  • bg-indigo-500: This is the star of our story, a medium-dark indigo background.
  • text-white: Sets the text color to white.
  • p-4: Gives it a moderately sized padding.

This naming convention is intuitive and predictable, allowing developers to avoid switching back and forth between CSS and HTML files, which greatly improves development efficiency. It is because of this clarity and convenience that Tailwind CSS quickly gained popularity in the global developer community, becoming the foundation for countless websites and projects.

Back then, when Adam Wathan and his team were creating the official UI component library, Tailwind UI, they extensively used bg-indigo-500 as the default or example color for interactive elements like buttons and links to showcase the framework’s power. This decision might have been a simple aesthetic choice at the time—indigo looks both professional and not too dull. They never imagined that this unintentional act would plant an unexpected seed for the AI of a few years later.

The AI’s Way of Learning: From Imitation to “Mental Set”

So, how did a CSS framework’s default color cross the chasm to become the “standard equipment” of AI design?

The answer lies in how AI learns.

Today’s generative AI models, such as ChatGPT, Claude, or Gemini, are trained by learning from billions of publicly available data points on the internet. This data includes articles, books, images, and, of course, a massive amount of code. Code hosting platforms like GitHub, as well as countless tech blogs and tutorial documents, have become the AI’s “textbooks.”

Due to the immense success of Tailwind CSS, the internet is flooded with code examples using bg-indigo-500. Whenever a tutorial shows how to create a button, or an open-source project shares its UI code, the frequency of bg-indigo-500’s appearance is far higher than other colors.

In its learning process, AI doesn’t truly “understand” design or aesthetics; it’s more like a super-powerful statistician. When you ask it to “generate the code for a button,” it searches its vast database for the most common and relevant patterns. As a result, it discovers that the concept of a “button” has a very high correlation with the class name bg-indigo-500.

Thus, the AI comes to a simple conclusion: humans seem to really like using indigo for buttons. Therefore, when it generates a UI, it will prioritize this “safest,” statistically most correct option. This isn’t the AI having its own aesthetic preference, but rather it faithfully reflecting the trends in its training data.

Seeing AI Bias Through the Purple Button: A Harmless Wake-Up Call

While the “AI purple button” incident may sound a bit comical, it’s actually an excellent case study for explaining a much more serious issue: AI Bias.

This phenomenon clearly tells us: The quality of an AI’s output is entirely dependent on the quality and diversity of its input data.

If a harmless button color can be endlessly replicated by AI due to data homogeneity, then in more critical areas, this bias could have severe consequences. Imagine:

  • Recruitment: If the resume data used to train an AI mostly comes from successful cases of a specific gender or ethnicity, the AI might unconsciously filter out qualified candidates from other backgrounds.
  • Financial Credit: If historical data shows a higher loan default rate in a certain region, the AI might be biased against all applicants from that region, even if the individual applicant has good credit.
  • Medical Diagnosis: If the training data for medical imaging is primarily from a specific race, the AI’s accuracy in diagnosing diseases in other races may decrease.

From this perspective, the ubiquitous purple button is like a harmless yet incredibly clear alarm bell. It reminds all developers, designers, and AI users that every digital footprint we leave on the internet today could become learning material for future AI, and invisibly shape its “worldview.”

Frequently Asked Questions (FAQ)

Q1: So, is Tailwind CSS a bad tool? Should I stop using it?

Not at all! Tailwind CSS is still an excellent and highly efficient front-end framework. This phenomenon is not the fault of the framework itself but highlights the characteristics of the AI learning model. You can absolutely continue to use it, but at the same time, be aware that you need your own judgment when using AI for development assistance.

Q2: Is this “purple preference” a real problem?

For most projects, this is more of an interesting industry topic than a serious technical issue. Its greatest value lies in providing a simple and easy-to-understand example of what “data bias” is and how it affects AI behavior.

Q3: As a developer or designer, how can I avoid letting AI generate cookie-cutter designs?

The key is to provide more specific prompts. Instead of simply saying “give me a button,” try a more detailed description:

  • “Design a primary button that matches our brand’s green color.”
  • “Generate a secondary button with a minimalist style, using a gray color scheme.”
  • “Please use a warm orange color palette to create a call-to-action button with rounded corners.”

Furthermore, the best approach is to use AI as an assistant to speed up work, not as the final decision-maker. Use AI to quickly generate the basic structure, and then have human designers use their expertise and creativity to fine-tune and optimize, injecting a unique brand soul.

Conclusion: We Are All Shaping the Future of AI

Adam Wathan’s apology gives us a glimpse into a fascinating and profound aspect of modern technological development. A small design decision, propagated through the internet and learned by AI, eventually evolved into a global design trend.

This “indigo storm” reminds us that AI is both a mirror and a sponge. It reflects our collective behavior patterns and absorbs all the biases in our data. While we enjoy the convenience that AI brings, we also bear the responsibility of providing high-quality, diverse data.

Next time you see an AI generate another purple button, you can smile knowingly. Because you already know that it’s not just a color, but an interesting story about code, data, and the future.

Share on:
Featured Partners

© 2026 Communeify. All rights reserved.