https://github.com/ahmadrafidev/rim
Fast, intuitive radius calculations for designers and developers.
https://github.com/ahmadrafidev/rim
border-radius-generator devtools ui
Last synced: about 2 months ago
JSON representation
Fast, intuitive radius calculations for designers and developers.
- Host: GitHub
- URL: https://github.com/ahmadrafidev/rim
- Owner: ahmadrafidev
- License: mit
- Created: 2025-06-15T03:52:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-21T14:34:52.000Z (9 months ago)
- Last Synced: 2025-10-27T22:35:55.677Z (8 months ago)
- Topics: border-radius-generator, devtools, ui
- Language: TypeScript
- Homepage: https://rimm.vercel.app
- Size: 209 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Rim
**Fast, intuitive border radius calculations for better design consistency**
## 🎯 Why Rim?
Ever struggled with nested elements where border radius just doesn't look *right*? You set the same radius on both outer container and inner content, but somehow the inner corners look sharper and visually inconsistent?
**I built Rim to solve this personal frustration.** After countless designs where nested radius values looked off, I wanted a simple tool to calculate the *correct* outer radius based on your desired inner radius and padding.
## 🧮 The Simple Math
The solution is beautifully simple:
```
outer_radius = inner_radius + padding
```
**Instead of guessing**, start with your desired inner content radius, add your padding, and get the perfect outer radius that maintains visual harmony.
## 🎨 Main Features
Rim provides a live, interactive demonstration showing:
- ✅ **Correct approach**: Calculated outer radius maintains design consistency
- ❌ **Wrong approach**: Same radius on both elements creates visual inconsistency
- 🎛️ **Real-time calculator**: Adjust inner radius, padding, and dimensions to see immediate results
- 📐 **Visual comparison**: Side-by-side preview of right vs wrong implementations
Perfect for card layouts, buttons, form inputs, modals, and navigation components.
## 🚀 Get Started
```bash
# Clone the repository
git clone https://github.com/ahmadrafidev/rim.git
# Install dependencies
pnpm install
# Start the development server
pnpm dev
```
Visit `http://localhost:3000` to start calculating better radius values!
## 🤝 Make Rim Better
**Help make design consistency effortless for everyone!**
Whether you're a designer tired of eyeballing radius values, a developer seeking pixel-perfect implementations, or someone who just loves clean, mathematical solutions to design problems – **your contributions are welcome**.
### Ways to Contribute
- 🐛 **Found a bug?** Open an issue
- 💡 **Have an idea?** Share it in discussions
- 🎨 **Design improvements?** Submit a PR
- 📖 **Better documentation?** Always appreciated
- 🧮 **New calculation methods?** Let's explore together
**Together, we can eliminate visual inconsistency one radius at a time.**
---
Built with ❤️ for designers and developers who care about the pixel details.
[🌐 Try Rim](https://rimm.vercel.app/) • [🐛 Report A Bug](https://github.com/ahmadrafidev/rim/issues)