@magmonium/one 0.0.3 → 0.0.5

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 (70) hide show
  1. package/package.json +9 -2
  2. package/sass/_date-picker.sass +147 -0
  3. package/sass/_index.sass +34 -0
  4. package/sass/_input-date.sass +25 -0
  5. package/sass/_m-components.sass +110 -0
  6. package/sass/_menu.sass +132 -0
  7. package/sass/_reset.sass +186 -0
  8. package/sass/animations/_index.sass +13 -0
  9. package/sass/animations/_registry.sass +51 -0
  10. package/sass/animations/background/_energy.sass +91 -0
  11. package/sass/animations/background/_gradient.sass +104 -0
  12. package/sass/animations/background/_index.sass +9 -0
  13. package/sass/animations/background/_nature.sass +110 -0
  14. package/sass/animations/background/_new-effects.sass +292 -0
  15. package/sass/animations/background/_particle.sass +122 -0
  16. package/sass/animations/background/_tech.sass +124 -0
  17. package/sass/functions/_functions.sass +107 -0
  18. package/sass/mixins/_backdrops.sass +230 -0
  19. package/sass/mixins/_backgrounds.sass +214 -0
  20. package/sass/mixins/_borders.sass +93 -0
  21. package/sass/mixins/_breakpoints.sass +68 -0
  22. package/sass/mixins/_button.sass +46 -0
  23. package/sass/mixins/_checkbox.sass +128 -0
  24. package/sass/mixins/_colors.sass +121 -0
  25. package/sass/mixins/_control.sass +13 -0
  26. package/sass/mixins/_device.sass +22 -0
  27. package/sass/mixins/_display.sass +210 -0
  28. package/sass/mixins/_flex.sass +104 -0
  29. package/sass/mixins/_form.sass +68 -0
  30. package/sass/mixins/_grid.sass +273 -0
  31. package/sass/mixins/_header.sass +71 -0
  32. package/sass/mixins/_index.sass +29 -0
  33. package/sass/mixins/_input.sass +132 -0
  34. package/sass/mixins/_interactive.sass +19 -0
  35. package/sass/mixins/_label.sass +25 -0
  36. package/sass/mixins/_layout.sass +251 -0
  37. package/sass/mixins/_links.sass +85 -0
  38. package/sass/mixins/_lists.sass +377 -0
  39. package/sass/mixins/_overflow.sass +121 -0
  40. package/sass/mixins/_position.sass +181 -0
  41. package/sass/mixins/_radio.sass +205 -0
  42. package/sass/mixins/_sizing.sass +181 -0
  43. package/sass/mixins/_spacing.sass +59 -0
  44. package/sass/mixins/_text.sass +159 -0
  45. package/sass/mixins/_toggle.sass +240 -0
  46. package/sass/mixins/_typography.sass +6 -0
  47. package/sass/mixins/_utilities.sass +70 -0
  48. package/sass/utilities/_backdrops.sass +228 -0
  49. package/sass/utilities/_backgrounds.sass +285 -0
  50. package/sass/utilities/_borders.sass +138 -0
  51. package/sass/utilities/_colors.sass +166 -0
  52. package/sass/utilities/_display.sass +308 -0
  53. package/sass/utilities/_flex.sass +91 -0
  54. package/sass/utilities/_grid.sass +502 -0
  55. package/sass/utilities/_index.sass +17 -0
  56. package/sass/utilities/_input.sass +14 -0
  57. package/sass/utilities/_links.sass +136 -0
  58. package/sass/utilities/_lists.sass +4 -0
  59. package/sass/utilities/_popup.sass +73 -0
  60. package/sass/utilities/_position.sass +88 -0
  61. package/sass/utilities/_sizing.sass +277 -0
  62. package/sass/utilities/_spacing.sass +121 -0
  63. package/sass/utilities/_text.sass +207 -0
  64. package/sass/variables/_animations.sass +5 -0
  65. package/sass/variables/_borders.sass +25 -0
  66. package/sass/variables/_colors.sass +93 -0
  67. package/sass/variables/_index.sass +6 -0
  68. package/sass/variables/_number.sass +1 -0
  69. package/sass/variables/_spacing.sass +28 -0
  70. package/sass/variables/_typography.sass +40 -0
