{"id":14263256,"url":"https://github.com/tr1ckydev/chameleon","last_synced_at":"2025-06-13T08:07:45.274Z","repository":{"id":198876003,"uuid":"700330969","full_name":"tr1ckydev/chameleon","owner":"tr1ckydev","description":"🦎 Terminal string styling for zig.","archived":false,"fork":false,"pushed_at":"2025-03-25T08:38:53.000Z","size":1028,"stargazers_count":98,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-25T09:37:21.898Z","etag":null,"topics":["terminal","terminal-styling","zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tr1ckydev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-04T11:51:56.000Z","updated_at":"2025-03-25T09:23:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"0d343682-35d0-446e-a98a-3c2bcc7297d2","html_url":"https://github.com/tr1ckydev/chameleon","commit_stats":null,"previous_names":["tr1ckydev/chameleon"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tr1ckydev/chameleon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr1ckydev%2Fchameleon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr1ckydev%2Fchameleon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr1ckydev%2Fchameleon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr1ckydev%2Fchameleon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tr1ckydev","download_url":"https://codeload.github.com/tr1ckydev/chameleon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr1ckydev%2Fchameleon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259606974,"owners_count":22883560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["terminal","terminal-styling","zig","zig-package"],"created_at":"2024-08-22T13:05:51.162Z","updated_at":"2025-06-13T08:07:45.266Z","avatar_url":"https://github.com/tr1ckydev.png","language":"Zig","funding_links":[],"categories":["zig"],"sub_categories":[],"readme":"![](./res/banner.png)\n\n# chameleon\n\n🦎 Terminal string styling for zig.\n\n*Currently the only fully featured terminal color solution for zig. ⚡*\n\n- Expressive API\n- Highly performant\n- Ability to nest styles\n- Ability for custom themes\n- No dependencies\n- Clean and focused\n- Truecolor support\n- 140+ built in color presets\n\n![](./res/showcase.png)\n\n\n\n## Installation\n\n\u003e Chameleon supports only zig **master** branch.\n\n- Install the package.\n\n  ```bash\n  zig fetch --save git+https://github.com/tr1ckydev/chameleon\n  ```\n\n- Add the package in `build.zig`.\n\n  ```zig\n  const cham = b.dependency(\"chameleon\", .{});\n  exe_mod.addImport(\"chameleon\", cham.module(\"chameleon\"));\n  ```\n\n- Import it in your project.\n\n  ```zig\n  const Chameleon = @import(\"chameleon\");\n  ```\n\n\n\n## Usage\n\nChameleon is divided into two APIs — **Comptime** and **Runtime**.\n\n- **Comptime:** The comptime API is simplest way to implement colors in your terminal.\n- **Runtime:** The runtime API is much more flexible and is the recommended way when building for production.\n\nAt the end, choose what fits best for your use case.\n\n\n\n## Documentation\n\nCheck out the full documentation [here](https://github.com/tr1ckydev/chameleon/blob/main/DOCUMENTATION.md).\n\n\n\n## `NO_COLOR` support\n\n\u003e According to [no-color.org](https://no-color.org/), *\"Command-line software which adds ANSI color to its output by default should check for a `NO_COLOR` environment variable that, when present and not an empty string (regardless of its value), prevents the addition of ANSI color.\"*\n\u003e\n\nChameleon supports this standard only in it's **Runtime API** by detecting the presence of the *NO_COLOR* environment variable (regardless of it's value), if present disables any ANSI colors or styles, and can also be configured to not do so if you want to implement a different way of detection, although highly not recommended.\n\n\n\n## License\n\nThis repository uses the MIT License. Check [LICENSE](https://github.com/tr1ckydev/chameleon/blob/main/LICENSE) for full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftr1ckydev%2Fchameleon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftr1ckydev%2Fchameleon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftr1ckydev%2Fchameleon/lists"}