@shohojdhara/atomix 0.4.7 → 0.4.9

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 (176) hide show
  1. package/atomix.config.ts +58 -1
  2. package/dist/atomix.css +172 -157
  3. package/dist/atomix.css.map +1 -1
  4. package/dist/atomix.min.css +4 -4
  5. package/dist/atomix.min.css.map +1 -1
  6. package/dist/charts.d.ts +33 -0
  7. package/dist/charts.js +1274 -164
  8. package/dist/charts.js.map +1 -1
  9. package/dist/core.d.ts +33 -10
  10. package/dist/core.js +1099 -83
  11. package/dist/core.js.map +1 -1
  12. package/dist/forms.d.ts +33 -0
  13. package/dist/forms.js +2106 -1050
  14. package/dist/forms.js.map +1 -1
  15. package/dist/heavy.d.ts +42 -1
  16. package/dist/heavy.js +1663 -638
  17. package/dist/heavy.js.map +1 -1
  18. package/dist/index.d.ts +442 -270
  19. package/dist/index.esm.js +1947 -680
  20. package/dist/index.esm.js.map +1 -1
  21. package/dist/index.js +1982 -712
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.min.js +1 -1
  24. package/dist/index.min.js.map +1 -1
  25. package/package.json +6 -3
  26. package/scripts/atomix-cli.js +136 -1827
  27. package/scripts/cli/__tests__/basic.test.js +3 -2
  28. package/scripts/cli/__tests__/clean.test.js +278 -0
  29. package/scripts/cli/__tests__/component-validator.test.js +433 -0
  30. package/scripts/cli/__tests__/generator.test.js +613 -0
  31. package/scripts/cli/__tests__/glass-motion.test.js +256 -0
  32. package/scripts/cli/__tests__/integration.test.js +719 -108
  33. package/scripts/cli/__tests__/migrate.test.js +74 -0
  34. package/scripts/cli/__tests__/security.test.js +206 -0
  35. package/scripts/cli/__tests__/test-setup.js +3 -1
  36. package/scripts/cli/__tests__/theme-bridge.test.js +507 -0
  37. package/scripts/cli/__tests__/token-provider.test.js +361 -0
  38. package/scripts/cli/__tests__/utils.test.js +5 -5
  39. package/scripts/cli/commands/benchmark.js +105 -0
  40. package/scripts/cli/commands/build-theme.js +115 -0
  41. package/scripts/cli/commands/clean.js +109 -0
  42. package/scripts/cli/commands/doctor.js +88 -0
  43. package/scripts/cli/commands/generate.js +218 -0
  44. package/scripts/cli/commands/init.js +73 -0
  45. package/scripts/cli/commands/migrate.js +106 -0
  46. package/scripts/cli/commands/sync-tokens.js +206 -0
  47. package/scripts/cli/commands/theme-bridge.js +248 -0
  48. package/scripts/cli/commands/tokens.js +157 -0
  49. package/scripts/cli/commands/validate.js +194 -0
  50. package/scripts/cli/internal/ai-engine.js +156 -0
  51. package/scripts/cli/internal/compiler.js +114 -0
  52. package/scripts/cli/internal/component-validator.js +443 -0
  53. package/scripts/cli/internal/config-loader.js +162 -0
  54. package/scripts/cli/internal/filesystem.js +158 -0
  55. package/scripts/cli/internal/generator.js +430 -0
  56. package/scripts/cli/internal/glass-generator.js +398 -0
  57. package/scripts/cli/internal/hook-generator.js +369 -0
  58. package/scripts/cli/internal/hooks.js +61 -0
  59. package/scripts/cli/internal/itcss-generator.js +565 -0
  60. package/scripts/cli/internal/motion-generator.js +679 -0
  61. package/scripts/cli/internal/template-engine.js +301 -0
  62. package/scripts/cli/internal/theme-bridge.js +664 -0
  63. package/scripts/cli/internal/tokens/engine.js +122 -0
  64. package/scripts/cli/internal/tokens/provider.js +34 -0
  65. package/scripts/cli/internal/tokens/providers/figma.js +50 -0
  66. package/scripts/cli/internal/tokens/providers/style-dictionary.js +48 -0
  67. package/scripts/cli/internal/tokens/providers/w3c.js +48 -0
  68. package/scripts/cli/internal/tokens/token-provider.js +443 -0
  69. package/scripts/cli/internal/tokens/token-validator.js +513 -0
  70. package/scripts/cli/internal/validator.js +276 -0
  71. package/scripts/cli/internal/wizard.js +115 -0
  72. package/scripts/cli/mappings.js +23 -0
  73. package/scripts/cli/migration-tools.js +164 -94
  74. package/scripts/cli/plugins/style-dictionary.js +46 -0
  75. package/scripts/cli/templates/README.md +525 -95
  76. package/scripts/cli/templates/common-templates.js +40 -14
  77. package/scripts/cli/templates/components/react-component.ts +282 -0
  78. package/scripts/cli/templates/config/project-config.ts +112 -0
  79. package/scripts/cli/templates/hooks/use-component.ts +477 -0
  80. package/scripts/cli/templates/index.js +19 -4
  81. package/scripts/cli/templates/index.ts +171 -0
  82. package/scripts/cli/templates/next-templates.js +72 -0
  83. package/scripts/cli/templates/react-templates.js +70 -126
  84. package/scripts/cli/templates/scss-templates.js +35 -35
  85. package/scripts/cli/templates/stories/storybook-story.ts +241 -0
  86. package/scripts/cli/templates/styles/scss-component.ts +255 -0
  87. package/scripts/cli/templates/tests/vitest-test.ts +229 -0
  88. package/scripts/cli/templates/token-templates.js +337 -1
  89. package/scripts/cli/templates/tokens/token-generators.ts +1088 -0
  90. package/scripts/cli/templates/types/component-types.ts +145 -0
  91. package/scripts/cli/templates/utils/testing-utils.ts +144 -0
  92. package/scripts/cli/templates/vanilla-templates.js +39 -0
  93. package/scripts/cli/token-manager.js +8 -2
  94. package/scripts/cli/utils/cache-manager.js +240 -0
  95. package/scripts/cli/utils/detector.js +46 -0
  96. package/scripts/cli/utils/diagnostics.js +289 -0
  97. package/scripts/cli/utils/error.js +89 -0
  98. package/scripts/cli/utils/helpers.js +67 -0
  99. package/scripts/cli/utils/logger.js +75 -0
  100. package/scripts/cli/utils/security.js +302 -0
  101. package/scripts/cli/utils/telemetry.js +115 -0
  102. package/scripts/cli/utils/validation.js +37 -0
  103. package/scripts/cli/utils.js +28 -341
  104. package/src/components/Accordion/Accordion.stories.tsx +0 -18
  105. package/src/components/Accordion/Accordion.test.tsx +0 -17
  106. package/src/components/Accordion/Accordion.tsx +0 -4
  107. package/src/components/AtomixGlass/AtomixGlass.test.tsx +37 -3
  108. package/src/components/AtomixGlass/AtomixGlass.tsx +143 -31
  109. package/src/components/AtomixGlass/AtomixGlassContainer.tsx +129 -31
  110. package/src/components/AtomixGlass/PerformanceDashboard.tsx +219 -0
  111. package/src/components/AtomixGlass/README.md +25 -10
  112. package/src/components/AtomixGlass/__snapshots__/AtomixGlass.test.tsx.snap +216 -0
  113. package/src/components/AtomixGlass/animation-system.ts +578 -0
  114. package/src/components/AtomixGlass/shader-utils.ts +4 -1
  115. package/src/components/AtomixGlass/stories/Overview.stories.tsx +157 -6
  116. package/src/components/AtomixGlass/stories/Phase1-Animation.stories.tsx +653 -0
  117. package/src/components/AtomixGlass/stories/Phase1-Test.stories.tsx +95 -0
  118. package/src/components/AtomixGlass/stories/Playground.stories.tsx +51 -51
  119. package/src/components/AtomixGlass/stories/shared-components.tsx +6 -0
  120. package/src/components/Avatar/Avatar.tsx +1 -1
  121. package/src/components/Button/Button.stories.disabled-link.tsx +10 -0
  122. package/src/components/Button/Button.stories.tsx +10 -0
  123. package/src/components/Button/Button.test.tsx +16 -11
  124. package/src/components/Button/Button.tsx +4 -4
  125. package/src/components/Card/Card.tsx +1 -1
  126. package/src/components/Dropdown/Dropdown.tsx +12 -12
  127. package/src/components/Form/Select.tsx +62 -3
  128. package/src/components/Modal/Modal.tsx +14 -3
  129. package/src/components/Navigation/Navbar/Navbar.tsx +44 -0
  130. package/src/components/Slider/Slider.stories.tsx +3 -3
  131. package/src/components/Slider/Slider.tsx +38 -0
  132. package/src/components/Steps/Steps.tsx +3 -3
  133. package/src/components/Tabs/Tabs.tsx +77 -8
  134. package/src/components/Testimonial/Testimonial.tsx +1 -1
  135. package/src/components/TypedButton/TypedButton.stories.tsx +59 -0
  136. package/src/components/TypedButton/TypedButton.tsx +39 -0
  137. package/src/components/TypedButton/index.ts +2 -0
  138. package/src/components/VideoPlayer/VideoPlayer.tsx +11 -4
  139. package/src/lib/composables/index.ts +4 -7
  140. package/src/lib/composables/types.ts +45 -0
  141. package/src/lib/composables/useAccordion.ts +0 -7
  142. package/src/lib/composables/useAtomixGlass.ts +148 -6
  143. package/src/lib/composables/useAtomixGlassStyles.ts +9 -7
  144. package/src/lib/composables/useChartExport.ts +3 -13
  145. package/src/lib/composables/useDropdown.ts +66 -0
  146. package/src/lib/composables/useFocusTrap.ts +80 -0
  147. package/src/lib/composables/usePerformanceMonitor.ts +448 -0
  148. package/src/lib/composables/useResponsiveGlass.presets.ts +192 -0
  149. package/src/lib/composables/useResponsiveGlass.ts +441 -0
  150. package/src/lib/composables/useTooltip.ts +16 -0
  151. package/src/lib/composables/useTypedButton.ts +66 -0
  152. package/src/lib/config/index.ts +62 -5
  153. package/src/lib/constants/components.ts +62 -7
  154. package/src/lib/theme/devtools/__tests__/useHistory.test.tsx +150 -0
  155. package/src/lib/theme/tokens/centralized-tokens.ts +120 -0
  156. package/src/lib/theme/utils/__tests__/domUtils.test.ts +101 -0
  157. package/src/lib/types/components.ts +37 -11
  158. package/src/lib/types/glass.ts +35 -0
  159. package/src/lib/types/index.ts +1 -0
  160. package/src/lib/utils/displacement-generator.ts +1 -1
  161. package/src/styles/01-settings/_settings.testtypecheck.scss +53 -0
  162. package/src/styles/01-settings/_settings.typedbutton.scss +53 -0
  163. package/src/styles/06-components/_components.atomix-glass.scss +17 -21
  164. package/src/styles/06-components/_components.edge-panel.scss +1 -5
  165. package/src/styles/06-components/_components.modal.scss +1 -4
  166. package/src/styles/06-components/_components.navbar.scss +1 -1
  167. package/src/styles/06-components/_components.testbutton.scss +212 -0
  168. package/src/styles/06-components/_components.testtypecheck.scss +212 -0
  169. package/src/styles/06-components/_components.tooltip.scss +9 -5
  170. package/src/styles/06-components/_components.typedbutton.scss +212 -0
  171. package/src/styles/99-utilities/_index.scss +1 -0
  172. package/src/styles/99-utilities/_utilities.text.scss +1 -1
  173. package/src/styles/99-utilities/_utilities.touch-target.scss +36 -0
  174. package/scripts/cli/component-generator.js +0 -564
  175. package/scripts/cli/interactive-init.js +0 -357
  176. package/src/styles/06-components/old.chart.styles.scss +0 -2788
