@vkontakte/vkui-tokens 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (641) hide show
  1. package/README.md +108 -42
  2. package/build/compilers/index.d.ts +2 -2
  3. package/build/compilers/index.js +2 -0
  4. package/build/compilers/styles/compileStyles.d.ts +4 -2
  5. package/build/compilers/styles/compileStyles.js +31 -10
  6. package/build/compilers/styles/compileStyles.test.js +265 -196
  7. package/build/helpers/getAllButColors.d.ts +1 -0
  8. package/build/helpers/getAllButColors.js +17 -0
  9. package/build/helpers/getAllButColors.test.d.ts +1 -0
  10. package/build/helpers/getAllButColors.test.js +26 -0
  11. package/interfaces/general/geometry/index.d.ts +4 -0
  12. package/interfaces/general/index.d.ts +4 -0
  13. package/interfaces/themes/vkComDark/index.d.ts +1 -0
  14. package/interfaces/themes/vkComDark/index.js +2 -0
  15. package/interfaces/themes/vkIOSDark/index.d.ts +1 -0
  16. package/interfaces/themes/vkIOSDark/index.js +2 -0
  17. package/package.json +1 -1
  18. package/themeDescriptions/base/paradigm.js +11 -1
  19. package/themeDescriptions/base/vk.js +96 -98
  20. package/themes/calendar/cssVars/declarations/index.css +9 -0
  21. package/themes/calendar/cssVars/declarations/noColors.css +574 -0
  22. package/themes/calendar/cssVars/declarations/noSizes.css +1 -0
  23. package/themes/calendar/cssVars/declarations/onlyMedia.css +4 -0
  24. package/themes/calendar/cssVars/declarations/onlyVariables.css +5 -0
  25. package/themes/calendar/cssVars/declarations/onlyVariables.js +2 -2
  26. package/themes/calendar/cssVars/declarations/onlyVariablesLocal.css +520 -0
  27. package/themes/calendar/cssVars/theme/fallbacks/index.css +5 -0
  28. package/themes/calendar/cssVars/theme/fallbacks/index.less +5 -0
  29. package/themes/calendar/cssVars/theme/fallbacks/index.pcss +5 -0
  30. package/themes/calendar/cssVars/theme/fallbacks/index.scss +5 -0
  31. package/themes/calendar/cssVars/theme/fallbacks/index.styl +5 -0
  32. package/themes/calendar/cssVars/theme/index.js +44 -0
  33. package/themes/calendar/cssVars/theme/index.json +44 -0
  34. package/themes/calendar/index.css +5 -0
  35. package/themes/calendar/index.js +13 -0
  36. package/themes/calendar/index.json +13 -0
  37. package/themes/calendar/index.less +5 -0
  38. package/themes/calendar/index.pcss +5 -0
  39. package/themes/calendar/index.scss +5 -0
  40. package/themes/calendar/index.styl +5 -0
  41. package/themes/calendarDark/cssVars/declarations/index.css +9 -0
  42. package/themes/calendarDark/cssVars/declarations/noColors.css +574 -0
  43. package/themes/calendarDark/cssVars/declarations/noSizes.css +1 -0
  44. package/themes/calendarDark/cssVars/declarations/onlyMedia.css +4 -0
  45. package/themes/calendarDark/cssVars/declarations/onlyVariables.css +5 -0
  46. package/themes/calendarDark/cssVars/declarations/onlyVariables.js +2 -2
  47. package/themes/calendarDark/cssVars/declarations/onlyVariablesLocal.css +520 -0
  48. package/themes/calendarDark/cssVars/theme/fallbacks/index.css +5 -0
  49. package/themes/calendarDark/cssVars/theme/fallbacks/index.less +5 -0
  50. package/themes/calendarDark/cssVars/theme/fallbacks/index.pcss +5 -0
  51. package/themes/calendarDark/cssVars/theme/fallbacks/index.scss +5 -0
  52. package/themes/calendarDark/cssVars/theme/fallbacks/index.styl +5 -0
  53. package/themes/calendarDark/cssVars/theme/index.js +44 -0
  54. package/themes/calendarDark/cssVars/theme/index.json +44 -0
  55. package/themes/calendarDark/index.css +5 -0
  56. package/themes/calendarDark/index.js +13 -0
  57. package/themes/calendarDark/index.json +13 -0
  58. package/themes/calendarDark/index.less +5 -0
  59. package/themes/calendarDark/index.pcss +5 -0
  60. package/themes/calendarDark/index.scss +5 -0
  61. package/themes/calendarDark/index.styl +5 -0
  62. package/themes/calls/cssVars/declarations/index.css +13 -4
  63. package/themes/calls/cssVars/declarations/noColors.css +427 -0
  64. package/themes/calls/cssVars/declarations/noSizes.css +1 -0
  65. package/themes/calls/cssVars/declarations/onlyMedia.css +5 -1
  66. package/themes/calls/cssVars/declarations/onlyVariables.css +6 -1
  67. package/themes/calls/cssVars/declarations/onlyVariables.js +2 -2
  68. package/themes/calls/cssVars/declarations/onlyVariablesLocal.css +477 -0
  69. package/themes/calls/cssVars/theme/fallbacks/index.css +8 -3
  70. package/themes/calls/cssVars/theme/fallbacks/index.less +6 -1
  71. package/themes/calls/cssVars/theme/fallbacks/index.pcss +6 -1
  72. package/themes/calls/cssVars/theme/fallbacks/index.scss +7 -2
  73. package/themes/calls/cssVars/theme/fallbacks/index.styl +6 -1
  74. package/themes/calls/cssVars/theme/index.js +45 -1
  75. package/themes/calls/cssVars/theme/index.json +45 -1
  76. package/themes/calls/index.css +8 -3
  77. package/themes/calls/index.js +14 -1
  78. package/themes/calls/index.json +14 -1
  79. package/themes/calls/index.less +6 -1
  80. package/themes/calls/index.pcss +6 -1
  81. package/themes/calls/index.scss +7 -2
  82. package/themes/calls/index.styl +6 -1
  83. package/themes/cloud/cssVars/declarations/index.css +9 -0
  84. package/themes/cloud/cssVars/declarations/noColors.css +510 -0
  85. package/themes/cloud/cssVars/declarations/noSizes.css +1 -0
  86. package/themes/cloud/cssVars/declarations/onlyMedia.css +4 -0
  87. package/themes/cloud/cssVars/declarations/onlyVariables.css +5 -0
  88. package/themes/cloud/cssVars/declarations/onlyVariables.js +2 -2
  89. package/themes/cloud/cssVars/declarations/onlyVariablesLocal.css +500 -0
  90. package/themes/cloud/cssVars/theme/fallbacks/index.css +5 -0
  91. package/themes/cloud/cssVars/theme/fallbacks/index.less +5 -0
  92. package/themes/cloud/cssVars/theme/fallbacks/index.pcss +5 -0
  93. package/themes/cloud/cssVars/theme/fallbacks/index.scss +5 -0
  94. package/themes/cloud/cssVars/theme/fallbacks/index.styl +5 -0
  95. package/themes/cloud/cssVars/theme/index.js +44 -0
  96. package/themes/cloud/cssVars/theme/index.json +44 -0
  97. package/themes/cloud/index.css +5 -0
  98. package/themes/cloud/index.js +13 -0
  99. package/themes/cloud/index.json +13 -0
  100. package/themes/cloud/index.less +5 -0
  101. package/themes/cloud/index.pcss +5 -0
  102. package/themes/cloud/index.scss +5 -0
  103. package/themes/cloud/index.styl +5 -0
  104. package/themes/home/cssVars/declarations/index.css +13 -4
  105. package/themes/home/cssVars/declarations/noColors.css +452 -0
  106. package/themes/home/cssVars/declarations/noSizes.css +1 -3
  107. package/themes/home/cssVars/declarations/onlyMedia.css +5 -1
  108. package/themes/home/cssVars/declarations/onlyVariables.css +6 -1
  109. package/themes/home/cssVars/declarations/onlyVariables.js +2 -2
  110. package/themes/home/cssVars/declarations/onlyVariablesLocal.css +497 -0
  111. package/themes/home/cssVars/theme/fallbacks/index.css +8 -3
  112. package/themes/home/cssVars/theme/fallbacks/index.less +6 -1
  113. package/themes/home/cssVars/theme/fallbacks/index.pcss +6 -1
  114. package/themes/home/cssVars/theme/fallbacks/index.scss +7 -2
  115. package/themes/home/cssVars/theme/fallbacks/index.styl +6 -1
  116. package/themes/home/cssVars/theme/index.js +45 -1
  117. package/themes/home/cssVars/theme/index.json +45 -1
  118. package/themes/home/index.css +8 -3
  119. package/themes/home/index.js +14 -1
  120. package/themes/home/index.json +14 -1
  121. package/themes/home/index.less +6 -1
  122. package/themes/home/index.pcss +6 -1
  123. package/themes/home/index.scss +7 -2
  124. package/themes/home/index.styl +6 -1
  125. package/themes/homeDark/cssVars/declarations/index.css +12 -4
  126. package/themes/homeDark/cssVars/declarations/noColors.css +466 -0
  127. package/themes/homeDark/cssVars/declarations/onlyMedia.css +5 -1
  128. package/themes/homeDark/cssVars/declarations/onlyVariables.css +5 -1
  129. package/themes/homeDark/cssVars/declarations/onlyVariables.js +2 -2
  130. package/themes/homeDark/cssVars/declarations/onlyVariablesLocal.css +496 -0
  131. package/themes/homeDark/cssVars/theme/fallbacks/index.css +7 -3
  132. package/themes/homeDark/cssVars/theme/fallbacks/index.less +5 -1
  133. package/themes/homeDark/cssVars/theme/fallbacks/index.pcss +5 -1
  134. package/themes/homeDark/cssVars/theme/fallbacks/index.scss +6 -2
  135. package/themes/homeDark/cssVars/theme/fallbacks/index.styl +5 -1
  136. package/themes/homeDark/cssVars/theme/index.js +41 -1
  137. package/themes/homeDark/cssVars/theme/index.json +41 -1
  138. package/themes/homeDark/index.css +7 -3
  139. package/themes/homeDark/index.js +13 -1
  140. package/themes/homeDark/index.json +13 -1
  141. package/themes/homeDark/index.less +5 -1
  142. package/themes/homeDark/index.pcss +5 -1
  143. package/themes/homeDark/index.scss +6 -2
  144. package/themes/homeDark/index.styl +5 -1
  145. package/themes/media/cssVars/declarations/index.css +14 -5
  146. package/themes/media/cssVars/declarations/noColors.css +638 -0
  147. package/themes/media/cssVars/declarations/noSizes.css +1 -0
  148. package/themes/media/cssVars/declarations/onlyMedia.css +4 -0
  149. package/themes/media/cssVars/declarations/onlyVariables.css +6 -1
  150. package/themes/media/cssVars/declarations/onlyVariables.js +2 -2
  151. package/themes/media/cssVars/declarations/onlyVariablesLocal.css +625 -0
  152. package/themes/media/cssVars/theme/fallbacks/index.css +10 -5
  153. package/themes/media/cssVars/theme/fallbacks/index.less +7 -2
  154. package/themes/media/cssVars/theme/fallbacks/index.pcss +7 -2
  155. package/themes/media/cssVars/theme/fallbacks/index.scss +10 -5
  156. package/themes/media/cssVars/theme/fallbacks/index.styl +7 -2
  157. package/themes/media/cssVars/theme/index.js +45 -1
  158. package/themes/media/cssVars/theme/index.json +45 -1
  159. package/themes/media/index.css +10 -5
  160. package/themes/media/index.js +14 -1
  161. package/themes/media/index.json +14 -1
  162. package/themes/media/index.less +7 -2
  163. package/themes/media/index.pcss +7 -2
  164. package/themes/media/index.scss +10 -5
  165. package/themes/media/index.styl +7 -2
  166. package/themes/mediaDark/cssVars/declarations/index.css +14 -5
  167. package/themes/mediaDark/cssVars/declarations/noColors.css +638 -0
  168. package/themes/mediaDark/cssVars/declarations/noSizes.css +1 -0
  169. package/themes/mediaDark/cssVars/declarations/onlyMedia.css +4 -0
  170. package/themes/mediaDark/cssVars/declarations/onlyVariables.css +6 -1
  171. package/themes/mediaDark/cssVars/declarations/onlyVariables.js +2 -2
  172. package/themes/mediaDark/cssVars/declarations/onlyVariablesLocal.css +625 -0
  173. package/themes/mediaDark/cssVars/theme/fallbacks/index.css +10 -5
  174. package/themes/mediaDark/cssVars/theme/fallbacks/index.less +7 -2
  175. package/themes/mediaDark/cssVars/theme/fallbacks/index.pcss +7 -2
  176. package/themes/mediaDark/cssVars/theme/fallbacks/index.scss +10 -5
  177. package/themes/mediaDark/cssVars/theme/fallbacks/index.styl +7 -2
  178. package/themes/mediaDark/cssVars/theme/index.js +45 -1
  179. package/themes/mediaDark/cssVars/theme/index.json +45 -1
  180. package/themes/mediaDark/index.css +10 -5
  181. package/themes/mediaDark/index.js +14 -1
  182. package/themes/mediaDark/index.json +14 -1
  183. package/themes/mediaDark/index.less +7 -2
  184. package/themes/mediaDark/index.pcss +7 -2
  185. package/themes/mediaDark/index.scss +10 -5
  186. package/themes/mediaDark/index.styl +7 -2
  187. package/themes/mycom/cssVars/declarations/index.css +14 -5
  188. package/themes/mycom/cssVars/declarations/noColors.css +637 -0
  189. package/themes/mycom/cssVars/declarations/noSizes.css +1 -0
  190. package/themes/mycom/cssVars/declarations/onlyMedia.css +4 -0
  191. package/themes/mycom/cssVars/declarations/onlyVariables.css +6 -1
  192. package/themes/mycom/cssVars/declarations/onlyVariables.js +2 -2
  193. package/themes/mycom/cssVars/declarations/onlyVariablesLocal.css +627 -0
  194. package/themes/mycom/cssVars/theme/fallbacks/index.css +10 -5
  195. package/themes/mycom/cssVars/theme/fallbacks/index.less +7 -2
  196. package/themes/mycom/cssVars/theme/fallbacks/index.pcss +7 -2
  197. package/themes/mycom/cssVars/theme/fallbacks/index.scss +10 -5
  198. package/themes/mycom/cssVars/theme/fallbacks/index.styl +7 -2
  199. package/themes/mycom/cssVars/theme/index.js +45 -1
  200. package/themes/mycom/cssVars/theme/index.json +45 -1
  201. package/themes/mycom/index.css +10 -5
  202. package/themes/mycom/index.js +14 -1
  203. package/themes/mycom/index.json +14 -1
  204. package/themes/mycom/index.less +7 -2
  205. package/themes/mycom/index.pcss +7 -2
  206. package/themes/mycom/index.scss +10 -5
  207. package/themes/mycom/index.styl +7 -2
  208. package/themes/octavius/cssVars/declarations/index.css +12 -4
  209. package/themes/octavius/cssVars/declarations/noColors.css +474 -0
  210. package/themes/octavius/cssVars/declarations/onlyMedia.css +5 -1
  211. package/themes/octavius/cssVars/declarations/onlyVariables.css +5 -1
  212. package/themes/octavius/cssVars/declarations/onlyVariables.js +2 -2
  213. package/themes/octavius/cssVars/declarations/onlyVariablesLocal.css +841 -0
  214. package/themes/octavius/cssVars/theme/fallbacks/index.css +7 -3
  215. package/themes/octavius/cssVars/theme/fallbacks/index.less +5 -1
  216. package/themes/octavius/cssVars/theme/fallbacks/index.pcss +5 -1
  217. package/themes/octavius/cssVars/theme/fallbacks/index.scss +6 -2
  218. package/themes/octavius/cssVars/theme/fallbacks/index.styl +5 -1
  219. package/themes/octavius/cssVars/theme/index.js +41 -1
  220. package/themes/octavius/cssVars/theme/index.json +41 -1
  221. package/themes/octavius/index.css +7 -3
  222. package/themes/octavius/index.js +13 -1
  223. package/themes/octavius/index.json +13 -1
  224. package/themes/octavius/index.less +5 -1
  225. package/themes/octavius/index.pcss +5 -1
  226. package/themes/octavius/index.scss +6 -2
  227. package/themes/octavius/index.styl +5 -1
  228. package/themes/octaviusCompact/cssVars/declarations/index.css +12 -4
  229. package/themes/octaviusCompact/cssVars/declarations/noColors.css +475 -0
  230. package/themes/octaviusCompact/cssVars/declarations/onlyMedia.css +5 -1
  231. package/themes/octaviusCompact/cssVars/declarations/onlyVariables.css +5 -1
  232. package/themes/octaviusCompact/cssVars/declarations/onlyVariables.js +2 -2
  233. package/themes/octaviusCompact/cssVars/declarations/onlyVariablesLocal.css +842 -0
  234. package/themes/octaviusCompact/cssVars/theme/fallbacks/index.css +7 -3
  235. package/themes/octaviusCompact/cssVars/theme/fallbacks/index.less +5 -1
  236. package/themes/octaviusCompact/cssVars/theme/fallbacks/index.pcss +5 -1
  237. package/themes/octaviusCompact/cssVars/theme/fallbacks/index.scss +6 -2
  238. package/themes/octaviusCompact/cssVars/theme/fallbacks/index.styl +5 -1
  239. package/themes/octaviusCompact/cssVars/theme/index.js +41 -1
  240. package/themes/octaviusCompact/cssVars/theme/index.json +41 -1
  241. package/themes/octaviusCompact/index.css +7 -3
  242. package/themes/octaviusCompact/index.js +13 -1
  243. package/themes/octaviusCompact/index.json +13 -1
  244. package/themes/octaviusCompact/index.less +5 -1
  245. package/themes/octaviusCompact/index.pcss +5 -1
  246. package/themes/octaviusCompact/index.scss +6 -2
  247. package/themes/octaviusCompact/index.styl +5 -1
  248. package/themes/octaviusCompactDark/cssVars/declarations/index.css +12 -4
  249. package/themes/octaviusCompactDark/cssVars/declarations/noColors.css +475 -0
  250. package/themes/octaviusCompactDark/cssVars/declarations/onlyMedia.css +5 -1
  251. package/themes/octaviusCompactDark/cssVars/declarations/onlyVariables.css +5 -1
  252. package/themes/octaviusCompactDark/cssVars/declarations/onlyVariables.js +2 -2
  253. package/themes/octaviusCompactDark/cssVars/declarations/onlyVariablesLocal.css +842 -0
  254. package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.css +7 -3
  255. package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.less +5 -1
  256. package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.pcss +5 -1
  257. package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.scss +6 -2
  258. package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.styl +5 -1
  259. package/themes/octaviusCompactDark/cssVars/theme/index.js +41 -1
  260. package/themes/octaviusCompactDark/cssVars/theme/index.json +41 -1
  261. package/themes/octaviusCompactDark/index.css +7 -3
  262. package/themes/octaviusCompactDark/index.js +13 -1
  263. package/themes/octaviusCompactDark/index.json +13 -1
  264. package/themes/octaviusCompactDark/index.less +5 -1
  265. package/themes/octaviusCompactDark/index.pcss +5 -1
  266. package/themes/octaviusCompactDark/index.scss +6 -2
  267. package/themes/octaviusCompactDark/index.styl +5 -1
  268. package/themes/octaviusDark/cssVars/declarations/index.css +12 -4
  269. package/themes/octaviusDark/cssVars/declarations/noColors.css +474 -0
  270. package/themes/octaviusDark/cssVars/declarations/onlyMedia.css +5 -1
  271. package/themes/octaviusDark/cssVars/declarations/onlyVariables.css +5 -1
  272. package/themes/octaviusDark/cssVars/declarations/onlyVariables.js +2 -2
  273. package/themes/octaviusDark/cssVars/declarations/onlyVariablesLocal.css +841 -0
  274. package/themes/octaviusDark/cssVars/theme/fallbacks/index.css +7 -3
  275. package/themes/octaviusDark/cssVars/theme/fallbacks/index.less +5 -1
  276. package/themes/octaviusDark/cssVars/theme/fallbacks/index.pcss +5 -1
  277. package/themes/octaviusDark/cssVars/theme/fallbacks/index.scss +6 -2
  278. package/themes/octaviusDark/cssVars/theme/fallbacks/index.styl +5 -1
  279. package/themes/octaviusDark/cssVars/theme/index.js +41 -1
  280. package/themes/octaviusDark/cssVars/theme/index.json +41 -1
  281. package/themes/octaviusDark/index.css +7 -3
  282. package/themes/octaviusDark/index.js +13 -1
  283. package/themes/octaviusDark/index.json +13 -1
  284. package/themes/octaviusDark/index.less +5 -1
  285. package/themes/octaviusDark/index.pcss +5 -1
  286. package/themes/octaviusDark/index.scss +6 -2
  287. package/themes/octaviusDark/index.styl +5 -1
  288. package/themes/octaviusVK/cssVars/declarations/index.css +59 -51
  289. package/themes/octaviusVK/cssVars/declarations/noColors.css +519 -0
  290. package/themes/octaviusVK/cssVars/declarations/noSizes.css +51 -51
  291. package/themes/octaviusVK/cssVars/declarations/onlyColors.css +51 -51
  292. package/themes/octaviusVK/cssVars/declarations/onlyColors.js +2 -2
  293. package/themes/octaviusVK/cssVars/declarations/onlyMedia.css +4 -0
  294. package/themes/octaviusVK/cssVars/declarations/onlyVariables.css +55 -51
  295. package/themes/octaviusVK/cssVars/declarations/onlyVariables.js +2 -2
  296. package/themes/octaviusVK/cssVars/declarations/onlyVariablesLocal.css +854 -0
  297. package/themes/octaviusVK/cssVars/theme/fallbacks/index.css +55 -51
  298. package/themes/octaviusVK/cssVars/theme/fallbacks/index.less +55 -51
  299. package/themes/octaviusVK/cssVars/theme/fallbacks/index.pcss +55 -51
  300. package/themes/octaviusVK/cssVars/theme/fallbacks/index.scss +55 -51
  301. package/themes/octaviusVK/cssVars/theme/fallbacks/index.styl +55 -51
  302. package/themes/octaviusVK/cssVars/theme/index.js +91 -51
  303. package/themes/octaviusVK/cssVars/theme/index.json +91 -51
  304. package/themes/octaviusVK/index.css +55 -51
  305. package/themes/octaviusVK/index.js +63 -51
  306. package/themes/octaviusVK/index.json +63 -51
  307. package/themes/octaviusVK/index.less +55 -51
  308. package/themes/octaviusVK/index.pcss +55 -51
  309. package/themes/octaviusVK/index.scss +55 -51
  310. package/themes/octaviusVK/index.styl +55 -51
  311. package/themes/octaviusVKDark/cssVars/declarations/index.css +51 -43
  312. package/themes/octaviusVKDark/cssVars/declarations/noColors.css +519 -0
  313. package/themes/octaviusVKDark/cssVars/declarations/noSizes.css +43 -43
  314. package/themes/octaviusVKDark/cssVars/declarations/onlyColors.css +43 -43
  315. package/themes/octaviusVKDark/cssVars/declarations/onlyColors.js +2 -2
  316. package/themes/octaviusVKDark/cssVars/declarations/onlyMedia.css +4 -0
  317. package/themes/octaviusVKDark/cssVars/declarations/onlyVariables.css +47 -43
  318. package/themes/octaviusVKDark/cssVars/declarations/onlyVariables.js +2 -2
  319. package/themes/octaviusVKDark/cssVars/declarations/onlyVariablesLocal.css +854 -0
  320. package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.css +47 -43
  321. package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.less +47 -43
  322. package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.pcss +47 -43
  323. package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.scss +47 -43
  324. package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.styl +47 -43
  325. package/themes/octaviusVKDark/cssVars/theme/index.js +83 -43
  326. package/themes/octaviusVKDark/cssVars/theme/index.json +83 -43
  327. package/themes/octaviusVKDark/index.css +47 -43
  328. package/themes/octaviusVKDark/index.js +55 -43
  329. package/themes/octaviusVKDark/index.json +55 -43
  330. package/themes/octaviusVKDark/index.less +47 -43
  331. package/themes/octaviusVKDark/index.pcss +47 -43
  332. package/themes/octaviusVKDark/index.scss +47 -43
  333. package/themes/octaviusVKDark/index.styl +47 -43
  334. package/themes/octaviusWhite/cssVars/declarations/index.css +12 -4
  335. package/themes/octaviusWhite/cssVars/declarations/noColors.css +474 -0
  336. package/themes/octaviusWhite/cssVars/declarations/onlyMedia.css +5 -1
  337. package/themes/octaviusWhite/cssVars/declarations/onlyVariables.css +5 -1
  338. package/themes/octaviusWhite/cssVars/declarations/onlyVariables.js +2 -2
  339. package/themes/octaviusWhite/cssVars/declarations/onlyVariablesLocal.css +841 -0
  340. package/themes/octaviusWhite/cssVars/theme/fallbacks/index.css +7 -3
  341. package/themes/octaviusWhite/cssVars/theme/fallbacks/index.less +5 -1
  342. package/themes/octaviusWhite/cssVars/theme/fallbacks/index.pcss +5 -1
  343. package/themes/octaviusWhite/cssVars/theme/fallbacks/index.scss +6 -2
  344. package/themes/octaviusWhite/cssVars/theme/fallbacks/index.styl +5 -1
  345. package/themes/octaviusWhite/cssVars/theme/index.js +41 -1
  346. package/themes/octaviusWhite/cssVars/theme/index.json +41 -1
  347. package/themes/octaviusWhite/index.css +7 -3
  348. package/themes/octaviusWhite/index.js +13 -1
  349. package/themes/octaviusWhite/index.json +13 -1
  350. package/themes/octaviusWhite/index.less +5 -1
  351. package/themes/octaviusWhite/index.pcss +5 -1
  352. package/themes/octaviusWhite/index.scss +6 -2
  353. package/themes/octaviusWhite/index.styl +5 -1
  354. package/themes/otvet/cssVars/declarations/index.css +13 -4
  355. package/themes/otvet/cssVars/declarations/noColors.css +413 -0
  356. package/themes/otvet/cssVars/declarations/noSizes.css +1 -0
  357. package/themes/otvet/cssVars/declarations/onlyMedia.css +5 -1
  358. package/themes/otvet/cssVars/declarations/onlyVariables.css +6 -1
  359. package/themes/otvet/cssVars/declarations/onlyVariables.js +2 -2
  360. package/themes/otvet/cssVars/declarations/onlyVariablesLocal.css +463 -0
  361. package/themes/otvet/cssVars/theme/fallbacks/index.css +8 -3
  362. package/themes/otvet/cssVars/theme/fallbacks/index.less +6 -1
  363. package/themes/otvet/cssVars/theme/fallbacks/index.pcss +6 -1
  364. package/themes/otvet/cssVars/theme/fallbacks/index.scss +7 -2
  365. package/themes/otvet/cssVars/theme/fallbacks/index.styl +6 -1
  366. package/themes/otvet/cssVars/theme/index.js +45 -1
  367. package/themes/otvet/cssVars/theme/index.json +45 -1
  368. package/themes/otvet/index.css +8 -3
  369. package/themes/otvet/index.js +14 -1
  370. package/themes/otvet/index.json +14 -1
  371. package/themes/otvet/index.less +6 -1
  372. package/themes/otvet/index.pcss +6 -1
  373. package/themes/otvet/index.scss +7 -2
  374. package/themes/otvet/index.styl +6 -1
  375. package/themes/otvetDark/cssVars/declarations/index.css +13 -4
  376. package/themes/otvetDark/cssVars/declarations/noColors.css +413 -0
  377. package/themes/otvetDark/cssVars/declarations/noSizes.css +1 -0
  378. package/themes/otvetDark/cssVars/declarations/onlyMedia.css +5 -1
  379. package/themes/otvetDark/cssVars/declarations/onlyVariables.css +6 -1
  380. package/themes/otvetDark/cssVars/declarations/onlyVariables.js +2 -2
  381. package/themes/otvetDark/cssVars/declarations/onlyVariablesLocal.css +463 -0
  382. package/themes/otvetDark/cssVars/theme/fallbacks/index.css +8 -3
  383. package/themes/otvetDark/cssVars/theme/fallbacks/index.less +6 -1
  384. package/themes/otvetDark/cssVars/theme/fallbacks/index.pcss +6 -1
  385. package/themes/otvetDark/cssVars/theme/fallbacks/index.scss +7 -2
  386. package/themes/otvetDark/cssVars/theme/fallbacks/index.styl +6 -1
  387. package/themes/otvetDark/cssVars/theme/index.js +45 -1
  388. package/themes/otvetDark/cssVars/theme/index.json +45 -1
  389. package/themes/otvetDark/index.css +8 -3
  390. package/themes/otvetDark/index.js +14 -1
  391. package/themes/otvetDark/index.json +14 -1
  392. package/themes/otvetDark/index.less +6 -1
  393. package/themes/otvetDark/index.pcss +6 -1
  394. package/themes/otvetDark/index.scss +7 -2
  395. package/themes/otvetDark/index.styl +6 -1
  396. package/themes/paradigmBase/cssVars/declarations/index.css +12 -4
  397. package/themes/paradigmBase/cssVars/declarations/noColors.css +448 -0
  398. package/themes/paradigmBase/cssVars/declarations/onlyMedia.css +5 -1
  399. package/themes/paradigmBase/cssVars/declarations/onlyVariables.css +5 -1
  400. package/themes/paradigmBase/cssVars/declarations/onlyVariables.js +2 -2
  401. package/themes/paradigmBase/cssVars/declarations/onlyVariablesLocal.css +478 -0
  402. package/themes/paradigmBase/cssVars/theme/fallbacks/index.css +7 -3
  403. package/themes/paradigmBase/cssVars/theme/fallbacks/index.less +5 -1
  404. package/themes/paradigmBase/cssVars/theme/fallbacks/index.pcss +5 -1
  405. package/themes/paradigmBase/cssVars/theme/fallbacks/index.scss +6 -2
  406. package/themes/paradigmBase/cssVars/theme/fallbacks/index.styl +5 -1
  407. package/themes/paradigmBase/cssVars/theme/index.js +41 -1
  408. package/themes/paradigmBase/cssVars/theme/index.json +41 -1
  409. package/themes/paradigmBase/index.css +7 -3
  410. package/themes/paradigmBase/index.js +13 -1
  411. package/themes/paradigmBase/index.json +13 -1
  412. package/themes/paradigmBase/index.less +5 -1
  413. package/themes/paradigmBase/index.pcss +5 -1
  414. package/themes/paradigmBase/index.scss +6 -2
  415. package/themes/paradigmBase/index.styl +5 -1
  416. package/themes/paradigmBaseDark/cssVars/declarations/index.css +12 -4
  417. package/themes/paradigmBaseDark/cssVars/declarations/noColors.css +448 -0
  418. package/themes/paradigmBaseDark/cssVars/declarations/onlyMedia.css +5 -1
  419. package/themes/paradigmBaseDark/cssVars/declarations/onlyVariables.css +5 -1
  420. package/themes/paradigmBaseDark/cssVars/declarations/onlyVariables.js +2 -2
  421. package/themes/paradigmBaseDark/cssVars/declarations/onlyVariablesLocal.css +478 -0
  422. package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.css +7 -3
  423. package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.less +5 -1
  424. package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.pcss +5 -1
  425. package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.scss +6 -2
  426. package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.styl +5 -1
  427. package/themes/paradigmBaseDark/cssVars/theme/index.js +41 -1
  428. package/themes/paradigmBaseDark/cssVars/theme/index.json +41 -1
  429. package/themes/paradigmBaseDark/index.css +7 -3
  430. package/themes/paradigmBaseDark/index.js +13 -1
  431. package/themes/paradigmBaseDark/index.json +13 -1
  432. package/themes/paradigmBaseDark/index.less +5 -1
  433. package/themes/paradigmBaseDark/index.pcss +5 -1
  434. package/themes/paradigmBaseDark/index.scss +6 -2
  435. package/themes/paradigmBaseDark/index.styl +5 -1
  436. package/themes/pharma/cssVars/declarations/index.css +14 -5
  437. package/themes/pharma/cssVars/declarations/noColors.css +638 -0
  438. package/themes/pharma/cssVars/declarations/noSizes.css +1 -0
  439. package/themes/pharma/cssVars/declarations/onlyMedia.css +4 -0
  440. package/themes/pharma/cssVars/declarations/onlyVariables.css +6 -1
  441. package/themes/pharma/cssVars/declarations/onlyVariables.js +2 -2
  442. package/themes/pharma/cssVars/declarations/onlyVariablesLocal.css +628 -0
  443. package/themes/pharma/cssVars/theme/fallbacks/index.css +10 -5
  444. package/themes/pharma/cssVars/theme/fallbacks/index.less +7 -2
  445. package/themes/pharma/cssVars/theme/fallbacks/index.pcss +7 -2
  446. package/themes/pharma/cssVars/theme/fallbacks/index.scss +10 -5
  447. package/themes/pharma/cssVars/theme/fallbacks/index.styl +7 -2
  448. package/themes/pharma/cssVars/theme/index.js +45 -1
  449. package/themes/pharma/cssVars/theme/index.json +45 -1
  450. package/themes/pharma/index.css +10 -5
  451. package/themes/pharma/index.js +14 -1
  452. package/themes/pharma/index.json +14 -1
  453. package/themes/pharma/index.less +7 -2
  454. package/themes/pharma/index.pcss +7 -2
  455. package/themes/pharma/index.scss +10 -5
  456. package/themes/pharma/index.styl +7 -2
  457. package/themes/promo/cssVars/declarations/index.css +13 -4
  458. package/themes/promo/cssVars/declarations/noColors.css +732 -0
  459. package/themes/promo/cssVars/declarations/noSizes.css +1 -0
  460. package/themes/promo/cssVars/declarations/onlyMedia.css +5 -1
  461. package/themes/promo/cssVars/declarations/onlyVariables.css +6 -1
  462. package/themes/promo/cssVars/declarations/onlyVariables.js +2 -2
  463. package/themes/promo/cssVars/declarations/onlyVariablesLocal.css +636 -0
  464. package/themes/promo/cssVars/theme/fallbacks/index.css +8 -3
  465. package/themes/promo/cssVars/theme/fallbacks/index.less +6 -1
  466. package/themes/promo/cssVars/theme/fallbacks/index.pcss +6 -1
  467. package/themes/promo/cssVars/theme/fallbacks/index.scss +7 -2
  468. package/themes/promo/cssVars/theme/fallbacks/index.styl +6 -1
  469. package/themes/promo/cssVars/theme/index.js +45 -1
  470. package/themes/promo/cssVars/theme/index.json +45 -1
  471. package/themes/promo/index.css +8 -3
  472. package/themes/promo/index.js +14 -1
  473. package/themes/promo/index.json +14 -1
  474. package/themes/promo/index.less +6 -1
  475. package/themes/promo/index.pcss +6 -1
  476. package/themes/promo/index.scss +7 -2
  477. package/themes/promo/index.styl +6 -1
  478. package/themes/todo/cssVars/declarations/index.css +13 -4
  479. package/themes/todo/cssVars/declarations/noColors.css +449 -0
  480. package/themes/todo/cssVars/declarations/noSizes.css +1 -0
  481. package/themes/todo/cssVars/declarations/onlyMedia.css +5 -1
  482. package/themes/todo/cssVars/declarations/onlyVariables.css +6 -1
  483. package/themes/todo/cssVars/declarations/onlyVariables.js +2 -2
  484. package/themes/todo/cssVars/declarations/onlyVariablesLocal.css +479 -0
  485. package/themes/todo/cssVars/theme/fallbacks/index.css +8 -3
  486. package/themes/todo/cssVars/theme/fallbacks/index.less +6 -1
  487. package/themes/todo/cssVars/theme/fallbacks/index.pcss +6 -1
  488. package/themes/todo/cssVars/theme/fallbacks/index.scss +7 -2
  489. package/themes/todo/cssVars/theme/fallbacks/index.styl +6 -1
  490. package/themes/todo/cssVars/theme/index.js +45 -1
  491. package/themes/todo/cssVars/theme/index.json +45 -1
  492. package/themes/todo/index.css +8 -3
  493. package/themes/todo/index.js +14 -1
  494. package/themes/todo/index.json +14 -1
  495. package/themes/todo/index.less +6 -1
  496. package/themes/todo/index.pcss +6 -1
  497. package/themes/todo/index.scss +7 -2
  498. package/themes/todo/index.styl +6 -1
  499. package/themes/vkBase/cssVars/declarations/index.css +132 -127
  500. package/themes/vkBase/cssVars/declarations/noColors.css +332 -0
  501. package/themes/vkBase/cssVars/declarations/noSizes.css +124 -123
  502. package/themes/vkBase/cssVars/declarations/onlyColors.css +123 -123
  503. package/themes/vkBase/cssVars/declarations/onlyColors.js +2 -2
  504. package/themes/vkBase/cssVars/declarations/onlyVariables.css +130 -125
  505. package/themes/vkBase/cssVars/declarations/onlyVariables.js +2 -2
  506. package/themes/vkBase/cssVars/declarations/onlyVariablesLocal.css +378 -0
  507. package/themes/vkBase/cssVars/theme/fallbacks/index.css +132 -127
  508. package/themes/vkBase/cssVars/theme/fallbacks/index.less +130 -125
  509. package/themes/vkBase/cssVars/theme/fallbacks/index.pcss +130 -125
  510. package/themes/vkBase/cssVars/theme/fallbacks/index.scss +131 -126
  511. package/themes/vkBase/cssVars/theme/fallbacks/index.styl +130 -125
  512. package/themes/vkBase/cssVars/theme/index.js +483 -439
  513. package/themes/vkBase/cssVars/theme/index.json +483 -439
  514. package/themes/vkBase/index.css +132 -127
  515. package/themes/vkBase/index.js +194 -181
  516. package/themes/vkBase/index.json +194 -181
  517. package/themes/vkBase/index.less +130 -125
  518. package/themes/vkBase/index.pcss +130 -125
  519. package/themes/vkBase/index.scss +131 -126
  520. package/themes/vkBase/index.styl +130 -125
  521. package/themes/vkBaseDark/cssVars/declarations/index.css +133 -128
  522. package/themes/vkBaseDark/cssVars/declarations/noColors.css +332 -0
  523. package/themes/vkBaseDark/cssVars/declarations/noSizes.css +125 -124
  524. package/themes/vkBaseDark/cssVars/declarations/onlyColors.css +124 -124
  525. package/themes/vkBaseDark/cssVars/declarations/onlyColors.js +2 -2
  526. package/themes/vkBaseDark/cssVars/declarations/onlyVariables.css +131 -126
  527. package/themes/vkBaseDark/cssVars/declarations/onlyVariables.js +2 -2
  528. package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocal.css +378 -0
  529. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.css +133 -128
  530. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.less +131 -126
  531. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.pcss +131 -126
  532. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.scss +132 -127
  533. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.styl +131 -126
  534. package/themes/vkBaseDark/cssVars/theme/index.js +496 -452
  535. package/themes/vkBaseDark/cssVars/theme/index.json +496 -452
  536. package/themes/vkBaseDark/index.css +133 -128
  537. package/themes/vkBaseDark/index.js +204 -191
  538. package/themes/vkBaseDark/index.json +204 -191
  539. package/themes/vkBaseDark/index.less +131 -126
  540. package/themes/vkBaseDark/index.pcss +131 -126
  541. package/themes/vkBaseDark/index.scss +132 -127
  542. package/themes/vkBaseDark/index.styl +131 -126
  543. package/themes/vkCom/cssVars/declarations/index.css +133 -128
  544. package/themes/vkCom/cssVars/declarations/noColors.css +332 -0
  545. package/themes/vkCom/cssVars/declarations/noSizes.css +124 -123
  546. package/themes/vkCom/cssVars/declarations/onlyColors.css +123 -123
  547. package/themes/vkCom/cssVars/declarations/onlyColors.js +2 -2
  548. package/themes/vkCom/cssVars/declarations/onlyVariables.css +131 -126
  549. package/themes/vkCom/cssVars/declarations/onlyVariables.js +2 -2
  550. package/themes/vkCom/cssVars/declarations/onlyVariablesLocal.css +378 -0
  551. package/themes/vkCom/cssVars/theme/fallbacks/index.css +133 -128
  552. package/themes/vkCom/cssVars/theme/fallbacks/index.less +131 -126
  553. package/themes/vkCom/cssVars/theme/fallbacks/index.pcss +131 -126
  554. package/themes/vkCom/cssVars/theme/fallbacks/index.scss +132 -127
  555. package/themes/vkCom/cssVars/theme/fallbacks/index.styl +131 -126
  556. package/themes/vkCom/cssVars/theme/index.js +484 -440
  557. package/themes/vkCom/cssVars/theme/index.json +484 -440
  558. package/themes/vkCom/index.css +133 -128
  559. package/themes/vkCom/index.js +195 -182
  560. package/themes/vkCom/index.json +195 -182
  561. package/themes/vkCom/index.less +131 -126
  562. package/themes/vkCom/index.pcss +131 -126
  563. package/themes/vkCom/index.scss +132 -127
  564. package/themes/vkCom/index.styl +131 -126
  565. package/themes/vkComDark/cssVars/declarations/index.css +670 -0
  566. package/themes/vkComDark/cssVars/declarations/noColors.css +332 -0
  567. package/themes/vkComDark/cssVars/declarations/noSizes.css +249 -0
  568. package/themes/vkComDark/cssVars/declarations/onlyAdaptiveGroups.css +102 -0
  569. package/themes/vkComDark/cssVars/declarations/onlyColors.css +236 -0
  570. package/themes/vkComDark/cssVars/declarations/onlyColors.d.ts +3 -0
  571. package/themes/vkComDark/cssVars/declarations/onlyColors.js +11 -0
  572. package/themes/vkComDark/cssVars/declarations/onlyVariables.css +378 -0
  573. package/themes/vkComDark/cssVars/declarations/onlyVariables.d.ts +3 -0
  574. package/themes/vkComDark/cssVars/declarations/onlyVariables.js +11 -0
  575. package/themes/vkComDark/cssVars/declarations/onlyVariablesLocal.css +378 -0
  576. package/themes/vkComDark/cssVars/theme/fallbacks/index.css +567 -0
  577. package/themes/vkComDark/cssVars/theme/fallbacks/index.less +410 -0
  578. package/themes/vkComDark/cssVars/theme/fallbacks/index.pcss +411 -0
  579. package/themes/vkComDark/cssVars/theme/fallbacks/index.scss +526 -0
  580. package/themes/vkComDark/cssVars/theme/fallbacks/index.styl +410 -0
  581. package/themes/vkComDark/cssVars/theme/index.d.ts +4 -0
  582. package/themes/vkComDark/cssVars/theme/index.js +2270 -0
  583. package/themes/vkComDark/cssVars/theme/index.json +2267 -0
  584. package/themes/vkComDark/index.css +567 -0
  585. package/themes/vkComDark/index.d.ts +4 -0
  586. package/themes/vkComDark/index.js +670 -0
  587. package/themes/vkComDark/index.json +667 -0
  588. package/themes/vkComDark/index.less +410 -0
  589. package/themes/vkComDark/index.pcss +411 -0
  590. package/themes/vkComDark/index.scss +526 -0
  591. package/themes/vkComDark/index.styl +410 -0
  592. package/themes/vkIOS/cssVars/declarations/index.css +132 -127
  593. package/themes/vkIOS/cssVars/declarations/noColors.css +332 -0
  594. package/themes/vkIOS/cssVars/declarations/noSizes.css +124 -123
  595. package/themes/vkIOS/cssVars/declarations/onlyColors.css +123 -123
  596. package/themes/vkIOS/cssVars/declarations/onlyColors.js +2 -2
  597. package/themes/vkIOS/cssVars/declarations/onlyVariables.css +130 -125
  598. package/themes/vkIOS/cssVars/declarations/onlyVariables.js +2 -2
  599. package/themes/vkIOS/cssVars/declarations/onlyVariablesLocal.css +378 -0
  600. package/themes/vkIOS/cssVars/theme/fallbacks/index.css +132 -127
  601. package/themes/vkIOS/cssVars/theme/fallbacks/index.less +130 -125
  602. package/themes/vkIOS/cssVars/theme/fallbacks/index.pcss +130 -125
  603. package/themes/vkIOS/cssVars/theme/fallbacks/index.scss +131 -126
  604. package/themes/vkIOS/cssVars/theme/fallbacks/index.styl +130 -125
  605. package/themes/vkIOS/cssVars/theme/index.js +483 -439
  606. package/themes/vkIOS/cssVars/theme/index.json +483 -439
  607. package/themes/vkIOS/index.css +132 -127
  608. package/themes/vkIOS/index.js +194 -181
  609. package/themes/vkIOS/index.json +194 -181
  610. package/themes/vkIOS/index.less +130 -125
  611. package/themes/vkIOS/index.pcss +130 -125
  612. package/themes/vkIOS/index.scss +131 -126
  613. package/themes/vkIOS/index.styl +130 -125
  614. package/themes/vkIOSDark/cssVars/declarations/index.css +670 -0
  615. package/themes/vkIOSDark/cssVars/declarations/noColors.css +332 -0
  616. package/themes/vkIOSDark/cssVars/declarations/noSizes.css +249 -0
  617. package/themes/vkIOSDark/cssVars/declarations/onlyAdaptiveGroups.css +102 -0
  618. package/themes/vkIOSDark/cssVars/declarations/onlyColors.css +236 -0
  619. package/themes/vkIOSDark/cssVars/declarations/onlyColors.d.ts +3 -0
  620. package/themes/vkIOSDark/cssVars/declarations/onlyColors.js +11 -0
  621. package/themes/vkIOSDark/cssVars/declarations/onlyVariables.css +378 -0
  622. package/themes/vkIOSDark/cssVars/declarations/onlyVariables.d.ts +3 -0
  623. package/themes/vkIOSDark/cssVars/declarations/onlyVariables.js +11 -0
  624. package/themes/vkIOSDark/cssVars/declarations/onlyVariablesLocal.css +378 -0
  625. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.css +567 -0
  626. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.less +410 -0
  627. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.pcss +411 -0
  628. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.scss +526 -0
  629. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.styl +410 -0
  630. package/themes/vkIOSDark/cssVars/theme/index.d.ts +4 -0
  631. package/themes/vkIOSDark/cssVars/theme/index.js +2270 -0
  632. package/themes/vkIOSDark/cssVars/theme/index.json +2267 -0
  633. package/themes/vkIOSDark/index.css +567 -0
  634. package/themes/vkIOSDark/index.d.ts +4 -0
  635. package/themes/vkIOSDark/index.js +670 -0
  636. package/themes/vkIOSDark/index.json +667 -0
  637. package/themes/vkIOSDark/index.less +410 -0
  638. package/themes/vkIOSDark/index.pcss +411 -0
  639. package/themes/vkIOSDark/index.scss +526 -0
  640. package/themes/vkIOSDark/index.styl +410 -0
  641. package/CHANGELOG.md +0 -139
