{"id":13746434,"url":"https://github.com/transcranial/atom-transparency","last_synced_at":"2025-04-06T23:17:06.591Z","repository":{"id":3503225,"uuid":"49790116","full_name":"transcranial/atom-transparency","owner":"transcranial","description":"How to make your Atom editor transparent","archived":false,"fork":false,"pushed_at":"2018-07-18T22:14:46.000Z","size":1046,"stargazers_count":472,"open_issues_count":6,"forks_count":48,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-05-22T16:32:33.938Z","etag":null,"topics":["atom","atom-editor"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"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/transcranial.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}},"created_at":"2016-01-16T20:40:46.000Z","updated_at":"2024-03-14T08:29:29.000Z","dependencies_parsed_at":"2022-08-04T12:45:36.331Z","dependency_job_id":null,"html_url":"https://github.com/transcranial/atom-transparency","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/transcranial%2Fatom-transparency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transcranial%2Fatom-transparency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transcranial%2Fatom-transparency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transcranial%2Fatom-transparency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transcranial","download_url":"https://codeload.github.com/transcranial/atom-transparency/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247563936,"owners_count":20958971,"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":["atom","atom-editor"],"created_at":"2024-08-03T06:00:53.583Z","updated_at":"2025-04-06T23:17:06.565Z","avatar_url":"https://github.com/transcranial.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"# How To Achieve Atom Editor Transparency\n\nIn atom, there is no easy config (yet) to set window or background transparency as you would in iTerm or TextMate. Here's a straightforward guide on how to achieve transparent window awesomeness.\n\nThis has been tested on both macOS and Ubuntu 14.04 desktop, for Atom versions 1.0 up through 1.11.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshot.png\" /\u003e\n\u003c/p\u003e\n\nAtom must be built from source with 2 additional lines of code. This makes Atom run as a frameless window which allows transparency to be enabled within Electron. After [cloning or forking Atom](https://github.com/atom/atom), add the following to `options`:\n\n```coffeescript\nframe: false\ntransparent: true\n```\n\nin `src/browser/atom-window.coffee` (pre-v1.9) or `src/main-process/atom-window.coffee` in versions 1.9+,\n\nchanging this:\n\n```coffeescript\noptions =\n  show: false\n  title: 'Atom'\n  backgroundColor: \"#fff\"\n  ...\n```\n\nto this:\n\n```coffeescript\noptions =\n  frame: false\n  transparent: true\n  show: false\n  title: 'Atom'\n  #backgroundColor: \"#fff\"\n  ...\n```\n\nNote `backgroundColor` is commented out.\n\nThen run:\n\n```sh\n./script/clean \u0026\u0026 ./script/build\n```\n\nRefer to the official [build guides](https://github.com/atom/atom#building) for additional instructions if necessary. You may want to build a debian package, for example.\n\nThis can take awhile, but once complete, fire up Atom.\n\n**On linux, add an additional `--enable-transparent-visuals` flag while starting atom.**\n\n**In Atom v1.7+, atom must be started with an additional `--disable-gpu` flag.** Otherwise, there will be a lot of UI flickering.\n\nOpen up your editor LESS stylesheet (`⌘-shift-p` or `ctrl-shift-p`, then `Application: Open Your Stylesheet`), and add the following CSS. This is a basic guide - you can experiment with your own settings to get the effect you want. For example, to avoid text-on-text collisions in the autocomplete popups, I set `atom-overlay \u003e *` to near-complete opacity.\n\n```css\nhtml, html * {\n  background: rgba(0, 0, 0, 0) !important;\n}\n\natom-pane, atom-panel, atom-notification {\n  background: rgba(0, 0, 0, 0.5) !important;\n}\n\natom-overlay \u003e * {\n  background: rgba(0, 0, 0, 0.9) !important;\n}\n\natom-text-editor::shadow {\n  .cursor-line {\n    background-color: rgba(0, 0, 0, 0.2) !important;\n  }\n  .selection .region {\n    background-color: rgba(0, 0, 0, 0.2) !important;\n  }\n  .gutter {\n    background-color: rgba(0, 0, 0, 0) !important;\n  }\n}\n```\n\nIn the CSS above, this works pre-v1.9:\n\n```css\nhtml * {\n  background: rgba(0, 0, 0, 0) !important;\n}\n```\n\nbut for v1.9+, this must be:\n\n```css\nhtml, html * {\n  background: rgba(0, 0, 0, 0) !important;\n}\n```\n\nThat's it--pretty simple!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranscranial%2Fatom-transparency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftranscranial%2Fatom-transparency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranscranial%2Fatom-transparency/lists"}