DevCalc is a powerful CSS unit converter developed to make web design and frontend development easier. With an intuitive user interface and comprehensive conversion capabilities, you can quickly and easily convert between various CSS units such as px, rem, em, vh, vw, and many more.
- Comprehensive Unit Conversion - Support for relative, absolute, viewport, and text-based units
- Customizable Settings - Adjust root font-size, text parameters, and screen sizes
- Visual Preview - See how your converted units look in mobile, tablet, and desktop views
- Efficient Keyboard Shortcuts - Increase your productivity with quick commands
- Conversion History - Save and reuse your recent conversions
- Dark and Light Theme - Comfortable usage in all lighting conditions
- Responsive Design - Works seamlessly on all devices
- Node.js (v14 or later)
- npm or yarn
-
Clone the repo:
git clone https://github.com/your-username/devcalc.git cd devcalc -
Install dependencies:
npm install # or yarn install -
Start the development server:
npm run dev # or yarn dev -
Open http://localhost:5173 in your browser
npm run build
# or
yarn buildDevCalc supports the following unit types:
px↔rempx↔emrem↔empx↔%%↔px
px↔vhpx↔vwvw↔vhpx↔vminpx↔vmax
px↔ptpx↔cmpx↔mmpx↔in
px↔chpx↔exem↔ch
DevCalc offers numerous keyboard shortcuts to increase your productivity:
←→- Switch between conversions↑↓- Toggle between categoriesEsc- Close dialogs or reset values
C- Copy resultR- Reset valuesP- Show/hide previewH- Show/hide historyS- Open settingsI- Show informationD- Toggle theme (dark/light)
?- Show keyboard shortcuts
DevCalc allows you to customize:
- Root font-size: Change the base for rem/em conversions
- Character width: Adjust the ch unit width
- X-height: Customize the ex unit height
- Screen size: Set custom screen dimensions for viewport-based units
DevCalc is built with:
- React - UI library
- TypeScript - Type system
- Tailwind CSS - Styling library
- Vite - Development tool and build process
- Lucide Icons - Icon library
Contributions, issues, and feature requests are welcome!
- Fork the repo
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Project Link: https://github.com/screamm/devcalc
Built with ❤️ by screamm
