
The closest color to red, as defined in the color scheme var (-redish )ĥ0% opacity of the closest color to red, as defined in the color scheme color (var(-redish ) a (0.5 )) Legacy Color Syntax The color white, using rgb () functional notation rgb (255, 255, 255 )ĥ0% opacity white, using hsla () functional notation hsla (0, 100%, 100%, 0.5 ) Additionally, all predefined variables that are derived from the color scheme are available for use.
#SUBLIME TEXT THEMES MOD#
This includes support for hex, rgb (), hsl (), variables and the color mod function. Since Sublime Text build 3177, colors in themes may now be specified using CSS syntax, as supported by minihtml. The only exception to this rule is that variables may be used as the base color for the CSS color () mod function.Ĭolors may be specified by CSS or legacy color syntax: Variables may be used as the value for any property, but the variable must be the entire value, it may not be embedded within another variable. " class " : " label_control ", " fg " : " var(light_gray) " Using a variable requires specifying a string in the format var (example_variable_name ). Variable names are strings, however the value may be a string, number, boolean, array or object. Reusable variables may be defined by a JSON object under the top-level key "variables". Variable overrides will affect rules both in the base theme and the extending theme. Any variables from the extending theme will override variables with the same name in the base theme. The resulting list of rules will start with the base theme rules followed by the extending theme rules. A complete theme will have many more rules to cover all elements used in the UI. An optional key "variables" with an object containing variable/value pairs may be added. The document should be an object containing a key "rules" with the value of 3179 an array of rules. sublime-theme file contains a single JSON document. It is a JSON format that specifies rules for matching elements and modifying their appearance.Ī. Sublime Text themes are implemented via the. The properties set on each element can be conditionally changed based on user interaction and settings. Each element in the UI can have up to four layers of textures or fills applied, with properties to control opacity and padding.
#SUBLIME TEXT THEMES FULL#
PNGs are used to 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 controlled by a color scheme. The term theme refers strictly to the look of the UI – buttons, select lists, the sidebar, tabs and so forth. The look of the Sublime Text interface is controlled by themes.
