@fastwork/xosmoz-theme 0.48.0 → 0.49.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 CHANGED
@@ -72,9 +72,10 @@ Surface and layout colors that adapt between light and dark themes.
72
72
  | `--xz-color-fg-100` | Text on `bg-100` (white in light, black in dark) |
73
73
  | `--xz-color-soft-100` | Very subtle overlay (5% opacity of bg) |
74
74
  | `--xz-color-soft-200` | Subtle overlay (10% opacity of bg) |
75
- | `--xz-color-line-100` | Subtle borders |
76
- | `--xz-color-line-200` | Default borders |
77
- | `--xz-color-line-300` | Strong/emphasized borders |
75
+ | `--xz-color-line-50` | Subtle borders |
76
+ | `--xz-color-line-100` | Default borders |
77
+ | `--xz-color-line-200` | Strong/emphasized borders |
78
+ | `--xz-color-line-300` | Strongest borders |
78
79
 
79
80
  ### Semantic Colors
80
81
 
@@ -294,7 +295,7 @@ Override any CSS variable for a custom theme:
294
295
  --xz-color-surface-100: oklch(1.00 0 0);
295
296
  --xz-color-surface-200: oklch(0.98 0.005 260);
296
297
  --xz-color-text-100: oklch(0.20 0.006 285);
297
- --xz-color-line-100: oklch(0.95 0 1 / 0.95);
298
+ --xz-color-line-50: oklch(0.95 0 1 / 0.95);
298
299
  --xz-color-primary-bg-100: oklch(0.58 0.25 30);
299
300
  --xz-color-primary-fg-100: oklch(1 0 0 / 0.95);
300
301
  --xz-color-primary-text-100: oklch(0.58 0.25 30);
@@ -316,7 +317,7 @@ Then activate it:
316
317
  .card {
317
318
  background: var(--xz-color-surface-200);
318
319
  color: var(--xz-color-text-100);
319
- border: 1px solid var(--xz-color-line-100);
320
+ border: 1px solid var(--xz-color-line-50);
320
321
  border-radius: 0.75rem;
321
322
  box-shadow: var(--xz-box-shadow-200);
322
323
  }
@@ -368,7 +369,7 @@ Then activate it:
368
369
  .input {
369
370
  background: var(--xz-color-surface-100);
370
371
  color: var(--xz-color-text-100);
371
- border: 1px solid var(--xz-color-line-200);
372
+ border: 1px solid var(--xz-color-line-100);
372
373
  font: var(--xz-font-body1);
373
374
  }
374
375
  .input:focus {
package/dist/base.css CHANGED
@@ -124,19 +124,19 @@ body {
124
124
  --xz-font-heading4: 700 2rem/1.5 Google Sans, "Fastwork", "Noto Sans Thai", "Noto Sans", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
125
125
  --xz-font-heading5: 700 1.625rem/1.5 Google Sans, "Fastwork", "Noto Sans Thai", "Noto Sans", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
126
126
  --xz-font-heading6: 700 1.5rem/1.5 Google Sans, "Fastwork", "Noto Sans Thai", "Noto Sans", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
127
- --xz-font-title1: 700 1.25rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
128
- --xz-font-title2: 700 1.125rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
129
- --xz-font-title3: 700 1rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
130
- --xz-font-title4: 700 0.875rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
131
- --xz-font-subtitle1-bold: 700 0.875rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
132
- --xz-font-subtitle1-regular: 400 0.875rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
133
- --xz-font-subtitle2-bold: 700 0.75rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
134
- --xz-font-subtitle2-regular: 400 0.75rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
135
- --xz-font-subtitle3-bold: 700 0.625rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
136
- --xz-font-subtitle3-regular: 400 0.625rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
137
- --xz-font-body1: 400 0.875rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
138
- --xz-font-body2: 400 0.75rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
139
- --xz-font-body3: 400 0.625rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
140
- --xz-font-body4: 400 0.5rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
127
+ --xz-font-title1: 700 1.5rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
128
+ --xz-font-title2: 700 1.25rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
129
+ --xz-font-title3: 700 1.125rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
130
+ --xz-font-title4: 700 1rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
131
+ --xz-font-subtitle1-bold: 700 1rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
132
+ --xz-font-subtitle1-regular: 400 1rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
133
+ --xz-font-subtitle2-bold: 700 0.875rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
134
+ --xz-font-subtitle2-regular: 400 0.875rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
135
+ --xz-font-subtitle3-bold: 700 0.75rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
136
+ --xz-font-subtitle3-regular: 400 0.75rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
137
+ --xz-font-body1: 400 1rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
138
+ --xz-font-body2: 400 0.875rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
139
+ --xz-font-body3: 400 0.75rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
140
+ --xz-font-body4: 400 0.625rem/1.5 Google Sans, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
141
141
  }
142
142
  }
