@shohojdhara/atomix 0.3.1 → 0.3.3

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 (449) hide show
  1. package/CHANGELOG.md +0 -1
  2. package/README.md +41 -24
  3. package/dist/atomix.css +540 -666
  4. package/dist/atomix.min.css +3 -3
  5. package/dist/index.d.ts +7559 -5717
  6. package/dist/index.esm.js +5013 -2301
  7. package/dist/index.esm.js.map +1 -1
  8. package/dist/index.js +5084 -2356
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.min.js +1 -1
  11. package/dist/index.min.js.map +1 -1
  12. package/dist/themes/applemix.css +1683 -722
  13. package/dist/themes/applemix.css.map +1 -0
  14. package/dist/themes/applemix.min.css +13 -10
  15. package/dist/themes/boomdevs.css +1358 -544
  16. package/dist/themes/boomdevs.css.map +1 -0
  17. package/dist/themes/boomdevs.min.css +13 -10
  18. package/dist/themes/esrar.css +1743 -718
  19. package/dist/themes/esrar.css.map +1 -0
  20. package/dist/themes/esrar.min.css +41 -7
  21. package/dist/themes/flashtrade.css +1735 -752
  22. package/dist/themes/flashtrade.css.map +1 -0
  23. package/dist/themes/flashtrade.min.css +19 -13
  24. package/dist/themes/mashroom.css +1765 -787
  25. package/dist/themes/mashroom.css.map +1 -0
  26. package/dist/themes/mashroom.min.css +87 -38
  27. package/dist/themes/shaj-default.css +1685 -713
  28. package/dist/themes/shaj-default.css.map +1 -0
  29. package/dist/themes/shaj-default.min.css +11 -7
  30. package/package.json +95 -26
  31. package/scripts/atomix-cli.js +1428 -0
  32. package/scripts/build-themes.js +208 -0
  33. package/scripts/cli/interactive-init.js +528 -0
  34. package/scripts/cli/migration-tools.js +603 -0
  35. package/scripts/cli/token-manager.js +519 -0
  36. package/scripts/sync-theme-config.js +309 -0
  37. package/src/components/List/ListGroup.tsx +1 -2
  38. package/src/components/Popover/Popover.tsx +2 -2
  39. package/src/components/Tooltip/Tooltip.stories.tsx +49 -12
  40. package/src/components/Tooltip/Tooltip.tsx +32 -58
  41. package/src/lib/composables/useAtomixGlass.ts +46 -46
  42. package/src/lib/composables/useTooltip.ts +285 -0
  43. package/src/lib/constants/cssVariables.ts +390 -0
  44. package/src/lib/hooks/__tests__/useComponentCustomization.test.ts +151 -0
  45. package/src/lib/hooks/index.ts +19 -0
  46. package/src/lib/hooks/useComponentCustomization.ts +175 -0
  47. package/src/lib/index.ts +10 -1
  48. package/src/lib/patterns/__tests__/slots.test.ts +108 -0
  49. package/src/lib/patterns/index.ts +35 -0
  50. package/src/lib/patterns/slots.tsx +421 -0
  51. package/src/lib/theme/__tests__/ThemeBuilder.test.ts +223 -0
  52. package/src/lib/theme/builders/ThemeBuilder.ts +372 -0
  53. package/src/lib/theme/config/index.ts +21 -0
  54. package/src/lib/theme/config/loader.ts +276 -0
  55. package/src/lib/theme/config/types.ts +98 -0
  56. package/src/lib/theme/config/validator.ts +326 -0
  57. package/src/lib/theme/constants.ts +183 -0
  58. package/src/lib/theme/core/ThemeCache.ts +283 -0
  59. package/src/lib/theme/core/ThemeEngine.test.ts +146 -0
  60. package/src/lib/theme/core/ThemeEngine.ts +657 -0
  61. package/src/lib/theme/core/ThemeRegistry.ts +284 -0
  62. package/src/lib/theme/core/ThemeValidator.ts +530 -0
  63. package/src/lib/theme/core/index.ts +24 -0
  64. package/src/lib/theme/createTheme.ts +83 -204
  65. package/src/lib/theme/cssVariableMapper.ts +261 -0
  66. package/src/lib/theme/devtools/CLI.ts +279 -0
  67. package/src/lib/theme/devtools/Inspector.tsx +594 -0
  68. package/src/lib/theme/devtools/Preview.tsx +392 -0
  69. package/src/lib/theme/devtools/index.ts +21 -0
  70. package/src/lib/theme/errors.test.ts +207 -0
  71. package/src/lib/theme/errors.ts +233 -0
  72. package/src/lib/theme/generateCSSVariables.ts +93 -9
  73. package/src/lib/theme/generators/CSSGenerator.ts +311 -0
  74. package/src/lib/theme/generators/ConfigGenerator.ts +287 -0
  75. package/src/lib/theme/generators/TypeGenerator.ts +228 -0
  76. package/src/lib/theme/generators/index.ts +21 -0
  77. package/src/lib/theme/i18n/index.ts +9 -0
  78. package/src/lib/theme/i18n/rtl.ts +325 -0
  79. package/src/lib/theme/index.ts +36 -109
  80. package/src/lib/theme/monitoring/ThemeAnalytics.ts +409 -0
  81. package/src/lib/theme/monitoring/index.ts +17 -0
  82. package/src/lib/theme/overrides/ComponentOverrides.ts +243 -0
  83. package/src/lib/theme/overrides/index.ts +15 -0
  84. package/src/lib/theme/runtime/ThemeApplicator.ts +252 -0
  85. package/src/lib/theme/runtime/ThemeErrorBoundary.tsx +233 -0
  86. package/src/lib/theme/runtime/ThemeManager.test.ts +176 -0
  87. package/src/lib/theme/runtime/ThemeManager.ts +442 -0
  88. package/src/lib/theme/runtime/ThemeProvider.tsx +318 -0
  89. package/src/lib/theme/runtime/index.ts +17 -0
  90. package/src/lib/theme/runtime/useTheme.ts +52 -0
  91. package/src/lib/theme/themeUtils.ts +27 -5
  92. package/src/lib/theme/types.ts +62 -1
  93. package/src/lib/theme/utils.ts +23 -22
  94. package/src/lib/theme/whitelabel/WhiteLabelManager.ts +364 -0
  95. package/src/lib/theme/whitelabel/index.ts +13 -0
  96. package/src/lib/theme-tools.ts +185 -0
  97. package/src/lib/types/components.ts +194 -0
  98. package/src/lib/types/partProps.ts +426 -0
  99. package/src/lib/utils/__tests__/componentUtils.test.ts +144 -0
  100. package/src/lib/utils/componentUtils.ts +163 -0
  101. package/src/lib/utils/index.ts +17 -57
  102. package/src/styles/01-settings/_settings.badge.scss +1 -1
  103. package/src/styles/01-settings/_settings.callout.scss +1 -1
  104. package/src/styles/01-settings/_settings.card.scss +1 -1
  105. package/src/styles/01-settings/_settings.colors.scss +10 -10
  106. package/src/styles/01-settings/_settings.input.scss +1 -1
  107. package/src/styles/01-settings/_settings.navbar.scss +1 -1
  108. package/src/styles/01-settings/_settings.tooltip.scss +1 -1
  109. package/src/styles/01-settings/_settings.upload.scss +1 -1
  110. package/src/styles/06-components/_components.chart.scss +2 -2
  111. package/src/styles/06-components/_components.tooltip.scss +31 -81
  112. package/src/styles/99-utilities/_utilities.border.scss +27 -58
  113. package/src/styles/99-utilities/_utilities.gradient.scss +12 -0
  114. package/src/styles/99-utilities/_utilities.position.scss +8 -15
  115. package/src/styles/99-utilities/_utilities.scss +2 -0
  116. package/src/styles/99-utilities/_utilities.spacing.scss +76 -121
  117. package/src/styles/99-utilities/_utilities.text.scss +30 -49
  118. package/src/themes/README.md +443 -0
  119. package/src/themes/THEME_CHECKLIST.md +74 -0
  120. package/src/themes/applemix/01-settings/_index.scss +24 -0
  121. package/src/themes/applemix/01-settings/_settings.animations.scss +0 -0
  122. package/src/themes/applemix/01-settings/_settings.background.scss +6 -0
  123. package/src/themes/applemix/01-settings/_settings.colors.scss +75 -0
  124. package/src/themes/applemix/01-settings/_settings.config.scss +15 -0
  125. package/src/themes/applemix/01-settings/_settings.typography.scss +30 -0
  126. package/src/themes/applemix/02-tools/_index.scss +4 -0
  127. package/src/themes/applemix/03-generic/_index.scss +7 -0
  128. package/src/themes/applemix/04-elements/_index.scss +7 -0
  129. package/src/themes/applemix/05-objects/_index.scss +7 -0
  130. package/src/themes/applemix/06-components/_index.scss +15 -0
  131. package/src/themes/applemix/99-utilities/_index.scss +7 -0
  132. package/src/themes/applemix/README.md +378 -0
  133. package/src/themes/applemix/index.scss +33 -0
  134. package/src/themes/boomdevs/01-settings/_index.scss +38 -0
  135. package/src/themes/boomdevs/01-settings/_settings.accordion.scss +12 -0
  136. package/src/themes/boomdevs/01-settings/_settings.animations.scss +11 -0
  137. package/src/themes/boomdevs/01-settings/_settings.avatar.scss +9 -0
  138. package/src/themes/boomdevs/01-settings/_settings.badge.scss +11 -0
  139. package/src/themes/boomdevs/01-settings/_settings.border-radius.scss +16 -0
  140. package/src/themes/boomdevs/01-settings/_settings.border.scss +10 -0
  141. package/src/themes/boomdevs/01-settings/_settings.box-shadow.scss +14 -0
  142. package/src/themes/boomdevs/01-settings/_settings.breadcrumb.scss +13 -0
  143. package/src/themes/boomdevs/01-settings/_settings.breakpoints.scss +15 -0
  144. package/src/themes/boomdevs/01-settings/_settings.button.scss +9 -0
  145. package/src/themes/boomdevs/01-settings/_settings.callout.scss +9 -0
  146. package/src/themes/boomdevs/01-settings/_settings.card.scss +11 -0
  147. package/src/themes/boomdevs/01-settings/_settings.checkbox.scss +9 -0
  148. package/src/themes/boomdevs/01-settings/_settings.colors.scss +145 -0
  149. package/src/themes/boomdevs/01-settings/_settings.dropdown.scss +11 -0
  150. package/src/themes/boomdevs/01-settings/_settings.grid.scss +16 -0
  151. package/src/themes/boomdevs/01-settings/_settings.input.scss +14 -0
  152. package/src/themes/boomdevs/01-settings/_settings.link.scss +11 -0
  153. package/src/themes/boomdevs/01-settings/_settings.list.scss +10 -0
  154. package/src/themes/boomdevs/01-settings/_settings.modal.scss +16 -0
  155. package/src/themes/boomdevs/01-settings/_settings.navbar.scss +16 -0
  156. package/src/themes/boomdevs/01-settings/_settings.pagination.scss +13 -0
  157. package/src/themes/boomdevs/01-settings/_settings.progress.scss +11 -0
  158. package/src/themes/boomdevs/01-settings/_settings.rating.scss +10 -0
  159. package/src/themes/boomdevs/01-settings/_settings.spacing.scss +33 -0
  160. package/src/themes/boomdevs/01-settings/_settings.spinner.scss +11 -0
  161. package/src/themes/boomdevs/01-settings/_settings.steps.scss +12 -0
  162. package/src/themes/boomdevs/01-settings/_settings.tabs.scss +12 -0
  163. package/src/themes/boomdevs/01-settings/_settings.todo.scss +15 -0
  164. package/src/themes/boomdevs/01-settings/_settings.toggle.scss +14 -0
  165. package/src/themes/boomdevs/01-settings/_settings.tooltip.scss +13 -0
  166. package/src/themes/boomdevs/01-settings/_settings.typography.scss +58 -0
  167. package/src/themes/boomdevs/01-settings/_settings.video-player.scss +12 -0
  168. package/src/themes/boomdevs/02-tools/_index.scss +7 -0
  169. package/src/themes/boomdevs/03-generic/_index.scss +7 -0
  170. package/src/themes/boomdevs/04-elements/_index.scss +7 -0
  171. package/src/themes/boomdevs/05-objects/_index.scss +7 -0
  172. package/src/themes/boomdevs/06-components/_components.button.scss +11 -0
  173. package/src/themes/boomdevs/06-components/_index.scss +11 -0
  174. package/src/themes/boomdevs/99-utilities/_index.scss +7 -0
  175. package/src/themes/boomdevs/index.scss +26 -0
  176. package/src/themes/esrar/01-settings/_index.scss +15 -0
  177. package/src/themes/esrar/01-settings/_settings.colors.scss +91 -0
  178. package/src/themes/esrar/02-tools/_index.scss +8 -0
  179. package/src/themes/esrar/02-tools/_tools.animations.scss +342 -0
  180. package/src/themes/esrar/06-components/_components.accordion.scss +49 -0
  181. package/src/themes/esrar/06-components/_components.avatar-group.scss +14 -0
  182. package/src/themes/esrar/06-components/_components.avatar.scss +61 -0
  183. package/src/themes/esrar/06-components/_components.badge.scss +117 -0
  184. package/src/themes/esrar/06-components/_components.breadcrumb.scss +65 -0
  185. package/src/themes/esrar/06-components/_components.btn-group.scss +19 -0
  186. package/src/themes/esrar/06-components/_components.button.scss +224 -0
  187. package/src/themes/esrar/06-components/_components.callout.scss +51 -0
  188. package/src/themes/esrar/06-components/_components.card.scss +134 -0
  189. package/src/themes/esrar/06-components/_components.chart.scss +24 -0
  190. package/src/themes/esrar/06-components/_components.checkbox-group.scss +26 -0
  191. package/src/themes/esrar/06-components/_components.checkbox.scss +71 -0
  192. package/src/themes/esrar/06-components/_components.color-mode-toggle.scss +29 -0
  193. package/src/themes/esrar/06-components/_components.countdown.scss +67 -0
  194. package/src/themes/esrar/06-components/_components.data-table.scss +22 -0
  195. package/src/themes/esrar/06-components/_components.datepicker.scss +20 -0
  196. package/src/themes/esrar/06-components/_components.dropdown.scss +272 -0
  197. package/src/themes/esrar/06-components/_components.edge-panel.scss +10 -0
  198. package/src/themes/esrar/06-components/_components.form-group.scss +15 -0
  199. package/src/themes/esrar/06-components/_components.form.scss +66 -0
  200. package/src/themes/esrar/06-components/_components.hero.scss +251 -0
  201. package/src/themes/esrar/06-components/_components.icon.scss +33 -0
  202. package/src/themes/esrar/06-components/_components.image-gallery.scss +29 -0
  203. package/src/themes/esrar/06-components/_components.input.scss +91 -0
  204. package/src/themes/esrar/06-components/_components.list-group.scss +26 -0
  205. package/src/themes/esrar/06-components/_components.modal.scss +148 -0
  206. package/src/themes/esrar/06-components/_components.notification.scss +80 -0
  207. package/src/themes/esrar/06-components/_components.pagination.scss +84 -0
  208. package/src/themes/esrar/06-components/_components.popover.scss +10 -0
  209. package/src/themes/esrar/06-components/_components.progress.scss +64 -0
  210. package/src/themes/esrar/06-components/_components.rating.scss +26 -0
  211. package/src/themes/esrar/06-components/_components.skeleton.scss +15 -0
  212. package/src/themes/esrar/06-components/_components.slider.scss +90 -0
  213. package/src/themes/esrar/06-components/_components.spinner.scss +71 -0
  214. package/src/themes/esrar/06-components/_components.steps.scss +76 -0
  215. package/src/themes/esrar/06-components/_components.tab.scss +58 -0
  216. package/src/themes/esrar/06-components/_components.tag.scss +21 -0
  217. package/src/themes/esrar/06-components/_components.timeline.scss +19 -0
  218. package/src/themes/esrar/06-components/_components.toast.scss +91 -0
  219. package/src/themes/esrar/06-components/_components.toggle.scss +74 -0
  220. package/src/themes/esrar/06-components/_components.tooltip.scss +45 -0
  221. package/src/themes/esrar/06-components/_components.upload.scss +102 -0
  222. package/src/themes/esrar/06-components/_index.scss +42 -0
  223. package/src/themes/esrar/index.scss +30 -0
  224. package/src/themes/flashtrade/01-settings/_index.scss +19 -0
  225. package/src/themes/flashtrade/01-settings/_settings.animations.scss +11 -0
  226. package/src/themes/flashtrade/01-settings/_settings.background.scss +9 -0
  227. package/src/themes/flashtrade/01-settings/_settings.colors.scss +79 -0
  228. package/src/themes/flashtrade/01-settings/_settings.config.scss +16 -0
  229. package/src/themes/flashtrade/01-settings/_settings.typography.scss +35 -0
  230. package/src/themes/flashtrade/02-tools/_index.scss +8 -0
  231. package/src/themes/flashtrade/03-generic/_index.scss +8 -0
  232. package/src/themes/flashtrade/04-elements/_index.scss +12 -0
  233. package/src/themes/flashtrade/05-objects/_index.scss +8 -0
  234. package/src/themes/flashtrade/06-components/_components.badge.scss +156 -0
  235. package/src/themes/flashtrade/06-components/_components.button.scss +135 -0
  236. package/src/themes/flashtrade/06-components/_components.card.scss +214 -0
  237. package/src/themes/flashtrade/06-components/_components.navbar.scss +227 -0
  238. package/src/themes/flashtrade/06-components/_index.scss +13 -0
  239. package/src/themes/flashtrade/99-utilities/_index.scss +9 -0
  240. package/src/themes/flashtrade/99-utilities/_utilities.trading.scss +187 -0
  241. package/src/themes/flashtrade/README.md +386 -0
  242. package/src/themes/flashtrade/demo.html +272 -0
  243. package/src/themes/flashtrade/index.scss +36 -0
  244. package/src/themes/mashroom/01-settings/_index.scss +69 -0
  245. package/src/themes/mashroom/01-settings/_settings.accordion.scss +32 -0
  246. package/src/themes/mashroom/01-settings/_settings.animations.scss +26 -0
  247. package/src/themes/mashroom/01-settings/_settings.avatar-group.scss +22 -0
  248. package/src/themes/mashroom/01-settings/_settings.avatar.scss +57 -0
  249. package/src/themes/mashroom/01-settings/_settings.badge.scss +19 -0
  250. package/src/themes/mashroom/01-settings/_settings.border-radius.scss +24 -0
  251. package/src/themes/mashroom/01-settings/_settings.border.scss +14 -0
  252. package/src/themes/mashroom/01-settings/_settings.box-shadow.scss +40 -0
  253. package/src/themes/mashroom/01-settings/_settings.breadcrumb.scss +0 -0
  254. package/src/themes/mashroom/01-settings/_settings.breakpoints.scss +17 -0
  255. package/src/themes/mashroom/01-settings/_settings.btn-group.scss +5 -0
  256. package/src/themes/mashroom/01-settings/_settings.button.scss +50 -0
  257. package/src/themes/mashroom/01-settings/_settings.callout.scss +81 -0
  258. package/src/themes/mashroom/01-settings/_settings.card.scss +52 -0
  259. package/src/themes/mashroom/01-settings/_settings.checkbox-group.scss +5 -0
  260. package/src/themes/mashroom/01-settings/_settings.checkbox.scss +23 -0
  261. package/src/themes/mashroom/01-settings/_settings.color-mode.scss +7 -0
  262. package/src/themes/mashroom/01-settings/_settings.colors.scss +180 -0
  263. package/src/themes/mashroom/01-settings/_settings.config.scss +4 -0
  264. package/src/themes/mashroom/01-settings/_settings.countdown.scss +20 -0
  265. package/src/themes/mashroom/01-settings/_settings.data-table.scss +56 -0
  266. package/src/themes/mashroom/01-settings/_settings.datepicker.scss +45 -0
  267. package/src/themes/mashroom/01-settings/_settings.design-tokens.scss +3 -0
  268. package/src/themes/mashroom/01-settings/_settings.dropdown.scss +45 -0
  269. package/src/themes/mashroom/01-settings/_settings.edge-panel.scss +24 -0
  270. package/src/themes/mashroom/01-settings/_settings.fonts.scss +8 -0
  271. package/src/themes/mashroom/01-settings/_settings.form-group.scss +14 -0
  272. package/src/themes/mashroom/01-settings/_settings.form.scss +6 -0
  273. package/src/themes/mashroom/01-settings/_settings.grid.scss +23 -0
  274. package/src/themes/mashroom/01-settings/_settings.hero.scss +41 -0
  275. package/src/themes/mashroom/01-settings/_settings.input.scss +51 -0
  276. package/src/themes/mashroom/01-settings/_settings.link.scss +13 -0
  277. package/src/themes/mashroom/01-settings/_settings.list-group.scss +16 -0
  278. package/src/themes/mashroom/01-settings/_settings.list.scss +13 -0
  279. package/src/themes/mashroom/01-settings/_settings.masonry-grid.scss +23 -0
  280. package/src/themes/mashroom/01-settings/_settings.menu.scss +50 -0
  281. package/src/themes/mashroom/01-settings/_settings.messages.scss +98 -0
  282. package/src/themes/mashroom/01-settings/_settings.modal.scss +41 -0
  283. package/src/themes/mashroom/01-settings/_settings.nav.scss +20 -0
  284. package/src/themes/mashroom/01-settings/_settings.navbar.scss +54 -0
  285. package/src/themes/mashroom/01-settings/_settings.pagination.scss +30 -0
  286. package/src/themes/mashroom/01-settings/_settings.photoviewer.scss +45 -0
  287. package/src/themes/mashroom/01-settings/_settings.popover.scss +20 -0
  288. package/src/themes/mashroom/01-settings/_settings.position.scss +9 -0
  289. package/src/themes/mashroom/01-settings/_settings.progress.scss +17 -0
  290. package/src/themes/mashroom/01-settings/_settings.rating.scss +11 -0
  291. package/src/themes/mashroom/01-settings/_settings.river.scss +50 -0
  292. package/src/themes/mashroom/01-settings/_settings.sectionintro.scss +31 -0
  293. package/src/themes/mashroom/01-settings/_settings.select.scss +47 -0
  294. package/src/themes/mashroom/01-settings/_settings.side-menu.scss +79 -0
  295. package/src/themes/mashroom/01-settings/_settings.skeleton.scss +24 -0
  296. package/src/themes/mashroom/01-settings/_settings.spacing.scss +66 -0
  297. package/src/themes/mashroom/01-settings/_settings.spinner.scss +34 -0
  298. package/src/themes/mashroom/01-settings/_settings.steps.scss +33 -0
  299. package/src/themes/mashroom/01-settings/_settings.tabs.scss +33 -0
  300. package/src/themes/mashroom/01-settings/_settings.testimonials.scss +24 -0
  301. package/src/themes/mashroom/01-settings/_settings.todo.scss +52 -0
  302. package/src/themes/mashroom/01-settings/_settings.toggle.scss +49 -0
  303. package/src/themes/mashroom/01-settings/_settings.tooltip.scss +20 -0
  304. package/src/themes/mashroom/01-settings/_settings.typography.scss +95 -0
  305. package/src/themes/mashroom/01-settings/_settings.upload.scss +96 -0
  306. package/src/themes/mashroom/01-settings/_settings.z-layers.scss +19 -0
  307. package/src/themes/mashroom/02-tools/_index.scss +8 -0
  308. package/src/themes/mashroom/02-tools/_tools.psychedelic-gradients.scss +78 -0
  309. package/src/themes/mashroom/02-tools/_tools.trippy-effects.scss +114 -0
  310. package/src/themes/mashroom/03-generic/_index.scss +6 -0
  311. package/src/themes/mashroom/04-elements/_index.scss +6 -0
  312. package/src/themes/mashroom/05-objects/_index.scss +6 -0
  313. package/src/themes/mashroom/06-components/_components.accordion.scss +187 -0
  314. package/src/themes/mashroom/06-components/_components.avatar-group.scss +276 -0
  315. package/src/themes/mashroom/06-components/_components.avatar.scss +114 -0
  316. package/src/themes/mashroom/06-components/_components.badge.scss +152 -0
  317. package/src/themes/mashroom/06-components/_components.breadcrumb.scss +162 -0
  318. package/src/themes/mashroom/06-components/_components.btn-group.scss +404 -0
  319. package/src/themes/mashroom/06-components/_components.button.scss +160 -0
  320. package/src/themes/mashroom/06-components/_components.callout.scss +140 -0
  321. package/src/themes/mashroom/06-components/_components.card.scss +225 -0
  322. package/src/themes/mashroom/06-components/_components.checkbox.scss +186 -0
  323. package/src/themes/mashroom/06-components/_components.color-mode-toggle.scss +308 -0
  324. package/src/themes/mashroom/06-components/_components.countdown.scss +402 -0
  325. package/src/themes/mashroom/06-components/_components.data-table.scss +354 -0
  326. package/src/themes/mashroom/06-components/_components.datepicker.scss +349 -0
  327. package/src/themes/mashroom/06-components/_components.dropdown.scss +334 -0
  328. package/src/themes/mashroom/06-components/_components.edge-panel.scss +413 -0
  329. package/src/themes/mashroom/06-components/_components.form-group.scss +433 -0
  330. package/src/themes/mashroom/06-components/_components.form.scss +358 -0
  331. package/src/themes/mashroom/06-components/_components.hero.scss +151 -0
  332. package/src/themes/mashroom/06-components/_components.input.scss +147 -0
  333. package/src/themes/mashroom/06-components/_components.list-group.scss +456 -0
  334. package/src/themes/mashroom/06-components/_components.list.scss +145 -0
  335. package/src/themes/mashroom/06-components/_components.menu.scss +497 -0
  336. package/src/themes/mashroom/06-components/_components.messages.scss +277 -0
  337. package/src/themes/mashroom/06-components/_components.modal.scss +264 -0
  338. package/src/themes/mashroom/06-components/_components.nav.scss +181 -0
  339. package/src/themes/mashroom/06-components/_components.navbar.scss +538 -0
  340. package/src/themes/mashroom/06-components/_components.pagination.scss +400 -0
  341. package/src/themes/mashroom/06-components/_components.photoviewer.scss +498 -0
  342. package/src/themes/mashroom/06-components/_components.popover.scss +383 -0
  343. package/src/themes/mashroom/06-components/_components.product-review.scss +408 -0
  344. package/src/themes/mashroom/06-components/_components.progress.scss +249 -0
  345. package/src/themes/mashroom/06-components/_components.rating.scss +300 -0
  346. package/src/themes/mashroom/06-components/_components.river.scss +570 -0
  347. package/src/themes/mashroom/06-components/_components.sectionintro.scss +546 -0
  348. package/src/themes/mashroom/06-components/_components.select.scss +455 -0
  349. package/src/themes/mashroom/06-components/_components.side-menu.scss +635 -0
  350. package/src/themes/mashroom/06-components/_components.skeleton.scss +447 -0
  351. package/src/themes/mashroom/06-components/_components.slider.scss +414 -0
  352. package/src/themes/mashroom/06-components/_components.spinner.scss +198 -0
  353. package/src/themes/mashroom/06-components/_components.steps.scss +350 -0
  354. package/src/themes/mashroom/06-components/_components.tabs.scss +269 -0
  355. package/src/themes/mashroom/06-components/_components.testimonials.scss +561 -0
  356. package/src/themes/mashroom/06-components/_components.toggle.scss +231 -0
  357. package/src/themes/mashroom/06-components/_components.tooltip.scss +167 -0
  358. package/src/themes/mashroom/06-components/_components.upload.scss +537 -0
  359. package/src/themes/mashroom/06-components/_components.video-player.scss +560 -0
  360. package/src/themes/mashroom/06-components/_index.scss +55 -0
  361. package/src/themes/mashroom/99-utilities/_index.scss +6 -0
  362. package/src/themes/mashroom/index.scss +26 -0
  363. package/src/themes/shaj-default/01-settings/_index.scss +69 -0
  364. package/src/themes/shaj-default/01-settings/_settings.accordion.scss +38 -0
  365. package/src/themes/shaj-default/01-settings/_settings.animations.scss +32 -0
  366. package/src/themes/shaj-default/01-settings/_settings.avatar-group.scss +28 -0
  367. package/src/themes/shaj-default/01-settings/_settings.avatar.scss +63 -0
  368. package/src/themes/shaj-default/01-settings/_settings.badge.scss +25 -0
  369. package/src/themes/shaj-default/01-settings/_settings.border-radius.scss +24 -0
  370. package/src/themes/shaj-default/01-settings/_settings.border.scss +20 -0
  371. package/src/themes/shaj-default/01-settings/_settings.box-shadow.scss +46 -0
  372. package/src/themes/shaj-default/01-settings/_settings.breadcrumb.scss +0 -0
  373. package/src/themes/shaj-default/01-settings/_settings.breakpoints.scss +23 -0
  374. package/src/themes/shaj-default/01-settings/_settings.btn-group.scss +11 -0
  375. package/src/themes/shaj-default/01-settings/_settings.button.scss +56 -0
  376. package/src/themes/shaj-default/01-settings/_settings.callout.scss +87 -0
  377. package/src/themes/shaj-default/01-settings/_settings.card.scss +52 -0
  378. package/src/themes/shaj-default/01-settings/_settings.checkbox-group.scss +11 -0
  379. package/src/themes/shaj-default/01-settings/_settings.checkbox.scss +29 -0
  380. package/src/themes/shaj-default/01-settings/_settings.color-mode.scss +13 -0
  381. package/src/themes/shaj-default/01-settings/_settings.colors.scss +91 -0
  382. package/src/themes/shaj-default/01-settings/_settings.config.scss +4 -0
  383. package/src/themes/shaj-default/01-settings/_settings.countdown.scss +26 -0
  384. package/src/themes/shaj-default/01-settings/_settings.data-table.scss +62 -0
  385. package/src/themes/shaj-default/01-settings/_settings.datepicker.scss +51 -0
  386. package/src/themes/shaj-default/01-settings/_settings.design-tokens.scss +9 -0
  387. package/src/themes/shaj-default/01-settings/_settings.dropdown.scss +51 -0
  388. package/src/themes/shaj-default/01-settings/_settings.edge-panel.scss +30 -0
  389. package/src/themes/shaj-default/01-settings/_settings.fonts.scss +13 -0
  390. package/src/themes/shaj-default/01-settings/_settings.form-group.scss +20 -0
  391. package/src/themes/shaj-default/01-settings/_settings.form.scss +12 -0
  392. package/src/themes/shaj-default/01-settings/_settings.grid.scss +29 -0
  393. package/src/themes/shaj-default/01-settings/_settings.hero.scss +47 -0
  394. package/src/themes/shaj-default/01-settings/_settings.input.scss +57 -0
  395. package/src/themes/shaj-default/01-settings/_settings.link.scss +19 -0
  396. package/src/themes/shaj-default/01-settings/_settings.list-group.scss +22 -0
  397. package/src/themes/shaj-default/01-settings/_settings.list.scss +19 -0
  398. package/src/themes/shaj-default/01-settings/_settings.masonry-grid.scss +29 -0
  399. package/src/themes/shaj-default/01-settings/_settings.menu.scss +56 -0
  400. package/src/themes/shaj-default/01-settings/_settings.messages.scss +104 -0
  401. package/src/themes/shaj-default/01-settings/_settings.modal.scss +47 -0
  402. package/src/themes/shaj-default/01-settings/_settings.nav.scss +26 -0
  403. package/src/themes/shaj-default/01-settings/_settings.navbar.scss +60 -0
  404. package/src/themes/shaj-default/01-settings/_settings.pagination.scss +36 -0
  405. package/src/themes/shaj-default/01-settings/_settings.photoviewer.scss +51 -0
  406. package/src/themes/shaj-default/01-settings/_settings.popover.scss +26 -0
  407. package/src/themes/shaj-default/01-settings/_settings.position.scss +15 -0
  408. package/src/themes/shaj-default/01-settings/_settings.progress.scss +23 -0
  409. package/src/themes/shaj-default/01-settings/_settings.rating.scss +17 -0
  410. package/src/themes/shaj-default/01-settings/_settings.river.scss +56 -0
  411. package/src/themes/shaj-default/01-settings/_settings.sectionintro.scss +37 -0
  412. package/src/themes/shaj-default/01-settings/_settings.select.scss +53 -0
  413. package/src/themes/shaj-default/01-settings/_settings.side-menu.scss +85 -0
  414. package/src/themes/shaj-default/01-settings/_settings.skeleton.scss +30 -0
  415. package/src/themes/shaj-default/01-settings/_settings.spacing.scss +72 -0
  416. package/src/themes/shaj-default/01-settings/_settings.spinner.scss +24 -0
  417. package/src/themes/shaj-default/01-settings/_settings.steps.scss +39 -0
  418. package/src/themes/shaj-default/01-settings/_settings.tabs.scss +39 -0
  419. package/src/themes/shaj-default/01-settings/_settings.testimonials.scss +30 -0
  420. package/src/themes/shaj-default/01-settings/_settings.todo.scss +58 -0
  421. package/src/themes/shaj-default/01-settings/_settings.toggle.scss +55 -0
  422. package/src/themes/shaj-default/01-settings/_settings.tooltip.scss +26 -0
  423. package/src/themes/shaj-default/01-settings/_settings.typography.scss +101 -0
  424. package/src/themes/shaj-default/01-settings/_settings.upload.scss +102 -0
  425. package/src/themes/shaj-default/01-settings/_settings.z-layers.scss +25 -0
  426. package/src/themes/shaj-default/02-tools/_index.scss +0 -0
  427. package/src/themes/shaj-default/03-generic/_generic.root.scss +0 -0
  428. package/src/themes/shaj-default/03-generic/_index.scss +2 -0
  429. package/src/themes/shaj-default/04-elements/_index.scss +0 -0
  430. package/src/themes/shaj-default/05-objects/_index.scss +0 -0
  431. package/src/themes/shaj-default/06-components/_components.button.scss +55 -0
  432. package/src/themes/shaj-default/06-components/_components.card.scss +57 -0
  433. package/src/themes/shaj-default/06-components/_components.input.scss +58 -0
  434. package/src/themes/shaj-default/06-components/_components.navbar.scss +99 -0
  435. package/src/themes/shaj-default/06-components/_components.tooltip.scss +0 -0
  436. package/src/themes/shaj-default/06-components/_index.scss +13 -0
  437. package/src/themes/shaj-default/99-utilities/_index.scss +0 -0
  438. package/src/themes/shaj-default/index.scss +25 -0
  439. package/src/themes/themes.config.js +219 -0
  440. package/theme.config.ts +360 -0
  441. package/src/lib/theme/ThemeManager.integration.test.ts +0 -124
  442. package/src/lib/theme/ThemeManager.stories.tsx +0 -472
  443. package/src/lib/theme/ThemeManager.test.ts +0 -190
  444. package/src/lib/theme/ThemeManager.ts +0 -645
  445. package/src/lib/theme/ThemeProvider.tsx +0 -377
  446. package/src/lib/theme/createTheme.test.ts +0 -475
  447. package/src/lib/theme/useTheme.test.tsx +0 -67
  448. package/src/lib/theme/useTheme.ts +0 -64
  449. package/src/lib/theme/utils.test.ts +0 -140
