CSS Primer For the AI Era

A vocabulary for shaping interfaces with AI

User Tools

Site Tools


css_communication_toolkit:how_to_express_css_intentions_to_ai

01. How to Describe What You Want (The Core Skill)

How to express CSS intentions clearly
so AI knows what we mean

—Part of CSS Primer for the AI Era — CSS Communication Toolkit

AI does not guess well. It fills in gaps. It assumes patterns. It invents structure when the request is vague.

So, the first skill in CSS communication is simple:

We say what we want in terms of intention,
not code.

Instead of:

“Fix this”
“Make it better”
“Center this”
“Improve the layout”

We use language that reveals the purpose:

“I want this element centered horizontally 
within its parent.”
“I want equal spacing between these items.”
“I want this section to remain stable at 
all screen sizes.”
“I want this layout to adapt without breakpoints.”
“I want this component to stay visually quiet.”

A simple principle:

AI writes code.
We describe intention.
Collaboration is the bridge between the two
.

This chapter teaches the reader how to express:

  • spatial intentions
  • visual intentions
  • structural intentions
  • behavioral intentions
  • constraints and boundaries
  • what must not change

It is the foundation of the entire Toolkit.


1. Why Intention Matters More Than Instructions

When we say:

“Fix this”
“Make it better”
“Improve the layout”
“Center this”

AI must choose:

  • what “better” means
  • what “improve” means
  • what “center” means
  • what “fix” means

And its choices may not match ours.

A simple truth:

AI writes code.
We express purpose.
Collaboration is the bridge
between the two
.


2. How We Describe Intention Clearly

Instead of describing what to do,
we describe what we want to happen.

Examples:

“We want this element centered horizontally 
within its parent.”
“We want equal spacing between these items.”
“We want this layout to remain stable at 
all screen sizes.”
“We want this section to feel quiet 
and low‑contrast.”
“We want this component to adapt without breakpoints.”
“We want this card to align with the baseline grid.”

These statements give AI:

  • a purpose
  • a direction
  • a constraint
  • and a boundary

They remove ambiguity.


3. How We Describe What Must Not Change

However, intention is incomplete without protection.

So, we may also add:

“Do not change the HTML structure.”
“Do not introduce new classes.”
“Do not modify the spacing scale.”
“Do not alter the behavior on small screens.”
“Do not refactor the layout.”

Something to keep in mind:

Intention without boundaries
invites overreach
.


4. How We Describe the Reason Behind the Change

AI works better
when it knows why.

So, we add:

“We want this centered because 
the hero needs visual balance.”
“We want equal spacing because 
the design uses a consistent rhythm.”
“We want stability because 
this layout is part of a legacy system.”
“We want quiet styling 
because this section supports the main content.”

Reason gives AI context.
Context gives AI restraint
.


5. How We Combine Intention, Boundaries, and Reason

A complete request looks like this:

“We want this element centered horizontally 
within its parent.
Do not change the HTML structure.
This is part of a stable layout, 
so keep the solution minimal.”

Or:

“We want equal spacing between these items 
using the existing spacing scale.
Do not introduce new classes.
This keeps the design consistent with 
the rest of the page.”

Or:

“We want this section to feel visually quiet.
Avoid strong colors or heavy shadows.
This is supporting content, not primary content.”

A simple reminder:

Clarity is not verbosity.
Clarity is purpose, boundaries,
and reason
.


6. Closing Note — Intention Is the Center of Communication

When we describe intention clearly:

  • AI stops guessing
  • the work becomes predictable
  • the collaboration becomes calmer
  • the results become more aligned
  • and the system remains coherent

A simple closing thought:

We describe what we want.
AI writes the code.
And clarity is the bridge between the two
.



Tony de Araujo —New York | Lisbon


css_communication_toolkit/how_to_express_css_intentions_to_ai.txt · Last modified: by editor