@@ -0,0 +1,207 @@
1
+ // Text utility classes derived from mixins
2
+ @use '../mixins/text' as text
3
+
4
+ // Text variants
5
+ .text-body
6
+ @include text.text-body
7
+
8
+ .text-lead
9
+ @include text.text-lead
10
+
11
+ .text-small
12
+ @include text.text-small
13
+
14
+ .text-muted
15
+ @include text.text-muted
16
+
17
+ .text-caption
18
+ @include text.text-caption
19
+
20
+ // Text sizes
21
+ .text-xs
22
+ @include text.text-base(0.75rem)
23
+
24
+ .text-sm
25
+ @include text.text-base(0.875rem)
26
+
27
+ .text-base
28
+ @include text.text-base(1rem)
29
+
30
+ .text-lg
31
+ @include text.text-base(1.125rem)
32
+
33
+ .text-xl
34
+ @include text.text-base(1.25rem)
35
+
36
+ .text-2xl
37
+ @include text.text-base(1.5rem)
38
+
39
+ .text-3xl
40
+ @include text.text-base(1.875rem)
41
+
42
+ // Font weights
43
+ .text-thin
44
+ font-weight: 100
45
+
46
+ .text-light
47
+ font-weight: 300
48
+
49
+ .text-normal
50
+ font-weight: 400
51
+
52
+ .text-medium
53
+ font-weight: 500
54
+
55
+ .text-semibold
56
+ font-weight: 600
57
+
58
+ .text-bold
59
+ font-weight: 700
60
+
61
+ .text-extrabold
62
+ font-weight: 800
63
+
64
+ // Text alignment
65
+ .text-left
66
+ @include text.text-left
67
+
68
+ .text-center
69
+ @include text.text-center
70
+
71
+ .text-right
72
+ @include text.text-right
73
+
74
+ .text-justify
75
+ @include text.text-justify
76
+
77
+ // Text transform
78
+ .text-uppercase
79
+ @include text.text-uppercase
80
+
81
+ .text-lowercase
82
+ @include text.text-lowercase
83
+
84
+ .text-capitalize
85
+ @include text.text-capitalize
86
+
87
+ // Text truncation
88
+ .text-truncate
89
+ @include text.text-truncate
90
+
91
+ .text-truncate-2
92
+ @include text.text-truncate-lines(2)
93
+
94
+ .text-truncate-3
95
+ @include text.text-truncate-lines(3)
96
+
97
+ .text-truncate-4
98
+ @include text.text-truncate-lines(4)
99
+
100
+ // Text spacing
101
+ .text-tracked
102
+ @include text.text-tracked
103
+
104
+ .text-tight
105
+ @include text.text-tight
106
+
107
+ // Text with icons
108
+ .text-with-icon
109
+ @include text.text-with-icon
110
+
111
+ .text-with-icon-right
112
+ @include text.text-with-icon('right')
113
+
114
+ // Text emphasis
115
+ .text-emphasis
116
+ @include text.text-emphasis
117
+
118
+ .text-highlight
119
+ @include text.text-highlight
120
+
121
+ // Code text
122
+ .text-code
123
+ @include text.text-code
124
+
125
+ // Text overlay
126
+ .text-overlay
127
+ @include text.text-overlay
128
+
129
+ // Text selection
130
+ .text-selection
131
+ @include text.text-selection
132
+
133
+ // Responsive text utilities
134
+ .text-responsive-sm
135
+ @include text.text-responsive(0.875rem, 1rem)
136
+
137
+ .text-responsive-base
138
+ @include text.text-responsive(1rem, 1.125rem)
139
+
140
+ .text-responsive-lg
141
+ @include text.text-responsive(1.125rem, 1.25rem)
142
+
143
+ .text-responsive-xl
144
+ @include text.text-responsive(1.25rem, 1.5rem)
145
+
146
+ // Line height utilities
147
+ .leading-none
148
+ line-height: 1
149
+
150
+ .leading-tight
151
+ line-height: 1.25
152
+
153
+ .leading-snug
154
+ line-height: 1.375
155
+
156
+ .leading-normal
157
+ line-height: 1.5
158
+
159
+ .leading-relaxed
160
+ line-height: 1.625
161
+
162
+ .leading-loose
163
+ line-height: 2
164
+
165
+ // White space utilities
166
+ .whitespace-normal
167
+ white-space: normal
168
+
169
+ .whitespace-nowrap
170
+ white-space: nowrap
171
+
172
+ .whitespace-pre
173
+ white-space: pre
174
+
175
+ .whitespace-pre-line
176
+ white-space: pre-line
177
+
178
+ .whitespace-pre-wrap
179
+ white-space: pre-wrap
180
+
181
+ // Word break utilities
182
+ .break-normal
183
+ overflow-wrap: normal
184
+ word-break: normal
185
+
186
+ .break-words
187
+ overflow-wrap: break-word
188
+
189
+ .break-all
190
+ word-break: break-all
191
+
192
+ // Text decoration utilities
193
+ .underline
194
+ text-decoration: underline
195
+
196
+ .no-underline
197
+ text-decoration: none
198
+
199
+ .line-through
200
+ text-decoration: line-through
201
+
202
+ // Text fade out effect
203
+ .text-fade-out
204
+ @include text.text-fade-out
205
+
206
+ .text-fade-out-lg
207
+ @include text.text-fade-out(3em)
@@ -0,0 +1,5 @@
1
+ // Animation Variables
2
+ $standard-curve: cubic-bezier(0.4, 0, 0.2, 1) !default
3
+ $ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1) !default
4
+ $standard-bezier: $standard-curve
5
+ $transition-base: all 0.3s $ease-out-expo
@@ -0,0 +1,25 @@
1
+ // Border Variables
2
+ @use './colors' as *
3
+
4
+ // Border widths map following spacing pattern
5
+ $border-widths: (0: 0, 1: 1px, 2: 2px, 3: 3px, 4: 4px, 5: 5px)
6
+
7
+ // Border radius sizes
8
+ $border-radius-sizes: (
9
+ 0: 0,
10
+ 1: 0.125rem,
11
+ 2: 0.25rem,
12
+ 3: 0.375rem,
13
+ 4: 0.5rem,
14
+ 5: 1rem,
15
+ pill: 50rem,
16
+ circle: 50%
17
+ )
18
+
19
+ // Border styles (excluding solid since it's default)
20
+ $border-styles: (dashed, dotted, double, groove, ridge, inset, outset, none)
21
+
22
+ // Default border configuration
23
+ $default-border-width: 1px
24
+ $default-border-color: $border-color
25
+ $default-border-style: solid
@@ -0,0 +1,93 @@
1
+ // Magmonium Color Variables
2
+ // Single source of truth: ThemeStore writes --m-* CSS custom properties to :root.
3
+ // SASS vars are pure aliases — no fallbacks, no hardcoded values.
4
+ // To change a color, update the theme asset file (mag_assets/theme/*.ts), not here.
5
+
6
+ // Base
7
+ $background: var(--m-background)
8
+ $border: var(--m-border)
9
+ $frame: var(--m-frame)
10
+ $background-lite: var(--m-background-lite)
11
+ $highlight: var(--m-highlight)
12
+
13
+ // Text
14
+ $text: var(--m-text)
15
+ $inverse-text: var(--m-inverse-text)
16
+ $text-secondary: var(--m-text-secondary)
17
+ $text-tertiary: var(--m-text-tertiary)
18
+ $text-quaternary: var(--m-text-quaternary)
19
+ $text-quinary: var(--m-text-quinary)
20
+ $text-senary: var(--m-text-senary)
21
+ $text-septenary: var(--m-text-septenary)
22
+ $text-octonary: var(--m-text-octonary)
23
+ $text-nonary: var(--m-text-nonary)
24
+
25
+ // Brand
26
+ $mm: var(--m-mm)
27
+ $mm-lite: var(--m-mm-lite)
28
+ $mm-dark: var(--m-mm-dark)
29
+ $focus: var(--m-focus)
30
+ $header: var(--m-header)
31
+
32
+ // Status
33
+ $error: var(--m-error)
34
+ $error-light: var(--m-error-light)
35
+ $warning: var(--m-warning)
36
+ $warning-lite: var(--m-warning-lite)
37
+ $success: var(--m-success)
38
+ $success-lite: var(--m-success-lite)
39
+ $info: var(--m-info)
40
+ $info-lite: var(--m-info-lite)
41
+ $fade: var(--m-fade)
42
+ $wealth: var(--m-wealth)
43
+ $gold: var(--m-gold)
44
+
45
+ // Backgrounds
46
+ $page: var(--m-page)
47
+ $page-dark: var(--m-page-dark)
48
+ $bg-focus: var(--m-bg-focus)
49
+ $focus-bg: var(--m-focus-bg)
50
+
51
+ // Interactive
52
+ $click-effect: var(--m-click-effect)
53
+ $modal-background: var(--m-modal-background)
54
+ $tooltip-bg: var(--m-tool-tip-bg)
55
+ $tooltip-col: var(--m-tool-tip-col)
56
+
57
+ // Backdrop
58
+ $backdrop-standard: var(--m-backdrop-standard)
59
+ $backdrop-glass: var(--m-backdrop-glass)
60
+ $backdrop-frosted: var(--m-backdrop-frosted)
61
+ $backdrop-theme: var(--m-backdrop-theme)
62
+ $backdrop-border: var(--m-backdrop-border)
63
+ $backdrop-frame: var(--m-backdrop-frame)
64
+ $backdrop-modal: var(--m-modal-background)
65
+ $backdrop-overlay: var(--m-backdrop-overlay)
66
+ $backdrop-popup: var(--m-backdrop-popup)
67
+ $backdrop-nav: var(--m-backdrop-nav)
68
+ $backdrop-sidebar: var(--m-backdrop-sidebar)
69
+ $backdrop-card: var(--m-backdrop-card)
70
+ $backdrop-surface: var(--m-backdrop-surface)
71
+ $backdrop-mm: var(--m-backdrop-mm)
72
+ $backdrop-error: var(--m-backdrop-error)
73
+ $backdrop-warning: var(--m-backdrop-warning)
74
+ $backdrop-success: var(--m-backdrop-success)
75
+ $backdrop-shadow: var(--m-backdrop-shadow)
76
+ $backdrop-gold: var(--m-backdrop-gold)
77
+ $backdrop-focus: var(--m-focus-bg)
78
+ $backdrop-click: var(--m-click-effect)
79
+
80
+ // Aliases
81
+ $primary: $mm
82
+ $primary-lite: $mm-lite
83
+ $primary-dark: $mm-dark
84
+ $secondary: $text-secondary
85
+ $danger: $error
86
+ $danger-lite: $error-light
87
+
88
+ // Legacy aliases (backward compatibility)
89
+ $background-color: $background
90
+ $white: white
91
+ $primary-color: $mm
92
+ $border-color: $border
93
+ $frame-color: $frame
@@ -0,0 +1,6 @@
1
+ @forward "number"
2
+ @forward "colors"
3
+ @forward "spacing"
4
+ @forward "typography"
5
+ @forward "borders"
6
+ @forward "animations"
@@ -0,0 +1 @@
1
+ $base-z-index: 526
@@ -0,0 +1,28 @@
1
+ // Spacing Variables
2
+ @use './colors' as *
3
+
4
+ $spacer: 1rem
5
+ $spacers: (0: 0, 1: $spacer * 0.25, 2: $spacer * 0.5, 3: $spacer, 4: $spacer * 1.5, 5: $spacer * 3)
6
+
7
+ // Margins and Paddings
8
+ $margin-base: $spacer
9
+ $padding-base: $spacer
10
+
11
+ // Container Padding
12
+ $container-padding-x: $spacer
13
+
14
+ // Component Spacing
15
+ $component-active-color: $white
16
+ $component-active-bg: $primary-color
17
+
18
+ // Grid System
19
+ $grid-breakpoints: (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)
20
+
21
+ $container-max-widths: (sm: 540px, md: 720px, lg: 960px, xl: 1140px, xxl: 1320px)
22
+
23
+ // Grid Gutter
24
+ $grid-gutter-width: 1.5rem
25
+ $grid-row-columns: 6
26
+
27
+ $desktop-width: 1200px
28
+ $tablet-width: 768px
@@ -0,0 +1,40 @@
1
+ // Typography Variables
2
+ @use './spacing' as *
3
+
4
+ $font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
5
+ $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
6
+
7
+ $font-family-base: $font-family-sans-serif
8
+ $font-family-code: $font-family-monospace
9
+
10
+ // Font Sizes
11
+ $font-size-root: null
12
+ $font-size-base: 1rem
13
+ $font-size-sm: $font-size-base * 0.875
14
+ $font-size-lg: $font-size-base * 1.25
15
+
16
+ $font-sizes: (1: $font-size-base * 2.5, 2: $font-size-base * 2, 3: $font-size-base * 1.75, 4: $font-size-base * 1.5, 5: $font-size-base * 1.25, 6: $font-size-base)
17
+
18
+ // Font Weights
19
+ $font-weight-lighter: lighter
20
+ $font-weight-light: 300
21
+ $font-weight-normal: 400
22
+ $font-weight-medium: 500
23
+ $font-weight-semibold: 600
24
+ $font-weight-bold: 700
25
+ $font-weight-bolder: bolder
26
+
27
+ $font-weight-base: $font-weight-normal
28
+
29
+ // Line Heights
30
+ $line-height-base: 1.5
31
+ $line-height-sm: 1.25
32
+ $line-height-lg: 2
33
+
34
+ // Headings
35
+ $headings-margin-bottom: $spacer * 0.5
36
+ $headings-font-family: null
37
+ $headings-font-style: null
38
+ $headings-font-weight: 500
39
+ $headings-line-height: 1.2
40
+ $headings-color: inherit