Kaleidolib is a C# library providing different style additions for command line applications. This might sound pretty useless in the first place (probably because it is), but there might be some cases, where colors actually come in handy.
- Colors for Text in your CLI-Application
- Textstyles for Text in your CLI-Application
- Wrapper-Methods for easy usage
To start off, please head to the releases page and download a pre-built dll.
If you don't trust me for some reason, feel free to download the latest released source code and build it your self.
This process depends on the IDE, so just do it as it is done with your's.
Colors can be used like this:
Console.WriteLine(TextColors.red + "Look at what I can do!" + TextColors.reset);
Console.WriteLine(TextColors.bgred + "Look at what I can do!" + TextColors.reset);
Styles can be used like this:
Console.WriteLine(TextStyles.bold + "Look at what I can do!" + TextStyles.reset);
Console.WriteLine(TextColors.underline + "Look at what I can do!" + TextColors.reset);
Colors:
Console.WriteLine(Color.blue("Ciao!"));
Backgrounds:
Console.WriteLine(Background.red("Sain bainuu!"));
Formatting:
Console.WriteLine(Formatting.bold("Halo!"));
Lining:
Console.WriteLine(Lining.underline("Silaw!"));
This way, you can combine several stylings at once very easily:
Console.WriteLine(Background.green(Lining.underline(Color.blue("Ndêwó!"))));
Console.WriteLine(Lining.strikethrough(Color.purple("Yassou!")));
- Implement customizable Colors
Check out the open issues for more.
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
- 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.
See CONTRIBUTING.md for more details.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries, feel free to reach out:
- email: [email protected]
- X: massimo-rnd
- Discord