https://github.com/abbasnaqdi/antigravity-plus
A layout and typography patcher for the Antigravity desktop app. It bypasses Electron's Shadow DOM constraints to fix tiny fonts, apply automatic RTL/LTR text routing, and inject clean system typography directly into isolated AI responses.
https://github.com/abbasnaqdi/antigravity-plus
antigravity antigravity-extension css-injection custom-css customization installer-script linux-desktop rtl-support shadow-dom typography-engine ubuntu vazirmatn
Last synced: 11 days ago
JSON representation
A layout and typography patcher for the Antigravity desktop app. It bypasses Electron's Shadow DOM constraints to fix tiny fonts, apply automatic RTL/LTR text routing, and inject clean system typography directly into isolated AI responses.
- Host: GitHub
- URL: https://github.com/abbasnaqdi/antigravity-plus
- Owner: abbasnaqdi
- License: mit
- Created: 2026-05-22T11:12:05.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-22T12:54:22.000Z (about 1 month ago)
- Last Synced: 2026-05-22T17:37:09.444Z (about 1 month ago)
- Topics: antigravity, antigravity-extension, css-injection, custom-css, customization, installer-script, linux-desktop, rtl-support, shadow-dom, typography-engine, ubuntu, vazirmatn
- Language: Shell
- Homepage:
- Size: 1.52 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Antigravity Plus
A layout and typography patching utility for the Antigravity desktop environment. Install beautiful fonts, customized theme styling, and smart text alignment in seconds.
🚀 Help this project grow! If Antigravity Plus improved your layout, please drop a ⭐ on GitHub!
---
## Core Features
* **Deep Shadow-DOM Piercing**: Custom styles propagate seamlessly into sandboxed webviews and iframes to style agent responses correctly.
* **Keyboard-Aware Auto-Direction**: Dynamically applies `dir="auto"` based on keyboard language layouts (supporting Persian/RTL and English/LTR).
* **Corner Rounding Control**: Choose a tailored border-radius (0px to 5px) for cards, buttons, and panels.
* **Sub-pixel Text Rendering**: Enables optimal font-smoothing for crisp typography on high-DPI displays.
* **Auto-Font Installer & Cache**: Detects active desktop fonts (GNOME, KDE, XFCE), caches configuration under `~/.config/antigravity-plus/`, and installs missing font packages via apt.
* **Custom CSS Ingest**: Supply an optional path to any custom `.css` file to inject personalized themes.
* **Safe Automatic Backups**: Automatically backs up and restores `app.asar` resources securely.
---
## Quick Start Guide
### Linux
Verified on **Ubuntu 26.04 LTS** (supports any Debian/Ubuntu-based system, download the client from [antigravity.google](https://antigravity.google)).
```bash
# 1. Grant execution permissions
chmod +x install.sh
# 2. Run the patcher
./install.sh
```
*Note: Sudo privileges are only requested if the application is installed in system-protected folders (like `/opt`).*
### macOS (Experimental)
> [!WARNING]
> **Untested Platform**: The macOS version of this patcher is **untested**. Use at your own risk. Ensure you have backed up any critical data before running.
Supports macOS (Apple Silicon & Intel). The patcher dynamically detects macOS, resolves the application bundle path, and installs custom fonts via Homebrew.
```bash
# 1. Grant execution permissions
chmod +x install.sh
# 2. Run the patcher
./install.sh
```
### Windows (Experimental)
> [!WARNING]
> **Untested Platform**: The Windows version of this patcher (`install.ps1` and `rollback.ps1`) is **untested**. Use at your own risk. Ensure you have backed up any critical data before running.
Run the patcher in PowerShell (run PowerShell as Administrator if Antigravity is installed in `C:\Program Files`):
```powershell
# 1. Bypass script execution policy for the current process
Set-ExecutionPolicy Bypass -Scope Process -Force
# 2. Run the patcher script
.\install.ps1
```
---
## Rollback & Uninstall
### Linux
To revert back to the original layout:
```bash
# Grant execution permissions
chmod +x rollback.sh
# Run the rollback utility
./rollback.sh
```
### macOS (Experimental)
To revert back to the original layout:
```bash
# Grant execution permissions
chmod +x rollback.sh
# Run the rollback utility
./rollback.sh
```
### Windows (Experimental)
To revert back to the original layout (run PowerShell as Administrator if needed):
```powershell
# 1. Bypass script execution policy for the current process
Set-ExecutionPolicy Bypass -Scope Process -Force
# 2. Run the rollback utility
.\rollback.ps1
```
---
## Star History
---
## Contributing
Contributions of all kinds are welcome! Whether you are reporting a bug, proposing a new feature, or submitting a Pull Request, feel free to open an issue or pull request.
Check out our [good first issues](https://github.com/abbasnaqdi/antigravity-plus/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) to get started!
---
## Disclaimer & Feedback
This utility is open-source and provided "as-is" without warranty. If you run into any issues, have suggestions, or want to share feedback, please let us know!