|
| 1 | +# Multi-Layer Shadow Text Designer |
| 2 | + |
| 3 | +Create stunning multi-layer shadow text effects with customizable fonts, colors, angles, and depth. Design beautiful typography with Tailwind CSS colors and share your creations via URL. |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +## 🎨 Features |
| 9 | + |
| 10 | +- **Custom Text**: Enter any text to preview with your chosen effects |
| 11 | +- **Multi-Layer Shadows**: Configure 1-6 layers of shadow for depth and dimension |
| 12 | +- **Shadow Customization**: |
| 13 | + - Adjustable angle (0-360°) |
| 14 | + - Variable distance between layers (1-10px) |
| 15 | + - Direction control (darken/lighten) |
| 16 | + - Shadow depth adjustment (0-3) |
| 17 | +- **Extensive Color Palette**: Full Tailwind CSS 4 color palette including: |
| 18 | + - 22 color families (slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose) |
| 19 | + - 11 shades per color (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950) |
| 20 | + - Black and white |
| 21 | + - **266 total colors available** |
| 22 | +- **Font Manager**: Add Google Fonts on the fly and compare them instantly |
| 23 | +- **Light/Dark Theme Previews**: See your designs in both light and dark contexts |
| 24 | +- **URL Sharing**: All settings are stored in the URL for easy sharing |
| 25 | +- **Copy CSS Style**: One-click copy of the complete CSS for each design |
| 26 | +- **Reset to Defaults**: Quickly start fresh with default settings |
| 27 | + |
| 28 | +## 🚀 Getting Started |
| 29 | + |
| 30 | +### Online Version |
| 31 | + |
| 32 | +Simply open the `alire-logo-explorer3.html` file in your web browser. No installation or build process required! |
| 33 | + |
| 34 | +### Local Usage |
| 35 | + |
| 36 | +1. Clone this repository: |
| 37 | + ```bash |
| 38 | + git clone https://github.com/Heziode/multi-layer-shadow-text-designer.git |
| 39 | + cd multi-layer-shadow-text-designer |
| 40 | + ``` |
| 41 | + |
| 42 | +2. Open `alire-logo-explorer3.html` in your web browser |
| 43 | + |
| 44 | +That's it! The tool runs entirely in the browser. |
| 45 | + |
| 46 | +## 📖 How to Use |
| 47 | + |
| 48 | +### Basic Workflow |
| 49 | + |
| 50 | +1. **Enter Your Text**: Type the text you want to design in the "Display Text" field |
| 51 | +2. **Adjust Shadow Settings**: |
| 52 | + - Set the number of shadow layers |
| 53 | + - Choose the shadow angle (direction) |
| 54 | + - Adjust the distance between layers |
| 55 | +3. **Choose Colors**: |
| 56 | + - Select text color from the Tailwind CSS palette |
| 57 | + - Choose shadow color |
| 58 | + - Adjust shadow depth and direction (darken/lighten) |
| 59 | +4. **Add Fonts**: Enter Google Font names to preview your design with different typefaces |
| 60 | +5. **Preview**: Scroll down to see your text rendered with both light and dark backgrounds |
| 61 | +6. **Copy & Share**: |
| 62 | + - Click "Copy Style" to get the CSS code |
| 63 | + - Click "Copy Share Link" to share your configuration |
| 64 | + |
| 65 | +### URL Parameters |
| 66 | + |
| 67 | +All settings are automatically saved to the URL, making it easy to share your designs. Parameters include: |
| 68 | + |
| 69 | +- `text`: Display text |
| 70 | +- `layers`: Number of shadow layers (1-6) |
| 71 | +- `angle`: Shadow angle (0-360) |
| 72 | +- `distance`: Shadow distance (1-10) |
| 73 | +- `lightText`: Light theme text color |
| 74 | +- `lightShadow`: Light theme shadow color |
| 75 | +- `lightDepth`: Light theme shadow depth (0-3) |
| 76 | +- `lightDirection`: Light theme shadow direction (darken/lighten) |
| 77 | +- `darkText`: Dark theme text color |
| 78 | +- `darkShadow`: Dark theme shadow color |
| 79 | +- `darkDepth`: Dark theme shadow depth (0-3) |
| 80 | +- `darkDirection`: Dark theme shadow direction (darken/lighten) |
| 81 | +- `fonts`: Comma-separated list of fonts |
| 82 | +- `colorExpanded`: Whether color section is expanded (true/false) |
| 83 | + |
| 84 | +**Example URL:** |
| 85 | +``` |
| 86 | +alire-logo-explorer3.html?text=Hello&layers=4&angle=135&distance=3&lightText=blue-600&lightShadow=cyan-300 |
| 87 | +``` |
| 88 | + |
| 89 | +### Copying CSS Styles |
| 90 | + |
| 91 | +Each preview card has a "Copy Style" button that copies the complete CSS to your clipboard: |
| 92 | + |
| 93 | +```css |
| 94 | +font-family: 'Geist', sans-serif; |
| 95 | +color: var(--color-purple-600); |
| 96 | +text-shadow: 2px 2px 0 var(--color-yellow-300), 4px 4px 0 var(--color-yellow-400), 6px 6px 0 var(--color-yellow-500); |
| 97 | +``` |
| 98 | + |
| 99 | +**Note:** To use the Tailwind CSS color variables in your project, you'll need Tailwind CSS configured with the appropriate color palette. |
| 100 | + |
| 101 | +## 🛠️ Technologies Used |
| 102 | + |
| 103 | +- **Vue.js 3**: Reactive UI framework |
| 104 | +- **Tailwind CSS 4**: Styling and color system |
| 105 | +- **Google Fonts API**: Dynamic font loading |
| 106 | +- **Vanilla JavaScript**: No build process required |
| 107 | + |
| 108 | +## 🎯 Use Cases |
| 109 | + |
| 110 | +- Logo design and branding |
| 111 | +- Header and title typography |
| 112 | +- Social media graphics |
| 113 | +- Web design mockups |
| 114 | +- Typography experimentation |
| 115 | +- Teaching CSS text-shadow effects |
| 116 | +- Creating retro or 3D text effects |
| 117 | + |
| 118 | +## 📋 Browser Support |
| 119 | + |
| 120 | +Works in all modern browsers that support: |
| 121 | +- ES6+ JavaScript |
| 122 | +- CSS custom properties |
| 123 | +- CSS Grid |
| 124 | +- Clipboard API |
| 125 | + |
| 126 | +Tested on: |
| 127 | +- Chrome/Edge 90+ |
| 128 | +- Firefox 88+ |
| 129 | +- Safari 14+ |
| 130 | + |
| 131 | +## 🤝 Contributing |
| 132 | + |
| 133 | +Contributions are welcome! Feel free to: |
| 134 | + |
| 135 | +- Report bugs |
| 136 | +- Suggest new features |
| 137 | +- Submit pull requests |
| 138 | +- Improve documentation |
| 139 | + |
| 140 | +## 📄 License |
| 141 | + |
| 142 | +This project is licensed under the MIT License - see below for details: |
| 143 | + |
| 144 | +``` |
| 145 | +MIT License |
| 146 | +
|
| 147 | +Copyright (c) 2025 |
| 148 | +
|
| 149 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 150 | +of this software and associated documentation files (the "Software"), to deal |
| 151 | +in the Software without restriction, including without limitation the rights |
| 152 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 153 | +copies of the Software, and to permit persons to whom the Software is |
| 154 | +furnished to do so, subject to the following conditions: |
| 155 | +
|
| 156 | +The above copyright notice and this permission notice shall be included in all |
| 157 | +copies or substantial portions of the Software. |
| 158 | +
|
| 159 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 160 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 161 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 162 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 163 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 164 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 165 | +SOFTWARE. |
| 166 | +``` |
| 167 | + |
| 168 | +## 🙏 Acknowledgments |
| 169 | + |
| 170 | +- [Tailwind CSS](https://tailwindcss.com/) for the amazing color system |
| 171 | +- [Vue.js](https://vuejs.org/) for the reactive framework |
| 172 | +- [Google Fonts](https://fonts.google.com/) for the extensive font library |
| 173 | + |
| 174 | +## 📞 Support |
| 175 | + |
| 176 | +If you have any questions or need help, please open an issue on GitHub. |
| 177 | + |
| 178 | +--- |
| 179 | + |
| 180 | +Made with ❤️ for designers and developers |
0 commit comments