@master/css-preset 2.0.0-rc.88 → 3.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.
- package/README.md +9 -3
- package/package.json +63 -62
- package/src/base.css +2 -22
- package/src/colors.css +419 -0
- package/src/container.css +29 -0
- package/src/default-manifest.json +1 -1
- package/src/default-native.css +16 -15
- package/src/index.css +2 -1
- package/src/media.css +31 -0
- package/src/theme.css +170 -623
- package/src/utilities.css +2094 -764
- package/LICENSE +0 -21
- package/src/variants.css +0 -77
package/src/default-native.css
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
@layer theme;
|
|
2
2
|
|
|
3
3
|
@layer base {
|
|
4
|
-
* {
|
|
5
|
-
text-rendering: geometricprecision;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
4
|
body {
|
|
9
5
|
-webkit-text-size-adjust: 100%;
|
|
10
6
|
-moz-text-size-adjust: 100%;
|
|
11
7
|
-ms-text-size-adjust: 100%;
|
|
12
8
|
text-size-adjust: 100%;
|
|
13
|
-
-moz-osx-font-smoothing: grayscale;
|
|
14
9
|
-webkit-font-smoothing: antialiased;
|
|
15
10
|
line-height: 1.2;
|
|
16
11
|
}
|
|
@@ -19,11 +14,6 @@
|
|
|
19
14
|
touch-action: manipulation;
|
|
20
15
|
}
|
|
21
16
|
|
|
22
|
-
[role="button"], summary, button, [type="button"] {
|
|
23
|
-
-webkit-user-select: none;
|
|
24
|
-
user-select: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
17
|
*, :before, :after {
|
|
28
18
|
box-sizing: border-box;
|
|
29
19
|
}
|
|
@@ -38,10 +28,6 @@
|
|
|
38
28
|
display: block;
|
|
39
29
|
}
|
|
40
30
|
|
|
41
|
-
html, body {
|
|
42
|
-
height: -moz-available;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
31
|
abbr[title] {
|
|
46
32
|
text-decoration: underline dotted;
|
|
47
33
|
}
|
|
@@ -176,4 +162,19 @@
|
|
|
176
162
|
}
|
|
177
163
|
}
|
|
178
164
|
|
|
179
|
-
@layer defaults, components, utilities;
|
|
165
|
+
@layer defaults, components, utilities;
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
@layer base {
|
|
169
|
+
:root {
|
|
170
|
+
color-scheme: light dark;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
[data-theme="light"], :host([data-theme="light"]) {
|
|
174
|
+
color-scheme: light;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
[data-theme="dark"], :host([data-theme="dark"]) {
|
|
178
|
+
color-scheme: dark;
|
|
179
|
+
}
|
|
180
|
+
}
|
package/src/index.css
CHANGED
package/src/media.css
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@custom-media --4xs (width >= 22.5rem);
|
|
2
|
+
@custom-media --3xs (width >= 30rem);
|
|
3
|
+
@custom-media --2xs (width >= 37.5rem);
|
|
4
|
+
@custom-media --xs (width >= 48rem);
|
|
5
|
+
@custom-media --sm (width >= 52.125rem);
|
|
6
|
+
@custom-media --md (width >= 64rem);
|
|
7
|
+
@custom-media --lg (width >= 80rem);
|
|
8
|
+
@custom-media --xl (width >= 90rem);
|
|
9
|
+
@custom-media --2xl (width >= 100rem);
|
|
10
|
+
@custom-media --3xl (width >= 120rem);
|
|
11
|
+
@custom-media --4xl (width >= 160rem);
|
|
12
|
+
|
|
13
|
+
/* Below a breakpoint: the complement of its query, so `x@max-md` and `y@md` never overlap and a redeclared `--md` moves both. */
|
|
14
|
+
@custom-media --max-4xs not (--4xs);
|
|
15
|
+
@custom-media --max-3xs not (--3xs);
|
|
16
|
+
@custom-media --max-2xs not (--2xs);
|
|
17
|
+
@custom-media --max-xs not (--xs);
|
|
18
|
+
@custom-media --max-sm not (--sm);
|
|
19
|
+
@custom-media --max-md not (--md);
|
|
20
|
+
@custom-media --max-lg not (--lg);
|
|
21
|
+
@custom-media --max-xl not (--xl);
|
|
22
|
+
@custom-media --max-2xl not (--2xl);
|
|
23
|
+
@custom-media --max-3xl not (--3xl);
|
|
24
|
+
@custom-media --max-4xl not (--4xl);
|
|
25
|
+
|
|
26
|
+
@custom-media --landscape (orientation: landscape);
|
|
27
|
+
@custom-media --portrait (orientation: portrait);
|
|
28
|
+
@custom-media --motion-safe (prefers-reduced-motion: no-preference);
|
|
29
|
+
@custom-media --motion-reduce (prefers-reduced-motion: reduce);
|
|
30
|
+
@custom-media --light (prefers-color-scheme: light);
|
|
31
|
+
@custom-media --dark (prefers-color-scheme: dark);
|