@mineui/tokens 0.0.1

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Maysara Elshewehy (https://github.com/maysara-elshewehy)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,259 @@
1
+ <!-- ╔══════════════════════════════ BEG ══════════════════════════════╗ -->
2
+
3
+ <br>
4
+ <div align="center">
5
+ <p>
6
+ <img src="./assets/img/logo.png" alt="logo" style="" height="60" />
7
+ </p>
8
+ </div>
9
+
10
+ <div align="center">
11
+ <img src="https://img.shields.io/badge/v-1.0.0-black"/>
12
+ <a href="https://github.com/mineui-org"><img src="https://img.shields.io/badge/🔥-@mineui-black"/></a>
13
+ <br>
14
+ <img src="https://img.shields.io/badge/coverage-100%25-brightgreen" alt="Test Coverage" />
15
+ <img src="https://img.shields.io/github/issues/mineui-orgx/tokens?style=flat" alt="Github Repo Issues" />
16
+ <img src="https://img.shields.io/github/stars/mineui-orgx/tokens?style=social" alt="GitHub Repo stars" />
17
+ </div>
18
+ <br>
19
+
20
+ <!-- ╚═════════════════════════════════════════════════════════════════╝ -->
21
+
22
+
23
+
24
+ <!-- ╔══════════════════════════════ DOC ══════════════════════════════╗ -->
25
+
26
+ - ## Overview 👀
27
+
28
+ - #### Why ?
29
+ > To standardize the design system with 350+ pre-configured tokens (colors, spacing, typography, shadows) using HSL format and semantic naming.
30
+
31
+ - #### When ?
32
+ > When using [@mineui](https://github.com/mineui-org) and [@cruxjs](https://github.com/cruxjs-org) to build consistent, scalable design systems and component libraries.
33
+
34
+ <br>
35
+ <br>
36
+
37
+ - ## Quick Start 🔥
38
+
39
+ > install [`hmm`](https://github.com/minejs-org/hmm) first.
40
+
41
+ ```bash
42
+ # in your terminal
43
+ hmm i @mineui/tokens
44
+ ```
45
+
46
+ ```scss
47
+ # in your `.scss` files
48
+ @use "./node_modules/@mineui/tokens/dist/scss/index.scss" as *;
49
+ ```
50
+
51
+ <div align="center"> <img src="./assets/img/line.png" alt="line" style="display: block; margin-top:20px;margin-bottom:20px;width:500px;"/> </div>
52
+ <br>
53
+
54
+
55
+ - ### Colors
56
+
57
+ ```scss
58
+ .button {
59
+ background: $blue-6; // Main blue
60
+ color: $gray-0; // Almost white
61
+ border: 1px solid $gray-3;
62
+ }
63
+ ```
64
+
65
+ - ### Spacing & Typography
66
+
67
+ ```scss
68
+ .card {
69
+ padding: $sp-6; // 1.5rem (24px)
70
+ font-size: $fs-lg; // 1.125rem (18px)
71
+ font-weight: $fw-medium; // 500
72
+ border-radius: $br-lg; // 0.5rem (8px)
73
+ }
74
+ ```
75
+
76
+ <br>
77
+ <br>
78
+
79
+ - ## Documentation 📑
80
+
81
+
82
+ - ### API ⛓️
83
+
84
+ - #### Colors
85
+ > 11 color palettes × 11 shades each. HSL format for easy manipulation.
86
+
87
+ ```scss
88
+ // Gray scale (12 shades)
89
+ $gray-0 to $gray-11
90
+
91
+ // Brand colors (11 shades each)
92
+ $blue-1 to $blue-11
93
+ $green-1 to $green-11
94
+ $red-1 to $red-11
95
+ $amber-1 to $amber-11
96
+ $orange-1 to $orange-11
97
+ $purple-1 to $purple-11
98
+ $pink-1 to $pink-11
99
+ $cyan-1 to $cyan-11
100
+ $teal-1 to $teal-11
101
+ $indigo-1 to $indigo-11
102
+ ```
103
+
104
+ - #### Spacing
105
+
106
+ > Perfect scale from 0 to 64 (0px to 256px).
107
+
108
+ ```scss
109
+ $sp-0, $sp-1, $sp-2, $sp-3, $sp-4, $sp-5, $sp-6,
110
+ $sp-7, $sp-8, $sp-9, $sp-10, $sp-12, $sp-14, $sp-16,
111
+ $sp-20, $sp-24, $sp-28, $sp-32, $sp-36, $sp-40,
112
+ $sp-44, $sp-48, $sp-52, $sp-56, $sp-60, $sp-64
113
+ ```
114
+
115
+ - #### Typography
116
+
117
+ > Font families, sizes, weights, line heights, letter spacing.
118
+
119
+ ```scss
120
+ // Families
121
+ $font-sans, $font-serif, $font-mono, $font-arabic
122
+
123
+ // Sizes
124
+ $fs-xs to $fs-9xl
125
+
126
+ // Weights
127
+ $fw-thin to $fw-black
128
+
129
+ // Line heights
130
+ $lh-none to $lh-loose
131
+
132
+ // Letter spacing
133
+ $ls-tighter to $ls-widest
134
+ ```
135
+
136
+ - #### Borders
137
+
138
+ > Widths and radius values.
139
+
140
+ ```scss
141
+ // Widths
142
+ $bw-0 to $bw-8
143
+
144
+ // Radius
145
+ $br-none to $br-3xl, $br-full
146
+ ```
147
+
148
+ - #### Shadows
149
+
150
+ > Realistic shadows for light and dark modes.
151
+
152
+ ```scss
153
+ // Light mode
154
+ $shadow-xs, $shadow-sm, $shadow-base, $shadow-md,
155
+ $shadow-lg, $shadow-xl, $shadow-2xl, $shadow-inner
156
+
157
+ // Dark mode
158
+ $shadow-xs-dark to $shadow-2xl-dark
159
+ ```
160
+
161
+ - #### Z-Index
162
+
163
+ > Layering system with semantic names.
164
+
165
+ ```scss
166
+ $z-0 to $z-50
167
+ $z-dropdown, $z-sticky, $z-fixed, $z-backdrop,
168
+ $z-modal, $z-popover, $z-tooltip, $z-notification
169
+ ```
170
+
171
+ - #### Transitions
172
+
173
+ > Durations and easing functions.
174
+
175
+ ```scss
176
+ // Durations
177
+ $dur-instant to $dur-slowest
178
+
179
+ // Easings
180
+ $ease-linear, $ease-in, $ease-out, $ease-in-out,
181
+ $ease-bounce, $ease-elastic
182
+ ```
183
+
184
+ - #### Opacity
185
+
186
+ > 0% to 100% in useful increments.
187
+
188
+ ```scss
189
+ $opacity-0, $opacity-5, $opacity-10, $opacity-20,
190
+ $opacity-25, $opacity-30, $opacity-40, $opacity-50,
191
+ $opacity-60, $opacity-70, $opacity-75, $opacity-80,
192
+ $opacity-90, $opacity-95, $opacity-100
193
+ ```
194
+
195
+ - #### Breakpoints
196
+
197
+ > Responsive design breakpoints.
198
+
199
+ ```scss
200
+ $bp-xs: 0
201
+ $bp-sm: 640px
202
+ $bp-md: 768px
203
+ $bp-lg: 1024px
204
+ $bp-xl: 1280px
205
+ $bp-2xl: 1536px
206
+ ```
207
+
208
+ - #### Sizes
209
+
210
+ > Common component sizes.
211
+
212
+ ```scss
213
+ $size-xs to $size-2xl
214
+ ```
215
+
216
+ - #### Blur
217
+
218
+ > Backdrop and effect blur values.
219
+
220
+ ```scss
221
+ $blur-none to $blur-3xl
222
+ ```
223
+
224
+ - #### Aspect Ratios
225
+
226
+ > Common aspect ratios.
227
+
228
+ ```scss
229
+ $aspect-square, $aspect-video, $aspect-4-3,
230
+ $aspect-21-9, $aspect-portrait, $aspect-auto
231
+ ```
232
+
233
+ <div align="center"> <img src="./assets/img/line.png" alt="line" style="display: block; margin-top:20px;margin-bottom:20px;width:500px;"/> </div>
234
+ <br>
235
+
236
+ - ### Related 🔗
237
+
238
+ - ##### [@mineui/semantic](https://github.com/mineui-org/semantic)
239
+ > Theme system and semantic variables built on these tokens
240
+
241
+ - ##### [@mineui/core](https://github.com/mineui-org/core)
242
+ > Complete UI framework using these tokens
243
+
244
+ <!-- ╚═════════════════════════════════════════════════════════════════╝ -->
245
+
246
+
247
+
248
+ <!-- ╔══════════════════════════════ END ══════════════════════════════╗ -->
249
+
250
+ <br>
251
+ <br>
252
+
253
+ ---
254
+
255
+ <div align="center">
256
+ <a href="https://github.com/maysara-elshewehy"><img src="https://img.shields.io/badge/by-Maysara-black"/></a>
257
+ </div>
258
+
259
+ <!-- ╚═════════════════════════════════════════════════════════════════╝ -->
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":[],"names":[],"mappings":"","file":"index.css"}
@@ -0,0 +1,15 @@
1
+ // aspect.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // ASPECT RATIOS
9
+ // ----------------------------------------------------------------------------
10
+ $aspect-square: 1 / 1;
11
+ $aspect-video: 16 / 9;
12
+ $aspect-4-3: 4 / 3;
13
+ $aspect-21-9: 21 / 9;
14
+ $aspect-portrait: 3 / 4;
15
+ $aspect-auto: auto;
@@ -0,0 +1,17 @@
1
+ // blur.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // BLUR - Backdrop & Effects
9
+ // ----------------------------------------------------------------------------
10
+ $blur-none: 0;
11
+ $blur-sm: 4px;
12
+ $blur-base: 8px;
13
+ $blur-md: 12px;
14
+ $blur-lg: 16px;
15
+ $blur-xl: 24px;
16
+ $blur-2xl: 40px;
17
+ $blur-3xl: 64px;
@@ -0,0 +1,29 @@
1
+ // borders.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // Border Widths
9
+ // ----------------------------------------------------------------------------
10
+ $bw-0: 0;
11
+ $bw-1: 1px;
12
+ $bw-2: 2px;
13
+ $bw-3: 3px;
14
+ $bw-4: 4px;
15
+ $bw-6: 6px;
16
+ $bw-8: 8px;
17
+
18
+ // ----------------------------------------------------------------------------
19
+ // Border Radius
20
+ // ----------------------------------------------------------------------------
21
+ $br-none: 0;
22
+ $br-sm: 0.125rem; // 2px
23
+ $br-base: 0.25rem; // 4px
24
+ $br-md: 0.375rem; // 6px
25
+ $br-lg: 0.5rem; // 8px
26
+ $br-xl: 0.75rem; // 12px
27
+ $br-2xl: 1rem; // 16px
28
+ $br-3xl: 1.5rem; // 24px
29
+ $br-full: 9999px;
@@ -0,0 +1,26 @@
1
+ // breakpoints.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // BREAKPOINTS - Responsive Design
9
+ // ----------------------------------------------------------------------------
10
+ $bp-xs: 0;
11
+ $bp-sm: 640px;
12
+ $bp-md: 768px;
13
+ $bp-lg: 1024px;
14
+ $bp-xl: 1280px;
15
+ $bp-2xl: 1536px;
16
+
17
+ // Map for easy iteration
18
+ $breakpoints: (
19
+ 'xs': $bp-xs,
20
+ 'sm': $bp-sm,
21
+ 'md': $bp-md,
22
+ 'lg': $bp-lg,
23
+ 'xl': $bp-xl,
24
+ '2xl': $bp-2xl,
25
+ );
26
+
@@ -0,0 +1,171 @@
1
+ // colors.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // Gray Scale (11 shades - Perfect Balance)
9
+ // ----------------------------------------------------------------------------
10
+ $gray-0: hsl(0, 0%, 98%); // #FAFAFA
11
+ $gray-1: hsl(0, 0%, 96%); // #F5F5F5
12
+ $gray-2: hsl(0, 0%, 93%); // #EDEDED
13
+ $gray-3: hsl(0, 0%, 88%); // #E0E0E0
14
+ $gray-4: hsl(0, 0%, 82%); // #D1D1D1
15
+ $gray-5: hsl(0, 0%, 71%); // #B5B5B5
16
+ $gray-6: hsl(0, 0%, 58%); // #949494
17
+ $gray-7: hsl(0, 0%, 45%); // #737373
18
+ $gray-8: hsl(0, 0%, 32%); // #525252
19
+ $gray-9: hsl(0, 0%, 20%); // #333333
20
+ $gray-10: hsl(0, 0%, 10%); // #1A1A1A
21
+ $gray-11: hsl(0, 0%, 4%); // #0A0A0A
22
+
23
+ // ----------------------------------------------------------------------------
24
+ // Blue (Primary Brand Color)
25
+ // ----------------------------------------------------------------------------
26
+ $blue-1: hsl(210, 100%, 97%);
27
+ $blue-2: hsl(210, 100%, 94%);
28
+ $blue-3: hsl(210, 100%, 88%);
29
+ $blue-4: hsl(210, 100%, 78%);
30
+ $blue-5: hsl(210, 100%, 66%);
31
+ $blue-6: hsl(210, 100%, 54%); // Main
32
+ $blue-7: hsl(210, 100%, 46%);
33
+ $blue-8: hsl(210, 100%, 38%);
34
+ $blue-9: hsl(210, 100%, 30%);
35
+ $blue-10: hsl(210, 100%, 22%);
36
+ $blue-11: hsl(210, 100%, 14%);
37
+
38
+ // ----------------------------------------------------------------------------
39
+ // Green (Success)
40
+ // ----------------------------------------------------------------------------
41
+ $green-1: hsl(142, 76%, 96%);
42
+ $green-2: hsl(142, 76%, 91%);
43
+ $green-3: hsl(142, 76%, 82%);
44
+ $green-4: hsl(142, 76%, 69%);
45
+ $green-5: hsl(142, 76%, 53%);
46
+ $green-6: hsl(142, 76%, 42%); // Main
47
+ $green-7: hsl(142, 76%, 35%);
48
+ $green-8: hsl(142, 76%, 28%);
49
+ $green-9: hsl(142, 76%, 21%);
50
+ $green-10: hsl(142, 76%, 14%);
51
+ $green-11: hsl(142, 76%, 8%);
52
+
53
+ // ----------------------------------------------------------------------------
54
+ // Red (Error/Danger)
55
+ // ----------------------------------------------------------------------------
56
+ $red-1: hsl(0, 86%, 97%);
57
+ $red-2: hsl(0, 86%, 94%);
58
+ $red-3: hsl(0, 86%, 88%);
59
+ $red-4: hsl(0, 86%, 78%);
60
+ $red-5: hsl(0, 86%, 66%);
61
+ $red-6: hsl(0, 86%, 54%); // Main
62
+ $red-7: hsl(0, 86%, 46%);
63
+ $red-8: hsl(0, 86%, 38%);
64
+ $red-9: hsl(0, 86%, 30%);
65
+ $red-10: hsl(0, 86%, 22%);
66
+ $red-11: hsl(0, 86%, 14%);
67
+
68
+ // ----------------------------------------------------------------------------
69
+ // Amber (Warning)
70
+ // ----------------------------------------------------------------------------
71
+ $amber-1: hsl(43, 96%, 95%);
72
+ $amber-2: hsl(43, 96%, 89%);
73
+ $amber-3: hsl(43, 96%, 78%);
74
+ $amber-4: hsl(43, 96%, 64%);
75
+ $amber-5: hsl(43, 96%, 51%);
76
+ $amber-6: hsl(43, 96%, 41%); // Main
77
+ $amber-7: hsl(43, 96%, 34%);
78
+ $amber-8: hsl(43, 96%, 27%);
79
+ $amber-9: hsl(43, 96%, 20%);
80
+ $amber-10: hsl(43, 96%, 13%);
81
+ $amber-11: hsl(43, 96%, 7%);
82
+
83
+ // ----------------------------------------------------------------------------
84
+ // Orange
85
+ // ----------------------------------------------------------------------------
86
+ $orange-1: hsl(33, 100%, 96%);
87
+ $orange-2: hsl(33, 100%, 92%);
88
+ $orange-3: hsl(33, 100%, 83%);
89
+ $orange-4: hsl(33, 100%, 70%);
90
+ $orange-5: hsl(33, 100%, 57%);
91
+ $orange-6: hsl(33, 100%, 50%); // Main
92
+ $orange-7: hsl(33, 100%, 42%);
93
+ $orange-8: hsl(33, 100%, 34%);
94
+ $orange-9: hsl(33, 100%, 26%);
95
+ $orange-10: hsl(33, 100%, 18%);
96
+ $orange-11: hsl(33, 100%, 10%);
97
+
98
+ // ----------------------------------------------------------------------------
99
+ // Purple
100
+ // ----------------------------------------------------------------------------
101
+ $purple-1: hsl(280, 100%, 97%);
102
+ $purple-2: hsl(280, 100%, 94%);
103
+ $purple-3: hsl(280, 100%, 88%);
104
+ $purple-4: hsl(280, 100%, 78%);
105
+ $purple-5: hsl(280, 100%, 66%);
106
+ $purple-6: hsl(280, 100%, 54%); // Main
107
+ $purple-7: hsl(280, 100%, 46%);
108
+ $purple-8: hsl(280, 100%, 38%);
109
+ $purple-9: hsl(280, 100%, 30%);
110
+ $purple-10: hsl(280, 100%, 22%);
111
+ $purple-11: hsl(280, 100%, 14%);
112
+
113
+ // ----------------------------------------------------------------------------
114
+ // Pink
115
+ // ----------------------------------------------------------------------------
116
+ $pink-1: hsl(330, 100%, 97%);
117
+ $pink-2: hsl(330, 100%, 94%);
118
+ $pink-3: hsl(330, 100%, 88%);
119
+ $pink-4: hsl(330, 100%, 78%);
120
+ $pink-5: hsl(330, 100%, 66%);
121
+ $pink-6: hsl(330, 100%, 54%); // Main
122
+ $pink-7: hsl(330, 100%, 46%);
123
+ $pink-8: hsl(330, 100%, 38%);
124
+ $pink-9: hsl(330, 100%, 30%);
125
+ $pink-10: hsl(330, 100%, 22%);
126
+ $pink-11: hsl(330, 100%, 14%);
127
+
128
+ // ----------------------------------------------------------------------------
129
+ // Cyan
130
+ // ----------------------------------------------------------------------------
131
+ $cyan-1: hsl(190, 95%, 96%);
132
+ $cyan-2: hsl(190, 95%, 92%);
133
+ $cyan-3: hsl(190, 95%, 84%);
134
+ $cyan-4: hsl(190, 95%, 72%);
135
+ $cyan-5: hsl(190, 95%, 58%);
136
+ $cyan-6: hsl(190, 95%, 48%); // Main
137
+ $cyan-7: hsl(190, 95%, 40%);
138
+ $cyan-8: hsl(190, 95%, 32%);
139
+ $cyan-9: hsl(190, 95%, 24%);
140
+ $cyan-10: hsl(190, 95%, 16%);
141
+ $cyan-11: hsl(190, 95%, 10%);
142
+
143
+ // ----------------------------------------------------------------------------
144
+ // Teal
145
+ // ----------------------------------------------------------------------------
146
+ $teal-1: hsl(170, 76%, 96%);
147
+ $teal-2: hsl(170, 76%, 91%);
148
+ $teal-3: hsl(170, 76%, 82%);
149
+ $teal-4: hsl(170, 76%, 69%);
150
+ $teal-5: hsl(170, 76%, 53%);
151
+ $teal-6: hsl(170, 76%, 42%); // Main
152
+ $teal-7: hsl(170, 76%, 35%);
153
+ $teal-8: hsl(170, 76%, 28%);
154
+ $teal-9: hsl(170, 76%, 21%);
155
+ $teal-10: hsl(170, 76%, 14%);
156
+ $teal-11: hsl(170, 76%, 8%);
157
+
158
+ // ----------------------------------------------------------------------------
159
+ // Indigo
160
+ // ----------------------------------------------------------------------------
161
+ $indigo-1: hsl(240, 100%, 97%);
162
+ $indigo-2: hsl(240, 100%, 94%);
163
+ $indigo-3: hsl(240, 100%, 88%);
164
+ $indigo-4: hsl(240, 100%, 78%);
165
+ $indigo-5: hsl(240, 100%, 66%);
166
+ $indigo-6: hsl(240, 100%, 54%); // Main
167
+ $indigo-7: hsl(240, 100%, 46%);
168
+ $indigo-8: hsl(240, 100%, 38%);
169
+ $indigo-9: hsl(240, 100%, 30%);
170
+ $indigo-10: hsl(240, 100%, 22%);
171
+ $indigo-11: hsl(240, 100%, 14%);
@@ -0,0 +1,21 @@
1
+ // @mineui/tokens
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // PACK
9
+ // ----------------------------------------------------------------------------
10
+ @use './colors.scss';
11
+ @use './spaces.scss';
12
+ @use './typography.scss';
13
+ @use './borders.scss';
14
+ @use './shadows.scss';
15
+ @use './z-index.scss';
16
+ @use './transitions.scss';
17
+ @use './opacity.scss';
18
+ @use './blur.scss';
19
+ @use './aspect.scss';
20
+ @use './sizes.scss';
21
+ @use './breakpoints.scss';
@@ -0,0 +1,24 @@
1
+ // opacity.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // OPACITY - Transparency Levels
9
+ // ----------------------------------------------------------------------------
10
+ $opacity-0: 0;
11
+ $opacity-5: 0.05;
12
+ $opacity-10: 0.1;
13
+ $opacity-20: 0.2;
14
+ $opacity-25: 0.25;
15
+ $opacity-30: 0.3;
16
+ $opacity-40: 0.4;
17
+ $opacity-50: 0.5;
18
+ $opacity-60: 0.6;
19
+ $opacity-70: 0.7;
20
+ $opacity-75: 0.75;
21
+ $opacity-80: 0.8;
22
+ $opacity-90: 0.9;
23
+ $opacity-95: 0.95;
24
+ $opacity-100: 1;
@@ -0,0 +1,37 @@
1
+ // shadows.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // SHADOWS - Realistic and Beautiful
9
+ // ----------------------------------------------------------------------------
10
+ $shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
11
+ $shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
12
+ 0 1px 2px -1px rgba(0, 0, 0, 0.1);
13
+ $shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
14
+ 0 1px 2px -1px rgba(0, 0, 0, 0.1);
15
+ $shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
16
+ 0 2px 4px -2px rgba(0, 0, 0, 0.1);
17
+ $shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
18
+ 0 4px 6px -4px rgba(0, 0, 0, 0.1);
19
+ $shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
20
+ 0 8px 10px -6px rgba(0, 0, 0, 0.1);
21
+ $shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
22
+ $shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
23
+ $shadow-none: none;
24
+
25
+ // Dark Mode Shadows (Deeper)
26
+ $shadow-xs-dark: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
27
+ $shadow-sm-dark: 0 1px 3px 0 rgba(0, 0, 0, 0.4),
28
+ 0 1px 2px -1px rgba(0, 0, 0, 0.4);
29
+ $shadow-base-dark: 0 1px 3px 0 rgba(0, 0, 0, 0.4),
30
+ 0 1px 2px -1px rgba(0, 0, 0, 0.4);
31
+ $shadow-md-dark: 0 4px 6px -1px rgba(0, 0, 0, 0.4),
32
+ 0 2px 4px -2px rgba(0, 0, 0, 0.4);
33
+ $shadow-lg-dark: 0 10px 15px -3px rgba(0, 0, 0, 0.4),
34
+ 0 4px 6px -4px rgba(0, 0, 0, 0.4);
35
+ $shadow-xl-dark: 0 20px 25px -5px rgba(0, 0, 0, 0.5),
36
+ 0 8px 10px -6px rgba(0, 0, 0, 0.5);
37
+ $shadow-2xl-dark: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
@@ -0,0 +1,16 @@
1
+ // sizes.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // SIZES - Common Component Sizes
9
+ // ----------------------------------------------------------------------------
10
+ $size-xs: 1.5rem; // 24px
11
+ $size-sm: 2rem; // 32px
12
+ $size-base: 2.5rem; // 40px
13
+ $size-md: 3rem; // 48px
14
+ $size-lg: 3.5rem; // 56px
15
+ $size-xl: 4rem; // 64px
16
+ $size-2xl: 5rem; // 80px
@@ -0,0 +1,35 @@
1
+ // colors.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // SPACING - Perfect Scale (rem based)
9
+ // ----------------------------------------------------------------------------
10
+ $sp-0: 0;
11
+ $sp-1: 0.25rem; // 4px
12
+ $sp-2: 0.5rem; // 8px
13
+ $sp-3: 0.75rem; // 12px
14
+ $sp-4: 1rem; // 16px
15
+ $sp-5: 1.25rem; // 20px
16
+ $sp-6: 1.5rem; // 24px
17
+ $sp-7: 1.75rem; // 28px
18
+ $sp-8: 2rem; // 32px
19
+ $sp-9: 2.25rem; // 36px
20
+ $sp-10: 2.5rem; // 40px
21
+ $sp-12: 3rem; // 48px
22
+ $sp-14: 3.5rem; // 56px
23
+ $sp-16: 4rem; // 64px
24
+ $sp-20: 5rem; // 80px
25
+ $sp-24: 6rem; // 96px
26
+ $sp-28: 7rem; // 112px
27
+ $sp-32: 8rem; // 128px
28
+ $sp-36: 9rem; // 144px
29
+ $sp-40: 10rem; // 160px
30
+ $sp-44: 11rem; // 176px
31
+ $sp-48: 12rem; // 192px
32
+ $sp-52: 13rem; // 208px
33
+ $sp-56: 14rem; // 224px
34
+ $sp-60: 15rem; // 240px
35
+ $sp-64: 16rem; // 256px
@@ -0,0 +1,26 @@
1
+ // transitions.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // Durations
9
+ // ----------------------------------------------------------------------------
10
+ $dur-instant: 50ms;
11
+ $dur-fast: 100ms;
12
+ $dur-normal: 150ms;
13
+ $dur-moderate: 200ms;
14
+ $dur-slow: 300ms;
15
+ $dur-slower: 500ms;
16
+ $dur-slowest: 700ms;
17
+
18
+ // ----------------------------------------------------------------------------
19
+ // Timing Functions
20
+ // ----------------------------------------------------------------------------
21
+ $ease-linear: linear;
22
+ $ease-in: cubic-bezier(0.4, 0, 1, 1);
23
+ $ease-out: cubic-bezier(0, 0, 0.2, 1);
24
+ $ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
25
+ $ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
26
+ $ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
@@ -0,0 +1,70 @@
1
+ // typography.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // Font Families
9
+ // ----------------------------------------------------------------------------
10
+ $font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
11
+ 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
12
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
13
+
14
+ $font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
15
+
16
+ $font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas,
17
+ 'Liberation Mono', 'Courier New', monospace;
18
+
19
+ $font-arabic: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
20
+
21
+ // ----------------------------------------------------------------------------
22
+ // Font Sizes (Perfect Typographic Scale)
23
+ // ----------------------------------------------------------------------------
24
+ $fs-xs: 0.75rem; // 12px
25
+ $fs-sm: 0.875rem; // 14px
26
+ $fs-base: 1rem; // 16px
27
+ $fs-md: 1.0625rem; // 17px
28
+ $fs-lg: 1.125rem; // 18px
29
+ $fs-xl: 1.25rem; // 20px
30
+ $fs-2xl: 1.5rem; // 24px
31
+ $fs-3xl: 1.875rem; // 30px
32
+ $fs-4xl: 2.25rem; // 36px
33
+ $fs-5xl: 3rem; // 48px
34
+ $fs-6xl: 3.75rem; // 60px
35
+ $fs-7xl: 4.5rem; // 72px
36
+ $fs-8xl: 6rem; // 96px
37
+ $fs-9xl: 8rem; // 128px
38
+
39
+ // ----------------------------------------------------------------------------
40
+ // Font Weights
41
+ // ----------------------------------------------------------------------------
42
+ $fw-thin: 100;
43
+ $fw-extralight: 200;
44
+ $fw-light: 300;
45
+ $fw-normal: 400;
46
+ $fw-medium: 500;
47
+ $fw-semibold: 600;
48
+ $fw-bold: 700;
49
+ $fw-extrabold: 800;
50
+ $fw-black: 900;
51
+
52
+ // ----------------------------------------------------------------------------
53
+ // Line Heights
54
+ // ----------------------------------------------------------------------------
55
+ $lh-none: 1;
56
+ $lh-tight: 1.25;
57
+ $lh-snug: 1.375;
58
+ $lh-normal: 1.5;
59
+ $lh-relaxed: 1.625;
60
+ $lh-loose: 2;
61
+
62
+ // ----------------------------------------------------------------------------
63
+ // Letter Spacing
64
+ // ----------------------------------------------------------------------------
65
+ $ls-tighter: -0.05em;
66
+ $ls-tight: -0.025em;
67
+ $ls-normal: 0;
68
+ $ls-wide: 0.025em;
69
+ $ls-wider: 0.05em;
70
+ $ls-widest: 0.1em;
@@ -0,0 +1,27 @@
1
+ // z-index.scss
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // Z-INDEX - Layering System
9
+ // ----------------------------------------------------------------------------
10
+ $z-0: 0;
11
+ $z-1: 1;
12
+ $z-10: 10;
13
+ $z-20: 20;
14
+ $z-30: 30;
15
+ $z-40: 40;
16
+ $z-50: 50;
17
+ $z-auto: auto;
18
+
19
+ // Semantic Z-Index
20
+ $z-dropdown: 1000;
21
+ $z-sticky: 1020;
22
+ $z-fixed: 1030;
23
+ $z-backdrop: 1040;
24
+ $z-modal: 1050;
25
+ $z-popover: 1060;
26
+ $z-tooltip: 1070;
27
+ $z-notification: 1080;
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@mineui/tokens",
3
+ "version": "0.0.1",
4
+ "description": "tokens",
5
+ "keywords": ["mine", "ui", "tokens"],
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/mineui-org/tokens#readme",
8
+ "bugs": {
9
+ "url": "https://github.com/mineui-org/tokens/issues"
10
+ },
11
+ "author": {
12
+ "name": "Maysara",
13
+ "email": "maysara.elshewehy@gmail.com",
14
+ "url": "https://github.com/maysara-elshewehy"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/mineui-org/tokens.git"
19
+ },
20
+ "type": "module",
21
+ "main": "./dist/index.js",
22
+ "types": "./dist/index.d.ts",
23
+ "files": ["dist"],
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js",
28
+ "require": "./dist/index.js"
29
+ },
30
+ "./style": "./dist/scss/index.scss"
31
+ },
32
+ "scripts": {
33
+ "build": "sass src/scss/index.scss dist/index.css --style=compressed && bun scripts/copy-scss.js",
34
+ "build:scss": "bun scripts/copy-scss.js",
35
+ "lint": "eslint src --ext .ts",
36
+ "test": "bun test"
37
+ },
38
+ "engines": {
39
+ "bun": ">=1.3.3"
40
+ },
41
+ "peerDependencies": {
42
+ "bun": "^1.3.3"
43
+ },
44
+ "devDependencies": {
45
+ "@eslint/js": "^9.39.2",
46
+ "@stylistic/eslint-plugin": "^5.6.1",
47
+ "@types/bun": "^1.3.5",
48
+ "@types/node": "^20.19.27",
49
+ "bun-plugin-dts": "^0.3.0",
50
+ "bun-types": "^1.3.5",
51
+ "saas": "^1.0.0",
52
+ "sass": "^1.97.2",
53
+ "ts-node": "^10.9.2",
54
+ "tsup": "^8.5.1",
55
+ "typescript": "^5.9.3",
56
+ "typescript-eslint": "^8.51.0"
57
+ },
58
+ "style": "./dist/index.css"
59
+ }