prewindcss 1.2.5 → 1.2.7

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 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.5");
31
+ @import url("https://unpkg.com/prewindcss@1.2.7");
32
32
 
33
33
  @layer styles {
34
34
  body {
@@ -212,6 +212,15 @@ Available colors: `brand-1`, `brand-1-light`, `brand-2`, `brand-2-light`, `brand
212
212
 
213
213
  Opacity values: `0`, `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `90`, `100`
214
214
 
215
+ **Repeat:**
216
+
217
+ | Class | Property |
218
+ | -------------- | ------------------------------ |
219
+ | `bg-repeat` | `background-repeat: repeat` |
220
+ | `bg-repeat-x` | `background-repeat: repeat-x` |
221
+ | `bg-repeat-y` | `background-repeat: repeat-y` |
222
+ | `bg-no-repeat` | `background-repeat: no-repeat` |
223
+
215
224
  ### Borders
216
225
 
217
226
  **Width:**
@@ -547,6 +556,13 @@ Same colors as backgrounds.
547
556
  | `text-right` | `text-align: right` |
548
557
  | `text-justify` | `text-align: justify` |
549
558
 
559
+ **Style:**
560
+
561
+ | Class | Property |
562
+ | ------------ | -------------------- |
563
+ | `italic` | `font-style: italic` |
564
+ | `not-italic` | `font-style: normal` |
565
+
550
566
  **Decoration:**
551
567
 
552
568
  | Class | Property |
@@ -557,10 +573,13 @@ Same colors as backgrounds.
557
573
 
558
574
  **Weight:**
559
575
 
560
- | Class | Property |
561
- | ------------- | --------------------------------- |
562
- | `font-normal` | `font-weight: var(--font-normal)` |
563
- | `font-bold` | `font-weight: var(--font-bold)` |
576
+ | Class | Property |
577
+ | --------------- | ----------------------------------- |
578
+ | `font-thin` | `font-weight: var(--font-thin)` |
579
+ | `font-normal` | `font-weight: var(--font-normal)` |
580
+ | `font-semibold` | `font-weight: var(--font-semibold)` |
581
+ | `font-bold` | `font-weight: var(--font-bold)` |
582
+ | `font-heavy` | `font-weight: var(--font-heavy)` |
564
583
 
565
584
  **Family:**
566
585
 
@@ -5,14 +5,17 @@
5
5
  ----------------------------------------
6
6
  */
7
7
 
8
- @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap");
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: 0 2px 3px -0.5px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
61
- --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prewindcss",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Lightweight, no-build Tailwind alternative",
5
5
  "type": "module",
6
6
  "main": "prewind.css",
package/prewind.css CHANGED
@@ -356,6 +356,20 @@
356
356
  background: rgb(from var(--highlight) r g b / var(--bg-opacity, 1));
357
357
  }
358
358
 
359
+ /* Background Repeat */
360
+ .bg-repeat {
361
+ background-repeat: repeat;
362
+ }
363
+ .bg-repeat-x {
364
+ background-repeat: repeat-x;
365
+ }
366
+ .bg-repeat-y {
367
+ background-repeat: repeat-y;
368
+ }
369
+ .bg-no-repeat {
370
+ background-repeat: no-repeat;
371
+ }
372
+
359
373
  /* Colors - Text */
360
374
  .text-brand-1 {
361
375
  color: var(--brand-1);
@@ -1783,6 +1797,14 @@
1783
1797
  text-align: justify;
1784
1798
  }
1785
1799
 
1800
+ /* Font Style */
1801
+ .italic {
1802
+ font-style: italic;
1803
+ }
1804
+ .not-italic {
1805
+ font-style: normal;
1806
+ }
1807
+
1786
1808
  /* Text Decoration */
1787
1809
  .underline {
1788
1810
  text-decoration-line: underline;
@@ -1862,12 +1884,21 @@
1862
1884
  }
1863
1885
 
1864
1886
  /* Font Weight */
1887
+ .font-thin {
1888
+ font-weight: var(--font-thin);
1889
+ }
1865
1890
  .font-normal {
1866
1891
  font-weight: var(--font-normal);
1867
1892
  }
1893
+ .font-semibold {
1894
+ font-weight: var(--font-semibold);
1895
+ }
1868
1896
  .font-bold {
1869
1897
  font-weight: var(--font-bold);
1870
1898
  }
1899
+ .font-heavy {
1900
+ font-weight: var(--font-heavy);
1901
+ }
1871
1902
 
1872
1903
  /* User Select */
1873
1904
  .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;800&display=swap");
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: 0 2px 3px -0.5px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
61
- --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
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;