{"id":19357888,"url":"https://github.com/vfosnar/nix-colors-adapters","last_synced_at":"2025-07-11T14:17:49.070Z","repository":{"id":239463898,"uuid":"799593353","full_name":"vfosnar/nix-colors-adapters","owner":"vfosnar","description":"Collection of nix-colors adapters (Mirrored from GitLab)","archived":false,"fork":false,"pushed_at":"2024-05-13T11:09:54.000Z","size":364,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T13:08:11.653Z","etag":null,"topics":["adapter","adapters","nix","nix-colors","nix-flake","nixos","ricing","theming"],"latest_commit_sha":null,"homepage":"https://gitlab.com/vfosnar/nix-colors-adapters","language":"Nix","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vfosnar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-12T15:51:02.000Z","updated_at":"2024-08-28T14:47:14.000Z","dependencies_parsed_at":"2024-05-12T17:31:31.349Z","dependency_job_id":"b259aeed-1ab7-4f81-a5e7-43c25d1870fb","html_url":"https://github.com/vfosnar/nix-colors-adapters","commit_stats":null,"previous_names":["vfosnar/nix-colors-adapters"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vfosnar/nix-colors-adapters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfosnar%2Fnix-colors-adapters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfosnar%2Fnix-colors-adapters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfosnar%2Fnix-colors-adapters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfosnar%2Fnix-colors-adapters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vfosnar","download_url":"https://codeload.github.com/vfosnar/nix-colors-adapters/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfosnar%2Fnix-colors-adapters/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264831896,"owners_count":23670599,"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":["adapter","adapters","nix","nix-colors","nix-flake","nixos","ricing","theming"],"created_at":"2024-11-10T07:09:33.396Z","updated_at":"2025-07-11T14:17:49.054Z","avatar_url":"https://github.com/vfosnar.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ❄️ nix-colors-adapters\n\n\u003e **Configure theme of all your apps with a single line**\n\nCollection of adapters for automatically applying [nix-colors](https://github.com/Misterio77/nix-colors) `base16` schemes.\n\nFirefox:\n![Two Firefox windows, one with Gruvbox Dark and second with Ayu Light theme](./assets/firefox.png)\n\nDolphin (Kvantum):\n![Two Dolphin windows, one with Gruvbox Dark and second with Ayu Light theme](./assets/dolphin.png)\n\nCode for this example:\n\n```diff\n- colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-hard;\n+ colorScheme = inputs.nix-colors.colorSchemes.ayu-light;\n```\n\n## Adapters\n\n| Adapter              | Accent | Notes                                                                      |\n| -------------------- | ------ | -------------------------------------------------------------------------- |\n| Adwaita (GTK3, GTK4) | 🟢      | sets GTK3 theme to `adw-gtk3`                                              |\n| Alacritty            | 🔴      |                                                                            |\n| dunst                | 🟠      |                                                                            |\n| ✨Firefox✨            | 🟢      | depends on Adwaita                                                         |\n| GTK2                 | 🟠      |                                                                            |\n| Kvantum              | 🟠      | Kvantum is problematic, consider disabling it if you encounter broken apps |\n| Rofi                 | 🔴      |                                                                            |\n| swaylock             | 🟠      |                                                                            |\n| Wezterm              | 🔴      |                                                                            |\n\n\n(🟢 supported, 🟠 possible, 🔴 impossible)\n\n## Install (system flake + system home-manager)\n\n1. configure home-manager, make sure to pass `inputs` to your home module ([vimjoyer tutorial](https://www.youtube.com/watch?v=FcC2dzecovw))\n2. add `nix-colors` and `nix-colors-adapters` to you `inputs` in `flake.nix`:\n```\ninputs = {\n    ...\n    nix-colors.url = \"github:misterio77/nix-colors\";\n    nix-colors-adapters.url = \"gitlab:vfosnar/nix-colors-adapters\";\n    ...\n};\n```\n3. import them in your home module `home.nix`:\n```\nimports = [\n    ...\n    inputs.nix-colors.homeManagerModules.default\n    inputs.nix-colors-adapters.homeManagerModules.default\n    ...\n];\n```\n4. you're done!\n\n## Configuration (home.nix)\n\nYou can configure any `base16` theme using [nix-colors](https://github.com/Misterio77/nix-colors).\n\nTo configure `nix-colors` with Gruvbox Dark Hard:\n```nix\ncolorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-hard;\n```\n\n### Enable/disable adapter\n\nAll adapters are enabled by default. To disable an adapter set `nixColorsAdapters.\u003cadapter\u003e.enable = false;`. For example to disable the `kvantum` adapter so you can manage its theme manually:\n```\nnixColorsAdapters = {\n    kvantum.enable = false;\n};\n```\n\n### Configure Firefox\nFor Firefox to work you need to specify a list of profile names. The configuration will only apply to these profiles. To properly apply colors the `System theme — auto` theme must be manually set in Firefox settings.\n```\nnixColorsAdapters = {\n    firefox.profiles = [ \"alice\", \"bob\" ];\n};\n```\n\n### Configure Wezterm\nThemes for Wezterm cannot be applied automatically so you have to run the following in your wezterm.lua:\n```lua\nconfig.colors = wezterm.color.load_base16_scheme(\"${config.nixColorsAdapters.wezterm.base16-file}\");\nreturn config;\n```\nor if configuring Wezterm outside of home manager\n```lua\nlocal wezterm = require 'wezterm';\nconfig.colors = wezterm.color.load_base16_scheme(\" ~/.config/wezterm/nix-colors-adapters-base16.yaml\");\nreturn config;\n```\n\n## Accent color\nThe accent color for selected theme is automatically selected for known themes ([source](./lib/default.nix)). If you want to override the color and provide your own just set `nixColorsAdapters.accent`. Example:\n\n```\nnixColorsAdapters = {\n    accent = \"ff0000\";\n    # or\n    accent = config.colorScheme.colors.base08;\n};\n```\n\n## Sources\n\n- [Catppuccin](https://github.com/catppuccin)\n- [mozilla](https://www.mozilla.org)\n- [tinted-theming](https://github.com/tinted-theming)\n- [vimjoyer](https://github.com/vimjoyer)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfosnar%2Fnix-colors-adapters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvfosnar%2Fnix-colors-adapters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfosnar%2Fnix-colors-adapters/lists"}