256 Shades of Gray is a simple project that visually represents all 256 possible grayscale shades in an 8-bit grayscale system. Each shade is displayed as a square with its corresponding HEX color code, allowing users to see the gradual transition from black (#000000
) to white (#FFFFFF
).
- 🎨 256 Shades of Gray – Displays all grayscale shades from 0 to 255.
- 🖱 Click to Copy HEX Code – Click any shade to copy its HEX value.
- 📱 Responsive Design – Adjusts grid layout based on screen size.
- 🌈 Animated Gradient Text – Eye-catching title animation.
- ✨ Smooth Hover Effects – Enhances UI experience.
- Clone the repository:
git clone https://github.com/rulit-site/256ShadesOfGray.git
- Navigate to the project folder:
cd 256ShadesOfGray
- Open
index.html
in your browser:or simply double-click the file.open index.html
256ShadesOfGray/
├── index.html # Main HTML file
├── styles.css # Stylesheet for layout & effects
├── script.js # JavaScript for generating shades & copy feature
└── README.md # Project documentation
- HTML5
- CSS3
- JavaScript (ES6+)
script.js
dynamically generates 256 grayscale shades and inserts them into the grid.- Clicking a color box copies its HEX code to the clipboard.
- CSS animations enhance the user experience with hover and text gradient effects.
Contributions are welcome! If you find a bug or have an improvement suggestion:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name
). - Commit your changes (
git commit -m "Description of changes"
). - Push to your branch (
git push origin feature-name
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Developed by Rulit.site 🚀.