prewindcss 1.2.4 → 1.2.6
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 +15 -5
- package/example-site/theme.css +8 -3
- package/package.json +1 -1
- package/prewind.css +17 -0
- package/theme.css +8 -3
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Create a `styles.css` file that sets up CSS layers, imports your theme and Prewi
|
|
|
28
28
|
@layer reset, styles, prewind;
|
|
29
29
|
|
|
30
30
|
@import url("theme.css");
|
|
31
|
-
@import url("https://unpkg.com/prewindcss@1.2.
|
|
31
|
+
@import url("https://unpkg.com/prewindcss@1.2.6");
|
|
32
32
|
|
|
33
33
|
@layer styles {
|
|
34
34
|
body {
|
|
@@ -547,6 +547,13 @@ Same colors as backgrounds.
|
|
|
547
547
|
| `text-right` | `text-align: right` |
|
|
548
548
|
| `text-justify` | `text-align: justify` |
|
|
549
549
|
|
|
550
|
+
**Style:**
|
|
551
|
+
|
|
552
|
+
| Class | Property |
|
|
553
|
+
| ------------ | -------------------- |
|
|
554
|
+
| `italic` | `font-style: italic` |
|
|
555
|
+
| `not-italic` | `font-style: normal` |
|
|
556
|
+
|
|
550
557
|
**Decoration:**
|
|
551
558
|
|
|
552
559
|
| Class | Property |
|
|
@@ -557,10 +564,13 @@ Same colors as backgrounds.
|
|
|
557
564
|
|
|
558
565
|
**Weight:**
|
|
559
566
|
|
|
560
|
-
| Class
|
|
561
|
-
|
|
|
562
|
-
| `font-
|
|
563
|
-
| `font-
|
|
567
|
+
| Class | Property |
|
|
568
|
+
| --------------- | ----------------------------------- |
|
|
569
|
+
| `font-thin` | `font-weight: var(--font-thin)` |
|
|
570
|
+
| `font-normal` | `font-weight: var(--font-normal)` |
|
|
571
|
+
| `font-semibold` | `font-weight: var(--font-semibold)` |
|
|
572
|
+
| `font-bold` | `font-weight: var(--font-bold)` |
|
|
573
|
+
| `font-heavy` | `font-weight: var(--font-heavy)` |
|
|
564
574
|
|
|
565
575
|
**Family:**
|
|
566
576
|
|
package/example-site/theme.css
CHANGED
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
----------------------------------------
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;
|
|
8
|
+
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600;700;900&display=swap");
|
|
9
9
|
|
|
10
10
|
:root {
|
|
11
11
|
/* Fonts */
|
|
12
12
|
--font-body: "Inter", system-ui, sans-serif;
|
|
13
13
|
--font-heading: "Inter", system-ui, sans-serif;
|
|
14
|
+
--font-thin: 200;
|
|
14
15
|
--font-normal: 400;
|
|
16
|
+
--font-semibold: 600;
|
|
15
17
|
--font-bold: 700;
|
|
18
|
+
--font-heavy: 900;
|
|
16
19
|
|
|
17
20
|
/* Brand Colors */
|
|
18
21
|
--brand-1: #0284c7; /* Sky blue */
|
|
@@ -57,8 +60,10 @@
|
|
|
57
60
|
|
|
58
61
|
/* Shadow */
|
|
59
62
|
--shadow: 0 4px 4px 1px rgb(0 0 0 / 0.15), 0 2px 4px -2px rgb(0 0 0 / 0.25);
|
|
60
|
-
--shadow-sm:
|
|
61
|
-
|
|
63
|
+
--shadow-sm:
|
|
64
|
+
0 2px 3px -0.5px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
65
|
+
--shadow-lg:
|
|
66
|
+
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
62
67
|
|
|
63
68
|
/* Container */
|
|
64
69
|
--container-max: 1200px;
|
package/package.json
CHANGED
package/prewind.css
CHANGED
|
@@ -1783,6 +1783,14 @@
|
|
|
1783
1783
|
text-align: justify;
|
|
1784
1784
|
}
|
|
1785
1785
|
|
|
1786
|
+
/* Font Style */
|
|
1787
|
+
.italic {
|
|
1788
|
+
font-style: italic;
|
|
1789
|
+
}
|
|
1790
|
+
.not-italic {
|
|
1791
|
+
font-style: normal;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1786
1794
|
/* Text Decoration */
|
|
1787
1795
|
.underline {
|
|
1788
1796
|
text-decoration-line: underline;
|
|
@@ -1862,12 +1870,21 @@
|
|
|
1862
1870
|
}
|
|
1863
1871
|
|
|
1864
1872
|
/* Font Weight */
|
|
1873
|
+
.font-thin {
|
|
1874
|
+
font-weight: var(--font-thin);
|
|
1875
|
+
}
|
|
1865
1876
|
.font-normal {
|
|
1866
1877
|
font-weight: var(--font-normal);
|
|
1867
1878
|
}
|
|
1879
|
+
.font-semibold {
|
|
1880
|
+
font-weight: var(--font-semibold);
|
|
1881
|
+
}
|
|
1868
1882
|
.font-bold {
|
|
1869
1883
|
font-weight: var(--font-bold);
|
|
1870
1884
|
}
|
|
1885
|
+
.font-heavy {
|
|
1886
|
+
font-weight: var(--font-heavy);
|
|
1887
|
+
}
|
|
1871
1888
|
|
|
1872
1889
|
/* User Select */
|
|
1873
1890
|
.select-none {
|
package/theme.css
CHANGED
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
----------------------------------------
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;
|
|
8
|
+
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600;700;900&display=swap");
|
|
9
9
|
|
|
10
10
|
:root {
|
|
11
11
|
/* Fonts */
|
|
12
12
|
--font-body: "Inter", system-ui, sans-serif;
|
|
13
13
|
--font-heading: "Inter", system-ui, sans-serif;
|
|
14
|
+
--font-thin: 200;
|
|
14
15
|
--font-normal: 400;
|
|
16
|
+
--font-semibold: 600;
|
|
15
17
|
--font-bold: 700;
|
|
18
|
+
--font-heavy: 900;
|
|
16
19
|
|
|
17
20
|
/* Brand Colors */
|
|
18
21
|
--brand-1: #0284c7; /* Sky blue */
|
|
@@ -57,8 +60,10 @@
|
|
|
57
60
|
|
|
58
61
|
/* Shadow */
|
|
59
62
|
--shadow: 0 4px 4px 1px rgb(0 0 0 / 0.15), 0 2px 4px -2px rgb(0 0 0 / 0.25);
|
|
60
|
-
--shadow-sm:
|
|
61
|
-
|
|
63
|
+
--shadow-sm:
|
|
64
|
+
0 2px 3px -0.5px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
65
|
+
--shadow-lg:
|
|
66
|
+
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
62
67
|
|
|
63
68
|
/* Container */
|
|
64
69
|
--container-max: 1200px;
|