@rhavenside/baseline-ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/LICENSE +22 -0
  3. package/README.md +272 -0
  4. package/dist/.gitkeep +0 -0
  5. package/dist/baseline.css +4811 -0
  6. package/dist/baseline.css.map +1 -0
  7. package/dist/baseline.min.css +1 -0
  8. package/package.json +59 -0
  9. package/src/base/_base.scss +182 -0
  10. package/src/base/_normalize.scss +186 -0
  11. package/src/base/_reset.scss +24 -0
  12. package/src/baseline.scss +48 -0
  13. package/src/components/_alert.scss +97 -0
  14. package/src/components/_badge.scss +105 -0
  15. package/src/components/_button.scss +200 -0
  16. package/src/components/_card.scss +94 -0
  17. package/src/components/_dropdown.scss +111 -0
  18. package/src/components/_form.scss +324 -0
  19. package/src/components/_modal.scss +157 -0
  20. package/src/components/_nav.scss +211 -0
  21. package/src/components/_progress.scss +65 -0
  22. package/src/components/_spinner.scss +118 -0
  23. package/src/components/_table.scss +182 -0
  24. package/src/components/_tooltip.scss +134 -0
  25. package/src/fonts/.gitkeep +4 -0
  26. package/src/icons/_icons.scss +150 -0
  27. package/src/layout/_container.scss +45 -0
  28. package/src/layout/_flex.scss +174 -0
  29. package/src/layout/_grid-modern.scss +128 -0
  30. package/src/layout/_grid.scss +123 -0
  31. package/src/themes/_dark.scss +122 -0
  32. package/src/themes/_light.scss +7 -0
  33. package/src/tokens/_borders.scss +36 -0
  34. package/src/tokens/_colors.scss +136 -0
  35. package/src/tokens/_forms.scss +170 -0
  36. package/src/tokens/_glassmorphism.scss +60 -0
  37. package/src/tokens/_shadows.scss +24 -0
  38. package/src/tokens/_spacing.scss +31 -0
  39. package/src/tokens/_tokens.scss +14 -0
  40. package/src/tokens/_transitions.scss +42 -0
  41. package/src/tokens/_typography.scss +89 -0
  42. package/src/tokens/_z-index.scss +26 -0
  43. package/src/utilities/_accessibility.scss +76 -0
  44. package/src/utilities/_animations.scss +177 -0
  45. package/src/utilities/_display.scss +89 -0
  46. package/src/utilities/_position.scss +105 -0
  47. package/src/utilities/_spacing.scss +87 -0
  48. package/src/utilities/_text.scss +255 -0
  49. package/src/utilities/_visibility.scss +74 -0
