1.0.7 • Published 10 months ago

persian-fontify v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

šŸ–‹ļø persian-fontify

Twitter Follow LinkedIn

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

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago