css-tags 0.1.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.
- package/LICENSE +21 -0
- package/README.md +875 -0
- package/carousel.js +86 -0
- package/components/accessibility.css +51 -0
- package/components/actions.css +76 -0
- package/components/alert.css +122 -0
- package/components/application-patterns.css +122 -0
- package/components/badge.css +125 -0
- package/components/box-extra.css +220 -0
- package/components/box.css +75 -0
- package/components/card.css +130 -0
- package/components/carousel.css +76 -0
- package/components/chip.css +71 -0
- package/components/container.css +55 -0
- package/components/content-patterns.css +234 -0
- package/components/disclosure.css +581 -0
- package/components/divider.css +68 -0
- package/components/flex.css +59 -0
- package/components/form-patterns.css +273 -0
- package/components/form.css +130 -0
- package/components/grid.css +82 -0
- package/components/identity.css +59 -0
- package/components/img-container.css +141 -0
- package/components/img-container.js +75 -0
- package/components/list.css +69 -0
- package/components/loading.css +112 -0
- package/components/masonry.css +48 -0
- package/components/modal.css +73 -0
- package/components/navigation-patterns.css +245 -0
- package/components/navigation.css +200 -0
- package/components/popover.css +49 -0
- package/components/site-shell.css +180 -0
- package/components/status.css +110 -0
- package/components/table.css +98 -0
- package/components/tabs.css +103 -0
- package/components/tooltip.css +87 -0
- package/components/tooltips.css +73 -0
- package/components/view-transition.css +73 -0
- package/core/base.css +62 -0
- package/core/defaults.css +490 -0
- package/core/engine.css +32 -0
- package/core/mixins.css +376 -0
- package/core/palette-accent.css +8 -0
- package/core/palette-base.css +107 -0
- package/core/palette-extended.css +142 -0
- package/core/palette-feedback.css +62 -0
- package/core/palette.css +7 -0
- package/core/reset.css +270 -0
- package/core/text.css +171 -0
- package/core/theme.css +608 -0
- package/core/tokens.css +488 -0
- package/core/typography.css +327 -0
- package/index.css +66 -0
- package/layouts/layout-extra.css +204 -0
- package/layouts/layout-extras-helpers.css +19 -0
- package/layouts/layout.css +348 -0
- package/package.json +66 -0
- package/theme-generator.css +979 -0
- package/themes/example-brand.css +59 -0
- package/themes/theme-packs.css +31 -0
- package/types/css-tags.d.ts +482 -0
- package/utilities/utilities.css +564 -0
- package/view-transition.js +111 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composable content patterns.
|
|
3
|
+
*
|
|
4
|
+
* `slot` attributes are light-DOM region labels here. The matching data and
|
|
5
|
+
* class hooks are equivalent for renderers that consume or reserve `slot`.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
:is(content-header, [data-content-header], .content-header) {
|
|
9
|
+
display: grid;
|
|
10
|
+
min-inline-size: 0;
|
|
11
|
+
gap: var(--content-header-gap, var(--space-md, 1rem));
|
|
12
|
+
padding: var(--content-header-padding, 0);
|
|
13
|
+
color: var(--content-header-color, var(--text-default));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:is(content-header, [data-content-header], .content-header)
|
|
17
|
+
> :is([slot="body"], [data-content-header-body], .content-header__body) {
|
|
18
|
+
display: grid;
|
|
19
|
+
min-inline-size: 0;
|
|
20
|
+
gap: var(--content-header-body-gap, var(--space-xs, 0.5rem));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:is(content-header, [data-content-header], .content-header)
|
|
24
|
+
> :is([slot="eyebrow"], [data-content-header-eyebrow], .content-header__eyebrow) {
|
|
25
|
+
color: var(--content-header-eyebrow-color, var(--text-muted));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:is(content-header, [data-content-header], .content-header)
|
|
29
|
+
> :is([slot="media"], [data-content-header-media], .content-header__media) {
|
|
30
|
+
align-self: start;
|
|
31
|
+
inline-size: var(--content-header-media-size, auto);
|
|
32
|
+
max-inline-size: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:is(content-header, [data-content-header], .content-header)
|
|
36
|
+
> :is([slot="meta"], [data-content-header-meta], .content-header__meta),
|
|
37
|
+
:is(content-header, [data-content-header], .content-header)
|
|
38
|
+
> :is([slot="actions"], [data-content-header-actions], .content-header__actions) {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-wrap: wrap;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--content-header-region-gap, var(--space-sm, 0.75rem));
|
|
43
|
+
min-inline-size: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:is(content-header, [data-content-header], .content-header)
|
|
47
|
+
> :is([slot="meta"], [data-content-header-meta], .content-header__meta) {
|
|
48
|
+
color: var(--content-header-meta-color, var(--text-muted));
|
|
49
|
+
font-size: var(--content-header-meta-font-size, var(--font-size-sm, 0.875rem));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Baseline is stacked. Parent-aware layouts are progressive enhancements. */
|
|
53
|
+
@supports selector(:has(*)) {
|
|
54
|
+
:is(content-header, [data-content-header], .content-header):has(
|
|
55
|
+
> :is([slot="media"], [data-content-header-media], .content-header__media)
|
|
56
|
+
) {
|
|
57
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
58
|
+
align-items: start;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:is(content-header, [data-content-header], .content-header):has(
|
|
62
|
+
> :is([slot="media"], [data-content-header-media], .content-header__media)
|
|
63
|
+
)
|
|
64
|
+
> :not(:is([slot="media"], [data-content-header-media], .content-header__media)) {
|
|
65
|
+
grid-column: 2;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:is(content-header, [data-content-header], .content-header):has(
|
|
69
|
+
> :is([slot="actions"], [data-content-header-actions], .content-header__actions)
|
|
70
|
+
)
|
|
71
|
+
> :is([slot="actions"], [data-content-header-actions], .content-header__actions) {
|
|
72
|
+
margin-block-start: var(--content-header-actions-offset, var(--space-xs, 0.5rem));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:is(media-object, [data-media-object], .media-object) {
|
|
77
|
+
display: grid;
|
|
78
|
+
min-inline-size: 0;
|
|
79
|
+
gap: var(--media-object-gap, var(--space-md, 1rem));
|
|
80
|
+
align-items: var(--media-object-align, start);
|
|
81
|
+
padding: var(--media-object-padding, 0);
|
|
82
|
+
border: var(--media-object-border, 0);
|
|
83
|
+
border-radius: var(--media-object-radius, 0);
|
|
84
|
+
background: var(--media-object-background, transparent);
|
|
85
|
+
color: var(--media-object-color, var(--text-default));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:is(media-object, [data-media-object], .media-object)
|
|
89
|
+
> :is([slot="media"], [data-media-object-media], .media-object__media) {
|
|
90
|
+
inline-size: var(--media-object-media-size, auto);
|
|
91
|
+
max-inline-size: 100%;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:is(media-object, [data-media-object], .media-object)
|
|
95
|
+
> :is([slot="body"], [data-media-object-body], .media-object__body) {
|
|
96
|
+
display: grid;
|
|
97
|
+
min-inline-size: 0;
|
|
98
|
+
gap: var(--media-object-body-gap, var(--space-xs, 0.5rem));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:is(media-object, [data-media-object], .media-object)
|
|
102
|
+
> :is([slot="actions"], [data-media-object-actions], .media-object__actions) {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-wrap: wrap;
|
|
105
|
+
align-items: center;
|
|
106
|
+
gap: var(--media-object-actions-gap, var(--space-sm, 0.75rem));
|
|
107
|
+
min-inline-size: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@supports selector(:has(*)) {
|
|
111
|
+
:is(media-object, [data-media-object], .media-object):has(
|
|
112
|
+
> :is([slot="media"], [data-media-object-media], .media-object__media)
|
|
113
|
+
) {
|
|
114
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:is(media-object, [data-media-object], .media-object):has(
|
|
118
|
+
> :is([slot="actions"], [data-media-object-actions], .media-object__actions)
|
|
119
|
+
) {
|
|
120
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:is(media-object, [data-media-object], .media-object):has(
|
|
124
|
+
> :is([slot="media"], [data-media-object-media], .media-object__media)
|
|
125
|
+
):has(
|
|
126
|
+
> :is([slot="actions"], [data-media-object-actions], .media-object__actions)
|
|
127
|
+
) {
|
|
128
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@media (max-width: 30rem) {
|
|
133
|
+
@supports selector(:has(*)) {
|
|
134
|
+
:is(media-object, [data-media-object], .media-object):has(
|
|
135
|
+
> :is([slot="media"], [data-media-object-media], .media-object__media)
|
|
136
|
+
):has(
|
|
137
|
+
> :is([slot="actions"], [data-media-object-actions], .media-object__actions)
|
|
138
|
+
) {
|
|
139
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:is(media-object, [data-media-object], .media-object):has(
|
|
143
|
+
> :is([slot="media"], [data-media-object-media], .media-object__media)
|
|
144
|
+
)
|
|
145
|
+
> :is([slot="actions"], [data-media-object-actions], .media-object__actions) {
|
|
146
|
+
grid-column: 2;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:is(media-object, [data-media-object], .media-object):not(:has(
|
|
150
|
+
> :is([slot="media"], [data-media-object-media], .media-object__media)
|
|
151
|
+
)):has(
|
|
152
|
+
> :is([slot="actions"], [data-media-object-actions], .media-object__actions)
|
|
153
|
+
) {
|
|
154
|
+
grid-template-columns: minmax(0, 1fr);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:is(empty-state, [data-empty-state], .empty-state) {
|
|
160
|
+
display: grid;
|
|
161
|
+
justify-items: var(--empty-state-align, center);
|
|
162
|
+
inline-size: 100%;
|
|
163
|
+
max-inline-size: var(--empty-state-max-width, 40rem);
|
|
164
|
+
margin-inline: auto;
|
|
165
|
+
gap: var(--empty-state-gap, var(--space-md, 1rem));
|
|
166
|
+
padding: var(--empty-state-padding, var(--space-2xl, 3rem) var(--space-lg, 1.5rem));
|
|
167
|
+
border: var(--empty-state-border-width, var(--border-width, 1px))
|
|
168
|
+
var(--empty-state-border-style, dashed)
|
|
169
|
+
var(--empty-state-border-color, var(--outline-subtle));
|
|
170
|
+
border-radius: var(--empty-state-radius, var(--radius-lg, 0.75rem));
|
|
171
|
+
background: var(--empty-state-background, var(--surface-subtle));
|
|
172
|
+
color: var(--empty-state-color, var(--text-default));
|
|
173
|
+
text-align: var(--empty-state-text-align, center);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:is(empty-state, [data-empty-state], .empty-state)
|
|
177
|
+
> :is([slot="media"], [data-empty-state-media], .empty-state__media) {
|
|
178
|
+
display: grid;
|
|
179
|
+
place-items: center;
|
|
180
|
+
inline-size: var(--empty-state-media-size, 3rem);
|
|
181
|
+
min-block-size: var(--empty-state-media-size, 3rem);
|
|
182
|
+
color: var(--empty-state-media-color, var(--text-muted));
|
|
183
|
+
font-size: var(--empty-state-media-font-size, var(--font-size-2xl, 1.5rem));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:is(empty-state, [data-empty-state], .empty-state)
|
|
187
|
+
> :is([slot="body"], [data-empty-state-body], .empty-state__body) {
|
|
188
|
+
display: grid;
|
|
189
|
+
justify-items: inherit;
|
|
190
|
+
min-inline-size: 0;
|
|
191
|
+
gap: var(--empty-state-body-gap, var(--space-xs, 0.5rem));
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* Component regions own their compact rhythm; page/prose rhythm stays outside. */
|
|
195
|
+
:is(content-header, [data-content-header], .content-header)
|
|
196
|
+
> :is([slot="body"], [data-content-header-body], .content-header__body)
|
|
197
|
+
> :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl),
|
|
198
|
+
:is(media-object, [data-media-object], .media-object)
|
|
199
|
+
> :is([slot="body"], [data-media-object-body], .media-object__body)
|
|
200
|
+
> :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl),
|
|
201
|
+
:is(empty-state, [data-empty-state], .empty-state)
|
|
202
|
+
> :is([slot="body"], [data-empty-state-body], .empty-state__body)
|
|
203
|
+
> :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl) {
|
|
204
|
+
margin-block: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
:is(empty-state, [data-empty-state], .empty-state)
|
|
208
|
+
> :is([slot="actions"], [data-empty-state-actions], .empty-state__actions) {
|
|
209
|
+
display: flex;
|
|
210
|
+
flex-wrap: wrap;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
gap: var(--empty-state-actions-gap, var(--space-sm, 0.75rem));
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@supports selector(:has(*)) {
|
|
216
|
+
:is(empty-state, [data-empty-state], .empty-state):not(:has(
|
|
217
|
+
> :is([slot="media"], [data-empty-state-media], .empty-state__media)
|
|
218
|
+
)) {
|
|
219
|
+
--empty-state-padding: var(--empty-state-padding-without-media, var(--space-xl, 2rem) var(--space-lg, 1.5rem));
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
:is(empty-state, [data-empty-state], .empty-state):has(
|
|
223
|
+
> :is([slot="actions"], [data-empty-state-actions], .empty-state__actions)
|
|
224
|
+
) {
|
|
225
|
+
--empty-state-body-gap: var(--empty-state-body-gap-with-actions, var(--space-sm, 0.75rem));
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@media (forced-colors: active) {
|
|
230
|
+
:is(empty-state, [data-empty-state], .empty-state),
|
|
231
|
+
:is(media-object, [data-media-object], .media-object) {
|
|
232
|
+
border-color: CanvasText;
|
|
233
|
+
}
|
|
234
|
+
}
|