A beautiful, modern text resizer application with dark mode support, smooth animations, and responsive design. Built with vanilla HTML, CSS, and JavaScript.
- ๐ฏ Dynamic Text Resizing - Increase or decrease text size with smooth animations
- ๐ Dark Mode - Toggle between light and dark themes with a single click
- ๐ฑ Fully Responsive - Works seamlessly on desktop, tablet, and mobile devices
- ๐ญ Beautiful UI - Modern gradient design with smooth transitions
- ๐ Reset Function - Quickly return to default text size
- ๐ Size Indicator - Real-time display of current font size
- ๐จ Font Awesome Icons - Professional icons for enhanced user experience
- โก Smooth Animations - Elegant fade-in and hover effects
- ๐๏ธ Size Limits - Prevents text from becoming too small or too large
- โฟ Accessibility - Disabled button states when limits are reached
Simply open the index.html file in any modern web browser to see the application in action!
No prerequisites or dependencies required! This is a standalone application that runs entirely in the browser.
- Clone or download this repository
- Open
index.htmlin your web browser - That's it! Start resizing text immediately
# Clone the repository
git clone https://github.com/akashasahu07/Text-Resizer.git
# Navigate to the project directory
cd Text-Resizer
# Open in browser
# On macOS
open index.html
# On Linux
xdg-open index.html
# On Windows
start index.html- Increase Button - Click to increase text size by 2px
- Decrease Button - Click to decrease text size by 2px
- Reset Button - Click to return to the default size (20px)
- Theme Toggle - Click the moon/sun icon to switch between light and dark modes
- Minimum Size: 12px
- Maximum Size: 60px
- Default Size: 20px
- Increment: 2px per click
- Background:
#f0f2f5 - Card Background:
#ffffff - Accent:
#6366f1(Indigo) - Text:
#1a1a1a
- Background:
#0f172a - Card Background:
#1e293b - Accent:
#818cf8(Light Indigo) - Text:
#f1f5f9
- Desktop: > 640px - Full layout with side-by-side buttons
- Tablet: 400px - 640px - Stacked buttons, adjusted padding
- Mobile: < 400px - Compact layout, smaller fonts
- โ Chrome (latest)
- โ Firefox (latest)
- โ Safari (latest)
- โ Edge (latest)
- โ Opera (latest)
Text-Resizer/
โ
โโโ index.html # Main HTML file (all-in-one)
โโโ README.md # Project documentation
Locate this line in the JavaScript section:
let fontSize = 20; // Change this value
const initialSize = 20; // Change this value tooconst minSize = 12; // Minimum font size
const maxSize = 60; // Maximum font sizefontSize += 2; // Change increment value for increase
fontSize -= 2; // Change decrement value for decreaseEdit the CSS variables in the :root and [data-theme="dark"] sections:
:root {
--accent: #6366f1; /* Change accent color */
--bg-primary: #f0f2f5; /* Change background */
/* ... other variables */
}Contributions are welcome! Feel free to:
- Fork the project
- 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 MIT License - feel free to use it for personal or commercial projects.
Created with โค๏ธ by Akash
- Font Awesome for the beautiful icons
- Inspiration from modern web design trends
- The web development community
For questions or suggestions, feel free to reach out:
- GitHub: @akashasahu07
- Email: akashasahu2001@gmail.com
- Add font family selector
- Include text alignment options
- Add color picker for text
- Save preferences to local storage
- Add keyboard shortcuts
- Include preset size options
- Add animation speed control
- Multi-language support
โญ If you found this project helpful, please consider giving it a star!