{"id":17217568,"url":"https://github.com/lrstanley/bubbletint","last_synced_at":"2025-04-06T20:09:47.359Z","repository":{"id":62866318,"uuid":"559768786","full_name":"lrstanley/bubbletint","owner":"lrstanley","description":"Terminal tints for everyone","archived":false,"fork":false,"pushed_at":"2025-02-19T02:58:50.000Z","size":1163,"stargazers_count":89,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T19:05:32.492Z","etag":null,"topics":["bubbletea","cli","go","golang","lipgloss","terminal","theme","themes","tui","xterm"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/lrstanley/bubbletint","language":"Go","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/lrstanley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"lrstanley"}},"created_at":"2022-10-31T03:39:07.000Z","updated_at":"2025-03-21T07:55:16.000Z","dependencies_parsed_at":"2024-07-23T15:14:02.865Z","dependency_job_id":"e20880c8-12a9-47c4-9f18-18c62338e0a0","html_url":"https://github.com/lrstanley/bubbletint","commit_stats":{"total_commits":127,"total_committers":2,"mean_commits":63.5,"dds":"0.18110236220472442","last_synced_commit":"0d5e3596d8eeb941117427cd4dd34e791b96672d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrstanley%2Fbubbletint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrstanley%2Fbubbletint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrstanley%2Fbubbletint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrstanley%2Fbubbletint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lrstanley","download_url":"https://codeload.github.com/lrstanley/bubbletint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543589,"owners_count":20955865,"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":["bubbletea","cli","go","golang","lipgloss","terminal","theme","themes","tui","xterm"],"created_at":"2024-10-15T03:44:19.827Z","updated_at":"2025-04-06T20:09:47.339Z","avatar_url":"https://github.com/lrstanley.png","language":"Go","funding_links":["https://github.com/sponsors/lrstanley"],"categories":[],"sub_categories":[],"readme":"\u003c!-- template:define:options\n{\n  \"nodescription\": true\n}\n--\u003e\n\u003cimg title=\"Logo\" src=\"./examples/_images/logo.png\" width=\"961\"\u003e\n\n\u003c!-- template:begin:header --\u003e\n\u003c!-- do not edit anything in this \"template\" block, its auto-generated --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/lrstanley/bubbletint/tags\"\u003e\n    \u003cimg title=\"Latest Semver Tag\" src=\"https://img.shields.io/github/v/tag/lrstanley/bubbletint?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/lrstanley/bubbletint/commits/master\"\u003e\n    \u003cimg title=\"Last commit\" src=\"https://img.shields.io/github/last-commit/lrstanley/bubbletint?style=flat-square\"\u003e\n  \u003c/a\u003e\n\n\n  \u003ca href=\"https://github.com/lrstanley/bubbletint/actions?query=workflow%3Atest+event%3Apush\"\u003e\n    \u003cimg title=\"GitHub Workflow Status (test @ master)\" src=\"https://img.shields.io/github/actions/workflow/status/lrstanley/bubbletint/test.yml?branch=master\u0026label=test\u0026style=flat-square\"\u003e\n  \u003c/a\u003e\n\n\n\n  \u003ca href=\"https://codecov.io/gh/lrstanley/bubbletint\"\u003e\n    \u003cimg title=\"Code Coverage\" src=\"https://img.shields.io/codecov/c/github/lrstanley/bubbletint/master?style=flat-square\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://pkg.go.dev/github.com/lrstanley/bubbletint\"\u003e\n    \u003cimg title=\"Go Documentation\" src=\"https://pkg.go.dev/badge/github.com/lrstanley/bubbletint?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/lrstanley/bubbletint\"\u003e\n    \u003cimg title=\"Go Report Card\" src=\"https://goreportcard.com/badge/github.com/lrstanley/bubbletint?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/lrstanley/bubbletint/issues?q=is:open+is:issue+label:bug\"\u003e\n    \u003cimg title=\"Bug reports\" src=\"https://img.shields.io/github/issues/lrstanley/bubbletint/bug?label=issues\u0026style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/lrstanley/bubbletint/issues?q=is:open+is:issue+label:enhancement\"\u003e\n    \u003cimg title=\"Feature requests\" src=\"https://img.shields.io/github/issues/lrstanley/bubbletint/enhancement?label=feature%20requests\u0026style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/lrstanley/bubbletint/pulls\"\u003e\n    \u003cimg title=\"Open Pull Requests\" src=\"https://img.shields.io/github/issues-pr/lrstanley/bubbletint?label=prs\u0026style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/lrstanley/bubbletint/discussions/new?category=q-a\"\u003e\n    \u003cimg title=\"Ask a Question\" src=\"https://img.shields.io/badge/support-ask_a_question!-blue?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://liam.sh/chat\"\u003e\u003cimg src=\"https://img.shields.io/badge/discord-bytecord-blue.svg?style=flat-square\" title=\"Discord Chat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003c!-- template:end:header --\u003e\n\n\u003c!-- template:begin:toc --\u003e\n\u003c!-- do not edit anything in this \"template\" block, its auto-generated --\u003e\n## :link: Table of Contents\n\n  - [Features](#sparkles-features)\n  - [Usage](#gear-usage)\n    - [Global registry](#global-registry)\n    - [Custom Registry](#custom-registry)\n    - [Use specific tints](#use-specific-tints)\n  - [Examples](#clap-examples)\n    - [Package manager example](#package-manager-example)\n    - [Complex example](#complex-example)\n  - [Support \u0026amp; Assistance](#raising_hand_man-support--assistance)\n  - [Contributing](#handshake-contributing)\n  - [License](#balance_scale-license)\n\u003c!-- template:end:toc --\u003e\n\n## :sparkles: Features\n\n- :heavy_check_mark: Utilize 280+ built-in tints. [Check them all out here!](./DEFAULT_TINTS.md)\n  We're taking advantage of the great work others have done\n  with [Windows Terminal Themes](https://windowsterminalthemes.dev/)\n  and [iTerm2-Color-Schemes](https://github.com/mbadolato/iTerm2-Color-Schemes),\n  and making them more accessible in a programmatic fashion.\n- :heavy_check_mark: Support for dynamically changing tints at runtime, to give\n  immediate feedback on which tints might look the best for your application and\n  terminal setup.\n- :heavy_check_mark: Piecemeal support for specific tints. Really like one specific\n  tint, and want to use that as the standard for your TUI? No problem!\n- :heavy_check_mark: Extendible via interfaces. Easily create custom tints.\n- :heavy_check_mark: Works with `lipgloss` and similar tools which support the\n  `color.Color` interface from **stdlib**!\n\n---\n\n## :gear: Usage\n\n\u003c!-- template:begin:goget --\u003e\n\u003c!-- do not edit anything in this \"template\" block, its auto-generated --\u003e\n```console\ngo get -u github.com/lrstanley/bubbletint@latest\n```\n\u003c!-- template:end:goget --\u003e\n\n[Take a look at all tints here](./DEFAULT_TINTS.md).\n\nBubbleTint supports three different modes of usage, as shown below:\n\n### Global registry\n\n```go\npackage main\n\nimport (\n\t// [...]\n\ttint \"github.com/lrstanley/bubbletint\"\n)\n\n\nfunc main() {\n\t// [...]\n\ttint.NewDefaultRegistry()\n\ttint.SetTint(tint.TintDraculaPlus) // Set a specific tint.\n\ttint.SetTintID(\"dracula_plus\") // Or by ID (this aligns with a Tint's ID() method).\n\n\t// You can now use methods like tint.Bg(), tint.Fg(), tint.BrightGreen(), etc.\n\tstyle := lipgloss.NewStyle().SetForeground(tint.Fg()).Background(tint.BrightGreen())\n}\n```\n\n### Custom Registry\n\n```go\npackage main\n\nimport (\n\t// [...]\n\ttint \"github.com/lrstanley/bubbletint\"\n)\n\n\nfunc main() {\n\t// [...]\n\ttheme := tint.NewRegistry(\n\t\ttint.TintDraculaPlus, // Set default/current tint.\n\t\ttint.TintGithub,\n\t\ttint.TintTomorrow,\n\t\ttint.TintTokyoNight,\n\t}\n\n\ttheme.Register(tint.TintNord) // Register additional tints on the custom registry.\n\ttheme.SetTint(tint.TintNord) // Can still set a tint on a custom registry.\n\n\t// Can also paginate through tints, using PreviousTint/NextTint\n\ttheme.NextTint()\n\n\t// You can now use methods like theme.Bg(), theme.Fg(), theme.BrightGreen(), etc.\n\tstyle := lipgloss.NewStyle().SetForeground(theme.Fg()).Background(theme.BrightGreen())\n}\n```\n\n### Use specific tints\n\n```go\npackage main\n\nimport (\n\t// [...]\n\ttint \"github.com/lrstanley/bubbletint\"\n)\n\nvar (\n\tstatusbarStyle = lipgloss.NewStyle().\n\t\tSetForeground(tint.TintDraculaPlus.Fg()).\n\t\tBackground(tint.TintDraculaPlus.BrightGreen())\n)\n\n// Or:\nvar (\n\ttheme = tint.TintDraculaPlus\n\tstatusbarStyle = lipgloss.NewStyle().SetForeground(theme.Fg()).Background(theme.BrightGreen())\n)\n```\n\n... and that's it!\n\n---\n\n## :clap: Examples\n\n### Package manager example\n\n- Uses a static theme with a specific palette for the entire application.\n- [Example source](./examples/package-manager/main.go).\n\n![package-manager example](https://cdn.liam.sh/share/2022/11/WindowsTerminal_atWQHluo9n.gif)\n\n### Complex example\n\n- Uses the default registry (with all tints), and has keybinds to paginate through each tint.\n- Note that only a portion of this example is styled (e.g. not a full background color, which\n  may make sense for some of the provided tints).\n- [Example source](./examples/complex).\n\n![complex example](https://cdn.liam.sh/share/2022/11/WindowsTerminal_kBG3oPPSrH.gif)\n\n---\n\n\u003c!-- template:begin:support --\u003e\n\u003c!-- do not edit anything in this \"template\" block, its auto-generated --\u003e\n## :raising_hand_man: Support \u0026 Assistance\n\n* :heart: Please review the [Code of Conduct](.github/CODE_OF_CONDUCT.md) for\n     guidelines on ensuring everyone has the best experience interacting with\n     the community.\n* :raising_hand_man: Take a look at the [support](.github/SUPPORT.md) document on\n     guidelines for tips on how to ask the right questions.\n* :lady_beetle: For all features/bugs/issues/questions/etc, [head over here](https://github.com/lrstanley/bubbletint/issues/new/choose).\n\u003c!-- template:end:support --\u003e\n\n\u003c!-- template:begin:contributing --\u003e\n\u003c!-- do not edit anything in this \"template\" block, its auto-generated --\u003e\n## :handshake: Contributing\n\n* :heart: Please review the [Code of Conduct](.github/CODE_OF_CONDUCT.md) for guidelines\n     on ensuring everyone has the best experience interacting with the\n    community.\n* :clipboard: Please review the [contributing](.github/CONTRIBUTING.md) doc for submitting\n     issues/a guide on submitting pull requests and helping out.\n* :old_key: For anything security related, please review this repositories [security policy](https://github.com/lrstanley/bubbletint/security/policy).\n\u003c!-- template:end:contributing --\u003e\n\n\u003c!-- template:begin:license --\u003e\n\u003c!-- do not edit anything in this \"template\" block, its auto-generated --\u003e\n## :balance_scale: License\n\n```\nMIT License\n\nCopyright (c) 2022 Liam Stanley \u003cliam@liam.sh\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n_Also located [here](LICENSE)_\n\u003c!-- template:end:license --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flrstanley%2Fbubbletint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flrstanley%2Fbubbletint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flrstanley%2Fbubbletint/lists"}