@@ -0,0 +1,187 @@
1
+ @use '../02-tools/tools.trippy-effects' as trippy;
2
+ @use '../02-tools/tools.psychedelic-gradients' as gradients;
3
+ @use '../01-settings/settings.colors' as colors;
4
+ @use '../01-settings/settings.config' as config;
5
+
6
+ // Psychedelic accordion animations
7
+ @keyframes accordion-float {
8
+ 0%,
9
+ 100% {
10
+ transform: translateY(0px);
11
+ }
12
+ 50% {
13
+ transform: translateY(-5px);
14
+ }
15
+ }
16
+
17
+ @keyframes accordion-glow-pulse {
18
+ 0%,
19
+ 100% {
20
+ box-shadow: 0 0 10px rgba(157, 0, 255, 0.5);
21
+ }
22
+ 50% {
23
+ box-shadow:
24
+ 0 0 20px rgba(157, 0, 255, 0.8),
25
+ 0 0 30px rgba(255, 32, 133, 0.6),
26
+ 0 0 40px rgba(255, 187, 0, 0.4);
27
+ }
28
+ }
29
+
30
+ @keyframes accordion-expand {
31
+ 0% {
32
+ opacity: 0;
33
+ transform: scaleY(0);
34
+ }
35
+ 100% {
36
+ opacity: 1;
37
+ transform: scaleY(1);
38
+ }
39
+ }
40
+
41
+ .c-accordion {
42
+ $root: &;
43
+ // Apply psychedelic border with glow effect
44
+ @include trippy.trippy-glow(colors.$primary-6, 10px);
45
+
46
+ // Add color shift for extra psychedelic effect
47
+ @include trippy.color-shift();
48
+
49
+ // Add floating animation
50
+ @include trippy.float-animation();
51
+ animation-duration: 6s;
52
+
53
+ // Add pulse animation
54
+ animation: accordion-glow-pulse 3s infinite;
55
+
56
+ &__header {
57
+ @include gradients.mushroom-cap-gradient();
58
+
59
+ // Add pulse effect to header
60
+ @include trippy.psychedelic-pulse(colors.$primary-4);
61
+
62
+ // Add a subtle pattern
63
+ background-image:
64
+ radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
65
+ radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
66
+ background-size: 30px 30px;
67
+
68
+ // Add floating effect
69
+ @include trippy.float-animation();
70
+ animation-duration: 4s;
71
+
72
+ // Add psychedelic border
73
+ border: 1px solid rgba(157, 0, 255, 0.3);
74
+
75
+ &:hover {
76
+ @include gradients.psychedelic-linear-gradient(colors.$primary-6, colors.$blue-6);
77
+ transform: scale(1.01) rotate(1deg);
78
+ @include trippy.trippy-glow(colors.$red-4, 15px);
79
+ }
80
+
81
+ // Active state
82
+ &--active {
83
+ @include gradients.rainbow-gradient();
84
+ background-size: 300% 300%;
85
+ animation: rainbow-shift 4s ease infinite;
86
+ border: 1px solid rgba(255, 187, 0, 0.5);
87
+
88
+ &:hover {
89
+ animation: rainbow-shift 2s ease infinite;
90
+ @include trippy.trippy-glow(colors.$yellow-4, 20px);
91
+ }
92
+ }
93
+ }
94
+
95
+ &__body {
96
+ @include gradients.mushroom-stem-gradient();
97
+ border-top: 1px solid colors.$primary-3;
98
+
99
+ // Add animation when expanding
100
+ animation: accordion-expand 0.3s ease-out;
101
+
102
+ // Add a subtle sparkle effect
103
+ &::before {
104
+ content: '';
105
+ position: absolute;
106
+ top: 0;
107
+ left: 0;
108
+ right: 0;
109
+ bottom: 0;
110
+ background:
111
+ radial-gradient(1px 1px at 20px 30px, var(--atomix-body-color), rgba(255, 255, 255, 0)),
112
+ radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
113
+ background-repeat: repeat;
114
+ background-size: 50px 50px;
115
+ animation: sparkle 3s linear infinite;
116
+ opacity: 0.3;
117
+ pointer-events: none;
118
+ }
119
+
120
+ @keyframes sparkle {
121
+ from {
122
+ background-position: 0 0;
123
+ }
124
+ to {
125
+ background-position: 50px 50px;
126
+ }
127
+ }
128
+ }
129
+
130
+ // Psychedelic variant
131
+ &--psychedelic {
132
+ @include gradients.rainbow-gradient();
133
+ background-size: 400% 400%;
134
+ animation: rainbow-shift 6s ease infinite;
135
+ border: 2px solid transparent;
136
+ border-radius: 10px;
137
+
138
+ #{$root}__header {
139
+ @include gradients.rainbow-gradient();
140
+ background-size: 300% 300%;
141
+ animation: rainbow-shift 4s ease infinite;
142
+ border: none;
143
+ border-radius: 8px 8px 0 0;
144
+
145
+ &:hover {
146
+ animation: rainbow-shift 2s ease infinite;
147
+ }
148
+
149
+ &--active {
150
+ @include gradients.rainbow-gradient();
151
+ background-size: 300% 300%;
152
+ animation: rainbow-shift 3s ease infinite;
153
+ }
154
+ }
155
+
156
+ #{$root}__body {
157
+ @include gradients.spore-gradient();
158
+ border-top: none;
159
+ border-radius: 0 0 8px 8px;
160
+ }
161
+ }
162
+
163
+ // Floating variant
164
+ &--floating {
165
+ @include trippy.float-animation();
166
+ animation-duration: 5s;
167
+
168
+ #{$root}__header {
169
+ @include trippy.float-animation();
170
+ animation-duration: 3s;
171
+ }
172
+ }
173
+
174
+ // Glowing variant
175
+ &--glow {
176
+ @include trippy.trippy-glow(colors.$purple-4, 20px);
177
+ animation: accordion-glow-pulse 2s infinite;
178
+
179
+ #{$root}__header {
180
+ @include trippy.trippy-glow(colors.$red-4, 15px);
181
+
182
+ &--active {
183
+ @include trippy.trippy-glow(colors.$yellow-4, 25px);
184
+ }
185
+ }
186
+ }
187
+ }
@@ -0,0 +1,276 @@
1
+ /*!
2
+ * Mashroom Theme Avatar Group Component
3
+ * Psychedelic mushroom-inspired theme with trippy visuals
4
+ */
5
+
6
+ // Import required tools and settings
7
+ @use '../02-tools/tools.trippy-effects' as trippy;
8
+ @use '../02-tools/tools.psychedelic-gradients' as gradients;
9
+ @use '../01-settings/settings.colors' as *;
10
+
11
+ // Psychedelic avatar group animations
12
+ @keyframes avatar-group-float {
13
+ 0%,
14
+ 100% {
15
+ transform: translateY(0px);
16
+ }
17
+ 50% {
18
+ transform: translateY(-5px);
19
+ }
20
+ }
21
+
22
+ @keyframes avatar-group-glow-pulse {
23
+ 0%,
24
+ 100% {
25
+ box-shadow: 0 0 6px rgba(157, 0, 255, 0.4);
26
+ }
27
+ 50% {
28
+ box-shadow:
29
+ 0 0 12px rgba(157, 0, 255, 0.7),
30
+ 0 0 24px rgba(255, 32, 133, 0.5);
31
+ }
32
+ }
33
+
34
+ @keyframes avatar-group-pulse {
35
+ 0%,
36
+ 100% {
37
+ transform: scale(1);
38
+ }
39
+ 50% {
40
+ transform: scale(1.05);
41
+ }
42
+ }
43
+
44
+ .c-avatar-group {
45
+ $root: &;
46
+
47
+ // Individual avatars in group
48
+ .c-avatar {
49
+ border: 2px solid rgba(157, 0, 255, 0.3);
50
+ transition: all 0.3s ease;
51
+ @include trippy.color-shift();
52
+
53
+ // Add floating animation
54
+ @include trippy.float-animation();
55
+ animation-duration: 4s;
56
+
57
+ &:hover {
58
+ transform: translateY(-2px) scale(1.1);
59
+ z-index: 2;
60
+ @include trippy.trippy-glow($yellow-4, 8px);
61
+ @include trippy.psychedelic-pulse($yellow-4);
62
+ @include gradients.psychedelic-linear-gradient($purple-4, $yellow-4);
63
+ }
64
+ }
65
+
66
+ // Overlap styling
67
+ &--overlap {
68
+ .c-avatar {
69
+ margin-right: -1rem;
70
+
71
+ &:hover {
72
+ margin-right: 0;
73
+ }
74
+ }
75
+ }
76
+
77
+ // Spaced variant
78
+ &--spaced {
79
+ .c-avatar {
80
+ margin-right: 0.5rem;
81
+ @include trippy.float-animation();
82
+ animation-duration: 3s;
83
+ }
84
+ }
85
+
86
+ // Remaining count
87
+ &__remaining {
88
+ background: linear-gradient(45deg, $purple-4, $red-4);
89
+ border: 2px solid rgba(157, 0, 255, 0.3);
90
+
91
+ // Trippy glow effect
92
+ @include trippy.trippy-glow(rgba(157, 0, 255, 0.4), 6px);
93
+ @include trippy.color-shift();
94
+ @include gradients.rainbow-gradient();
95
+
96
+ // Add floating animation
97
+ @include trippy.float-animation();
98
+ animation-duration: 3s;
99
+
100
+ // Add pulse animation
101
+ animation: avatar-group-pulse 2s ease-in-out infinite;
102
+
103
+ &:hover {
104
+ transform: translateY(-2px) scale(1.1);
105
+ @include trippy.trippy-glow($yellow-4, 10px);
106
+ @include trippy.psychedelic-pulse($yellow-4);
107
+ }
108
+ }
109
+
110
+ // Floating animation
111
+ &--animated {
112
+ .c-avatar {
113
+ animation: avatarFloat 3s ease-in-out infinite;
114
+ @include trippy.color-shift();
115
+
116
+ &:nth-child(2) {
117
+ animation-delay: 0.2s;
118
+ }
119
+ &:nth-child(3) {
120
+ animation-delay: 0.4s;
121
+ }
122
+ &:nth-child(4) {
123
+ animation-delay: 0.6s;
124
+ }
125
+ }
126
+
127
+ #{$root}__remaining {
128
+ animation: avatarFloat 3s ease-in-out infinite 0.8s;
129
+ @include trippy.color-shift();
130
+ }
131
+
132
+ @keyframes avatarFloat {
133
+ 0%,
134
+ 100% {
135
+ transform: translateY(0px) rotate(0deg);
136
+ }
137
+ 25% {
138
+ transform: translateY(-5px) rotate(2deg);
139
+ }
140
+ 50% {
141
+ transform: translateY(-3px) rotate(0deg);
142
+ }
143
+ 75% {
144
+ transform: translateY(-7px) rotate(-2deg);
145
+ }
146
+ }
147
+ }
148
+
149
+ // Hover reveal effect
150
+ &--hover-reveal {
151
+ .c-avatar {
152
+ opacity: 0.7;
153
+ transition: all 0.3s ease;
154
+ @include trippy.trippy-glow(rgba(157, 0, 255, 0.3), 4px);
155
+
156
+ // Add floating animation
157
+ @include trippy.float-animation();
158
+ animation-duration: 5s;
159
+
160
+ &:hover {
161
+ opacity: 1;
162
+ transform: scale(1.2) rotate(5deg);
163
+ z-index: 3;
164
+ @include gradients.psychedelic-radial-gradient($yellow-4, $red-4, $purple-4);
165
+ @include trippy.psychedelic-pulse($yellow-4);
166
+ box-shadow: 0 0 20px rgba(255, 187, 0, 0.7);
167
+ }
168
+ }
169
+ }
170
+
171
+ // Psychedelic variant
172
+ &--psychedelic {
173
+ .c-avatar {
174
+ border-color: rgba(255, 187, 0, 0.4);
175
+ background: linear-gradient(45deg, $purple-4, $red-4, $green-4);
176
+ animation: psychedelicAvatar 3s ease-in-out infinite;
177
+ @include trippy.trippy-glow(rgba(157, 0, 255, 0.5), 6px);
178
+ box-shadow: 0 0 15px rgba(157, 0, 255, 0.5);
179
+
180
+ &:hover {
181
+ @include gradients.rainbow-gradient();
182
+ background-size: 400% 400%;
183
+ animation:
184
+ rainbow-shift 4s ease infinite,
185
+ avatarPulse 2s ease-in-out infinite;
186
+ }
187
+ }
188
+
189
+ #{$root}__remaining {
190
+ background: linear-gradient(45deg, $yellow-4, $purple-4, $red-4);
191
+ border-color: rgba(255, 187, 0, 0.4);
192
+ animation: psychedelicAvatar 3s ease-in-out infinite 0.5s;
193
+ @include trippy.trippy-glow(rgba(255, 187, 0, 0.5), 8px);
194
+ box-shadow: 0 0 20px rgba(255, 187, 0, 0.5);
195
+
196
+ &:hover {
197
+ @include gradients.rainbow-gradient();
198
+ background-size: 400% 400%;
199
+ animation:
200
+ rainbow-shift 4s ease infinite,
201
+ avatarPulse 2s ease-in-out infinite;
202
+ }
203
+ }
204
+
205
+ @keyframes psychedelicAvatar {
206
+ 0%,
207
+ 100% {
208
+ background-position: 0% 50%;
209
+ border-color: rgba(255, 187, 0, 0.4);
210
+ transform: rotate(0deg);
211
+ }
212
+ 25% {
213
+ background-position: 50% 100%;
214
+ border-color: rgba(0, 255, 136, 0.4);
215
+ transform: rotate(2deg);
216
+ }
217
+ 50% {
218
+ background-position: 100% 50%;
219
+ border-color: rgba(255, 32, 133, 0.4);
220
+ transform: rotate(0deg);
221
+ }
222
+ 75% {
223
+ background-position: 50% 0%;
224
+ border-color: rgba(0, 255, 255, 0.4);
225
+ transform: rotate(-2deg);
226
+ }
227
+ }
228
+
229
+ @keyframes avatarPulse {
230
+ 0%,
231
+ 100% {
232
+ transform: scale(1);
233
+ }
234
+ 50% {
235
+ transform: scale(1.1);
236
+ }
237
+ }
238
+ }
239
+
240
+ // Glowing variant
241
+ &--glow {
242
+ .c-avatar {
243
+ @include trippy.trippy-glow($purple-4, 10px);
244
+ animation: avatar-group-glow-pulse 2s infinite;
245
+ border-color: rgba(157, 0, 255, 0.5);
246
+
247
+ &:hover {
248
+ @include trippy.trippy-glow($yellow-4, 15px);
249
+ animation: avatar-group-glow-pulse 0.5s infinite;
250
+ }
251
+ }
252
+
253
+ #{$root}__remaining {
254
+ @include trippy.trippy-glow($red-4, 12px);
255
+ animation: avatar-group-glow-pulse 2s infinite;
256
+
257
+ &:hover {
258
+ @include trippy.trippy-glow($yellow-4, 18px);
259
+ animation: avatar-group-glow-pulse 0.5s infinite;
260
+ }
261
+ }
262
+ }
263
+
264
+ // Floating variant
265
+ &--floating {
266
+ .c-avatar {
267
+ @include trippy.float-animation();
268
+ animation-duration: 3s;
269
+ }
270
+
271
+ #{$root}__remaining {
272
+ @include trippy.float-animation();
273
+ animation-duration: 4s;
274
+ }
275
+ }
276
+ }
@@ -0,0 +1,114 @@
1
+ /*!
2
+ * Mashroom Theme Avatar Component
3
+ * Psychedelic mushroom-inspired theme with trippy visuals
4
+ */
5
+
6
+ // Import required tools and settings
7
+ @use '../02-tools/tools.trippy-effects' as trippy;
8
+ @use '../02-tools/tools.psychedelic-gradients' as gradients;
9
+ @use '../01-settings/settings.colors' as *;
10
+
11
+ // Psychedelic avatar animations
12
+ @keyframes avatar-pulse {
13
+ 0%,
14
+ 100% {
15
+ box-shadow:
16
+ 0 0 5px rgba(157, 0, 255, 0.5),
17
+ 0 0 10px rgba(157, 0, 255, 0.3);
18
+ }
19
+ 50% {
20
+ box-shadow:
21
+ 0 0 15px rgba(157, 0, 255, 0.8),
22
+ 0 0 25px rgba(255, 32, 133, 0.6),
23
+ 0 0 35px rgba(255, 187, 0, 0.4);
24
+ }
25
+ }
26
+
27
+ @keyframes avatar-rotate {
28
+ 0% {
29
+ transform: rotate(0deg);
30
+ }
31
+ 100% {
32
+ transform: rotate(360deg);
33
+ }
34
+ }
35
+
36
+ .c-avatar {
37
+ // Add psychedelic glow effect
38
+ @include trippy.trippy-glow($primary-6, 8px);
39
+
40
+ // Add floating animation for a magical effect
41
+ @include trippy.float-animation();
42
+
43
+ // Add color shift for extra psychedelic effect
44
+ @include trippy.color-shift();
45
+
46
+ // Add subtle breathing effect
47
+ @include trippy.psychedelic-breathing();
48
+
49
+ // Add pulse animation
50
+ animation: avatar-pulse 2s infinite;
51
+
52
+ // Apply rainbow gradient border
53
+ border: 2px solid transparent;
54
+ background:
55
+ linear-gradient(white, white) padding-box,
56
+ linear-gradient(90deg, #9d00ff, #d080ff, #00ff9d, #ffbb00, #ff2085, #9d00ff) border-box;
57
+ background-size: 300% 300%;
58
+
59
+ // Hover state with enhanced psychedelic effects
60
+ &:hover {
61
+ @include trippy.trippy-glow($red-4, 15px);
62
+ transform: scale(1.1) rotate(5deg);
63
+ transition: all 0.3s ease;
64
+ background:
65
+ linear-gradient(white, white) padding-box,
66
+ linear-gradient(90deg, #ff2085, #ffbb00, #00ff9d, #d080ff, #9d00ff, #ff2085) border-box;
67
+ animation:
68
+ avatar-pulse 0.5s infinite,
69
+ avatar-rotate 2s linear infinite;
70
+ }
71
+
72
+ // Grouped avatars
73
+ .c-avatar-group & {
74
+ border-color: rgba($black, 0.2);
75
+ box-shadow: 0 0 5px rgba($primary-6, 0.5);
76
+ }
77
+
78
+ // Psychedelic variant
79
+ &--psychedelic {
80
+ @include gradients.rainbow-gradient();
81
+ background-size: 400% 400%;
82
+ border: 2px solid transparent;
83
+ animation:
84
+ rainbow-shift 3s ease infinite,
85
+ avatar-rotate 10s linear infinite;
86
+
87
+ &:hover {
88
+ animation:
89
+ rainbow-shift 1s ease infinite,
90
+ avatar-rotate 2s linear infinite;
91
+ @include trippy.trippy-glow(white, 20px);
92
+ }
93
+ }
94
+
95
+ // Glowing variant
96
+ &--glow {
97
+ @include trippy.trippy-glow($purple-4, 20px);
98
+ animation: avatar-pulse 1s infinite;
99
+
100
+ &:hover {
101
+ @include trippy.trippy-glow($yellow-4, 30px);
102
+ animation: avatar-pulse 0.3s infinite;
103
+ }
104
+ }
105
+
106
+ // Circular variant with rotation
107
+ &--circular {
108
+ border-radius: 50%;
109
+
110
+ &:hover {
111
+ animation: avatar-rotate 1s linear infinite;
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,152 @@
1
+ @use '../02-tools/tools.trippy-effects' as trippy;
2
+ @use '../02-tools/tools.psychedelic-gradients' as gradients;
3
+ @use '../01-settings/settings.colors' as colors;
4
+ @use '../01-settings/settings.config' as config;
5
+
6
+ // Psychedelic badge animations
7
+ @keyframes psychedelic-badge-shift {
8
+ 0% {
9
+ filter: hue-rotate(0deg);
10
+ }
11
+ 25% {
12
+ filter: hue-rotate(90deg);
13
+ }
14
+ 50% {
15
+ filter: hue-rotate(180deg);
16
+ }
17
+ 75% {
18
+ filter: hue-rotate(270deg);
19
+ }
20
+ 100% {
21
+ filter: hue-rotate(360deg);
22
+ }
23
+ }
24
+
25
+ @keyframes badge-glow-pulse {
26
+ 0%,
27
+ 100% {
28
+ box-shadow:
29
+ 0 0 5px var(--atomix-tag-color),
30
+ 0 0 10px rgba(157, 0, 255, 0.5);
31
+ }
32
+ 50% {
33
+ box-shadow:
34
+ 0 0 15px var(--atomix-tag-color),
35
+ 0 0 30px rgba(157, 0, 255, 0.8),
36
+ 0 0 50px rgba(255, 32, 133, 0.6);
37
+ }
38
+ }
39
+
40
+ @keyframes badge-float {
41
+ 0%,
42
+ 100% {
43
+ transform: translateY(0px) rotate(0deg);
44
+ }
45
+ 25% {
46
+ transform: translateY(-3px) rotate(1deg);
47
+ }
48
+ 50% {
49
+ transform: translateY(2px) rotate(-1deg);
50
+ }
51
+ 75% {
52
+ transform: translateY(-1px) rotate(0.5deg);
53
+ }
54
+ }
55
+
56
+ .c-badge {
57
+ @include gradients.psychedelic-linear-gradient(
58
+ var(--atomix-tag-bg-color),
59
+ var(--atomix-tag-color)
60
+ );
61
+ @include trippy.trippy-glow(var(--atomix-tag-color), 20px);
62
+ @include trippy.float-animation();
63
+
64
+ // Add psychedelic animations
65
+ animation:
66
+ psychedelic-badge-shift 4s infinite linear,
67
+ badge-glow-pulse 2s infinite,
68
+ badge-float 3s ease-in-out infinite;
69
+
70
+ border: 1px solid var(--atomix-tag-color);
71
+ position: relative;
72
+ overflow: hidden;
73
+ border-radius: 20px;
74
+
75
+ &:hover {
76
+ @include trippy.trippy-glow(colors.$primary-6, 20px);
77
+ transform: scale(1.1) rotate(5deg);
78
+
79
+ // Enhance animations on hover
80
+ animation:
81
+ psychedelic-badge-shift 1s infinite linear,
82
+ badge-glow-pulse 0.5s infinite,
83
+ badge-float 1s ease-in-out infinite;
84
+ }
85
+
86
+ &::after {
87
+ content: '';
88
+ position: absolute;
89
+ top: -50%;
90
+ left: -60%;
91
+ width: 20%;
92
+ height: 200%;
93
+ background: rgba(255, 255, 255, 0.3);
94
+ transform: rotate(25deg);
95
+ animation: shine 3s infinite linear;
96
+ }
97
+
98
+ @keyframes shine {
99
+ 0% {
100
+ left: -60%;
101
+ }
102
+ 20% {
103
+ left: 20%;
104
+ }
105
+ 40% {
106
+ left: 40%;
107
+ }
108
+ 60% {
109
+ left: 60%;
110
+ }
111
+ 80% {
112
+ left: 80%;
113
+ }
114
+ 100% {
115
+ left: 120%;
116
+ }
117
+ }
118
+
119
+ // Psychedelic variant
120
+ &--psychedelic {
121
+ @include gradients.rainbow-gradient();
122
+ background-size: 300% 300%;
123
+ animation: rainbow-shift 3s ease infinite;
124
+ border: none;
125
+
126
+ &:hover {
127
+ animation: rainbow-shift 1s linear infinite;
128
+ transform: scale(1.2) rotate(10deg);
129
+ @include trippy.trippy-glow(white, 30px);
130
+ }
131
+ }
132
+
133
+ // Glowing variant
134
+ &--glow {
135
+ @include trippy.trippy-glow(var(--atomix-tag-bg-color), 30px);
136
+ animation: badge-glow-pulse 1s infinite;
137
+
138
+ &:hover {
139
+ @include trippy.trippy-glow(var(--atomix-tag-bg-color), 50px);
140
+ animation: badge-glow-pulse 0.3s infinite;
141
+ }
142
+ }
143
+
144
+ // Floating variant
145
+ &--floating {
146
+ animation: badge-float 2s ease-in-out infinite;
147
+
148
+ &:hover {
149
+ animation: badge-float 0.5s ease-in-out infinite;
150
+ }
151
+ }
152
+ }