fulldev-ui 0.1.64 → 0.2.10

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 (74) hide show
  1. package/README.md +1 -1
  2. package/package.json +5 -2
  3. package/src/components/_Children.astro +0 -7
  4. package/src/components/_Tag.astro +35 -14
  5. package/src/components/base/Badge.astro +21 -23
  6. package/src/components/base/Button.astro +22 -36
  7. package/src/components/base/Checkbox.astro +9 -6
  8. package/src/components/base/Icon.astro +23 -14
  9. package/src/components/base/Image.astro +47 -47
  10. package/src/components/base/Input.astro +18 -16
  11. package/src/components/base/Logo.astro +6 -4
  12. package/src/components/base/Radio.astro +8 -6
  13. package/src/components/base/Rating.astro +10 -7
  14. package/src/components/base/Select.astro +17 -13
  15. package/src/components/base/SelectOption.astro +5 -5
  16. package/src/components/base/Switch.astro +11 -12
  17. package/src/components/base/Textarea.astro +9 -7
  18. package/src/components/base/Video.astro +4 -4
  19. package/src/components/base/todo.md +1 -2
  20. package/src/components/{wrapper → segment}/Body.astro +13 -10
  21. package/src/components/segment/Card.astro +94 -0
  22. package/src/components/segment/Deck.astro +36 -0
  23. package/src/components/{wrapper → segment}/Footer.astro +2 -2
  24. package/src/components/segment/Form.astro +30 -0
  25. package/src/components/{wrapper → segment}/Header.astro +16 -34
  26. package/src/components/segment/Main.astro +28 -0
  27. package/src/components/segment/Nav.astro +30 -0
  28. package/src/components/{wrapper → segment}/Prose.astro +15 -15
  29. package/src/components/segment/Section.astro +66 -0
  30. package/src/components/{wrapper → segment}/Writeup.astro +8 -7
  31. package/src/components/segment/todo.md +8 -0
  32. package/src/components/structure/Bento.astro +35 -0
  33. package/src/components/structure/Carousel.astro +43 -0
  34. package/src/components/structure/Grid.astro +30 -0
  35. package/src/components/structure/Group.astro +28 -0
  36. package/src/components/structure/Masonry.astro +39 -0
  37. package/src/components/structure/Split.astro +41 -0
  38. package/src/components/structure/Spread.astro +48 -0
  39. package/src/components/structure/Stack.astro +90 -0
  40. package/src/components/structure/todo.md +5 -0
  41. package/src/components/typography/Heading.astro +37 -19
  42. package/src/components/typography/Label.astro +13 -14
  43. package/src/components/typography/Link.astro +15 -10
  44. package/src/components/typography/List.astro +16 -13
  45. package/src/components/typography/ListItem.astro +16 -11
  46. package/src/components/typography/Paragraph.astro +17 -20
  47. package/src/components/typography/Tagline.astro +17 -22
  48. package/src/components/typography/todo.md +1 -13
  49. package/src/css/colors.css +142 -275
  50. package/src/css/main.css +1 -2
  51. package/src/css/sizes.css +136 -198
  52. package/src/css/styles.css +15 -0
  53. package/src/css/utils.scss +16 -0
  54. package/src/index.ts +22 -15
  55. package/src/integration/integration.ts +39 -57
  56. package/src/layouts/Layout.astro +7 -3
  57. package/src/types/Structuremorphic.ts +18 -0
  58. package/src/components/typography/Links.astro +0 -15
  59. package/src/components/typography/_Typography.astro +0 -28
  60. package/src/components/utility/DecorativeBox.astro +0 -22
  61. package/src/components/wrapper/Card.astro +0 -144
  62. package/src/components/wrapper/Cards.astro +0 -15
  63. package/src/components/wrapper/Deck.astro +0 -133
  64. package/src/components/wrapper/Form.astro +0 -26
  65. package/src/components/wrapper/Group.astro +0 -26
  66. package/src/components/wrapper/Main.astro +0 -25
  67. package/src/components/wrapper/Nav.astro +0 -32
  68. package/src/components/wrapper/Section.astro +0 -110
  69. package/src/components/wrapper/Sections.astro +0 -15
  70. package/src/components/wrapper/_Wrapper.astro +0 -333
  71. package/src/components/wrapper/todo.md +0 -20
  72. package/src/css/border.css +0 -23
  73. package/src/css/font.css +0 -15
  74. package/src/css/reset.css +0 -388
