@ttoss/theme 1.4.4 → 1.4.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.
@@ -184,20 +184,22 @@ var BruttalTheme = {
184
184
  background: coreColors.white,
185
185
  text: coreColors.black,
186
186
  muted: coreColors.gray200,
187
- onMuted: coreColors.gray500,
187
+ onMuted: coreColors.gray600,
188
188
  mutedOutline: coreColors.gray300,
189
189
  danger: coreColors.red700,
190
190
  onDanger: coreColors.white,
191
191
  notice: coreColors.amber600,
192
+ onNotice: coreColors.white,
192
193
  positive: coreColors.teal600,
194
+ onPositive: coreColors.white,
193
195
  surface: coreColors.white,
194
196
  contentHeader: coreColors.gray200,
195
197
  onContentHeader: coreColors.black,
196
198
  outline: coreColors.gray500,
197
199
  primary: coreColors.main,
198
200
  onPrimary: coreColors.white,
199
- secondary: coreColors.gray500,
200
- onSecondary: coreColors.complimentary,
201
+ secondary: coreColors.gray100,
202
+ onSecondary: coreColors.black,
201
203
  highlight: coreColors.darkNeutral,
202
204
  onHighlight: coreColors.complimentary,
203
205
  accent: coreColors.accent,
@@ -218,9 +220,11 @@ var BruttalTheme = {
218
220
  caption: coreFonts.monospace
219
221
  },
220
222
  borders: {
221
- default: coreBorders.medium
223
+ default: coreBorders.medium,
224
+ muted: coreBorders.thin
222
225
  },
223
226
  radii: {
227
+ informative: coreRadii.xs,
224
228
  default: coreRadii.sm,
225
229
  action: coreRadii.sm
226
230
  },
@@ -240,12 +244,47 @@ var BruttalTheme = {
240
244
  * Components
241
245
  */
242
246
  badges: {
243
- primary: {
244
- color: "onPrimary",
245
- bg: "primary",
246
- fontSize: "sm",
247
- paddingX: "sm",
248
- borderRadius: "default"
247
+ positive: {
248
+ color: "onPositive",
249
+ bg: "positive",
250
+ fontFamily: "caption",
251
+ fontWeight: "normal",
252
+ fontSize: "xs",
253
+ paddingX: "xs",
254
+ paddingY: "2xs",
255
+ borderRadius: "informative"
256
+ },
257
+ negative: {
258
+ color: "onDanger",
259
+ bg: "danger",
260
+ fontFamily: "caption",
261
+ fontWeight: "normal",
262
+ fontSize: "xs",
263
+ paddingX: "xs",
264
+ paddingY: "2xs",
265
+ borderRadius: "informative"
266
+ },
267
+ neutral: {
268
+ color: "onSecondary",
269
+ bg: "secondary",
270
+ fontFamily: "caption",
271
+ fontSize: "xs",
272
+ fontWeight: "normal",
273
+ paddingX: "xs",
274
+ paddingY: "2xs",
275
+ borderRadius: "informative",
276
+ border: "muted",
277
+ borderColor: "onMuted"
278
+ },
279
+ informative: {
280
+ color: "onNotice",
281
+ bg: "notice",
282
+ fontFamily: "caption",
283
+ fontWeight: "normal",
284
+ fontSize: "xs",
285
+ paddingX: "xs",
286
+ paddingY: "2xs",
287
+ borderRadius: "informative"
249
288
  }
250
289
  },
251
290
  buttons: {
@@ -389,9 +428,20 @@ var BruttalTheme = {
389
428
  fontSize: 4,
390
429
  lineSpace: "3.5"
391
430
  },
392
- error: {
393
- '&[role="alert"]': {
394
- color: "danger"
431
+ help: {
432
+ fontFamily: "caption",
433
+ color: "text",
434
+ fontSize: "xs",
435
+ '&[aria-disabled="true"]': {
436
+ color: "onMuted"
437
+ },
438
+ negative: {
439
+ color: "danger",
440
+ fontFamily: "caption",
441
+ fontSize: "xs",
442
+ '&[aria-disabled="true"]': {
443
+ color: "onMuted"
444
+ }
395
445
  }
396
446
  },
397
447
  h1: {
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { BruttalTheme } from "./chunk-NZ55XKBO.js";
2
+ import { BruttalTheme } from "./chunk-VECK5LBY.js";
3
3
 
4
4
  // src/createTheme.ts
5
5
  import deepmerge from "deepmerge";
@@ -1,3 +1,3 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { BruttalFonts, BruttalTheme } from "../../chunk-NZ55XKBO.js";
2
+ import { BruttalFonts, BruttalTheme } from "../../chunk-VECK5LBY.js";
3
3
  export { BruttalFonts, BruttalTheme };
package/dist/index.js CHANGED
@@ -223,20 +223,22 @@ var BruttalTheme = {
223
223
  background: coreColors.white,
224
224
  text: coreColors.black,
225
225
  muted: coreColors.gray200,
226
- onMuted: coreColors.gray500,
226
+ onMuted: coreColors.gray600,
227
227
  mutedOutline: coreColors.gray300,
228
228
  danger: coreColors.red700,
229
229
  onDanger: coreColors.white,
230
230
  notice: coreColors.amber600,
231
+ onNotice: coreColors.white,
231
232
  positive: coreColors.teal600,
233
+ onPositive: coreColors.white,
232
234
  surface: coreColors.white,
233
235
  contentHeader: coreColors.gray200,
234
236
  onContentHeader: coreColors.black,
235
237
  outline: coreColors.gray500,
236
238
  primary: coreColors.main,
237
239
  onPrimary: coreColors.white,
238
- secondary: coreColors.gray500,
239
- onSecondary: coreColors.complimentary,
240
+ secondary: coreColors.gray100,
241
+ onSecondary: coreColors.black,
240
242
  highlight: coreColors.darkNeutral,
241
243
  onHighlight: coreColors.complimentary,
242
244
  accent: coreColors.accent,
@@ -257,9 +259,11 @@ var BruttalTheme = {
257
259
  caption: coreFonts.monospace
258
260
  },
259
261
  borders: {
260
- default: coreBorders.medium
262
+ default: coreBorders.medium,
263
+ muted: coreBorders.thin
261
264
  },
262
265
  radii: {
266
+ informative: coreRadii.xs,
263
267
  default: coreRadii.sm,
264
268
  action: coreRadii.sm
265
269
  },
@@ -279,12 +283,47 @@ var BruttalTheme = {
279
283
  * Components
280
284
  */
281
285
  badges: {
282
- primary: {
283
- color: "onPrimary",
284
- bg: "primary",
285
- fontSize: "sm",
286
- paddingX: "sm",
287
- borderRadius: "default"
286
+ positive: {
287
+ color: "onPositive",
288
+ bg: "positive",
289
+ fontFamily: "caption",
290
+ fontWeight: "normal",
291
+ fontSize: "xs",
292
+ paddingX: "xs",
293
+ paddingY: "2xs",
294
+ borderRadius: "informative"
295
+ },
296
+ negative: {
297
+ color: "onDanger",
298
+ bg: "danger",
299
+ fontFamily: "caption",
300
+ fontWeight: "normal",
301
+ fontSize: "xs",
302
+ paddingX: "xs",
303
+ paddingY: "2xs",
304
+ borderRadius: "informative"
305
+ },
306
+ neutral: {
307
+ color: "onSecondary",
308
+ bg: "secondary",
309
+ fontFamily: "caption",
310
+ fontSize: "xs",
311
+ fontWeight: "normal",
312
+ paddingX: "xs",
313
+ paddingY: "2xs",
314
+ borderRadius: "informative",
315
+ border: "muted",
316
+ borderColor: "onMuted"
317
+ },
318
+ informative: {
319
+ color: "onNotice",
320
+ bg: "notice",
321
+ fontFamily: "caption",
322
+ fontWeight: "normal",
323
+ fontSize: "xs",
324
+ paddingX: "xs",
325
+ paddingY: "2xs",
326
+ borderRadius: "informative"
288
327
  }
289
328
  },
290
329
  buttons: {
@@ -428,9 +467,20 @@ var BruttalTheme = {
428
467
  fontSize: 4,
429
468
  lineSpace: "3.5"
430
469
  },
431
- error: {
432
- '&[role="alert"]': {
433
- color: "danger"
470
+ help: {
471
+ fontFamily: "caption",
472
+ color: "text",
473
+ fontSize: "xs",
474
+ '&[aria-disabled="true"]': {
475
+ color: "onMuted"
476
+ },
477
+ negative: {
478
+ color: "danger",
479
+ fontFamily: "caption",
480
+ fontSize: "xs",
481
+ '&[aria-disabled="true"]': {
482
+ color: "onMuted"
483
+ }
434
484
  }
435
485
  },
436
486
  h1: {
@@ -227,20 +227,22 @@ var BruttalTheme = {
227
227
  background: coreColors.white,
228
228
  text: coreColors.black,
229
229
  muted: coreColors.gray200,
230
- onMuted: coreColors.gray500,
230
+ onMuted: coreColors.gray600,
231
231
  mutedOutline: coreColors.gray300,
232
232
  danger: coreColors.red700,
233
233
  onDanger: coreColors.white,
234
234
  notice: coreColors.amber600,
235
+ onNotice: coreColors.white,
235
236
  positive: coreColors.teal600,
237
+ onPositive: coreColors.white,
236
238
  surface: coreColors.white,
237
239
  contentHeader: coreColors.gray200,
238
240
  onContentHeader: coreColors.black,
239
241
  outline: coreColors.gray500,
240
242
  primary: coreColors.main,
241
243
  onPrimary: coreColors.white,
242
- secondary: coreColors.gray500,
243
- onSecondary: coreColors.complimentary,
244
+ secondary: coreColors.gray100,
245
+ onSecondary: coreColors.black,
244
246
  highlight: coreColors.darkNeutral,
245
247
  onHighlight: coreColors.complimentary,
246
248
  accent: coreColors.accent,
@@ -261,9 +263,11 @@ var BruttalTheme = {
261
263
  caption: coreFonts.monospace
262
264
  },
263
265
  borders: {
264
- default: coreBorders.medium
266
+ default: coreBorders.medium,
267
+ muted: coreBorders.thin
265
268
  },
266
269
  radii: {
270
+ informative: coreRadii.xs,
267
271
  default: coreRadii.sm,
268
272
  action: coreRadii.sm
269
273
  },
@@ -283,12 +287,47 @@ var BruttalTheme = {
283
287
  * Components
284
288
  */
285
289
  badges: {
286
- primary: {
287
- color: "onPrimary",
288
- bg: "primary",
289
- fontSize: "sm",
290
- paddingX: "sm",
291
- borderRadius: "default"
290
+ positive: {
291
+ color: "onPositive",
292
+ bg: "positive",
293
+ fontFamily: "caption",
294
+ fontWeight: "normal",
295
+ fontSize: "xs",
296
+ paddingX: "xs",
297
+ paddingY: "2xs",
298
+ borderRadius: "informative"
299
+ },
300
+ negative: {
301
+ color: "onDanger",
302
+ bg: "danger",
303
+ fontFamily: "caption",
304
+ fontWeight: "normal",
305
+ fontSize: "xs",
306
+ paddingX: "xs",
307
+ paddingY: "2xs",
308
+ borderRadius: "informative"
309
+ },
310
+ neutral: {
311
+ color: "onSecondary",
312
+ bg: "secondary",
313
+ fontFamily: "caption",
314
+ fontSize: "xs",
315
+ fontWeight: "normal",
316
+ paddingX: "xs",
317
+ paddingY: "2xs",
318
+ borderRadius: "informative",
319
+ border: "muted",
320
+ borderColor: "onMuted"
321
+ },
322
+ informative: {
323
+ color: "onNotice",
324
+ bg: "notice",
325
+ fontFamily: "caption",
326
+ fontWeight: "normal",
327
+ fontSize: "xs",
328
+ paddingX: "xs",
329
+ paddingY: "2xs",
330
+ borderRadius: "informative"
292
331
  }
293
332
  },
294
333
  buttons: {
@@ -432,9 +471,20 @@ var BruttalTheme = {
432
471
  fontSize: 4,
433
472
  lineSpace: "3.5"
434
473
  },
435
- error: {
436
- '&[role="alert"]': {
437
- color: "danger"
474
+ help: {
475
+ fontFamily: "caption",
476
+ color: "text",
477
+ fontSize: "xs",
478
+ '&[aria-disabled="true"]': {
479
+ color: "onMuted"
480
+ },
481
+ negative: {
482
+ color: "danger",
483
+ fontFamily: "caption",
484
+ fontSize: "xs",
485
+ '&[aria-disabled="true"]': {
486
+ color: "onMuted"
487
+ }
438
488
  }
439
489
  },
440
490
  h1: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/theme",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "Theme for packages.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -53,5 +53,5 @@
53
53
  ]
54
54
  }
55
55
  },
56
- "gitHead": "f26363085030df7edfb2bcbf44aefed304d2b328"
56
+ "gitHead": "ce34db105b7f475a90660d77b194d6ea33b71960"
57
57
  }
@@ -73,20 +73,22 @@ export const BruttalTheme: Theme = {
73
73
  background: coreColors.white,
74
74
  text: coreColors.black,
75
75
  muted: coreColors.gray200,
76
- onMuted: coreColors.gray500,
76
+ onMuted: coreColors.gray600,
77
77
  mutedOutline: coreColors.gray300,
78
78
  danger: coreColors.red700,
79
79
  onDanger: coreColors.white,
80
80
  notice: coreColors.amber600,
81
+ onNotice: coreColors.white,
81
82
  positive: coreColors.teal600,
83
+ onPositive: coreColors.white,
82
84
  surface: coreColors.white,
83
85
  contentHeader: coreColors.gray200,
84
86
  onContentHeader: coreColors.black,
85
87
  outline: coreColors.gray500,
86
88
  primary: coreColors.main,
87
89
  onPrimary: coreColors.white,
88
- secondary: coreColors.gray500,
89
- onSecondary: coreColors.complimentary,
90
+ secondary: coreColors.gray100,
91
+ onSecondary: coreColors.black,
90
92
  highlight: coreColors.darkNeutral,
91
93
  onHighlight: coreColors.complimentary,
92
94
  accent: coreColors.accent,
@@ -108,8 +110,10 @@ export const BruttalTheme: Theme = {
108
110
  },
109
111
  borders: {
110
112
  default: coreBorders.medium,
113
+ muted: coreBorders.thin,
111
114
  },
112
115
  radii: {
116
+ informative: coreRadii.xs,
113
117
  default: coreRadii.sm,
114
118
  action: coreRadii.sm,
115
119
  },
@@ -129,12 +133,47 @@ export const BruttalTheme: Theme = {
129
133
  * Components
130
134
  */
131
135
  badges: {
132
- primary: {
133
- color: 'onPrimary',
134
- bg: 'primary',
135
- fontSize: 'sm',
136
- paddingX: 'sm',
137
- borderRadius: 'default',
136
+ positive: {
137
+ color: 'onPositive',
138
+ bg: 'positive',
139
+ fontFamily: 'caption',
140
+ fontWeight: 'normal',
141
+ fontSize: 'xs',
142
+ paddingX: 'xs',
143
+ paddingY: '2xs',
144
+ borderRadius: 'informative',
145
+ },
146
+ negative: {
147
+ color: 'onDanger',
148
+ bg: 'danger',
149
+ fontFamily: 'caption',
150
+ fontWeight: 'normal',
151
+ fontSize: 'xs',
152
+ paddingX: 'xs',
153
+ paddingY: '2xs',
154
+ borderRadius: 'informative',
155
+ },
156
+ neutral: {
157
+ color: 'onSecondary',
158
+ bg: 'secondary',
159
+ fontFamily: 'caption',
160
+ fontSize: 'xs',
161
+ fontWeight: 'normal',
162
+ paddingX: 'xs',
163
+ paddingY: '2xs',
164
+ borderRadius: 'informative',
165
+ border: 'muted',
166
+ borderColor: 'onMuted',
167
+ },
168
+ informative: {
169
+ color: 'onNotice',
170
+ bg: 'notice',
171
+ fontFamily: 'caption',
172
+ fontWeight: 'normal',
173
+ fontSize: 'xs',
174
+ paddingX: 'xs',
175
+ paddingY: '2xs',
176
+ borderRadius: 'informative',
138
177
  },
139
178
  },
140
179
  buttons: {
@@ -278,9 +317,20 @@ export const BruttalTheme: Theme = {
278
317
  fontSize: 4,
279
318
  lineSpace: '3.5',
280
319
  },
281
- error: {
282
- '&[role="alert"]': {
320
+ help: {
321
+ fontFamily: 'caption',
322
+ color: 'text',
323
+ fontSize: 'xs',
324
+ '&[aria-disabled="true"]': {
325
+ color: 'onMuted',
326
+ },
327
+ negative: {
283
328
  color: 'danger',
329
+ fontFamily: 'caption',
330
+ fontSize: 'xs',
331
+ '&[aria-disabled="true"]': {
332
+ color: 'onMuted',
333
+ },
284
334
  },
285
335
  },
286
336
  h1: {