This document describes Antigravity's comprehensive standards for web application development, including technology stack preferences, project initialization procedures, design aesthetic requirements, implementation workflows, and SEO best practices. These standards emphasize premium visual design and modern web development patterns.
For Qoder's web development approach, see 2.11. For Same.dev's web development practices, see 4.2.4. For v0's design system requirements, see 4.1.4.
Sources: Google/Antigravity/Fast Prompt.txt19-74
Antigravity follows a layered approach to technology selection, prioritizing simplicity for basic applications while supporting complex frameworks when needed.
| Layer | Default Technology | Alternative | Usage Criteria |
|---|---|---|---|
| Structure | HTML | - | Always used for markup |
| Logic | JavaScript | - | Core scripting language |
| Styling | Vanilla CSS | Tailwind CSS | Tailwind only on explicit user request |
| Framework | None | Next.js, Vite | Only for complex web apps when explicitly requested |
| Package Manager | npm | - | Used with npx for initialization |
When framework initialization is required, Antigravity follows strict procedures:
npx -y flag to automatically install scripts and dependencies--help flag first to see all available options./ (e.g., npx -y create-vite-app@latest ./)npm run dev for local development; build production bundle only when explicitly requested or validating correctnessSources: Google/Antigravity/Fast Prompt.txt19-31
Antigravity enforces strict design standards with explicit failure conditions for inadequate aesthetics.
CRITICAL REMINDER: Aesthetics are extremely important. Simple and basic designs constitute failure.
generate_image tool for working demonstrationsSources: Google/Antigravity/Fast Prompt.txt32-42
Antigravity defines a systematic 5-phase approach for building web applications.
index.cssSources: Google/Antigravity/Fast Prompt.txt43-64
Antigravity automatically implements SEO best practices on every page without explicit user request.
| Element | Implementation | Purpose |
|---|---|---|
| Title Tags | Proper, descriptive <title> for each page | Search engine results, browser tabs |
| Meta Descriptions | Compelling <meta name="description"> that accurately summarizes page content | Search result snippets, social sharing |
| Heading Structure | Single <h1> per page with proper <h2>, <h3>, etc. hierarchy | Content organization, accessibility |
| Semantic HTML | Appropriate HTML5 semantic elements | Search engine understanding, accessibility |
| Unique IDs | All interactive elements have unique, descriptive IDs | Browser testing, JavaScript targeting |
| Performance | Fast page load times through optimization | User experience, search rankings |
These practices are applied automatically to every page without requiring user specification.
Sources: Google/Antigravity/Fast Prompt.txt65-73
Antigravity integrates web development with its workflow automation system through .agent/workflows/ directory and turbo annotations.
Workflow files use YAML frontmatter + markdown:
| Annotation | Scope | Behavior |
|---|---|---|
// turbo | Single step | Auto-run only the annotated step if it involves run_command tool by setting SafeToAutoRun: true |
// turbo-all | All steps | Auto-run EVERY step that involves run_command tool by setting SafeToAutoRun: true |
Example Workflow with Turbo Annotation:
In this example:
SafeToAutoRunSafeToAutoRun: true (turbo annotation)SafeToAutoRunWorkflows can be triggered through:
/deploy)view_file tool to read .agent/workflows/[filename].md with absolute pathSources: Google/Antigravity/Fast Prompt.txt78-98
Default Behavior: Use development server (npm run dev or framework equivalent)
Production Build: Only execute production build when:
This approach prioritizes fast iteration during development.
Sources: Google/Antigravity/Fast Prompt.txt30-31
Simple Pages/Sites:
Complex Web Applications (user must explicitly request):
When initializing framework projects:
Key flags:
-y: Automatic installation of packages./: Install in current directory--help output to avoid user promptsSources: Google/Antigravity/Fast Prompt.txt22-29
Antigravity requires working demonstrations rather than placeholder content. The generate_image tool provides this capability.
The generate_image tool (defined in Google/Antigravity/Fast Prompt.txt382-392) is used for:
UI Design: Generate interface mockups without device frames unless explicitly requested
Asset Generation: Create working images for application use
Image Editing: Combine or edit existing images via ImagePaths parameter
Naming Convention: image_name format (lowercase with underscores, maximum 3 words)
This ensures all demonstrations have functional, visually appropriate assets rather than placeholder content.
Sources: Google/Antigravity/Fast Prompt.txt41-42 Google/Antigravity/Fast Prompt.txt382-392
Antigravity operates within defined workspace boundaries for web application development.
Allowed Locations:
C:\Users\Lucas\.gemini directory (only for system-specified usage)Project Code Placement:
/tmp directory.gemini directoryAbsolute Paths Required: When using file path tools, always use absolute file paths.
Sources: Google/Antigravity/Fast Prompt.txt7-18
| Requirement Category | Critical Elements | Failure Condition |
|---|---|---|
| Aesthetics | Rich aesthetics, modern design, WOW factor | Simple/basic appearance = UNACCEPTABLE |
| Technology | Vanilla CSS default, framework only when requested | Using Tailwind without confirmation |
| Initialization | npx -y, --help first, ./ directory, non-interactive | Interactive prompts, wrong directory |
| SEO | All 6 best practices automatically implemented | Missing title tags, meta descriptions, semantic HTML |
| Placeholders | Use generate_image tool for all assets | Placeholder images or content |
| Development | Dev server default, build only when needed | Building unnecessarily |
| File Access | Active workspaces only for project code | Writing to /tmp or .gemini for projects |
The aesthetic requirement is particularly emphasized with explicit "FAILED" status for inadequate visual design.
Refresh this wiki