@@ -1,136 +1,108 @@
1
1
  :root,
2
- .full-theme-light {
3
- --base-background: hsl(0, 0%, 100%);
4
- --base-hover: hsl(0, 0%, 97%);
5
- --base-border: hsl(0, 0%, 83%);
6
- --base-focus: hsl(0, 0%, 10%);
7
- --base-foreground: hsl(0, 0%, 4%);
2
+ .theme-light [data-theme='light'] {
3
+ --base-background: hsl(223, 54%, 98%);
4
+ --base-hover: hsl(223, 16%, 93%);
5
+ --base-border: hsl(223, 16%, 87%);
6
+ --base-focus: hsl(223, 16%, 9%);
7
+ --base-foreground: hsl(223, 10%, 3%);
8
+
9
+ --secondary-background: hsl(223, 20%, 90%);
10
+ --secondary-hover: hsl(223, 20%, 92%);
11
+ --secondary-foreground: var(--base-foreground);
8
12
 
9
- --raised-background: hsl(0, 0%, 97%);
10
- --raised-hover: var(--base-hover);
11
- --raised-border: var(--base-border);
12
- --raised-focus: var(--base-focus);
13
- --raised-foreground: var(--base-foreground);
13
+ --primary-background: hsl(223, 20%, 9%);
14
+ --primary-hover: hsl(223, 20%, 16%);
15
+ --primary-foreground: var(--base-background);
14
16
 
15
- --accent-background: var(--base-background);
16
- --accent-hover: var(--base-hover);
17
- --accent-border: var(--base-border);
18
- --accent-focus: var(--base-focus);
17
+ --outline-border: hsl(223, 16%, 85%);
18
+ --muted-foreground: hsl(223, 16%, 22%);
19
+ --raised-background: hsl(223, 38%, 96%);
19
20
  --accent-foreground: var(--primary-background);
20
21
 
21
- --muted-background: var(--base-background);
22
- --muted-hover: var(--base-hover);
23
- --muted-border: var(--base-border);
24
- --muted-focus: var(--base-focus);
25
- --muted-foreground: hsl(0, 0%, 25%);
26
-
27
- --ghost-background: transparent;
28
- --ghost-hover: var(--base-hover);
29
- --ghost-border: transparent;
30
- --ghost-focus: var(--base-focus);
31
- --ghost-foreground: var(--base-foreground);
32
-
33
- --outline-background: transparent;
34
- --outline-hover: var(--hover);
35
- --outline-border: hsl(0, 0%, 83%);
36
- --outline-focus: var(--base-focus);
37
- --outline-foreground: var(--base-foreground);
38
-
39
- --secondary-background: hsl(0, 0%, 94%);
40
- --secondary-hover: hsl(0, 0%, 92%);
41
- --secondary-border: transparent;
42
- --secondary-focus: var(--base-focus);
43
- --secondary-foreground: var(--base-foreground);
44
-
45
- --primary-background: hsl(0, 0%, 0%);
46
- --primary-hover: hsl(0, 0%, 16%);
47
- --primary-border: transparent;
48
- --primary-focus: var(--base-focus);
49
- --primary-foreground: hsl(0, 0%, 100%);
50
-
51
22
  color-scheme: light;
52
23
  }
53
24
 
54
- .full-theme-dark,
25
+ .theme-dark,
55
26
  .dark,
56
27
  [data-theme='dark'] {
57
- --base-background: #020202;
58
- --base-hover: #101010;
59
- --base-border: #333333;
60
- --base-focus: #fff;
61
- --base-foreground: #fff;
28
+ --base-background: hsl(223, 54%, 5%);
29
+ --base-hover: hsl(223, 20%, 10%);
30
+ --base-border: hsl(223, 16%, 20%);
31
+ --base-focus: hsl(223, 16%, 100%);
32
+ --base-foreground: hsl(223, 10%, 100%);
33
+
34
+ --secondary-background: hsl(223, 20%, 15%);
35
+ --secondary-hover: hsl(223, 20%, 13%);
36
+ --secondary-foreground: var(--base-foreground);
62
37
 
63
- --muted-background: var(--base-background);
64
- --muted-hover: var(--base-hover);
65
- --muted-border: var(--base-border);
66
- --muted-focus: var(--base-focus);
67
- --muted-foreground: #dcdcdc;
38
+ --primary-background: hsl(223, 16%, 100%);
39
+ --primary-hover: hsl(223, 16%, 90%);
40
+ --primary-foreground: var(--base-background);
68
41
 
69
- --raised-background: #101010;
70
- --raised-hover: var(--base-hover);
71
- --raised-border: var(--base-border);
72
- --raised-focus: var(--base-focus);
73
- --raised-foreground: var(--base-foreground);
42
+ --outline-border: hsl(223, 16%, 26%);
43
+ --muted-foreground: hsl(223, 16%, 86%);
44
+ --raised-background: hsl(223, 36%, 7%);
74
45
 
75
- --accent-background: var(--base-background);
76
- --accent-hover: var(--base-hover);
77
- --accent-border: var(--base-border);
78
- --accent-focus: var(--base-focus);
79
- --accent-foreground: var(--primary-background);
46
+ color-scheme: dark;
47
+ }
48
+ /* More neutral color theme. Used in < 0.2 */
49
+ /* :root,
50
+ .theme-light {
51
+ --base-background: hsl(0, 0%, 100%);
52
+ --base-hover: hsl(223, 16%, 97%);
53
+ --base-border: hsl(223, 10%, 87%);
54
+ --base-focus: hsl(223, 22%, 9%);
55
+ --base-foreground: hsl(223, 22%, 5%);
80
56
 
81
- --ghost-background: transparent;
82
- --ghost-hover: var(--base-hover);
83
- --ghost-border: transparent;
84
- --ghost-focus: var(--base-focus);
85
- --ghost-foreground: var(--base-foreground);
57
+ --secondary-background: hsl(223, 10%, 94%);
58
+ --secondary-hover: hsl(223, 10%, 92%);
59
+ --secondary-foreground: var(--base-foreground);
86
60
 
87
- --outline-background: transparent;
88
- --outline-hover: var(--hover);
89
- --outline-border: #333333;
90
- --outline-focus: var(--base-focus);
91
- --outline-foreground: var(--base-foreground);
61
+ --primary-background: hsl(223, 22%, 9%);
62
+ --primary-hover: hsl(223, 22%, 15%);
63
+ --primary-foreground: var(--base-background);
92
64
 
93
- --secondary-background: #1f1f1f;
94
- --secondary-hover: #191919;
95
- --secondary-border: transparent;
96
- --secondary-focus: var(--base-focus);
65
+ --outline-border: hsl(223, 10%, 85%);
66
+ --muted-foreground: hsl(223, 10%, 16%);
67
+ --raised-background: var(--base-hover);
68
+ --accent-foreground: var(--primary-background);
69
+
70
+ color-scheme: light;
71
+ } */
72
+ /* .theme-dark,
73
+ .dark,
74
+ [data-theme='dark'] {
75
+ --base-background: hsl(223, 22%, 5%);
76
+ --base-hover: hsl(223, 16%, 7%);
77
+ --base-border: hsl(223, 10%, 20%);
78
+ --base-focus: hsl(223, 10%, 100%);
79
+ --base-foreground: hsl(223, 10%, 100%);
80
+
81
+ --secondary-background: hsl(223, 10%, 13%);
82
+ --secondary-hover: hsl(223, 10%, 11%);
97
83
  --secondary-foreground: var(--base-foreground);
98
84
 
99
- --primary-background: #fff;
100
- --primary-hover: #dcdcdc;
101
- --primary-border: transparent;
102
- --primary-focus: var(--base-focus);
85
+ --primary-background: hsl(223, 10%, 100%);
86
+ --primary-hover: hsl(223, 10%, 90%);
103
87
  --primary-foreground: var(--base-background);
104
88
 
89
+ --outline-border: hsl(223, 10%, 26%);
90
+ --muted-foreground: hsl(223, 10%, 90%);
91
+ --raised-background: var(--base-hover);
92
+ --accent-foreground: var(--primary-background);
93
+
105
94
  color-scheme: dark;
106
- }
95
+ } */
107
96
 
108
97
  /* --------------------------- */
109
98
  /* Generate colors */
110
99
  /* --------------------------- */
111
100
 
112
- :root,
113
- :where([class*='full-theme-']),
114
- .full-variant-base,
115
- .full-variant-base
116
- *:not(
117
- .full-variant-base,
118
- .full-variant-base *,
119
- .full-variant-primary,
120
- .full-variant-primary *,
121
- .full-variant-secondary,
122
- .full-variant-secondary *,
123
- .full-variant-accent,
124
- .full-variant-accent *,
125
- .full-variant-muted,
126
- .full-variant-muted *,
127
- .full-variant-ghost,
128
- .full-variant-ghost *,
129
- .full-variant-outline,
130
- .full-variant-outline *,
131
- .full-variant-raised,
132
- .full-variant-raised *
133
- ) {
101
+ :where(:root),
102
+ :where([class*='theme-']),
103
+ .variant-base,
104
+ .variant-base
105
+ [class*='density-']:not(.variant-base [class*='variant-'] [class*='theme-']) {
134
106
  --background: var(--base-background);
135
107
  --hover: var(--base-hover);
136
108
  --border: var(--base-border);
@@ -138,191 +110,86 @@
138
110
  --foreground: var(--base-foreground);
139
111
  }
140
112
 
141
- .full-variant-primary,
142
- .full-variant-primary
143
- *:not(
144
- .full-variant-base,
145
- .full-variant-base *,
146
- .full-variant-primary,
147
- .full-variant-primary *,
148
- .full-variant-secondary,
149
- .full-variant-secondary *,
150
- .full-variant-accent,
151
- .full-variant-accent *,
152
- .full-variant-muted,
153
- .full-variant-muted *,
154
- .full-variant-ghost,
155
- .full-variant-ghost *,
156
- .full-variant-outline,
157
- .full-variant-outline *,
158
- .full-variant-raised,
159
- .full-variant-raised *
113
+ .variant-primary,
114
+ .variant-primary
115
+ [class*='density-']:not(
116
+ .variant-primary [class*='variant-'] [class*='theme-']
160
117
  ) {
161
- --background: var(--primary-background);
162
- --hover: var(--primary-hover);
163
- --border: var(--primary-border);
164
- --focus: var(--primary-focus);
165
- --foreground: var(--primary-foreground);
118
+ --background: var(--primary-background, var(--base-foreground));
119
+ --hover: var(--primary-hover, var(--base-hover));
120
+ --border: var(--primary-border, transparent);
121
+ --focus: var(--primary-focus, var(--base-focus));
122
+ --foreground: var(--primary-foreground, var(--base-background));
166
123
  }
167
124
 
168
- .full-variant-secondary,
169
- .full-variant-secondary
170
- *:not(
171
- .full-variant-base,
172
- .full-variant-base *,
173
- .full-variant-primary,
174
- .full-variant-primary *,
175
- .full-variant-secondary,
176
- .full-variant-secondary *,
177
- .full-variant-accent,
178
- .full-variant-accent *,
179
- .full-variant-muted,
180
- .full-variant-muted *,
181
- .full-variant-ghost,
182
- .full-variant-ghost *,
183
- .full-variant-outline,
184
- .full-variant-outline *,
185
- .full-variant-raised,
186
- .full-variant-raised *
125
+ .variant-secondary,
126
+ .variant-secondary
127
+ [class*='density-']:not(
128
+ .variant-secondary [class*='variant-'] [class*='theme-']
187
129
  ) {
188
- --background: var(--secondary-background);
189
- --hover: var(--secondary-hover);
190
- --border: var(--secondary-border);
191
- --focus: var(--secondary-focus);
192
- --foreground: var(--secondary-foreground);
130
+ --background: var(--secondary-background, var(--base-background));
131
+ --hover: var(--secondary-hover, var(--base-hover));
132
+ --border: var(--secondary-border, transparent);
133
+ --focus: var(--secondary-focus, var(--base-focus));
134
+ --foreground: var(--secondary-foreground, var(--base-foreground));
193
135
  }
194
136
 
195
- .full-variant-accent,
196
- .full-variant-accent
197
- *:not(
198
- .full-variant-base,
199
- .full-variant-base *,
200
- .full-variant-primary,
201
- .full-variant-primary *,
202
- .full-variant-secondary,
203
- .full-variant-secondary *,
204
- .full-variant-accent,
205
- .full-variant-accent *,
206
- .full-variant-muted,
207
- .full-variant-muted *,
208
- .full-variant-ghost,
209
- .full-variant-ghost *,
210
- .full-variant-outline,
211
- .full-variant-outline *,
212
- .full-variant-raised,
213
- .full-variant-raised *
137
+ .variant-accent,
138
+ .variant-accent
139
+ [class*='density-']:not(
140
+ .variant-accent [class*='variant-'] [class*='theme-']
214
141
  ) {
215
- --background: var(--accent-background);
216
- --hover: var(--accent-hover);
217
- --border: var(--accent-border);
218
- --focus: var(--accent-focus);
219
- --foreground: var(--accent-foreground);
142
+ --background: var(--accent-background, var(--base-background));
143
+ --hover: var(--accent-hover, var(--base-hover));
144
+ --border: var(--accent-border, var(--base-border));
145
+ --focus: var(--accent-focus, var(--base-focus));
146
+ --foreground: var(--accent-foreground, var(--base-foreground));
220
147
  }
221
148
 
222
- .full-variant-muted,
223
- .full-variant-muted
224
- *:not(
225
- .full-variant-base,
226
- .full-variant-base *,
227
- .full-variant-primary,
228
- .full-variant-primary *,
229
- .full-variant-secondary,
230
- .full-variant-secondary *,
231
- .full-variant-accent,
232
- .full-variant-accent *,
233
- .full-variant-muted,
234
- .full-variant-muted *,
235
- .full-variant-ghost,
236
- .full-variant-ghost *,
237
- .full-variant-outline,
238
- .full-variant-outline *,
239
- .full-variant-raised,
240
- .full-variant-raised *
149
+ .variant-muted,
150
+ .variant-muted
151
+ [class*='density-']:not(
152
+ .variant-muted [class*='variant-'] [class*='theme-']
241
153
  ) {
242
- --background: var(--muted-background);
243
- --hover: var(--muted-hover);
244
- --border: var(--muted-border);
245
- --focus: var(--muted-focus);
246
- --foreground: var(--muted-foreground);
154
+ --background: var(--muted-background, var(--base-background));
155
+ --hover: var(--muted-hover, var(--base-hover));
156
+ --border: var(--muted-border, var(--base-border));
157
+ --focus: var(--muted-focus, var(--base-focus));
158
+ --foreground: var(--muted-foreground, var(--base-foreground));
247
159
  }
248
160
 
249
- .full-variant-ghost,
250
- .full-variant-ghost
251
- *:not(
252
- .full-variant-base,
253
- .full-variant-base *,
254
- .full-variant-primary,
255
- .full-variant-primary *,
256
- .full-variant-secondary,
257
- .full-variant-secondary *,
258
- .full-variant-accent,
259
- .full-variant-accent *,
260
- .full-variant-muted,
261
- .full-variant-muted *,
262
- .full-variant-ghost,
263
- .full-variant-ghost *,
264
- .full-variant-outline,
265
- .full-variant-outline *,
266
- .full-variant-raised,
267
- .full-variant-raised *
161
+ .variant-ghost,
162
+ .variant-ghost
163
+ [class*='density-']:not(
164
+ .variant-ghost [class*='variant-'] [class*='theme-']
268
165
  ) {
269
- --background: var(--ghost-background);
270
- --hover: var(--ghost-hover);
271
- --border: var(--ghost-border);
272
- --focus: var(--ghost-focus);
273
- --foreground: var(--ghost-foreground);
166
+ --background: var(--ghost-background, transparent);
167
+ --hover: var(--ghost-hover, var(--base-hover));
168
+ --border: var(--ghost-border, transparent);
169
+ --focus: var(--ghost-focus, var(--base-focus));
170
+ --foreground: var(--ghost-foreground, var(--base-foreground));
274
171
  }
275
172
 
276
- .full-variant-outline,
277
- .full-variant-outline
278
- *:not(
279
- .full-variant-base,
280
- .full-variant-base *,
281
- .full-variant-primary,
282
- .full-variant-primary *,
283
- .full-variant-secondary,
284
- .full-variant-secondary *,
285
- .full-variant-accent,
286
- .full-variant-accent *,
287
- .full-variant-muted,
288
- .full-variant-muted *,
289
- .full-variant-ghost,
290
- .full-variant-ghost *,
291
- .full-variant-outline,
292
- .full-variant-outline *,
293
- .full-variant-raised,
294
- .full-variant-raised *
173
+ .variant-outline,
174
+ .variant-outline
175
+ [class*='density-']:not(
176
+ .variant-outline [class*='variant-'] [class*='theme-']
295
177
  ) {
296
- --background: var(--outline-background);
297
- --hover: var(--outline-hover);
298
- --border: var(--outline-border);
299
- --focus: var(--outline-focus);
300
- --foreground: var(--outline-foreground);
178
+ --background: var(--outline-background, transparent);
179
+ --hover: var(--outline-hover, var(--base-hover));
180
+ --border: var(--outline-border, var(--base-border));
181
+ --focus: var(--outline-focus, var(--base-focus));
182
+ --foreground: var(--outline-foreground, var(--base-foreground));
301
183
  }
302
184
 
303
- .full-variant-raised,
304
- .full-variant-raised
305
- *:not(
306
- .full-variant-base,
307
- .full-variant-base *,
308
- .full-variant-primary,
309
- .full-variant-primary *,
310
- .full-variant-secondary,
311
- .full-variant-secondary *,
312
- .full-variant-accent,
313
- .full-variant-accent *,
314
- .full-variant-muted,
315
- .full-variant-muted *,
316
- .full-variant-ghost,
317
- .full-variant-ghost *,
318
- .full-variant-outline,
319
- .full-variant-outline *,
320
- .full-variant-raised,
321
- .full-variant-raised *
185
+ .variant-raised,
186
+ .variant-raised
187
+ [class*='density-']:not(
188
+ .variant-raised [class*='variant-'] [class*='theme-']
322
189
  ) {
323
- --background: var(--raised-background);
324
- --hover: var(--raised-hover);
325
- --border: var(--raised-border);
326
- --focus: var(--raised-focus);
327
- --foreground: var(--raised-foreground);
190
+ --background: var(--raised-background, var(--base-background));
191
+ --hover: var(--raised-hover, var(--base-hover));
192
+ --border: var(--raised-border, var(--base-border));
193
+ --focus: var(--raised-focus, var(--base-focus));
194
+ --foreground: var(--raised-foreground, var(--base-foreground));
328
195
  }
package/src/css/main.css CHANGED
@@ -1,4 +1,3 @@
1
1
  @import './sizes.css';
2
2
  @import './colors.css';
3
- @import './border.css';
4
- @import './font.css';
3
+ @import './styles.css';