@@ -435,13 +435,349 @@ $easing-ease-in: $custom-ease-in !default;
435
435
  }
436
436
 
437
437
  /**
438
- * Token templates export object
438
+ * Animation tokens generation function
439
+ */
440
+ export function generateBreakpointTokens() {
441
+ return `// Custom Breakpoint Tokens
442
+ // Generated by Atomix CLI
443
+ // =============================================================================
444
+
445
+ // Breakpoint definitions (mobile-first approach)
446
+ $custom-breakpoint-sm: 640px !default; // Small devices (landscape phones)
447
+ $custom-breakpoint-md: 768px !default; // Medium devices (tablets)
448
+ $custom-breakpoint-lg: 1024px !default; // Large devices (desktops)
449
+ $custom-breakpoint-xl: 1280px !default; // Extra large devices (large desktops)
450
+ $custom-breakpoint-2xl: 1536px !default; // 2X large devices (extra large desktops)
451
+
452
+ // Container max widths per breakpoint
453
+ $custom-container-sm: $custom-breakpoint-sm !default;
454
+ $custom-container-md: $custom-breakpoint-md !default;
455
+ $custom-container-lg: $custom-breakpoint-lg !default;
456
+ $custom-container-xl: $custom-breakpoint-xl !default;
457
+ $custom-container-2xl: $custom-breakpoint-2xl !default;
458
+
459
+ // Export to override defaults
460
+ $breakpoints: (
461
+ sm: $custom-breakpoint-sm,
462
+ md: $custom-breakpoint-md,
463
+ lg: $custom-breakpoint-lg,
464
+ xl: $custom-breakpoint-xl,
465
+ '2xl': $custom-breakpoint-2xl,
466
+ ) !default;
467
+ `;
468
+ }
469
+
470
+ /**
471
+ * Z-index tokens generation function
472
+ */
473
+ export function generateZIndexTokens() {
474
+ return `// Custom Z-Index Tokens
475
+ // Generated by Atomix CLI
476
+ // =============================================================================
477
+
478
+ // Z-Index scale (keep this organized to avoid stacking conflicts)
479
+ $custom-z-index-hidden: -1 !default;
480
+ $custom-z-index-auto: auto !default;
481
+ $custom-z-index-base: 0 !default;
482
+ $custom-z-index-dropdown: 100 !default;
483
+ $custom-z-index-sticky: 200 !default;
484
+ $custom-z-index-fixed: 300 !default;
485
+ $custom-z-index-overlay-backdrop: 400 !default;
486
+ $custom-z-index-overlay: 500 !default;
487
+ $custom-z-index-modal: 600 !default;
488
+ $custom-z-index-popover: 700 !default;
489
+ $custom-z-index-tooltip: 800 !default;
490
+ $custom-z-index-toast: 900 !default;
491
+
492
+ // Component-specific z-index values
493
+ $custom-button-z-index: $custom-z-index-base !default;
494
+ $custom-dropdown-z-index: $custom-z-index-dropdown !default;
495
+ $custom-modal-z-index: $custom-z-index-modal !default;
496
+ $custom-toast-z-index: $custom-z-index-toast !default;
497
+ $custom-tooltip-z-index: $custom-z-index-tooltip !default;
498
+ $custom-popover-z-index: $custom-z-index-popover !default;
499
+
500
+ // Export to override defaults
501
+ $z-index-dropdown: $custom-z-index-dropdown !default;
502
+ $z-index-sticky: $custom-z-index-sticky !default;
503
+ $z-index-fixed: $custom-z-index-fixed !default;
504
+ $z-index-modal-backdrop: $custom-z-index-overlay-backdrop !default;
505
+ $z-index-modal: $custom-z-index-modal !default;
506
+ $z-index-popover: $custom-z-index-popover !default;
507
+ $z-index-tooltip: $custom-z-index-tooltip !default;
508
+ $z-index-toast: $custom-z-index-toast !default;
509
+ `;
510
+ }
511
+
512
+ /**
513
+ * Generate design tokens in JSON format for multi-platform support
514
+ * @param {Object} options - Generation options
515
+ * @returns {Object} JSON tokens in W3C DTCG format
516
+ */
517
+ export function generateJSONTokens(options = {}) {
518
+ const { prefix = 'atomix' } = options;
519
+
520
+ return {
521
+ $schema: 'https://design-tokens.org/schema.json',
522
+ [prefix]: {
523
+ color: {
524
+ primary: {
525
+ 50: { value: '#fff9e6', type: 'color' },
526
+ 100: { value: '#fff4cc', type: 'color' },
527
+ 200: { value: '#ffe699', type: 'color' },
528
+ 300: { value: '#ffd966', type: 'color' },
529
+ 400: { value: '#ffcc33', type: 'color' },
530
+ 500: { value: '#ffb800', type: 'color' },
531
+ 600: { value: '#e6a600', type: 'color' },
532
+ 700: { value: '#cc9400', type: 'color' },
533
+ 800: { value: '#b38200', type: 'color' },
534
+ 900: { value: '#997000', type: 'color' },
535
+ },
536
+ semantic: {
537
+ success: { value: '#22c55e', type: 'color' },
538
+ warning: { value: '#eab308', type: 'color' },
539
+ error: { value: '#ef4444', type: 'color' },
540
+ info: { value: '#3b82f6', type: 'color' },
541
+ },
542
+ neutral: {
543
+ 50: { value: '#f9fafb', type: 'color' },
544
+ 100: { value: '#f3f4f6', type: 'color' },
545
+ 200: { value: '#e5e7eb', type: 'color' },
546
+ 300: { value: '#d1d5db', type: 'color' },
547
+ 400: { value: '#9ca3af', type: 'color' },
548
+ 500: { value: '#6b7280', type: 'color' },
549
+ 600: { value: '#4b5563', type: 'color' },
550
+ 700: { value: '#374151', type: 'color' },
551
+ 800: { value: '#1f2937', type: 'color' },
552
+ 900: { value: '#111827', type: 'color' },
553
+ },
554
+ },
555
+ spacing: {
556
+ 0: { value: '0rem', type: 'dimension' },
557
+ 1: { value: '0.25rem', type: 'dimension' },
558
+ 2: { value: '0.5rem', type: 'dimension' },
559
+ 3: { value: '0.75rem', type: 'dimension' },
560
+ 4: { value: '1rem', type: 'dimension' },
561
+ 5: { value: '1.25rem', type: 'dimension' },
562
+ 6: { value: '1.5rem', type: 'dimension' },
563
+ 8: { value: '2rem', type: 'dimension' },
564
+ 10: { value: '2.5rem', type: 'dimension' },
565
+ 12: { value: '3rem', type: 'dimension' },
566
+ 16: { value: '4rem', type: 'dimension' },
567
+ 20: { value: '5rem', type: 'dimension' },
568
+ 24: { value: '6rem', type: 'dimension' },
569
+ },
570
+ typography: {
571
+ fontFamily: {
572
+ sans: { value: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', type: 'fontFamily' },
573
+ mono: { value: 'SFMono-Regular, Menlo, Monaco, Consolas, monospace', type: 'fontFamily' },
574
+ },
575
+ fontSize: {
576
+ xs: { value: '0.75rem', type: 'fontSize' },
577
+ sm: { value: '0.875rem', type: 'fontSize' },
578
+ base: { value: '1rem', type: 'fontSize' },
579
+ lg: { value: '1.125rem', type: 'fontSize' },
580
+ xl: { value: '1.25rem', type: 'fontSize' },
581
+ '2xl': { value: '1.5rem', type: 'fontSize' },
582
+ '3xl': { value: '1.875rem', type: 'fontSize' },
583
+ '4xl': { value: '2.25rem', type: 'fontSize' },
584
+ },
585
+ fontWeight: {
586
+ light: { value: '300', type: 'fontWeight' },
587
+ normal: { value: '400', type: 'fontWeight' },
588
+ medium: { value: '500', type: 'fontWeight' },
589
+ semibold: { value: '600', type: 'fontWeight' },
590
+ bold: { value: '700', type: 'fontWeight' },
591
+ },
592
+ },
593
+ shadow: {
594
+ none: { value: 'none', type: 'shadow' },
595
+ xs: { value: '0 1px 2px 0 rgba(0, 0, 0, 0.05)', type: 'shadow' },
596
+ sm: { value: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)', type: 'shadow' },
597
+ base: { value: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)', type: 'shadow' },
598
+ md: { value: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)', type: 'shadow' },
599
+ lg: { value: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)', type: 'shadow' },
600
+ xl: { value: '0 25px 50px -12px rgba(0, 0, 0, 0.25)', type: 'shadow' },
601
+ '2xl': { value: '0 35px 60px -15px rgba(0, 0, 0, 0.3)', type: 'shadow' },
602
+ },
603
+ borderRadius: {
604
+ none: { value: '0rem', type: 'dimension' },
605
+ sm: { value: '0.125rem', type: 'dimension' },
606
+ base: { value: '0.25rem', type: 'dimension' },
607
+ md: { value: '0.375rem', type: 'dimension' },
608
+ lg: { value: '0.5rem', type: 'dimension' },
609
+ xl: { value: '0.75rem', type: 'dimension' },
610
+ '2xl': { value: '1rem', type: 'dimension' },
611
+ '3xl': { value: '1.5rem', type: 'dimension' },
612
+ full: { value: '9999px', type: 'dimension' },
613
+ },
614
+ duration: {
615
+ instant: { value: '0s', type: 'duration' },
616
+ fast: { value: '0.15s', type: 'duration' },
617
+ base: { value: '0.3s', type: 'duration' },
618
+ slow: { value: '0.5s', type: 'duration' },
619
+ slower: { value: '0.7s', type: 'duration' },
620
+ slowest: { value: '1s', type: 'duration' },
621
+ },
622
+ easing: {
623
+ linear: { value: 'linear', type: 'cubicBezier' },
624
+ easeIn: { value: 'cubic-bezier(0.4, 0, 1, 1)', type: 'cubicBezier' },
625
+ easeOut: { value: 'cubic-bezier(0, 0, 0.2, 1)', type: 'cubicBezier' },
626
+ easeInOut: { value: 'cubic-bezier(0.4, 0, 0.2, 1)', type: 'cubicBezier' },
627
+ smooth: { value: 'cubic-bezier(0.23, 1, 0.32, 1)', type: 'cubicBezier' },
628
+ },
629
+ },
630
+ };
631
+ }
632
+
633
+ /**
634
+ * Generate CSS custom properties from tokens
635
+ * @param {Object} options - Generation options
636
+ * @returns {string} CSS custom properties
637
+ */
638
+ export function generateCSSTokens(options = {}) {
639
+ const { selector = ':root', prefix = '' } = options;
640
+
641
+ return `/* Design Tokens - CSS Custom Properties */
642
+ /* Generated by Atomix CLI */
643
+
644
+ ${selector} {
645
+ /* Color Tokens */
646
+ --${prefix}color-primary-50: #fff9e6;
647
+ --${prefix}color-primary-100: #fff4cc;
648
+ --${prefix}color-primary-200: #ffe699;
649
+ --${prefix}color-primary-300: #ffd966;
650
+ --${prefix}color-primary-400: #ffcc33;
651
+ --${prefix}color-primary-500: #ffb800;
652
+ --${prefix}color-primary-600: #e6a600;
653
+ --${prefix}color-primary-700: #cc9400;
654
+ --${prefix}color-primary-800: #b38200;
655
+ --${prefix}color-primary-900: #997000;
656
+
657
+ /* Semantic Colors */
658
+ --${prefix}color-success: #22c55e;
659
+ --${prefix}color-warning: #eab308;
660
+ --${prefix}color-error: #ef4444;
661
+ --${prefix}color-info: #3b82f6;
662
+
663
+ /* Neutral Colors */
664
+ --${prefix}color-neutral-50: #f9fafb;
665
+ --${prefix}color-neutral-100: #f3f4f6;
666
+ --${prefix}color-neutral-200: #e5e7eb;
667
+ --${prefix}color-neutral-300: #d1d5db;
668
+ --${prefix}color-neutral-400: #9ca3af;
669
+ --${prefix}color-neutral-500: #6b7280;
670
+ --${prefix}color-neutral-600: #4b5563;
671
+ --${prefix}color-neutral-700: #374151;
672
+ --${prefix}color-neutral-800: #1f2937;
673
+ --${prefix}color-neutral-900: #111827;
674
+
675
+ /* Spacing Tokens */
676
+ --${prefix}spacing-0: 0rem;
677
+ --${prefix}spacing-1: 0.25rem;
678
+ --${prefix}spacing-2: 0.5rem;
679
+ --${prefix}spacing-3: 0.75rem;
680
+ --${prefix}spacing-4: 1rem;
681
+ --${prefix}spacing-5: 1.25rem;
682
+ --${prefix}spacing-6: 1.5rem;
683
+ --${prefix}spacing-8: 2rem;
684
+ --${prefix}spacing-10: 2.5rem;
685
+ --${prefix}spacing-12: 3rem;
686
+ --${prefix}spacing-16: 4rem;
687
+ --${prefix}spacing-20: 5rem;
688
+ --${prefix}spacing-24: 6rem;
689
+
690
+ /* Typography Tokens */
691
+ --${prefix}font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
692
+ --${prefix}font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
693
+ --${prefix}font-size-xs: 0.75rem;
694
+ --${prefix}font-size-sm: 0.875rem;
695
+ --${prefix}font-size-base: 1rem;
696
+ --${prefix}font-size-lg: 1.125rem;
697
+ --${prefix}font-size-xl: 1.25rem;
698
+ --${prefix}font-size-2xl: 1.5rem;
699
+ --${prefix}font-size-3xl: 1.875rem;
700
+ --${prefix}font-size-4xl: 2.25rem;
701
+ --${prefix}font-weight-light: 300;
702
+ --${prefix}font-weight-normal: 400;
703
+ --${prefix}font-weight-medium: 500;
704
+ --${prefix}font-weight-semibold: 600;
705
+ --${prefix}font-weight-bold: 700;
706
+
707
+ /* Shadow Tokens */
708
+ --${prefix}shadow-none: none;
709
+ --${prefix}shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
710
+ --${prefix}shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
711
+ --${prefix}shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
712
+ --${prefix}shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
713
+ --${prefix}shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
714
+ --${prefix}shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
715
+ --${prefix}shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
716
+
717
+ /* Border Radius Tokens */
718
+ --${prefix}radius-none: 0rem;
719
+ --${prefix}radius-sm: 0.125rem;
720
+ --${prefix}radius-base: 0.25rem;
721
+ --${prefix}radius-md: 0.375rem;
722
+ --${prefix}radius-lg: 0.5rem;
723
+ --${prefix}radius-xl: 0.75rem;
724
+ --${prefix}radius-2xl: 1rem;
725
+ --${prefix}radius-3xl: 1.5rem;
726
+ --${prefix}radius-full: 9999px;
727
+
728
+ /* Animation Tokens */
729
+ --${prefix}duration-instant: 0s;
730
+ --${prefix}duration-fast: 0.15s;
731
+ --${prefix}duration-base: 0.3s;
732
+ --${prefix}duration-slow: 0.5s;
733
+ --${prefix}duration-slower: 0.7s;
734
+ --${prefix}duration-slowest: 1s;
735
+ --${prefix}easing-linear: linear;
736
+ --${prefix}easing-ease-in: cubic-bezier(0.4, 0, 1, 1);
737
+ --${prefix}easing-ease-out: cubic-bezier(0, 0, 0.2, 1);
738
+ --${prefix}easing-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
739
+ --${prefix}easing-smooth: cubic-bezier(0.23, 1, 0.32, 1);
740
+
741
+ /* Breakpoint Tokens */
742
+ --${prefix}breakpoint-sm: 640px;
743
+ --${prefix}breakpoint-md: 768px;
744
+ --${prefix}breakpoint-lg: 1024px;
745
+ --${prefix}breakpoint-xl: 1280px;
746
+ --${prefix}breakpoint-2xl: 1536px;
747
+
748
+ /* Z-Index Tokens */
749
+ --${prefix}z-index-hidden: -1;
750
+ --${prefix}z-index-auto: auto;
751
+ --${prefix}z-index-base: 0;
752
+ --${prefix}z-index-dropdown: 100;
753
+ --${prefix}z-index-sticky: 200;
754
+ --${prefix}z-index-fixed: 300;
755
+ --${prefix}z-index-overlay: 500;
756
+ --${prefix}z-index-modal: 600;
757
+ --${prefix}z-index-popover: 700;
758
+ --${prefix}z-index-tooltip: 800;
759
+ --${prefix}z-index-toast: 900;
760
+ }
761
+ `;
762
+ }
763
+
764
+ /**
765
+ * Token templates export object - Enhanced with multi-format support
439
766
  */
440
767
  export const tokenTemplates = {
768
+ // SCSS generators (legacy)
441
769
  generateColorTokens,
442
770
  generateSpacingTokens,
443
771
  generateTypographyTokens,
444
772
  generateShadowTokens,
445
773
  generateRadiusTokens,
446
774
  generateAnimationTokens,
775
+
776
+ // New token generators
777
+ generateBreakpointTokens,
778
+ generateZIndexTokens,
779
+
780
+ // Multi-format exporters
781
+ generateJSONTokens,
782
+ generateCSSTokens,
447
783
  };