{"id":18981936,"url":"https://github.com/austinwilcox/hex2rgba","last_synced_at":"2025-04-12T22:45:49.504Z","repository":{"id":157541882,"uuid":"619031192","full_name":"austinwilcox/hex2rgba","owner":"austinwilcox","description":"A Neovim plugin that convert hex values on a line of text into rgba values.","archived":false,"fork":false,"pushed_at":"2024-01-24T13:17:16.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T22:45:23.094Z","etag":null,"topics":["colors","hex","lua","neovim","rgba"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/austinwilcox.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-03-26T03:45:27.000Z","updated_at":"2024-12-12T13:56:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7de4af6-624e-49f0-9041-3e7bd273ac8b","html_url":"https://github.com/austinwilcox/hex2rgba","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinwilcox%2Fhex2rgba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinwilcox%2Fhex2rgba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinwilcox%2Fhex2rgba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinwilcox%2Fhex2rgba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austinwilcox","download_url":"https://codeload.github.com/austinwilcox/hex2rgba/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643047,"owners_count":21138353,"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":["colors","hex","lua","neovim","rgba"],"created_at":"2024-11-08T16:11:50.357Z","updated_at":"2025-04-12T22:45:49.482Z","avatar_url":"https://github.com/austinwilcox.png","language":"Lua","readme":"# Hex 2 RGBA\r\nI wrote this quick little plugin because I was getting design files that were using opacity with hex values, and I found it easier to switch those over to rgba and use that in my code.\r\n\r\n## Packer\r\n```lua\r\nuse \"austinwilcox/hex2rgba\"\r\n```\r\n## Lazy\r\n```lua\r\n{\r\n  \"austinwilcox/hex2rgba\"\r\n}\r\n```\r\n\r\nThen add the following command in a lua file or your init.vim\r\n```lua\r\nlocal map = vim.api.nvim_set_keymap\r\nmap('n', '\u003cleader\u003ecs', ':lua require(\"hex2rgba\").hex2rgba()\u003ccr\u003e', { noremap = true })\r\n```\r\n\r\nNow with the keybinding of ```\u003cleader\u003ecs``` hex2rgba will find the first instance of a hex color value on the current line, and replace that with the correct rgba value.\r\nIf you execute the command again, it will look for another instance of a hex value. This will work with hex sizes of 3 or 6.\r\n\r\nIf you have any questions please feel free to reach out, or submit an issue.\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinwilcox%2Fhex2rgba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustinwilcox%2Fhex2rgba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinwilcox%2Fhex2rgba/lists"}