@@ -168,14 +168,15 @@ class XzColors {
168
168
  200: Color(0x122B313B),
169
169
  }),
170
170
  text: XzBaseScale({
171
- 100: Color(0xFF18181B),
172
- 200: Color(0xB318181B),
173
- 300: Color(0x9918181B),
171
+ 100: Color(0xFF161616),
172
+ 200: Color(0xB3161616),
173
+ 300: Color(0x99161616),
174
174
  }),
175
175
  line: XzBaseScale({
176
- 100: Color(0xF2E9EDF4),
177
- 200: Color(0xF2DADEE5),
178
- 300: Color(0xF2CACED4),
176
+ 50: Color(0xF7EBEFF5),
177
+ 100: Color(0xF7DADEE5),
178
+ 200: Color(0xF7CACED4),
179
+ 300: Color(0xF7BABEC4),
179
180
  }),
180
181
  primary: XzRoleColor(
181
182
  soft: {
@@ -356,14 +357,15 @@ class XzColors {
356
357
  200: Color(0x12F1F5FC),
357
358
  }),
358
359
  text: XzBaseScale({
359
- 100: Color(0xFFEEF2F9),
360
- 200: Color(0xA6EEF2F9),
361
- 300: Color(0x8CEEF2F9),
360
+ 100: Color(0xFFF2F2F2),
361
+ 200: Color(0xA6F2F2F2),
362
+ 300: Color(0x8CF2F2F2),
362
363
  }),
363
364
  line: XzBaseScale({
364
- 100: Color(0xF23E424D),
365
- 200: Color(0xF2484D58),
366
- 300: Color(0xF25E636F),
365
+ 50: Color(0xF23E424D),
366
+ 100: Color(0xF2484D58),
367
+ 200: Color(0xF25E636F),
368
+ 300: Color(0xF2757A87),
367
369
  }),
368
370
  primary: XzRoleColor(
369
371
  soft: {
Binary file
@@ -145,12 +145,12 @@
145
145
  "$value": {
146
146
  "colorSpace": "srgb",
147
147
  "components": [
148
- 0.933333,
149
148
  0.94902,
150
- 0.976471
149
+ 0.94902,
150
+ 0.94902
151
151
  ],
152
152
  "alpha": 1,
153
- "hex": "#EEF2F9"
153
+ "hex": "#F2F2F2"
154
154
  }
155
155
  },
156
156
  "200": {
@@ -158,12 +158,12 @@
158
158
  "$value": {
159
159
  "colorSpace": "srgb",
160
160
  "components": [
161
- 0.933333,
162
161
  0.94902,
163
- 0.976471
162
+ 0.94902,
163
+ 0.94902
164
164
  ],
165
165
  "alpha": 0.6509803921568628,
166
- "hex": "#EEF2F9A6"
166
+ "hex": "#F2F2F2A6"
167
167
  }
168
168
  },
169
169
  "300": {
@@ -171,17 +171,17 @@
171
171
  "$value": {
172
172
  "colorSpace": "srgb",
173
173
  "components": [
174
- 0.933333,
175
174
  0.94902,
176
- 0.976471
175
+ 0.94902,
176
+ 0.94902
177
177
  ],
178
178
  "alpha": 0.5490196078431373,
179
- "hex": "#EEF2F98C"
179
+ "hex": "#F2F2F28C"
180
180
  }
181
181
  }
182
182
  },
183
183
  "line": {
184
- "100": {
184
+ "50": {
185
185
  "$type": "color",
186
186
  "$value": {
187
187
  "colorSpace": "srgb",
@@ -194,7 +194,7 @@
194
194
  "hex": "#3E424DF2"
195
195
  }
196
196
  },
197
- "200": {
197
+ "100": {
198
198
  "$type": "color",
199
199
  "$value": {
200
200
  "colorSpace": "srgb",
@@ -207,7 +207,7 @@
207
207
  "hex": "#484D58F2"
208
208
  }
209
209
  },
210
- "300": {
210
+ "200": {
211
211
  "$type": "color",
212
212
  "$value": {
213
213
  "colorSpace": "srgb",
@@ -219,6 +219,19 @@
219
219
  "alpha": 0.9490196078431372,
220
220
  "hex": "#5E636FF2"
221
221
  }
222
+ },
223
+ "300": {
224
+ "$type": "color",
225
+ "$value": {
226
+ "colorSpace": "srgb",
227
+ "components": [
228
+ 0.458824,
229
+ 0.478431,
230
+ 0.529412
231
+ ],
232
+ "alpha": 0.9490196078431372,
233
+ "hex": "#757A87F2"
234
+ }
222
235
  }
223
236
  }
224
237
  },
@@ -145,12 +145,12 @@
145
145
  "$value": {
146
146
  "colorSpace": "srgb",
147
147
  "components": [
148
- 0.094118,
149
- 0.094118,
150
- 0.105882
148
+ 0.086275,
149
+ 0.086275,
150
+ 0.086275
151
151
  ],
152
152
  "alpha": 1,
153
- "hex": "#18181B"
153
+ "hex": "#161616"
154
154
  }
155
155
  },
156
156
  "200": {
@@ -158,12 +158,12 @@
158
158
  "$value": {
159
159
  "colorSpace": "srgb",
160
160
  "components": [
161
- 0.094118,
162
- 0.094118,
163
- 0.105882
161
+ 0.086275,
162
+ 0.086275,
163
+ 0.086275
164
164
  ],
165
165
  "alpha": 0.7019607843137254,
166
- "hex": "#18181BB3"
166
+ "hex": "#161616B3"
167
167
  }
168
168
  },
169
169
  "300": {
@@ -171,30 +171,30 @@
171
171
  "$value": {
172
172
  "colorSpace": "srgb",
173
173
  "components": [
174
- 0.094118,
175
- 0.094118,
176
- 0.105882
174
+ 0.086275,
175
+ 0.086275,
176
+ 0.086275
177
177
  ],
178
178
  "alpha": 0.6,
179
- "hex": "#18181B99"
179
+ "hex": "#16161699"
180
180
  }
181
181
  }
182
182
  },
183
183
  "line": {
184
- "100": {
184
+ "50": {
185
185
  "$type": "color",
186
186
  "$value": {
187
187
  "colorSpace": "srgb",
188
188
  "components": [
189
- 0.913725,
190
- 0.929412,
191
- 0.956863
189
+ 0.921569,
190
+ 0.937255,
191
+ 0.960784
192
192
  ],
193
- "alpha": 0.9490196078431372,
194
- "hex": "#E9EDF4F2"
193
+ "alpha": 0.9686274509803922,
194
+ "hex": "#EBEFF5F7"
195
195
  }
196
196
  },
197
- "200": {
197
+ "100": {
198
198
  "$type": "color",
199
199
  "$value": {
200
200
  "colorSpace": "srgb",
@@ -203,11 +203,11 @@
203
203
  0.870588,
204
204
  0.898039
205
205
  ],
206
- "alpha": 0.9490196078431372,
207
- "hex": "#DADEE5F2"
206
+ "alpha": 0.9686274509803922,
207
+ "hex": "#DADEE5F7"
208
208
  }
209
209
  },
210
- "300": {
210
+ "200": {
211
211
  "$type": "color",
212
212
  "$value": {
213
213
  "colorSpace": "srgb",
@@ -216,8 +216,21 @@
216
216
  0.807843,
217
217
  0.831373
218
218
  ],
219
- "alpha": 0.9490196078431372,
220
- "hex": "#CACED4F2"
219
+ "alpha": 0.9686274509803922,
220
+ "hex": "#CACED4F7"
221
+ }
222
+ },
223
+ "300": {
224
+ "$type": "color",
225
+ "$value": {
226
+ "colorSpace": "srgb",
227
+ "components": [
228
+ 0.729412,
229
+ 0.745098,
230
+ 0.768627
231
+ ],
232
+ "alpha": 0.9686274509803922,
233
+ "hex": "#BABEC4F7"
221
234
  }
222
235
  }
223
236
  }
package/dist/index.js CHANGED
@@ -107,7 +107,7 @@ var titles = {
107
107
  fontFamily: fontFamily.primary,
108
108
  fontSize: {
109
109
  desktop: fontSize[700],
110
- mobile: fontSize[600]
110
+ mobile: fontSize[700]
111
111
  },
112
112
  fontWeight: fontWeight[700],
113
113
  lineHeight: lineHeight["150pct"]
@@ -116,7 +116,7 @@ var titles = {
116
116
  fontFamily: fontFamily.primary,
117
117
  fontSize: {
118
118
  desktop: fontSize[600],
119
- mobile: fontSize[500]
119
+ mobile: fontSize[600]
120
120
  },
121
121
  fontWeight: fontWeight[700],
122
122
  lineHeight: lineHeight["150pct"]
@@ -125,7 +125,7 @@ var titles = {
125
125
  fontFamily: fontFamily.primary,
126
126
  fontSize: {
127
127
  desktop: fontSize[500],
128
- mobile: fontSize[400]
128
+ mobile: fontSize[500]
129
129
  },
130
130
  fontWeight: fontWeight[700],
131
131
  lineHeight: lineHeight["150pct"]
@@ -134,7 +134,7 @@ var titles = {
134
134
  fontFamily: fontFamily.primary,
135
135
  fontSize: {
136
136
  desktop: fontSize[400],
137
- mobile: fontSize[300]
137
+ mobile: fontSize[400]
138
138
  },
139
139
  fontWeight: fontWeight[700],
140
140
  lineHeight: lineHeight["150pct"]
@@ -145,7 +145,7 @@ var subtitles = {
145
145
  fontFamily: fontFamily.primary,
146
146
  fontSize: {
147
147
  desktop: fontSize[400],
148
- mobile: fontSize[300]
148
+ mobile: fontSize[400]
149
149
  },
150
150
  fontWeight: fontWeight[700],
151
151
  lineHeight: lineHeight["150pct"]
@@ -154,7 +154,7 @@ var subtitles = {
154
154
  fontFamily: fontFamily.primary,
155
155
  fontSize: {
156
156
  desktop: fontSize[400],
157
- mobile: fontSize[300]
157
+ mobile: fontSize[400]
158
158
  },
159
159
  fontWeight: fontWeight[400],
160
160
  lineHeight: lineHeight["150pct"]
@@ -163,7 +163,7 @@ var subtitles = {
163
163
  fontFamily: fontFamily.primary,
164
164
  fontSize: {
165
165
  desktop: fontSize[300],
166
- mobile: fontSize[200]
166
+ mobile: fontSize[300]
167
167
  },
168
168
  fontWeight: fontWeight[700],
169
169
  lineHeight: lineHeight["150pct"]
@@ -172,7 +172,7 @@ var subtitles = {
172
172
  fontFamily: fontFamily.primary,
173
173
  fontSize: {
174
174
  desktop: fontSize[300],
175
- mobile: fontSize[200]
175
+ mobile: fontSize[300]
176
176
  },
177
177
  fontWeight: fontWeight[400],
178
178
  lineHeight: lineHeight["150pct"]
@@ -181,7 +181,7 @@ var subtitles = {
181
181
  fontFamily: fontFamily.primary,
182
182
  fontSize: {
183
183
  desktop: fontSize[200],
184
- mobile: fontSize[100]
184
+ mobile: fontSize[200]
185
185
  },
186
186
  fontWeight: fontWeight[700],
187
187
  lineHeight: lineHeight["150pct"]
@@ -190,7 +190,7 @@ var subtitles = {
190
190
  fontFamily: fontFamily.primary,
191
191
  fontSize: {
192
192
  desktop: fontSize[200],
193
- mobile: fontSize[100]
193
+ mobile: fontSize[200]
194
194
  },
195
195
  fontWeight: fontWeight[400],
196
196
  lineHeight: lineHeight["150pct"]
@@ -201,7 +201,7 @@ var body = {
201
201
  fontFamily: fontFamily.primary,
202
202
  fontSize: {
203
203
  desktop: fontSize[400],
204
- mobile: fontSize[300]
204
+ mobile: fontSize[400]
205
205
  },
206
206
  fontWeight: fontWeight[400],
207
207
  lineHeight: lineHeight["150pct"]
@@ -210,7 +210,7 @@ var body = {
210
210
  fontFamily: fontFamily.primary,
211
211
  fontSize: {
212
212
  desktop: fontSize[300],
213
- mobile: fontSize[200]
213
+ mobile: fontSize[300]
214
214
  },
215
215
  fontWeight: fontWeight[400],
216
216
  lineHeight: lineHeight["150pct"]
@@ -219,7 +219,7 @@ var body = {
219
219
  fontFamily: fontFamily.primary,
220
220
  fontSize: {
221
221
  desktop: fontSize[200],
222
- mobile: fontSize[100]
222
+ mobile: fontSize[200]
223
223
  },
224
224
  fontWeight: fontWeight[400],
225
225
  lineHeight: lineHeight["150pct"]
@@ -228,7 +228,7 @@ var body = {
228
228
  fontFamily: fontFamily.primary,
229
229
  fontSize: {
230
230
  desktop: fontSize[100],
231
- mobile: fontSize[50]
231
+ mobile: fontSize[100]
232
232
  },
233
233
  fontWeight: fontWeight[400],
234
234
  lineHeight: lineHeight["150pct"]
@@ -311,14 +311,15 @@ var lightTheme = {
311
311
  200: `color-mix(in oklab, var(--xz-color-bg-100) 7%, transparent)`
312
312
  },
313
313
  text: {
314
- 100: "oklch(21% 0.006 285.885)",
314
+ 100: "oklch(0.2 0 0)",
315
315
  200: "color-mix(in oklab, var(--xz-color-text-100) 70%, transparent)",
316
316
  300: "color-mix(in oklab, var(--xz-color-text-100) 60%, transparent)"
317
317
  },
318
318
  line: {
319
- 100: "oklch(0.945 0.01 260 / 0.95)",
320
- 200: "oklch(0.90 0.01 260 / 0.95)",
321
- 300: "oklch(0.85 0.01 260 / 0.95)"
319
+ 50: "oklch(0.95 0.01 260 / 0.97)",
320
+ 100: "oklch(0.90 0.01 260 / 0.97)",
321
+ 200: "oklch(0.85 0.01 260 / 0.97)",
322
+ 300: "oklch(0.80 0.01 260 / 0.97)"
322
323
  },
323
324
  primary: {
324
325
  soft: {
@@ -630,14 +631,15 @@ var darkTheme = {
630
631
  100: "oklch(0 0 0)"
631
632
  },
632
633
  text: {
633
- 100: "oklch(0.96 0.01 260 / 1)",
634
+ 100: "oklch(0.96 0 0)",
634
635
  200: "color-mix(in oklab, var(--xz-color-text-100) 65%, transparent)",
635
636
  300: "color-mix(in oklab, var(--xz-color-text-100) 55%, transparent)"
636
637
  },
637
638
  line: {
638
- 100: "oklch(0.38 0.02 269 / 0.95)",
639
- 200: "oklch(0.42 0.02 269 / 0.95)",
640
- 300: "oklch(0.50 0.02 269 / 0.95)"
639
+ 50: "oklch(0.38 0.02 269 / 0.95)",
640
+ 100: "oklch(0.42 0.02 269 / 0.95)",
641
+ 200: "oklch(0.50 0.02 269 / 0.95)",
642
+ 300: "oklch(0.58 0.02 269 / 0.95)"
641
643
  },
642
644
  primary: {
643
645
  soft: {