@@ -0,0 +1,87 @@
1
+ // ============================================================================
2
+ // Spacing Utilities
3
+ // ============================================================================
4
+
5
+ @use '../tokens/tokens' as *;
6
+
7
+ // Spacing sizes
8
+ $spacing-sizes: (
9
+ 'xs': var(--spacing-xs),
10
+ 'sm': var(--spacing-sm),
11
+ 'md': var(--spacing-md),
12
+ 'lg': var(--spacing-lg),
13
+ 'xl': var(--spacing-xl),
14
+ '2xl': var(--spacing-2xl),
15
+ '3xl': var(--spacing-3xl),
16
+ '0': 0,
17
+ 'auto': auto
18
+ );
19
+
20
+ // Margin Utilities
21
+ @each $name, $value in $spacing-sizes {
22
+ .m-#{$name} {
23
+ margin: #{$value};
24
+ }
25
+
26
+ .mt-#{$name} {
27
+ margin-top: #{$value};
28
+ }
29
+
30
+ .mr-#{$name} {
31
+ margin-right: #{$value};
32
+ }
33
+
34
+ .mb-#{$name} {
35
+ margin-bottom: #{$value};
36
+ }
37
+
38
+ .ml-#{$name} {
39
+ margin-left: #{$value};
40
+ }
41
+
42
+ .mx-#{$name} {
43
+ margin-left: #{$value};
44
+ margin-right: #{$value};
45
+ }
46
+
47
+ .my-#{$name} {
48
+ margin-top: #{$value};
49
+ margin-bottom: #{$value};
50
+ }
51
+ }
52
+
53
+ // Padding Utilities
54
+ @each $name, $value in $spacing-sizes {
55
+ @if $name != 'auto' {
56
+ .p-#{$name} {
57
+ padding: #{$value};
58
+ }
59
+
60
+ .pt-#{$name} {
61
+ padding-top: #{$value};
62
+ }
63
+
64
+ .pr-#{$name} {
65
+ padding-right: #{$value};
66
+ }
67
+
68
+ .pb-#{$name} {
69
+ padding-bottom: #{$value};
70
+ }
71
+
72
+ .pl-#{$name} {
73
+ padding-left: #{$value};
74
+ }
75
+
76
+ .px-#{$name} {
77
+ padding-left: #{$value};
78
+ padding-right: #{$value};
79
+ }
80
+
81
+ .py-#{$name} {
82
+ padding-top: #{$value};
83
+ padding-bottom: #{$value};
84
+ }
85
+ }
86
+ }
87
+
@@ -0,0 +1,255 @@
1
+ // ============================================================================
2
+ // Text Utilities
3
+ // ============================================================================
4
+
5
+ @use '../tokens/tokens' as *;
6
+
7
+ // Text Alignment
8
+ .bl-text-left {
9
+ text-align: left;
10
+ }
11
+
12
+ .bl-text-center {
13
+ text-align: center;
14
+ }
15
+
16
+ .bl-text-right {
17
+ text-align: right;
18
+ }
19
+
20
+ .bl-text-justify {
21
+ text-align: justify;
22
+ }
23
+
24
+ // Text Size
25
+ .bl-text-xs {
26
+ font-size: var(--font-size-xs);
27
+ }
28
+
29
+ .bl-text-sm {
30
+ font-size: var(--font-size-sm);
31
+ }
32
+
33
+ .bl-text-base {
34
+ font-size: var(--font-size-base);
35
+ }
36
+
37
+ .bl-text-lg {
38
+ font-size: var(--font-size-lg);
39
+ }
40
+
41
+ .bl-text-xl {
42
+ font-size: var(--font-size-xl);
43
+ }
44
+
45
+ .bl-text-2xl {
46
+ font-size: var(--font-size-2xl);
47
+ }
48
+
49
+ .bl-text-3xl {
50
+ font-size: var(--font-size-3xl);
51
+ }
52
+
53
+ .bl-text-4xl {
54
+ font-size: var(--font-size-4xl);
55
+ }
56
+
57
+ .bl-text-5xl {
58
+ font-size: var(--font-size-5xl);
59
+ }
60
+
61
+ .bl-text-6xl {
62
+ font-size: var(--font-size-6xl);
63
+ }
64
+
65
+ // Font Weight
66
+ .bl-font-light {
67
+ font-weight: var(--font-weight-light);
68
+ }
69
+
70
+ .bl-font-normal {
71
+ font-weight: var(--font-weight-normal);
72
+ }
73
+
74
+ .bl-font-medium {
75
+ font-weight: var(--font-weight-medium);
76
+ }
77
+
78
+ .bl-font-semibold {
79
+ font-weight: var(--font-weight-semibold);
80
+ }
81
+
82
+ .bl-font-bold {
83
+ font-weight: var(--font-weight-bold);
84
+ }
85
+
86
+ .bl-font-extrabold {
87
+ font-weight: var(--font-weight-extrabold);
88
+ }
89
+
90
+ // Line Height
91
+ .bl-leading-none {
92
+ line-height: var(--line-height-none);
93
+ }
94
+
95
+ .bl-leading-tight {
96
+ line-height: var(--line-height-tight);
97
+ }
98
+
99
+ .bl-leading-snug {
100
+ line-height: var(--line-height-snug);
101
+ }
102
+
103
+ .bl-leading-base {
104
+ line-height: var(--line-height-base);
105
+ }
106
+
107
+ .bl-leading-relaxed {
108
+ line-height: var(--line-height-relaxed);
109
+ }
110
+
111
+ .bl-leading-loose {
112
+ line-height: var(--line-height-loose);
113
+ }
114
+
115
+ // Text Transform
116
+ .bl-uppercase {
117
+ text-transform: uppercase;
118
+ }
119
+
120
+ .bl-lowercase {
121
+ text-transform: lowercase;
122
+ }
123
+
124
+ .bl-capitalize {
125
+ text-transform: capitalize;
126
+ }
127
+
128
+ .bl-normal-case {
129
+ text-transform: none;
130
+ }
131
+
132
+ // Text Decoration
133
+ .bl-underline {
134
+ text-decoration: underline;
135
+ }
136
+
137
+ .bl-line-through {
138
+ text-decoration: line-through;
139
+ }
140
+
141
+ .bl-no-underline {
142
+ text-decoration: none;
143
+ }
144
+
145
+ // Letter Spacing
146
+ .bl-tracking-tighter {
147
+ letter-spacing: var(--letter-spacing-tighter);
148
+ }
149
+
150
+ .bl-tracking-tight {
151
+ letter-spacing: var(--letter-spacing-tight);
152
+ }
153
+
154
+ .bl-tracking-normal {
155
+ letter-spacing: var(--letter-spacing-normal);
156
+ }
157
+
158
+ .bl-tracking-wide {
159
+ letter-spacing: var(--letter-spacing-wide);
160
+ }
161
+
162
+ .bl-tracking-wider {
163
+ letter-spacing: var(--letter-spacing-wider);
164
+ }
165
+
166
+ .bl-tracking-widest {
167
+ letter-spacing: var(--letter-spacing-widest);
168
+ }
169
+
170
+ // Text Color
171
+ .bl-text-primary {
172
+ color: var(--color-primary);
173
+ }
174
+
175
+ .bl-text-secondary {
176
+ color: var(--color-secondary);
177
+ }
178
+
179
+ .bl-text-success {
180
+ color: var(--color-success);
181
+ }
182
+
183
+ .bl-text-warning {
184
+ color: var(--color-warning);
185
+ }
186
+
187
+ .bl-text-error {
188
+ color: var(--color-error);
189
+ }
190
+
191
+ .bl-text-info {
192
+ color: var(--color-info);
193
+ }
194
+
195
+ .bl-text-muted {
196
+ color: var(--color-text-muted);
197
+ }
198
+
199
+ .bl-text-light {
200
+ color: var(--color-text-light);
201
+ }
202
+
203
+ .bl-text-inverse {
204
+ color: var(--color-text-inverse);
205
+ }
206
+
207
+ // Font Family
208
+ .bl-font-sans {
209
+ font-family: var(--font-family-base);
210
+ }
211
+
212
+ .bl-font-mono {
213
+ font-family: var(--font-family-mono);
214
+ }
215
+
216
+ .bl-font-serif {
217
+ font-family: var(--font-family-serif);
218
+ }
219
+
220
+ // Text Overflow
221
+ .bl-truncate {
222
+ overflow: hidden;
223
+ text-overflow: ellipsis;
224
+ white-space: nowrap;
225
+ }
226
+
227
+ .bl-text-ellipsis {
228
+ text-overflow: ellipsis;
229
+ }
230
+
231
+ .bl-text-clip {
232
+ text-overflow: clip;
233
+ }
234
+
235
+ // White Space
236
+ .bl-whitespace-normal {
237
+ white-space: normal;
238
+ }
239
+
240
+ .bl-whitespace-nowrap {
241
+ white-space: nowrap;
242
+ }
243
+
244
+ .bl-whitespace-pre {
245
+ white-space: pre;
246
+ }
247
+
248
+ .bl-whitespace-pre-line {
249
+ white-space: pre-line;
250
+ }
251
+
252
+ .bl-whitespace-pre-wrap {
253
+ white-space: pre-wrap;
254
+ }
255
+
@@ -0,0 +1,74 @@
1
+ // ============================================================================
2
+ // Visibility Utilities
3
+ // ============================================================================
4
+
5
+ .bl-visible {
6
+ visibility: visible;
7
+ }
8
+
9
+ .bl-invisible {
10
+ visibility: hidden;
11
+ }
12
+
13
+ // Opacity
14
+ .bl-opacity-0 {
15
+ opacity: 0;
16
+ }
17
+
18
+ .bl-opacity-25 {
19
+ opacity: 0.25;
20
+ }
21
+
22
+ .bl-opacity-50 {
23
+ opacity: 0.5;
24
+ }
25
+
26
+ .bl-opacity-75 {
27
+ opacity: 0.75;
28
+ }
29
+
30
+ .bl-opacity-100 {
31
+ opacity: 1;
32
+ }
33
+
34
+ // Overflow
35
+ .bl-overflow-auto {
36
+ overflow: auto;
37
+ }
38
+
39
+ .bl-overflow-hidden {
40
+ overflow: hidden;
41
+ }
42
+
43
+ .bl-overflow-visible {
44
+ overflow: visible;
45
+ }
46
+
47
+ .bl-overflow-scroll {
48
+ overflow: scroll;
49
+ }
50
+
51
+ .bl-overflow-x-auto {
52
+ overflow-x: auto;
53
+ }
54
+
55
+ .bl-overflow-x-hidden {
56
+ overflow-x: hidden;
57
+ }
58
+
59
+ .bl-overflow-x-scroll {
60
+ overflow-x: scroll;
61
+ }
62
+
63
+ .bl-overflow-y-auto {
64
+ overflow-y: auto;
65
+ }
66
+
67
+ .bl-overflow-y-hidden {
68
+ overflow-y: hidden;
69
+ }
70
+
71
+ .bl-overflow-y-scroll {
72
+ overflow-y: scroll;
73
+ }
74
+