github.com/gookit/color
v1.6.1
#1362 most downloaded on Go modules
gookit/color
What this package is like to depend on
Last release 2 months ago
04 Jun 2026
Ships fairly regularly
a new release about every 2 months
Rarely documented
notes for 8 of 44 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
153 releases · first in 2018
7 releases in the last 12 months
see the full history below
Release timeline
153 releases · Jun 2018 to Jun 2026Releases
latest 60 of 153-
v1.6.2-0.20260604125953-289d54c4470a04 Jun 2026 pre-releaseNothing published for this version
-
v1.6.101 May 2026Release notes
Open source →Change Log
Fixed
- fix: re-apply color after nested reset in RenderString (#119) e58a899
- fix(detect): should enable VTP on windows CMD,PWSH 2bb27a5
- fix(convert): incorrect conversion between integer types 1245572
Other
-
v1.6.1-0.20260416071559-e58a89993a6416 Apr 2026 pre-releaseNothing published for this version
-
v1.6.1-0.20251124024520-ed1b9cc4781724 Nov 2025 pre-releaseNothing published for this version
-
v1.6.1-0.20251009021234-2e1842657d6209 Oct 2025 pre-releaseNothing published for this version
-
v1.6.028 Aug 2025Release notes
Open source →Change Log
Fixed
- fix: fix slice init length (#97) d4a4cd9
- fix: resolve color tag parsing issue in #52 (PR #98) bdf4489
- Fix race condition in Theme.Tips method when called concurrently (#109) 6de7584
Feature
- ✨ feat: add new convert func: HSVToRGB, RGBToHSV d95f213
Update
- Optimize RenderCode performance with fast paths for string arguments (#110) e532935
- 🎨 up: Remove dependencies on stretchr/testify and use a lighter gookit/assert alternative. 4ac4e07
- 👔 up: remove deprecated var isLikeInCmd, update some tests c5db0d0
- 👔 up: update detect env, use internal Level* instead of the terminfo.ColorLevel* 173325a
- 🔥 chore: remove any.go, merge printer.go to quickstart.go f46f52e
Other
- build(deps): bump WillAbides/setup-go-faster from 1.8.0 to 1.9.0 (#66) 62dd3d2
- build(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0 (#68) b79b464
- build(deps): bump WillAbides/setup-go-faster from 1.9.0 to 1.9.1 (#69) ecb5570
- build(deps): bump actions/checkout from 3 to 4 (#73) 91529f0
- build(deps): bump WillAbides/setup-go-faster from 1.9.1 to 1.10.1 (#71) 3df6d41
- build(deps): bump WillAbides/setup-go-faster from 1.10.1 to 1.11.0 (#74) 8fa8954
- build(deps): bump WillAbides/setup-go-faster from 1.11.0 to 1.12.0 (#75) 9c0ef29
- build(deps): bump golang.org/x/sys from 0.11.0 to 0.13.0 (#76) 4af2bdd
- build(deps): bump golang.org/x/sys from 0.13.0 to 0.14.0 (#77) 44243ab
- build(deps): bump golang.org/x/sys from 0.14.0 to 0.15.0 (#78) 72fbeaf
- build(deps): bump WillAbides/setup-go-faster from 1.12.0 to 1.13.0 (#79) 0c83bae
- build(deps): bump github/codeql-action from 2 to 3 (#80) 1bc67c4
- build(deps): bump golang.org/x/sys from 0.15.0 to 0.16.0 (#81) 23187d9
- build(deps): bump WillAbides/setup-go-faster from 1.13.0 to 1.14.0 (#82) d7e962b
- build(deps): bump golang.org/x/sys from 0.16.0 to 0.17.0 (#83) f6fd20f
- build(deps): bump golang.org/x/sys from 0.17.0 to 0.18.0 (#86) 18d84cb
- build(deps): bump softprops/action-gh-release from 1 to 2 (#87) 7e68fa7
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 (#88) 532f1f3
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 (#89) c76538d
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 (#90) 7eaf97a
- Update utils_test.go to allow running in read-only mode. (#91) fedc174
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.25.0 (#96) 07ab70b
- build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#85) 4bcc6db
- build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#99) 992eecf
- build(deps): bump golang.org/x/sys from 0.25.0 to 0.30.0 (#100) 90a1068
- build(deps): bump golang.org/x/sys from 0.30.0 to 0.31.0 (#101) 860732e
- 📝 chore: add ci test on go1.21+, remove test on go1.18 5a49561
- Add comprehensive GitHub Copilot instructions for gookit/color repository (#108) db128cf
- ⬆️ dep: upgrade actions and deps to latest version 5eae38c
- 💚 ci: revert the go version to 1.18 on go.mod 370e227
- 🎨 doc: update readme and format the.github/copilot-instructions.md c34c15e
- 📝 chore: update some code style and some tests f14a7b8
- 🎨 chore: update some go file code style cc45966
- ⬆️ dep: upgrade gookit/assert to v0.1.1, update some tests fa47891
- ✅ demo: update the examples deps and some codes 0b1dc4c
New Contributors
- @Hellseher made their first contribution in #91
- @cuishuang made their first contribution in #97
- @almas-x made their first contribution in #98
- @Copilot made their first contribution in #108
Full Changelog: v1.5.4...v1.6.0
-
v1.5.5-0.20250827120903-fa478915744727 Aug 2025 pre-releaseNothing published for this version
-
v1.5.5-0.20250825122535-e53293506e2025 Aug 2025 pre-releaseNothing published for this version
-
v1.5.5-0.20250825033353-370e2273e28725 Aug 2025 pre-releaseNothing published for this version
-
v1.5.5-0.20250822095314-db128cf37af822 Aug 2025 pre-releaseNothing published for this version
-
v1.5.5-0.20250607014751-5a4956180d8407 Jun 2025 pre-releaseNothing published for this version
-
v1.5.5-0.20250305142609-860732ea1d6c05 Mar 2025 pre-releaseNothing published for this version
-
v1.5.5-0.20250214021115-90a106811b2114 Feb 2025 pre-releaseNothing published for this version
-
v1.5.5-0.20250213110423-07ab70b0f88113 Feb 2025 pre-releaseNothing published for this version
-
v1.5.5-0.20241005115936-d4a4cd982d2b05 Oct 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20240610061437-fedc17449eaf10 Jun 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20240606062004-7eaf97a3da4d06 Jun 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20240507020414-c76538d4506d07 May 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20240407021447-532f1f3e0e4807 Apr 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20240311154955-7e68fa72623511 Mar 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20240306020257-18d84cbc1de006 Mar 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20240214004259-f6fd20fee42b14 Feb 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20240117021541-d7e962b5db0317 Jan 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20240106021012-23187d9a0c2206 Jan 2024 pre-releaseNothing published for this version
-
v1.5.5-0.20231215015116-1bc67c42729015 Dec 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20231205063708-0c83bae2776f05 Dec 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20231130120012-72fbeaf35c9d30 Nov 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20231107021407-44243abe880c07 Nov 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20231007023659-4af2bdd60e1f07 Oct 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20230927020544-9c0ef29614cc27 Sep 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20230916102208-8fa89542499916 Sep 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20230905022217-3df6d412f56505 Sep 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20230810054147-ecb55704cb0210 Aug 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20230808031027-b79b464ac69e08 Aug 2023 pre-releaseNothing published for this version
-
v1.5.5-0.20230805104806-62dd3d2099b705 Aug 2023 pre-releaseNothing published for this version
-
v1.5.420 Jul 2023Release notes
Open source →Change Log
Fixed
- 🐛 fix: fix convert basic color to rgb color fail 74bb513
Feature
- ✨ feat: RGBColor add new method: ToFg(), ToBg() for quick convert fe2b251
- ✨ feat: Color add new method: IsBg(), IsFg(), IsOption() for check color 9027b9d
Other
- build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.2 (#57) a43d137
- build(deps): bump golang.org/x/sys from 0.6.0 to 0.7.0 (#59) 13c3e97
- build(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0 (#60) 264b64f
- build(deps): bump golang.org/x/sys from 0.8.0 to 0.9.0 (#63) dd23b12
- build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.4 (#62) 0354c4a
- build(deps): bump golang.org/x/sys from 0.9.0 to 0.10.0 (#64) 7da3fe3
-
v1.5.4-0.20230706021313-7da3fe33835106 Jul 2023 pre-releaseNothing published for this version
-
v1.5.4-0.20230614040058-0354c4ad512314 Jun 2023 pre-releaseNothing published for this version
-
v1.5.4-0.20230506021100-264b64fd901c06 May 2023 pre-releaseNothing published for this version
-
v1.5.4-0.20230406112811-13c3e972f2e106 Apr 2023 pre-releaseNothing published for this version
-
v1.5.4-0.20230320160045-a43d1376f03420 Mar 2023 pre-releaseNothing published for this version
-
v1.5.320 Mar 2023Release notes
Open source → -
v1.5.3-0.20230320160045-a43d1376f03420 Mar 2023 pre-releaseNothing published for this version
-
v1.5.3-0.20230320012455-64f6508ad31e20 Mar 2023 pre-releaseNothing published for this version
-
v1.5.3-0.20221118150039-fff89212601818 Nov 2022 pre-releaseNothing published for this version
-
v1.5.3-0.20221118140609-3cee7ac496ad18 Nov 2022 pre-releaseNothing published for this version
-
v1.5.229 Aug 2022Release notes
Open source →Change Log
Refactor
- refactor: update and refactor the color tag parse logic efc6d3f
Fixed
- fix: RGBFromString() maybe input overflow int value bf93227
Update
- up: update some comments and add more unit tests daca06f
Other
- build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.3 ab29a70
- build(deps): bump github.com/stretchr/testify from 1.7.3 to 1.7.4 8e41e71
- build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 895e882
- chore: add color level alias of the terminfo.ColorLevel 2f5b36d
- chore: update some func comments, fix some code style f30c873
- chore: update the limit go version and update release gh action e12eb6f
- chore: update the readme add more HTML like tags usage d305f5f
- chore: add more docs for detect color level on readme 0ec8e78
- build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 1823e0c
- chore: update some comments code styles d0fe513
Full Changelog: v1.5.1...v1.5.2
-
v1.5.2-0.20220723120351-ee046fd4a1d723 Jul 2022 pre-releaseNothing published for this version
-
v1.5.2-0.20220723120301-b59a8118443723 Jul 2022 pre-releaseNothing published for this version
-
v1.5.2-0.20220707095852-bf93227272fb07 Jul 2022 pre-releaseNothing published for this version
-
v1.5.2-0.20220629141211-1905566c77bd29 Jun 2022 pre-releaseNothing published for this version
-
v1.5.2-0.20220628162559-0ec8e783c81a28 Jun 2022 pre-releaseNothing published for this version
-
v1.5.2-0.20220628023613-2f5b36dff8aa28 Jun 2022 pre-releaseNothing published for this version
-
v1.5.2-0.20220624143520-5b032aa9327c24 Jun 2022 pre-releaseNothing published for this version
-
v1.5.2-0.20220621143523-5643f1d3551721 Jun 2022 pre-releaseNothing published for this version
-
v1.5.2-0.20220620141040-fc6b72816f9420 Jun 2022 pre-releaseNothing published for this version
-
v1.5.110 Jun 2022Release notes
Open source →Change Log
Feature
- feat: add more quick start func for use color 85b9eb0
Update
- up: update action, will auto generate changelog on release fb141c4
- up: update some for build full color string d5924d1
- chore: update the basic color preview image 95811af
- chore: update pkg limit go version to 1.14+ bef594f
Other
-
v1.5.1-0.20220607014758-7ba97b31729207 Jun 2022 pre-releaseNothing published for this version
-
v1.5.1-0.20220519053358-d5924d11012219 May 2022 pre-releaseNothing published for this version
-
v1.5.1-0.20220519053207-85b9eb087b9b19 May 2022 pre-releaseNothing published for this version