package/README.md CHANGED
@@ -1,42 +1,86 @@
1
1
  <img src="assets/vkui_logo.png" alt="vkui logo" height="52"/>
2
2
  <img src="assets/logo.svg" alt="vkui logo" height="52"/>
3
3
 
4
+ [![Tests](https://github.com/VKCOM/vkui-tokens/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/VKCOM/vkui-tokens/actions/workflows/test.yml)
5
+ [![Npm](https://img.shields.io/npm/v/@vkontakte/vkui-tokens)](https://www.npmjs.com/package/@vkontakte/vkui-tokens)
6
+ [![GitHub Repo stars](https://img.shields.io/github/stars/VKCOM/vkui-tokens?label=GitHub%20Repo%20Stars&style=social)](https://github.com/VKCOM/vkui-tokens)
7
+
8
+ Этот репозиторий содержит токены единой дизайн-системы VKUI и
9
+ их значения для тем оформления различных проектов.
10
+
11
+ Темы собираются в следующие форматы: `css`, `scss`, `less`, `pcss`, `styl`, `js`, `json`.
12
+
13
+ Для описания интерфейсов тем и значений переменных используется TypeScript.
14
+
15
+ # Содержание
16
+
17
+ * [Использование](#использование)
18
+ * [Использование CSS-переменных темы напрямую из пакета](#использование-css-переменных-темы-напрямую-из-пакета)
19
+ * [Подключение темы на страницу](#подключение-темы-на-страницу)
20
+ * [Использование переменных в вёрстке](#использование-переменных-в-вёрстке)
21
+ * [Использование базовой темы напрямую из пакета](#использование-базовой-темы-напрямую-из-пакета)
22
+ * [Инструменты](#инструменты)
23
+ * [Локальная сборка своих тем инструментами библиотеки](#локальная-сборка-своих-тем-инструментами-библиотеки)
24
+ * [Наследование от существующей темы](#наследование-от-существующей-темы)
25
+ * [Создание собственной темы "с нуля"](#создание-собственной-темы-с-нуля)
26
+ * [Roadmap](#roadmap)
27
+ * [Полезные ссылки](#полезные-ссылки)
28
+ * [Информация для внесения изменений](CONTRIBUTING.md)
29
+ * [Changelog (архивная версия)](CHANGELOG.OLD.md)
30
+
31
+ Актуальный changelog находится на странице
32
+ [релизов в GitHub](https://github.com/VKCOM/vkui-tokens/releases)!
33
+
4
34
  # Использование
5
35
 
6
- 1. Устанавливаем npm-пакет `@vkontakte/vkui-tokens`:
36
+ Устанавливаем npm-пакет `@vkontakte/vkui-tokens`:
7
37
  ```bash
8
38
  npm i --save @vkontakte/vkui-tokens@latest
9
39
  ```
10
- ## Используем css variables темы напрямую из пакета
11
- 2. В любом css (или процессоре) импортируем css файл с объявлением переменных:
40
+ ## Использование CSS-переменных темы напрямую из пакета
41
+ ### Подключение темы на страницу
42
+
43
+ В любом CSS-файле подключаем файл темы со значениями переменных:
12
44
  ```css
13
45
  @import "@vkontakte/vkui-tokens/themes/vkBase/cssVars/declarations/index.css";
14
46
  ```
15
47
 
16
- 3. далее используем эти переменные
17
- * напрямую в css (процессорах)
48
+ ### Использование переменных в вёрстке
49
+ #### Использование в CSS
18
50
  ```postcss
19
51
  .myAwesomeClass:hover {
20
52
  background-color: var(--vkui--color_background--hover);
21
53
  }
22
54
  ```
23
- * или через объект в js(ts)
55
+
56
+ #### Использование CSS-переменных через объект в JavaScript (TypeScript)
24
57
  ```typescript
25
58
  import baseTheme from '@vkontakte/vkui-tokens/themes/vkBase/cssVars/theme';
26
59
 
60
+ // Собствено имя CSS-переменной (название токена)
27
61
  console.log(baseTheme.colorBackground.hover.name) // --vkui--color_background--hover;
62
+ // Сниппет для использования CSS-переменной
28
63
  console.log(baseTheme.colorBackground.hover.value) // var(--vkui--color_background--hover, #F5F5F7)
29
64
 
30
- // динамически (с учётом возможных переопределений)
31
- // узнаём чему равно значение переменной у myElement:
65
+ // Динамически (с учётом возможных переопределений)
66
+ // узнаём, чему равно значение переменной внутри myElement:
32
67
  getComputedStyle(myElement).getPropertyValue(baseTheme.colorBackground.hover.name)
33
68
  ```
34
- * для того, чтобы принудительно включать тот или иной вид темы у конкретного поддерева элементов, пользуемся классами `.vkui--force-${auto | regular | compact | large | largeX ...}`. Смотри [демо](demo/example-adaptive-css-vars-theme.html) работы адаптивных переменных и спец. классов. (Также можно просто использовать переменную конкретного брейкпоинта (ex. --vkui--size_field_height--**_compact_**), они все также попадают в `:root`)
35
69
 
70
+ #### Принудительное использование токенов определённого размера
71
+ Чтобы принудительно включить тот или иной вид темы у конкретного
72
+ поддерева элементов, нужно воспользоваться классами
73
+ `.vkui--force-${auto | regular | compact | large | largeX ...}`.
74
+ Смотри [демо](demo/example-adaptive-css-vars-theme.html) работы
75
+ адаптивных переменных и спец. классов.
36
76
 
37
- ## Используем root темы напрямую из пакета
77
+ Также можно просто использовать переменную конкретного брейкпоинта
78
+ (ex. --vkui--size_field_height--**_compact_**), они все тоже
79
+ попадают в `:root`)
80
+
81
+ ## Использование базовой темы напрямую из пакета
38
82
  ### js/ts/json
39
- 2. Импортируем необходимую тему в файле и используем:
83
+ Импортируем необходимую тему в файле и используем:
40
84
  ```ts
41
85
  import baseTheme from '@vkontakte/vkui-tokens/themes/vkBase';
42
86
 
@@ -44,7 +88,7 @@ import baseTheme from '@vkontakte/vkui-tokens/themes/vkBase';
44
88
  ```
45
89
 
46
90
  ### Используем в scss/styl/less root темы из пакета
47
- 2. Импортируем файл с необходимой темой и используем переменные от туда (снизу синтаксис SCSS)
91
+ Импортируем файл с необходимой темой и используем переменные от туда (снизу синтаксис SCSS)
48
92
  ```scss
49
93
  @import "~@vkontakte/vkui-tokens/themes/vkBase/index";
50
94
 
@@ -57,18 +101,17 @@ import baseTheme from '@vkontakte/vkui-tokens/themes/vkBase';
57
101
  }
58
102
  ```
59
103
 
60
-
61
104
  ### Используем pcss формат темы из пакета
62
105
 
63
- 2. Заходим в файл, где хотим использовать тему, и импортируем её:
106
+ 1Заходим в файл, где хотим использовать тему, и импортируем её:
64
107
 
65
108
  @import "@vkontakte/vkui-tokens/themes/vkBase";
66
109
 
67
- 3. Заходим в файл темы, смотрим какие там есть переменные и юзаем их, например:
110
+ 2. Заходим в файл темы, смотрим какие там есть переменные и юзаем их, например:
68
111
 
69
112
  width: var(--size-content-block-width);
70
113
 
71
- 4. Просто так ничего не заработает, нужно поставить postcss:
114
+ 3. Просто так ничего не заработает, нужно поставить postcss:
72
115
 
73
116
  npm i --save-dev postcss
74
117
 
@@ -76,35 +119,35 @@ import baseTheme from '@vkontakte/vkui-tokens/themes/vkBase';
76
119
 
77
120
  npm i --save-dev postcss-cli
78
121
 
79
- 5. Создаем конфиг postcss. Для этого создаем файл postcss.config.js (можно в любом месте проекта, но лучше в корне) и пишем в него необходимые плагины:
122
+ 4. Создаем конфиг postcss. Для этого создаем файл postcss.config.js (можно в любом месте проекта, но лучше в корне) и пишем в него необходимые плагины:
80
123
 
81
124
  ```javascript
82
125
  const postcssPresetEnv = require('postcss-preset-env');
83
126
 
84
127
  module.exports = {
85
- plugins: [
86
- require('postcss-import'),
87
- require('precss'),
88
- require('postcss-css-variables'),
89
- require('postcss-custom-media'),
90
- require('postcss-media-minmax'),
91
- require('postcss-extend-rule'),
92
- postcssPresetEnv({
93
- stage: 0,
94
- }),
95
- require('postcss-color-mix'),
96
- require('cssnano')
97
- ],
128
+ plugins: [
129
+ require('postcss-import'),
130
+ require('precss'),
131
+ require('postcss-css-variables'),
132
+ require('postcss-custom-media'),
133
+ require('postcss-media-minmax'),
134
+ require('postcss-extend-rule'),
135
+ postcssPresetEnv({
136
+ stage: 0,
137
+ }),
138
+ require('postcss-color-mix'),
139
+ require('cssnano')
140
+ ],
98
141
  };
99
142
  ```
100
143
  Возможно, вам не понадобятся все эти плагины, поэтому лучше почитать, что делает каждый из них (https://www.postcss.parts/).
101
144
  Нужно посмотреть файл вашей темы и ваш css (scss и др.), чтобы понять, что вам необходимо.
102
145
 
103
- 6. Устанавливаем все необходимые плагины, которые написали в конфиге, например:
146
+ 5. Устанавливаем все необходимые плагины, которые написали в конфиге, например:
104
147
 
105
148
  npm i --save-dev postcss-import
106
149
 
107
- 7. Настраиваем сборку postcss.
150
+ 6. Настраиваем сборку postcss.
108
151
 
109
152
  Сборка производится командой postcss через командную строку с необходимым параметрами.
110
153
  Про них подробнее тут https://github.com/postcss/postcss-cli
@@ -115,11 +158,21 @@ import baseTheme from '@vkontakte/vkui-tokens/themes/vkBase';
115
158
 
116
159
  Такая команда прогонит файл src/main.css с помощью конфига из текущей папки и положит результат в папку public.
117
160
 
161
+ # Инструменты
118
162
  ## Локальная сборка своих тем инструментами библиотеки
119
163
 
120
- ### Наследуемся от базовой темы
121
- 2. Из библиотеки можно импортировать интерфейсы и темы от которых насследоваться всячески доопределять.
122
- Также из библиотеки можно заимпортить функции позволяющие собрать тему (сгенировать состояния цветов, пикселизировать значения и т.д.) в нужном формате: css, js, scss и т.д. Пример:
164
+ Библиотека предоставляет интерфейсы и темы, от которых можно
165
+ наследоваться.
166
+
167
+ Помимо этого, библиотека предоставляет набор функций, которые позволяют
168
+ собрать собственную тему в нужном формате.
169
+
170
+ Сборка темы подразумевает раскрытие наследования, генерацию цветов
171
+ состояний (hover, active), округление и "пикселизация" значений и т.д.
172
+
173
+ ### Наследование от существующей темы
174
+ Пример:
175
+
123
176
  ```typescript
124
177
  import type {ThemeDescription} from '@vkontakte/vkui-tokens/interfaces/general';
125
178
  import type {Adaptive} from '@vkontakte/vkui-tokens/interfaces/general/tools';
@@ -147,8 +200,13 @@ const {theme, pixelifyTheme, cssVarsTheme} = expandAll(myNewAwesomeTheme);
147
200
  const cssString = compileStyles('css', pixelifyTheme);
148
201
  ```
149
202
 
150
- ### Собираем локально свою тему (набор своих локальных переменных проекта)
151
- 2. На самом деле никакой необходимости наследоваться (см. предыдущий пункт) нет, соберём свою тему из произвольного количества уникальных переменных. Пример:
203
+ ### Создание собственной темы нуля"
204
+ В некоторых случаях нет необходимости наследоваться от одной из
205
+ базовых тем. Библиотека позволяет сгенерировать свою тему из
206
+ произвольного количества уникальных переменных.
207
+
208
+ Пример:
209
+
152
210
  ```typescript
153
211
  import type {Adaptive} from '@vkontakte/vkui-tokens/interfaces/general/tools';
154
212
  import {expandAll} from '@vkontakte/vkui-tokens/build/expandTheme';
@@ -180,11 +238,19 @@ const {theme, pixelifyTheme, cssVarsTheme} = expandAll(myNewAwesomeTheme);
180
238
  const cssString = compileStyles('css', pixelifyTheme);
181
239
  ```
182
240
 
183
- # ROAD MAP библиотеки
184
- * [ ] Добавляем более умную генерацию active, hover состояний цвета. Будем учитывать тёмный и светлый вариант тем. Будем учитывать сам цвет, для которого генерим затемнение. (решаем проблему, что наведение на кнопки в синей шапке абсолютно не видны).
241
+ # Roadmap
242
+ * [ ] Добавить более умную генерацию active, hover состояний цвета.
243
+ При генерации нужно учитывать тёмный и светлый вариант тем, а также
244
+ сам цвет, для которого генерируется состояние.
245
+ (решаем проблему, что цвет наведения, сгенерированный от синего,
246
+ плохо виден на большинстве мониторов).
247
+ * [ ] Генерация цветов по заранее определённой палитре.
248
+ * [ ] Текстовое описание семантики каждого токена.
249
+ * [ ] Более подробная документация.
250
+ * [ ] Сайт с примерами и описанием.
185
251
 
186
252
  # Полезные ссылки
187
- 1. [Доклад](https://youtu.be/0rHgqQvl0NQ?t=1858) про дизайн-системы на фронтенде: там рассказывается зачем нужны дизайн-токены, причём тут UI-kit и как делать темизацию.
188
- 2. Серия видеороликов на youtube, где показано использование этой библиотеки (но со старым названием, не пугайтесь), как ядра дизайн-системы, на практике: [первый](https://www.youtube.com/watch?v=RKCsrPOxYWE), [второй](https://www.youtube.com/watch?v=ZhiH4jFL-kU), [третий](https://www.youtube.com/watch?v=ZXOmmkyxrwk)
253
+ 1. [Доклад](https://youtu.be/0rHgqQvl0NQ?t=1858) про дизайн-системы на фронтенде: там рассказывается, зачем нужны дизайн-токены, причём тут UI-kit и как делать темизацию.
254
+ 2. Серия видеороликов на youtube, где показано использование этой библиотеки (но со старым названием, не пугайтесь), как ядра дизайн-системы на практике: [первый](https://www.youtube.com/watch?v=RKCsrPOxYWE), [второй](https://www.youtube.com/watch?v=ZhiH4jFL-kU), [третий](https://www.youtube.com/watch?v=ZXOmmkyxrwk)
189
255
  3. Opensource библиотека компонентов (UI-kit) [VKUI](https://github.com/VKCOM/VKUI), которая использует токены.
190
- 4. [Сайт](https://paradigm.mail.ru/) дизайн системы Paradigm из которой выросла эта библиотека. Там можно найти дизайнерские принципы и идеи, которые стали основой кода находящемся в этом репозитории.
256
+ 4. [Сайт](https://paradigm.mail.ru/) дизайн-система Paradigm, из которой выросла эта библиотека. Там можно найти дизайнерские принципы и идеи, которые стали основой этого репозитория.
@@ -2,8 +2,8 @@ import { PixelifyTheme, SpecialTokens, Theme, ThemeCssVarsWide } from '../../int
2
2
  declare type ThemeBuildType = 'root' | 'subtheme' | 'flat' | 'cssVars' | 'cssVarsPseudoRoot';
3
3
  declare function writeJsonFile<T = Theme>(themePath: string, theme: T, _?: ThemeBuildType): void;
4
4
  declare function writeTsFile<T extends SpecialTokens = Theme>(themePath: string, theme: T, type: ThemeBuildType, themeName?: string): void;
5
- declare function writeStyleFiles<PT = PixelifyTheme>(themePath: string, theme: PT): void;
6
- declare function writeCssVarsSourceFile<PT = PixelifyTheme>(themePath: string, theme: PT, cssWarsTheme: any): void;
5
+ declare function writeStyleFiles<PT extends PixelifyTheme = PixelifyTheme>(themePath: string, theme: PT): void;
6
+ declare function writeCssVarsSourceFile<PT extends PixelifyTheme = PixelifyTheme>(themePath: string, theme: PT, cssWarsTheme: any): void;
7
7
  declare function writeCssVarsSourceMediaFile<T = ThemeCssVarsWide>(themePath: string, theme: T): void;
8
8
  declare function writeCssVarsJsUtils<T = Theme>(themePath: string, theme: ThemeCssVarsWide<T>): void;
9
9
  export { writeCssVarsJsUtils, writeCssVarsSourceFile, writeCssVarsSourceMediaFile, writeJsonFile, writeStyleFiles, writeTsFile, };
@@ -70,9 +70,11 @@ function writeCssVarsSourceFile(themePath, theme, cssWarsTheme) {
70
70
  [
71
71
  { mode: 'default', fileName: 'index.css' },
72
72
  { mode: 'onlyVariables', fileName: 'onlyVariables.css' },
73
+ { mode: 'onlyVariablesLocal', fileName: 'onlyVariablesLocal.css' },
73
74
  { mode: 'onlyColors', fileName: 'onlyColors.css' },
74
75
  { mode: 'onlyAdaptiveGroups', fileName: 'onlyAdaptiveGroups.css' },
75
76
  { mode: 'noSizes', fileName: 'noSizes.css' },
77
+ { mode: 'noColors', fileName: 'noColors.css' },
76
78
  ].forEach(function (_a) {
77
79
  var _b;
78
80
  var mode = _a.mode, fileName = _a.fileName;
@@ -2,8 +2,10 @@ import 'css.escape';
2
2
  import { PixelifyTheme } from '../../../interfaces/general';
3
3
  import { Formats } from './helpers/tokenProcessors';
4
4
  export declare const serviceKeys: string[];
5
- export declare type CompileStylesMode = 'default' | 'onlyVariables' | 'onlyColors' | 'withAdaptiveGroups' | 'onlyAdaptiveGroups' | 'noSizes';
5
+ export declare type CompileStylesMode = 'default' | 'onlyVariables' | 'onlyVariablesLocal' | 'onlyColors' | 'withAdaptiveGroups' | 'onlyAdaptiveGroups' | 'noSizes' | 'noColors';
6
+ export declare function getPrefix<PT extends PixelifyTheme>(format: Formats, theme: PT): string;
7
+ export declare function getRootSelector<PT extends PixelifyTheme>(theme: PT, mode: CompileStylesMode): string;
6
8
  /**
7
9
  * Компиллирует строку со стилями (в разных форматах), на основе темы
8
10
  */
9
- export declare const compileStyles: <PT = PixelifyTheme<import("../../../interfaces/general").Theme>>(format: Formats, theme: PT, mode?: CompileStylesMode) => string;
11
+ export declare const compileStyles: <PT extends PixelifyTheme<import("../../../interfaces/general").Theme> = PixelifyTheme<import("../../../interfaces/general").Theme>>(format: Formats, theme: PT, mode?: CompileStylesMode) => string;
@@ -4,28 +4,46 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  return cooked;
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.compileStyles = exports.serviceKeys = void 0;
7
+ exports.compileStyles = exports.getRootSelector = exports.getPrefix = exports.serviceKeys = void 0;
8
8
  require("css.escape");
9
9
  var common_tags_1 = require("common-tags");
10
+ var getAllButColors_1 = require("../../helpers/getAllButColors");
10
11
  var getAllButSizes_1 = require("../../helpers/getAllButSizes");
11
12
  var getOnlyColors_1 = require("../../helpers/getOnlyColors");
12
13
  var unCamelcasify_1 = require("../../helpers/unCamelcasify");
13
14
  var tokenProcessors_1 = require("./helpers/tokenProcessors");
14
15
  var tokenRecognition_1 = require("./helpers/tokenRecognition");
15
16
  exports.serviceKeys = ['breakpoints', 'prefix', 'themeType'];
16
- /**
17
- * Компиллирует строку со стилями разных форматах), на основе темы
18
- */
19
- var compileStyles = function (format, theme, mode) {
20
- if (mode === void 0) { mode = 'default'; }
21
- var classicCssType = format === tokenProcessors_1.EStyleTypes.CSS || format === tokenProcessors_1.EStyleTypes.PCSS;
17
+ function isClassicCssType(format) {
18
+ return format === tokenProcessors_1.EStyleTypes.CSS || format === tokenProcessors_1.EStyleTypes.PCSS;
19
+ }
20
+ function getPrefix(format, theme) {
22
21
  var prefix = theme.prefix ? theme.prefix + "-" : '';
23
- if (classicCssType && prefix) {
22
+ if (isClassicCssType(format) && prefix) {
24
23
  prefix += '-';
25
24
  }
26
25
  if (format === tokenProcessors_1.EStyleTypes.CSS && !prefix) {
27
26
  prefix = 'vkui--';
28
27
  }
28
+ return prefix;
29
+ }
30
+ exports.getPrefix = getPrefix;
31
+ function getRootSelector(theme, mode) {
32
+ var _a;
33
+ if (!mode.endsWith('Local')) {
34
+ return ':root';
35
+ }
36
+ return "." + getPrefix(tokenProcessors_1.EStyleTypes.CSS, theme) + ((_a = theme.themeNameBase) !== null && _a !== void 0 ? _a : theme.themeName) + "--" + theme.colorsScheme;
37
+ }
38
+ exports.getRootSelector = getRootSelector;
39
+ /**
40
+ * Компиллирует строку со стилями (в разных форматах), на основе темы
41
+ */
42
+ var compileStyles = function (format, theme, mode) {
43
+ if (mode === void 0) { mode = 'default'; }
44
+ var classicCssType = isClassicCssType(format);
45
+ var prefix = getPrefix(format, theme);
46
+ var rootSelector = getRootSelector(theme, mode);
29
47
  var getDeclaration = tokenProcessors_1.varDeclarations[format];
30
48
  var getVariableStatement = tokenProcessors_1.variablesStatementDeclaration[format];
31
49
  var getCustomMediaDeclaration = tokenProcessors_1.customMediaDeclaration[format];
@@ -39,6 +57,9 @@ var compileStyles = function (format, theme, mode) {
39
57
  case 'noSizes':
40
58
  theme = getAllButSizes_1.getAllButSizes(theme, theme.themeNameBase);
41
59
  break;
60
+ case 'noColors':
61
+ theme = getAllButColors_1.getAllButColors(theme, theme.themeNameBase);
62
+ break;
42
63
  }
43
64
  Object.keys(theme).forEach(function (key) {
44
65
  // пропускаем служебные ключи
@@ -91,9 +112,9 @@ var compileStyles = function (format, theme, mode) {
91
112
  });
92
113
  result = variables;
93
114
  if (classicCssType && variables) {
94
- result = common_tags_1.stripIndent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t\t:root {\n\t\t", "}\n\t\t"], ["\n\t\t:root {\n\t\t", "}\n\t\t"])), variables.split('\n').join('\n\t\t'));
115
+ result = common_tags_1.stripIndent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t\t", " {\n\t\t", "}\n\t\t"], ["\n\t\t", " {\n\t\t", "}\n\t\t"])), rootSelector, variables.split('\n').join('\n\t\t'));
95
116
  }
96
- if (mode === 'onlyVariables') {
117
+ if (mode === 'onlyVariables' || mode === 'onlyVariablesLocal') {
97
118
  return common_tags_1.stripIndent(result);
98
119
  }
99
120
  if (mode === 'onlyAdaptiveGroups') {