

This should affect the style of the scroll bars – generally they should be Respect these settings and change elements based on them. file_lightĬertain Sublime Text settings are design to influence the UI. The attributes are assigned based on the V value of the background color, However, have the attributes based on the color scheme specific to the selected Most elements have theĪttributes set based on the global color scheme. Luminosity 🔗Īlthough not available on all elements, many have attributes set based on theĪpproximate luminosity of the current color scheme. Set whenever the user’s mouse is hovered over an element. The following attributes are common to all elements: hover To check for the absence of an attribute, prepend a ! to the name. Elements that use a different root font size will specify in theĪttributes are specified as an array of strings. The rem size is based on the global setting font_size for mostĮlements. While the second value is applied to the top and bottomĪn array of four integers – the values are applied, in order, to the left, Padding and margin may be specified in one of three ways:Ī single integer value – the same value is applied to the left, top, right andĪn array of two integers – the first value is applied to the left and right, Sublime Text automatically handles scaling UIĮlements based on the screen density. Integer units in a theme referring to dimensions are always specified inĭevice-independent pixels (DIP). Sublime Text willĪutomatically use the version when being displayed on a high-DPI All file paths in the theme definition should reference theĪ second version of each texture should also be included at double the DPI, added to the filename right before the extension. Saved at “normal” DPI, where each pixel in the file will be mapped to oneĭevice pixel. Texture Images 🔗Īll textures in a theme are specified using PNG images. Subsequent rules that match will override properties from previous rules.

All rules are tested, in order, against each element. Unlike CSS, a Sublime Text theme does not do specificity matching when applying
EXTENSION SUBLIME TEXT HOW TO
The follow sections discuss information about images and how to specify styles. Some properties areĪvailable on all elements, while others are specific to an individual element. Properties refer to all other keys in the JSON objects.

The "platforms" key is an array of strings specifying the what operating Parents must be ordered from furthest to closest parent. "attributes" that must be matched in a parent element. The "parents" key is an array of objects specifying the "class" and A complete theme will have many more rules to cover all elements used in An optional key “variables” with an objectĬontaining variable/value pairs may be added. Should be an object containing a key “rules” with the value of 3179Īn array of rules. sublime-theme file contains a single JSON document. It isĪ JSON format that specifies rules for matching elements and modifying theirĪ. Sublime Text themes are implemented via the. The properties set on each element can beĬonditionally changed based on user interaction and settings. UI can have up to four layers of textures or fills applied, with properties toĬontrol opacity and padding.
EXTENSION SUBLIME TEXT FULL
Prevent texture degradation and provide full alpha control. The theme engine for Sublime Text is based on raster graphics. The highlighting of source code, markup and prose is Refers strictly to the look of the UI – buttons, select lists, the sidebar, The look of the Sublime Text interface is controlled by themes.
