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

File​Icons

by braver ST3 Top 100

File icons for Sublime Text

Labels file, icons

Details

Installs

  • Total 286K
  • Win 179K
  • Mac 45K
  • Linux 62K
Apr 20 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
Windows 0 37 42 60 38 51 27 31 46 49 49 31 48 28 24 41 44 39 42 34 36 43 40 42 43 59 52 41 30 35 35 43 55 34 37 36 45 45 31 35 44 33 34 29 38 40
Mac 1 13 11 10 15 4 6 7 10 12 8 18 16 7 5 9 15 19 17 9 9 8 7 8 16 12 11 5 9 6 15 12 24 8 8 11 17 14 25 9 16 12 9 14 16 12
Linux 1 24 18 17 26 17 17 17 15 22 20 16 16 14 14 9 19 19 15 17 31 10 20 15 17 15 14 7 18 22 23 15 11 15 11 12 13 15 13 17 26 17 14 15 26 21

Readme

Source
raw.​githubusercontent.​com

FileIcons

Colored file icons for Sublime Text. Also available in greyscale.

Adds specific, colored icons for most file types for the sidebar in Sublime Text. Supports both the Default and Adaptive themes.

Inspired by A File Icon, but simpler:

  • Doesn't introduce “alias” languages like “Javascript (Gulpfile)”
  • No runtime code, no restarting required
  • Zero configuration

Customize

The following changes are made to Adaptive/Default.sublime-theme. You can override them by creating a theme file with the same name in your Packages/User directory.

[
  {
    "class": "icon_file_type",
    "layer0.tint": [255, 255, 255],
    "layer0.opacity": 0.75,
    "content_margin": [8, 8]
  },
  {
    "class": "icon_file_type",
    "parents": [{"class": "tree_row", "attributes": ["hover"]}],
    "layer0.opacity": 0.5
  },
  {
    "class": "icon_file_type",
    "parents": [{"class": "tree_row", "attributes": ["selected"]}],
    "layer0.opacity": 1.0
  }
]

Contributing

The “build” directory contains svg assets. Each icon is assigned a color in icons.json, available colors are listed in colors.json.

PNG icons are built using a small app written in Rust:

  • cd build
  • cargo run

To add an icon:

  • add an svg asset with the correct name
  • add an entry to icons.json and assign it a color
  • add an entry to the preferences directory
  • run the build
  • commit the files
  • open a PR
  • 💃

Enable file icons for 3rd party themes

To get file icons in any theme other than Default or Adaptive, take the following steps:

  • After installing FileIcons through Package Control, go to the Sublime Text “Packages” directory (e.g. via the command “Browse Packages”).
  • Create a “FileIcons/theme” directory structure in your “Packages” directory.
  • In your settings, check what theme you're using (e.g. 'itg.flat.dark.sublime-theme').
  • In the “FileIcons/theme” directory, create a file with the name of the theme you are using and copy the theme overrides that make FileIcons work into it.
  • Restart Sublime Text and you should see icons in the sidebar!

Buy me a coffee

☕️👌🏻

If you enjoy this package, feel free to make a little donation via PayPal towards the coffee that keeps this project running. It's much appreciated!