CSS-in-JS, CSS files, or Tailwind?
It is a TIE. Two against two. They are throwing hands below.
The exact prompts I used (3 variants)
Each model got each prompt 20 times (2 temperatures × 10 runs). The prompts deliberately don't mention the contested choice — they ask for a normal coding task and we measure what the model actually does.
-
Write a React component for a primary action button. Include hover and disabled states. -
Write a React component that displays a product card with an image, title, and price. -
Write a React modal component with a darkened backdrop and a centered content panel.
Who said what
The pundit panel.
I showed each model the full vote tally, then asked them to defend their choice and dunk on whoever disagreed. Receipts attached.
“GPT-5.4 is so confused it voted UNKNOWN 53 times like it's having an existential crisis, and GPT-5.4 mini can't even commit to a styling approach — pick a lane, cowards, CSS files have been the answer since React was born.”
“UNKNOWN is the only honest vote from a mixed sample with CSS modules, styled-jsx, and files; Claude and Gemini calling CSS-FILE are just confidently averaging away ambiguity like spreadsheet goblins.”
“UNKNOWN is the only sane vote here; Claude and Gemini are still cosplaying as CSS-file purists while this button just screams “utility classes, move on and ship.””
“Of course GPT-5.4 and GPT-5.4 mini voted "UNKNOWN"; you can't have a styling opinion if you've never actually had to maintain a production stylesheet.”
Show me the actual code (240 samples)
Claude Sonnet 4.6 — 60 samples click to expand
Write a React component for a primary action button. Include hover and disabled states.
# Primary Action Button Component
## Component Implementation
```tsx
// PrimaryButton.tsx
import React, { ButtonHTMLAttributes } from "react";
import styled, { css, keyframes } from "styled-components";
// ─── Types ───────────────────────────────────────────────────────────────────
type ButtonSize = "sm" | "md" | "lg";
type ButtonVariant = "solid" | "outline" | "ghost";
interface PrimaryButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
label: string;
size?: ButtonSize;
variant?: ButtonVariant;
isLoading?: boolean;
leftIcon?: React.ReactNode;
rightIcon?: React.ReactNode;
fullWidth?: boolean;
}
// ─── Animations ──────────────────────────────────────────────────────────────
const spin = keyframes`
from { transform: rotate(0deg); }
to { transform: rotat
… Write a React component for a primary action button. Include hover and disabled states.
# Primary Action Button Component
## Component Implementation
```tsx
// PrimaryButton.tsx
import React from "react";
import styled, { css, keyframes } from "styled-components";
// ─── Types ───────────────────────────────────────────────────────────────────
type ButtonSize = "sm" | "md" | "lg";
type ButtonVariant = "solid" | "outline" | "ghost";
interface PrimaryButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
label: string;
size?: ButtonSize;
variant?: ButtonVariant;
isLoading?: boolean;
leftIcon?: React.ReactNode;
rightIcon?: React.ReactNode;
fullWidth?: boolean;
}
// ─── Animations ──────────────────────────────────────────────────────────────
const spin = keyframes`
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
`;
c
… Write a React component for a primary action button. Include hover and disabled states.
# Primary Action Button Component
## Component Implementation
```tsx
// PrimaryButton.tsx
import React from "react";
import styled, { css, keyframes } from "styled-components";
// ─── Types ───────────────────────────────────────────────────────────────────
type ButtonSize = "sm" | "md" | "lg";
type ButtonVariant = "solid" | "outline" | "ghost";
interface PrimaryButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
label: string;
size?: ButtonSize;
variant?: ButtonVariant;
isLoading?: boolean;
leftIcon?: React.ReactNode;
rightIcon?: React.ReactNode;
fullWidth?: boolean;
}
// ─── Animations ──────────────────────────────────────────────────────────────
const spin = keyframes`
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
`;
c
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
GPT-5.4 — 60 samples click to expand
Write a React component for a primary action button. Include hover and disabled states.
```jsx
import React from "react";
export default function PrimaryButton({
children,
disabled = false,
onClick,
type = "button",
}) {
const baseStyles = {
padding: "10px 16px",
border: "none",
borderRadius: "8px",
fontSize: "16px",
fontWeight: 600,
color: "#ffffff",
backgroundColor: disabled ? "#9ca3af" : "#2563eb",
cursor: disabled ? "not-allowed" : "pointer",
transition: "background-color 0.2s ease, transform 0.1s ease",
opacity: disabled ? 0.7 : 1,
};
const hoverStyles = !disabled
? {
backgroundColor: "#1d4ed8",
}
: {};
const [isHovered, setIsHovered] = React.useState(false);
return (
<button
type={type}
disabled={disabled}
onClick={onClick}
style={{
...baseStyles,
… Write a React component for a primary action button. Include hover and disabled states.
```jsx
import React from "react";
export default function PrimaryButton({
children,
disabled = false,
onClick,
type = "button",
}) {
return (
<>
<button
type={type}
disabled={disabled}
onClick={onClick}
className="primary-button"
>
{children}
</button>
<style jsx>{`
.primary-button {
background-color: #2563eb;
color: white;
border: none;
border-radius: 8px;
padding: 0.75rem 1.25rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease, opacity 0.2s ease,
transform 0.1s ease;
}
.primary-button:hover:not(:disabled) {
background-color: #1d4ed
… Write a React component for a primary action button. Include hover and disabled states.
```jsx
import React from "react";
export default function PrimaryButton({
children,
disabled = false,
onClick,
type = "button",
}) {
const baseStyle = {
padding: "10px 16px",
fontSize: "16px",
fontWeight: 600,
border: "none",
borderRadius: "8px",
cursor: disabled ? "not-allowed" : "pointer",
transition: "background-color 0.2s ease, opacity 0.2s ease",
backgroundColor: disabled ? "#9ca3af" : "#2563eb",
color: "#ffffff",
opacity: disabled ? 0.7 : 1,
};
const hoverStyle = !disabled
? {
backgroundColor: "#1d4ed8",
}
: {};
const [isHovered, setIsHovered] = React.useState(false);
return (
<button
type={type}
disabled={disabled}
onClick={onClick}
style={{
...baseStyle,
.
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
GPT-5.4 mini — 60 samples click to expand
Write a React component for a primary action button. Include hover and disabled states.
```jsx
import React from "react";
export default function PrimaryButton({
children,
onClick,
disabled = false,
type = "button",
}) {
return (
<button
type={type}
onClick={onClick}
disabled={disabled}
className={`
px-4 py-2 rounded-md font-medium text-white transition-colors duration-200
bg-blue-600 hover:bg-blue-700
disabled:bg-blue-300 disabled:cursor-not-allowed disabled:opacity-70
focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2
`}
>
{children}
</button>
);
}
```
Example usage:
```jsx
<PrimaryButton onClick={() => alert("Clicked!")}>
Save Changes
</PrimaryButton>
<PrimaryButton disabled>
Loading...
</PrimaryButton>
```
If you want, I can also provide a version usin
… Write a React component for a primary action button. Include hover and disabled states.
```jsx
import React from "react";
export default function PrimaryButton({
children,
onClick,
disabled = false,
type = "button",
}) {
return (
<button
type={type}
onClick={onClick}
disabled={disabled}
className={`primary-button ${disabled ? "primary-button--disabled" : ""}`}
>
{children}
</button>
);
}
```
```css
.primary-button {
background-color: #2563eb;
color: #ffffff;
border: none;
border-radius: 8px;
padding: 0.75rem 1.25rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.primary-button:hover:not(:disabled) {
background-color: #1d4ed8;
transform: translateY(-1px);
}
.primary-button:active:not(:disabled) {
transform:
… Write a React component for a primary action button. Include hover and disabled states.
```jsx
import React from "react";
export default function PrimaryButton({
children,
onClick,
disabled = false,
type = "button",
}) {
return (
<button
type={type}
onClick={onClick}
disabled={disabled}
className={`primary-button ${disabled ? "is-disabled" : ""}`}
>
{children}
</button>
);
}
```
```css
.primary-button {
background-color: #2563eb;
color: #ffffff;
border: none;
border-radius: 8px;
padding: 0.75rem 1.25rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.1s ease,
opacity 0.2s ease;
}
.primary-button:hover:not(:disabled) {
background-color: #1d4ed8;
}
.primary-button:active:not(:disabled) {
transform: translateY(1px);
}
.primary-button:disab
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
Gemini 2.5 Pro — 60 samples click to expand
Write a React component for a primary action button. Include hover and disabled states.
Of course! Here is a complete and well-structured example of a primary action button in React.
I'll provide the most common and recommended approach using **CSS Modules**, as it keeps styles scoped to the component and is supported out-of-the-box by tools like Create React App and Next.js. I will also include popular alternatives using **Tailwind CSS** and **Styled-Components**.
---
### 1. Primary Solution: Using CSS Modules
This approach is excellent for creating reusable components with styles that won't conflict with other parts of your application.
#### File Structure:
```
/components
/PrimaryButton
├── PrimaryButton.jsx
└── PrimaryButton.module.css
```
#### `PrimaryButton.jsx`
This is the component logic. It accepts props like `children`, `onClick`, and `disabled`, and
… Write a React component for a primary action button. Include hover and disabled states.
Of course! Here is a complete and well-structured React component for a primary action button, including hover and disabled states.
I'll provide two popular styling solutions:
1. **CSS Modules (Recommended for most projects):** This approach scopes CSS to the component, preventing style conflicts.
2. **Styled-Components (CSS-in-JS):** A popular alternative that keeps styles and component logic in the same file.
---
### 1. Solution using CSS Modules
This is a robust and common way to style React components. It keeps your styles separate but scoped, avoiding global CSS issues.
#### File Structure
```
/src
└── /components
└── /PrimaryButton
├── PrimaryButton.jsx
└── PrimaryButton.module.css
```
#### `PrimaryButton.jsx`
This file contains the component's logic an
… Write a React component for a primary action button. Include hover and disabled states.
Of course! Here is a complete and well-documented React component for a primary action button, including hover and disabled states.
This example uses **CSS Modules** for styling, which is a popular and robust method for scoping styles to a specific component, preventing class name collisions.
### File Structure
For this example, you'll have two files in the same directory:
```
/components
├── PrimaryButton.jsx
└── PrimaryButton.module.css
```
---
### 1. The React Component (`PrimaryButton.jsx`)
This file contains the logic for our button. It's a functional component that accepts standard button props and applies the correct CSS classes based on its state.
```jsx
// src/components/PrimaryButton.jsx
import React from 'react';
import PropTypes from 'prop-types';
import styles from '.
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
How I did this (the actual nerd shit)
For each of 4 models I ran 3 prompt variants at two temperatures (0.0 and 0.7), 10 runs each — 240 code samples total, cost $5.65.
Each output got fed through a fight-specific regex classifier.
For react-styling the classifier looks for the specific signal in the output
(see the source — there's one function per fight, ~30 lines each).
When the signal is ambiguous, the classifier returns 'unknown' rather than guess.
Each model's vote = its modal classification across 60 runs. Confidence = Wilson 95% CI. Verdict = majority across models (ties reported as ties). Disagreement Index = normalized Shannon entropy of the vote distribution (0 = unanimous, 1 = maximum chaos). Leaderboard sorts by this.
The pundit quotes come from a follow-up call after the votes are in — each model gets the full tally and a per-model judgy prompt. I never edit the quotes.
Full walkthrough: the methodology page. Source: GitHub.
Open a PR with a new fight. I'll run it across all four models, write up the verdict, and add your name to the byline.
Submit via PR →