ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Theme - Gravity

by frankyonnetti ST2/ST3

Sublime Text 3 dark and light theme that feels at home on macOS

Labels theme

Details

Installs

  • Total 20K
  • Win 10K
  • OS X 7K
  • Linux 3K
Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5
Windows 6 6 6 7 4 9 9 8 12 6 9 9 9 5 8 3 8 11 2 4 10 8 14 9 14 4 3 10 9 13 8 9 2 5 3 6 7 6 7 4 3 11 10 4 9 3
OS X 0 4 3 5 3 3 5 6 3 2 5 1 5 9 4 1 3 6 3 1 5 6 6 9 4 1 2 6 4 2 4 3 2 3 4 2 7 2 2 5 3 4 6 1 5 2
Linux 0 2 1 3 0 3 2 3 5 3 7 0 3 0 2 3 1 2 1 7 6 7 5 3 1 2 2 3 2 3 1 1 1 3 2 3 2 3 2 6 3 3 3 1 2 7

Readme

Source
raw.​githubusercontent.​com

Gravity Theme

A Sublime Text 3 UI theme.

The goal of this Sublime Text UI was to make a dark and light theme that feels at home on macOS.

  • Version 3.0.7 Added color titlebar option.
  • Version 3.0.x introduces Gravity One and sidebar header.
  • Version 2.5 introduces OS X blue highlight color and cleaned up UI.
  • Version 2.0 introduces the Reverse Gravity light theme.

Gravity Theme


Gravity One Theme


Reverse Gravity Theme

The Gravity theme has only been tested with Sublime Text 3.

Install using Package Control

If you're using Package Control, you can easily install the Gravity theme by using the Command Palette:

  • Go to Tools > Command Palette...
  • Type Package Control: Install Package
  • Search for Theme - Gravity

Install using GIT

  • Locate your Sublime Text “Packages” directory by using the menu item Preferences > Browse Packages...
  • Load up that directory in Terminal app; for example: cd /Users/Library/Application Support/Sublime Text 3/Packages
  • Next, run this GIT command: git clone git@github.com:frankyonnetti/gravity-sublime-theme.git"
  • Rename the folder to Theme - Gravity

Install manually

  • Use the Download ZIP button from GitHub.
  • Locate your Sublime Text “Packages” directory by using the menu item Preferences > Browse Packages...
  • Unzip the archive and rename the folder Theme - Gravity and place it in the “Packages” directory.

Activating the theme

  • Open your settings by using the menu Preferences > Settings - User
  • Add, or replace, the “theme:” settings with "theme": "Gravity.sublime-theme" or, "theme": "Gravity One.sublime-theme" or, "theme": "Reverse Gravity.sublime-theme"

Applying the new macOS title bar in Gravity:

  • Open your settings (if not already open) by using the menu Preferences > Settings - User
  • And add: "gravity_title_bar": true

Applying the file Tab height option:

  • Open your settings (if not already open) by using the menu Preferences > Settings - User
  • And add: "gravity_tab_height_tall": true or "gravity_tab_height_short": true

Applying the blue hightlight color option:

  • Open your settings (if not already open) by using the menu Preferences > Settings - User and add: "gravity_highlight_color_blue": true

Applying the sidebar header option:

  • Open your settings (if not already open) by using the menu Preferences > Settings - User and add: "gravity_sidebar_header": true

Replacing the default “fold” icon

Currently the only way to override the default code folding icon with the one for Gravity, you have to place the Theme - Default directory in the “Packages” directory. The Gravity fold icon looks like:

  • Download the directory with icon separately and place it in the “Packages” directory.
  • You can get there by using the menu item Preferences > Browse Packages...

Syntax color schemes

Gravity

The syntax color scheme is a port of the Monokai-Sublime scheme created for Gravity. Used the TmTheme scheme editor to create it.

  • Once you have Gravity installed, you can select the scheme by using the menu item Preferences > Color Scheme > Theme - Gravity > Monokai Gravity
  • The font used for the syntax shown in the screenshot is "font_face": "Monaco" and "font_size": 14

Reverse Gravity

  • Using one of the default color schemes called Dawn.

Gravity One

App icon

Download the white and orange app icons (v.1.0.1) designed to fit in Yosemite's dock along with the other OSX (10.10) icons.

  • To install the white or orange app icon, select Sublime Text in your Applications folder. From the Finder menu, select File > Get Info and drag the .icns file on top of the default Sublime Text icon in the Get Info window.

Trouble shooting

1) Font descenders are cut off in the file UI tabs

Apply this setting to your “Settings - User” file. "gravity_tab_font_small": true

2) The “Find” feature appears to be hidden behind the status bar.

When switching themes in Sublime Text, it will retain the height for the Find bar set in the previous theme. Sometimes this will cause the bar to appear hidden behind the status bar.

To fix, simply grab the bar and pull-up.

3) Missing sidebar icons.

Installing and switching themes in Sublime Text may cause some sidebar icons to not show. Disabling installed/inactive themes via Package Control should fix the issue.

Usage license

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.