A simple, user-friendly web application that helps convert ounces to grams and calculate various dispensary measurement combinations. https://www.budmath.com
- Convert ounces to grams
- Calculate different measurement combinations (ounces, halves, quarters, eighths, prerolls)
- Dark/Light mode toggle
- Calculation history
- Responsive design
- Mobile-friendly interface
- HTML5
- CSS3 (Tailwind CSS)
- JavaScript (Vanilla)
- Font Awesome Icons
- Local Storage for data persistence
- Clone the repository:
git clone [your-repository-url]- Install dependencies:
npm install- Build the CSS:
npm run buildTo watch for CSS changes during development:
npm run buildTo build CSS for production:
npm run build:css- Open
index.htmlin your web browser - Enter the amount in ounces
- Click "Calculate" to see the conversions
- Toggle dark/light mode using the sun icon
- View calculation history at the bottom
- Converts ounces to grams (1 oz = 28 grams)
- Displays individual measurement options
- Shows mixed combinations for flexible portioning
- Toggle between light and dark themes
- Persists user preference using localStorage
- Saves last 5 calculations
- Displays timestamp for each calculation
- Click on history items to quickly recalculate
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the ISC License - see the LICENSE file for details.
- Tailwind CSS for the utility-first CSS framework
- Font Awesome for the icons