1 tailwind rules available
One Gemini rule matches tailwind: a Tailwind CSS expert rule focused on design systems. The GEMINI.md section tells Gemini CLI to find the version and token source before suggesting classes. GEMINI.md has no glob scoping, so the section names the files it applies to; a GEMINI.md inside a subfolder is the way to limit it to that folder.
Gemini CLI loads instructional context from GEMINI.md files: a global ~/.gemini/GEMINI.md, files in your workspace directories and their parents, and files discovered in subfolders as the agent works. The file name is configurable, so a project can tell Gemini CLI to read AGENTS.md instead of, or alongside, GEMINI.md. The rules in this directory are written as plain system instructions, so the same text can also be used as a system instruction in Gemini API or Google AI Studio requests.
GEMINI.mdStarting point, not a tested configuration for your repository. GEMINI.md has no file-scoping front matter; add this as a section, or place a GEMINI.md in the relevant subfolder. Review the instructions, adapt the file paths and run your project's existing checks.
## Tailwind CSS development
Applies to: **/*.css, **/*.html, **/*.tsx, **/*.jsx, **/*.vue, **/*.svelte
# Tailwind CSS instructions for Gemini CLI
## Focus for this project
- List the existing theme tokens (from @theme or tailwind.config.js) before proposing styles.
- Only use arbitrary values when no token fits, and say why.
- Check text contrast for new color pairs.
## Tailwind CSS conventions
- Identify the Tailwind version first. v4 projects import Tailwind with @import "tailwindcss"; and define design tokens with @theme in CSS; v3 projects use tailwind.config.js. Edit the one the project actually uses.
- Write complete class names in source. Tailwind detects classes as plain text, so interpolated names such as bg-${color}-500 are not generated; map values to full class strings instead.
- Use theme tokens instead of arbitrary values like text-[#3b82f6] unless the value is genuinely one-off.
- Style mobile first and add sm:/md:/lg: variants for larger screens; keep focus-visible styles on interactive elements.
## Before you finish
- Run the CSS build or dev server, a visual check of the changed component at a mobile and a desktop width, and the lint script and report the actual output. If you cannot run them, say so and list the exact commands instead of saying they pass.
- Summarize which of the rules above affected the change.
- If shell commands are not approved in this session, stop after the edit and list the exact commands for the user to run.
Create your own Gemini rules for Tailwind CSS and share with the community.
Ask for a small change to one matching file. Check the tool's loaded context or instruction view, inspect the diff for the requested convention, and run the relevant build or test. A well-formatted file does not guarantee the model follows every instruction.
The Gemini CLI documentation states that Gemini CLI was replaced by Antigravity CLI on June 18, 2026 for unpaid-tier and Google One users. Check which CLI your account uses; Antigravity rules are covered on the Antigravity page. Gemini CLI does not need a separate AGENTS.md mechanism: its context file name is configurable through context.fileName in settings.json (the docs show ["AGENTS.md", "CONTEXT.md", "GEMINI.md"]). Without that setting it looks for GEMINI.md.
Documentation checked 2026-11-05: Gemini CLI docs: GEMINI.md context filesGemini CLI docs: System prompt override
Illustrative input and expected result. This example is a verification guide, not a recorded model run.
You use Gemini CLI to restyle a page and want it to reuse existing theme tokens instead of inventing colors.
Restyle the pricing page cards to match the existing brand colors.
A list of the tokens found, class changes using those tokens only, complete class names, and a note on contrast for any new color pairing.
Content reviewed 2026-11-05. Confirm instruction activation in your installed client before relying on it.