prewindcss 1.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.
Files changed (4) hide show
  1. package/README.md +702 -0
  2. package/package.json +21 -0
  3. package/prewind.css +2545 -0
  4. package/theme.css +102 -0
package/theme.css ADDED
@@ -0,0 +1,102 @@
1
+ /*
2
+ ----------------------------------------
3
+ Theme - Utility classes
4
+ ----------------------------------------
5
+ */
6
+
7
+ /* Fonts */
8
+ @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap");
9
+
10
+ :root {
11
+ /* Fonts */
12
+ --font-body: "Inter", system-ui, sans-serif;
13
+ --font-heading: "Inter", system-ui, sans-serif;
14
+ --font-normal: 400;
15
+ --font-bold: 700;
16
+
17
+ /* Brand Colors */
18
+ --brand-1: #0284c7; /* Sky blue */
19
+ --brand-1-light: #e0f2fe;
20
+ --brand-2: #0c4a6e; /* Blue */
21
+ --brand-2-light: #bae6fd;
22
+ --brand-3: #0f766e; /* Teal */
23
+ --brand-3-light: #99f6e4;
24
+ --brand-4: #a21caf; /* Fuchsia */
25
+ --brand-4-light: #f5d0fe;
26
+
27
+ /* Neutral Colors */
28
+ --black: #09090b;
29
+ --darker: #27272a;
30
+ --dark: #3f3f46;
31
+ --midtone: #71717a;
32
+ --light: #d4d4d8;
33
+ --lighter: #f4f4f5;
34
+ --white: #ffffff;
35
+
36
+ /* Semantic Colors */
37
+ --success: #16a34a; /* Green */
38
+ --success-light: #dcfce7;
39
+ --info: #2563eb; /* Blue */
40
+ --info-light: #dbeafe;
41
+ --warning: #ea580c; /* Orange */
42
+ --warning-light: #ffedd5;
43
+ --error: #b91c1c; /* Red */
44
+ --error-light: #fee2e2;
45
+ --link: #2563eb; /* Blue */
46
+ --highlight: #fef08a; /* Yellow */
47
+
48
+ /* Border & Outline Widths */
49
+ --border: 1px;
50
+ --border-sm: 0.5px;
51
+ --border-lg: 2px;
52
+
53
+ /* Border Radius */
54
+ --rounded: 0.25rem;
55
+ --rounded-sm: 0.125rem;
56
+ --rounded-lg: 0.5rem;
57
+
58
+ /* Shadow */
59
+ --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);
62
+
63
+ /* Width Constraints */
64
+ --max-w-text: 80ch;
65
+ --max-w-form: 40rem;
66
+
67
+ /* Form Fields */
68
+ --ui-field-padding: 0.8rem;
69
+ --ui-field-height: 2.5rem;
70
+ --ui-field-font-size: 0.9rem;
71
+ --ui-field-border: 1px solid var(--light);
72
+ --ui-field-border-radius: var(--rounded-sm);
73
+ --ui-field-focus-outline: 2px solid;
74
+ --ui-field-focus-color: var(--brand-1);
75
+ --ui-field-bg: var(--white);
76
+ --ui-field-bg-disabled: var(--lighter);
77
+ --ui-field-placeholder-color: var(--midtone);
78
+ --ui-field-value-color: var(--dark);
79
+ --ui-field-label-color: var(--midtone);
80
+ --ui-field-value-color-disabled: var(--light);
81
+ --ui-field-icon-width: 1rem;
82
+
83
+ /* Fluid Text and Space (use [NPX command] to update these values) */
84
+ --text-sm: clamp(0.7rem, 0.6761rem + 0.1195vw, 0.7956rem);
85
+ --text-base: clamp(0.875rem, 0.8125rem + 0.3125vw, 1.125rem);
86
+ --text-lg: clamp(1.094rem, 0.9695rem + 0.6212vw, 1.591rem);
87
+ --text-xl: clamp(1.367rem, 1.147rem + 1.103vw, 2.249rem);
88
+ --text-2xl: clamp(1.709rem, 1.341rem + 1.839vw, 3.181rem);
89
+ --text-3xl: clamp(2.136rem, 1.546rem + 2.951vw, 4.497rem);
90
+ --text-4xl: clamp(2.67rem, 1.748rem + 4.611vw, 6.359rem);
91
+
92
+ --space-3xs: clamp(0.2222rem, 0.2171rem + 0.02579vw, 0.2429rem);
93
+ --space-2xs: clamp(0.3333rem, 0.3155rem + 0.08938vw, 0.4048rem);
94
+ --space-xs: clamp(0.5rem, 0.4563rem + 0.2186vw, 0.6749rem);
95
+ --space-sm: clamp(0.75rem, 0.6562rem + 0.4688vw, 1.125rem);
96
+ --space-md: clamp(1.125rem, 0.9374rem + 0.938vw, 1.875rem);
97
+ --space-lg: clamp(1.688rem, 1.328rem + 1.798vw, 3.126rem);
98
+ --space-xl: clamp(2.531rem, 1.861rem + 3.35vw, 5.211rem);
99
+ --space-2xl: clamp(3.797rem, 2.574rem + 6.113vw, 8.688rem);
100
+ --space-3xl: clamp(5.695rem, 3.499rem + 10.98vw, 14.48rem);
101
+ --space-4xl: clamp(8.543rem, 4.643rem + 19.5vw, 24.14rem);
102
+ }