1.0.7 ⢠Published 10 months ago
persian-fontify v1.0.7
šļø persian-fontify
A CLI tool to easily integrate Persian fonts into your web projects. šāØ
⨠Features
- š„ Downloads popular Persian fonts
- šØ Updates your CSS with @font-face declarations
- š ļø Modifies Tailwind CSS config to include new fonts
- š¬ Simple interactive prompts for easy setup
š¦ Installation
npm install -g persian-fontify
š Usage š Navigate to your project directory š„ļø Run the tool:
npx persian-fontify setup
š§ Follow the prompts:
- š¤ Select a Persian font
- š Provide path to your main CSS file
- āļø Provide path to your Tailwind config file
š¤ Supported Fonts
- Vazir
- Sahel
- Samim
- Shabnam
- Gandom
š” Example
After running persian-fontify: Your CSS file will include:
@font-face {
font-family: 'Vazir';
src: url('path/to/Vazir.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}
Your Tailwind config will be updated:
module.exports = {
theme: {
extend: {
fontFamily: {
vazir: ['Vazir', 'sans-serif'],
},
},
},
}
Use the font in your HTML:
<p class="font-vazir">This text uses Vazir font</p>
š§ Troubleshooting
š Ensure you're in the correct directory š Check file paths and permissions š For more help, open an issue on GitHub
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request. š
š License
This project is licensed under the MIT License. š
Made with ā¤ļø by rezasmind