forked from Monnoroch/ColorHighlighter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ColorHighlighter.sublime-settings
127 lines (127 loc) · 5.02 KB
/
ColorHighlighter.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"enabled": true,
"style": "default",
"icons": true,
"ha_style": "default",
"ha_icons": false,
"default_keybindings": true,
"convert_util_path" : "convert",
"file_exts": [".css", ".sass", ".scss", ".less", ".styl", ".html", ".js", ".sublime-settings", ".tmTheme", ".erb", ".haml", ".back", ".py", ".md"],
"channels": {
"empty": "",
"hex2": "[0-9a-fA-F]{2}",
"hex1": "[0-9a-fA-F]",
"dec": "\\d{1,3}",
"float": "(?:[0|1])|(?:[1][\\.]?[0]*)|(?:[0]?[\\.]\\d*)",
"perc": "\\d{1,3}[%]",
"hue": "dec",
"saturation": "perc",
"value": "perc",
"lightness": "perc"
},
"formats": {
"@named": {
"description": "Named css colors"
},
"@varless": {
"description": "Less variables: @a-b-c"
},
"@varsass": {
"description": "Sass variables: $a-b-c"
},
"@varstyl": {
"description": "Styl variables: a-b-c"
},
"@varstyldollar": {
"description": "Styl variables: $a-b-c"
},
"sharp8": {
"description": "Hex #RRGGBBAA color format",
"regex": "#(?P<R>hex2)(?P<G>hex2)(?P<B>hex2)(?P<A>hex2)",
"white": "#FFFFFFFF",
"disable_exts": [".py"]
},
"sharp6": {
"description": "Hex #RRGGBB color format",
"regex": "#(?P<R>hex2)(?P<G>hex2)(?P<B>hex2)",
"white": "#FFFFFF",
"after": "sharp8",
"disable_exts": ".py"
},
"sharp4": {
"description": "Hex #RGBA color format",
"regex": "#(?P<R>hex1)(?P<G>hex1)(?P<B>hex1)(?P<A>hex1)",
"white": "#FFFF",
"after": "sharp6"
},
"sharp3": {
"description": "Hex #RGB color format",
"regex": "#(?P<R>hex1)(?P<G>hex1)(?P<B>hex1)",
"white": "#FFF",
"after": "sharp4"
},
"hex8": {
"description": "Hex 0xRRGGBBAA color format",
"regex": "0x(?P<R>hex2)(?P<G>hex2)(?P<B>hex2)(?P<A>hex2)",
"white": "0xFFFFFFFF"
},
"hex6": {
"description": "Hex 0xRRGGBB color format",
"regex": "0x(?P<R>hex2)(?P<G>hex2)(?P<B>hex2)",
"white": "0xFFFFFF",
"after": "hex8"
},
"hex4": {
"description": "Hex 0xRGBA color format",
"regex": "0x(?P<R>hex1)(?P<G>hex1)(?P<B>hex1)(?P<A>hex1)",
"white": "0xFFFF",
"after": "hex6"
},
"hex3": {
"description": "Hex 0xRGB color format",
"regex": "0x(?P<R>hex1)(?P<G>hex1)(?P<B>hex1)",
"white": "0xFFF",
"after": "hex4"
},
"rgba": {
"description": "rgba(255,255,255,1) color format",
"regex": "rgba[(][ ]*(?P<R>dec)[ ]*[,][ ]*(?P<G>dec)[ ]*[,][ ]*(?P<B>dec)[ ]*[,][ ]*(?P<A>float)[ ]*[)]",
"white": "rgba(255, 255, 255, 1)"
},
"rgb": {
"description": "rgb(255,255,255) color format",
"regex": "rgb[(][ ]*(?P<R>dec)[ ]*[,][ ]*(?P<G>dec)[ ]*[,][ ]*(?P<B>dec)[ ]*[)]",
"white": "rgb(255, 255, 255)"
},
"rgba_array": {
"description": "[r, g, b, a] color format, where each channel can be int(0..255) or float(0. .. 1.) or percentage (0..100)%. For example: [255, 100%, 1., 255]",
"regex": "[\\[][ ]*(?P<R>dec|perc|float)[ ]*[,][ ]*(?P<G>dec|perc|float)[ ]*[,][ ]*(?P<B>dec|perc|float)[ ]*[,][ ]*(?P<A>dec|perc|float)[ ]*[\\]]",
"white": "[255, 255, 255, 255]"
},
"rgb_array": {
"description": "[r, g, b] color format, where each channel can be int(0..255) or float(0. .. 1.) or percentage (0..100)%. For example: [255, 100%, 1., 255]",
"regex": "[\\[][ ]*(?P<R>dec|perc|float)[ ]*[,][ ]*(?P<G>dec|perc|float)[ ]*[,][ ]*(?P<B>dec|perc|float)[ ]*[\\]]",
"white": "[255, 255, 255]"
},
"hsva": {
"description": "hsva(hue 0..255, s%, v%, alpha 0.0 .. 1.0) color format",
"regex": "hsva[(][ ]*(?P<R>hue)[ ]*[,][ ]*(?P<G>saturation)[ ]*[,][ ]*(?P<B>value)[ ]*[,][ ]*(?P<A>float)[ ]*[)]",
"white": "hsva(0, 0%, 100%, 1.)"
},
"hsv": {
"description": "hsv(hue 0..255, s%, v%) color format",
"regex": "hsv[(][ ]*(?P<R>hue)[ ]*[,][ ]*(?P<G>saturation)[ ]*[,][ ]*(?P<B>value)[ ]*[)]",
"white": "hsv(0, 0%, 100%)"
},
"hsla": {
"description": "hsla(hue 0..255, s%, v%, alpha 0.0 .. 1.0) color format",
"regex": "hsla[(][ ]*(?P<R>hue)[ ]*[,][ ]*(?P<G>saturation)[ ]*[,][ ]*(?P<B>lightness)[ ]*[,][ ]*(?P<A>float)[ ]*[)]",
"white": "hsla(0, 0%, 100%, 1.)"
},
"hsl": {
"description": "hsl(hue 0..255, s%, v%) color format",
"regex": "hsl[(][ ]*(?P<R>hue)[ ]*[,][ ]*(?P<G>saturation)[ ]*[,][ ]*(?P<B>lightness)[ ]*[)]",
"white": "hsl(0, 0%, 100%)"
}
}
}