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

File​Icons

by braver ST3 Trending Top 100

File icons for Sublime Text

Labels file, icons

Details

Installs

  • Total 292K
  • Win 182K
  • Mac 46K
  • Linux 64K
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 1 37 51 33 35 38 27 31 38 35 44 36 63 28 24 42 39 45 34 36 24 28 40 36 37 35 35 24 35 34 33 23 19 29 30 31 33 34 33 45 38 39 35 43 47 47
Mac 0 6 10 16 12 14 5 8 12 11 5 15 10 7 7 14 13 6 11 7 7 10 12 8 6 4 6 3 3 8 7 8 9 12 7 2 8 12 5 9 12 4 8 13 3 10
Linux 0 12 17 17 17 12 14 14 13 16 16 22 20 12 11 18 10 10 21 16 15 9 13 15 10 17 9 15 19 18 12 21 20 9 15 18 12 18 20 15 19 25 23 13 20 13

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!