@ttoss/theme 1.4.36 → 1.4.38

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.
@@ -164,7 +164,7 @@ addIcon("warning", warningFilledIcon);
164
164
  addIcon("warning-alt", warningAltIcon);
165
165
 
166
166
  // src/themes/Bruttal/BruttalFonts.ts
167
- var BruttalFonts = ["https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"];
167
+ var BruttalFonts = ["https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css?family=Work+Sans:wght@0,400;0,700;1,400;1,700&display=swap", "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"];
168
168
 
169
169
  // src/helpers/geometricCalc.ts
170
170
  var SIZE_TYPE = "rem";
@@ -396,6 +396,7 @@ var BruttalTheme = {
396
396
  color: "text",
397
397
  fontFamily: "body",
398
398
  textDecorationLine: "underline",
399
+ lineHeight: "base",
399
400
  "&.quiet:not(:hover)": {
400
401
  textDecorationLine: "none"
401
402
  },
@@ -410,30 +411,25 @@ var BruttalTheme = {
410
411
  badges: {
411
412
  positive: {
412
413
  color: "onPositive",
413
- bg: "positive",
414
- borderRadius: "informative"
414
+ bg: "positive"
415
415
  },
416
416
  negative: {
417
417
  color: "onDanger",
418
- bg: "danger",
419
- borderRadius: "informative"
418
+ bg: "danger"
420
419
  },
421
420
  neutral: {
422
421
  color: "onSecondary",
423
422
  bg: "secondary",
424
- borderRadius: "informative",
425
423
  border: "muted",
426
424
  borderColor: "onMuted"
427
425
  },
428
426
  informative: {
429
427
  color: "onNotice",
430
- bg: "notice",
431
- borderRadius: "informative"
428
+ bg: "notice"
432
429
  },
433
430
  muted: {
434
431
  color: "onMuted",
435
- bg: "muted",
436
- borderRadius: "xs"
432
+ bg: "muted"
437
433
  }
438
434
  },
439
435
  buttons: {
@@ -520,6 +516,31 @@ var BruttalTheme = {
520
516
  border: "highlight",
521
517
  borderColor: "highlight"
522
518
  }
519
+ },
520
+ actionButton: {
521
+ default: {
522
+ backgroundColor: "secondary",
523
+ color: "onSecondary",
524
+ border: "default",
525
+ borderColor: "onSecondary",
526
+ transition: "all 0.2s",
527
+ ":is(:focus-within, :hover)": {
528
+ backgroundColor: "highlight",
529
+ borderColor: "highlight",
530
+ color: "onHighlight"
531
+ }
532
+ },
533
+ accent: {
534
+ backgroundColor: "accent",
535
+ color: "onAccent",
536
+ border: "none"
537
+ },
538
+ quiet: {
539
+ backgroundColor: "transparent",
540
+ color: "text",
541
+ border: "none",
542
+ borderColor: "transparent"
543
+ }
523
544
  }
524
545
  },
525
546
  cards: {
@@ -543,12 +564,16 @@ var BruttalTheme = {
543
564
  fontSize: "sm",
544
565
  marginLeft: "2xs"
545
566
  },
567
+ '&:has(input[type="checkbox"])': {
568
+ fontSize: "base",
569
+ gap: "md"
570
+ },
571
+ '& > div:has(input[type="checkbox"]) > svg': {
572
+ marginRight: 0
573
+ },
546
574
  '&:has(input[type="checkbox"]:disabled)': {
547
575
  color: "onMuted"
548
576
  },
549
- "&:has(+div>:is(input, select, textarea))": {
550
- marginBottom: "md"
551
- },
552
577
  '&:has(div > input[type="radio"])': {
553
578
  alignItems: "center"
554
579
  },
@@ -601,6 +626,8 @@ var BruttalTheme = {
601
626
  borderColor: "onMuted",
602
627
  borderRadius: "action",
603
628
  backgroundColor: "surface",
629
+ fontSize: "base",
630
+ lineHeight: "base",
604
631
  "::placeholder": {
605
632
  color: "onMuted"
606
633
  },
@@ -616,7 +643,7 @@ var BruttalTheme = {
616
643
  '&[aria-invalid="true"]': {
617
644
  borderColor: "danger"
618
645
  },
619
- '&[aria-invalid="true"]+span>iconify-icon': {
646
+ '&[aria-invalid="true"] ~ span:has(iconify-icon)': {
620
647
  color: "danger"
621
648
  }
622
649
  },
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-34FGL5GX.js";
2
+ import { BruttalTheme } from "./chunk-WAU2QT6N.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-34FGL5GX.js";
2
+ import { BruttalFonts, BruttalTheme } from "../../chunk-WAU2QT6N.js";
3
3
  export { BruttalFonts, BruttalTheme };
package/dist/index.js CHANGED
@@ -411,6 +411,7 @@ var BruttalTheme = {
411
411
  color: "text",
412
412
  fontFamily: "body",
413
413
  textDecorationLine: "underline",
414
+ lineHeight: "base",
414
415
  "&.quiet:not(:hover)": {
415
416
  textDecorationLine: "none"
416
417
  },
@@ -425,30 +426,25 @@ var BruttalTheme = {
425
426
  badges: {
426
427
  positive: {
427
428
  color: "onPositive",
428
- bg: "positive",
429
- borderRadius: "informative"
429
+ bg: "positive"
430
430
  },
431
431
  negative: {
432
432
  color: "onDanger",
433
- bg: "danger",
434
- borderRadius: "informative"
433
+ bg: "danger"
435
434
  },
436
435
  neutral: {
437
436
  color: "onSecondary",
438
437
  bg: "secondary",
439
- borderRadius: "informative",
440
438
  border: "muted",
441
439
  borderColor: "onMuted"
442
440
  },
443
441
  informative: {
444
442
  color: "onNotice",
445
- bg: "notice",
446
- borderRadius: "informative"
443
+ bg: "notice"
447
444
  },
448
445
  muted: {
449
446
  color: "onMuted",
450
- bg: "muted",
451
- borderRadius: "xs"
447
+ bg: "muted"
452
448
  }
453
449
  },
454
450
  buttons: {
@@ -535,6 +531,31 @@ var BruttalTheme = {
535
531
  border: "highlight",
536
532
  borderColor: "highlight"
537
533
  }
534
+ },
535
+ actionButton: {
536
+ default: {
537
+ backgroundColor: "secondary",
538
+ color: "onSecondary",
539
+ border: "default",
540
+ borderColor: "onSecondary",
541
+ transition: "all 0.2s",
542
+ ":is(:focus-within, :hover)": {
543
+ backgroundColor: "highlight",
544
+ borderColor: "highlight",
545
+ color: "onHighlight"
546
+ }
547
+ },
548
+ accent: {
549
+ backgroundColor: "accent",
550
+ color: "onAccent",
551
+ border: "none"
552
+ },
553
+ quiet: {
554
+ backgroundColor: "transparent",
555
+ color: "text",
556
+ border: "none",
557
+ borderColor: "transparent"
558
+ }
538
559
  }
539
560
  },
540
561
  cards: {
@@ -558,12 +579,16 @@ var BruttalTheme = {
558
579
  fontSize: "sm",
559
580
  marginLeft: "2xs"
560
581
  },
582
+ '&:has(input[type="checkbox"])': {
583
+ fontSize: "base",
584
+ gap: "md"
585
+ },
586
+ '& > div:has(input[type="checkbox"]) > svg': {
587
+ marginRight: 0
588
+ },
561
589
  '&:has(input[type="checkbox"]:disabled)': {
562
590
  color: "onMuted"
563
591
  },
564
- "&:has(+div>:is(input, select, textarea))": {
565
- marginBottom: "md"
566
- },
567
592
  '&:has(div > input[type="radio"])': {
568
593
  alignItems: "center"
569
594
  },
@@ -616,6 +641,8 @@ var BruttalTheme = {
616
641
  borderColor: "onMuted",
617
642
  borderRadius: "action",
618
643
  backgroundColor: "surface",
644
+ fontSize: "base",
645
+ lineHeight: "base",
619
646
  "::placeholder": {
620
647
  color: "onMuted"
621
648
  },
@@ -631,7 +658,7 @@ var BruttalTheme = {
631
658
  '&[aria-invalid="true"]': {
632
659
  borderColor: "danger"
633
660
  },
634
- '&[aria-invalid="true"]+span>iconify-icon': {
661
+ '&[aria-invalid="true"] ~ span:has(iconify-icon)': {
635
662
  color: "danger"
636
663
  }
637
664
  },
@@ -183,7 +183,7 @@ var subtractIcon = {
183
183
  (0, import_react.addIcon)("warning-alt", import_warning_alt.default);
184
184
 
185
185
  // src/themes/Bruttal/BruttalFonts.ts
186
- var BruttalFonts = ["https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"];
186
+ var BruttalFonts = ["https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css?family=Work+Sans:wght@0,400;0,700;1,400;1,700&display=swap", "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"];
187
187
 
188
188
  // src/helpers/geometricCalc.ts
189
189
  var SIZE_TYPE = "rem";
@@ -415,6 +415,7 @@ var BruttalTheme = {
415
415
  color: "text",
416
416
  fontFamily: "body",
417
417
  textDecorationLine: "underline",
418
+ lineHeight: "base",
418
419
  "&.quiet:not(:hover)": {
419
420
  textDecorationLine: "none"
420
421
  },
@@ -429,30 +430,25 @@ var BruttalTheme = {
429
430
  badges: {
430
431
  positive: {
431
432
  color: "onPositive",
432
- bg: "positive",
433
- borderRadius: "informative"
433
+ bg: "positive"
434
434
  },
435
435
  negative: {
436
436
  color: "onDanger",
437
- bg: "danger",
438
- borderRadius: "informative"
437
+ bg: "danger"
439
438
  },
440
439
  neutral: {
441
440
  color: "onSecondary",
442
441
  bg: "secondary",
443
- borderRadius: "informative",
444
442
  border: "muted",
445
443
  borderColor: "onMuted"
446
444
  },
447
445
  informative: {
448
446
  color: "onNotice",
449
- bg: "notice",
450
- borderRadius: "informative"
447
+ bg: "notice"
451
448
  },
452
449
  muted: {
453
450
  color: "onMuted",
454
- bg: "muted",
455
- borderRadius: "xs"
451
+ bg: "muted"
456
452
  }
457
453
  },
458
454
  buttons: {
@@ -539,6 +535,31 @@ var BruttalTheme = {
539
535
  border: "highlight",
540
536
  borderColor: "highlight"
541
537
  }
538
+ },
539
+ actionButton: {
540
+ default: {
541
+ backgroundColor: "secondary",
542
+ color: "onSecondary",
543
+ border: "default",
544
+ borderColor: "onSecondary",
545
+ transition: "all 0.2s",
546
+ ":is(:focus-within, :hover)": {
547
+ backgroundColor: "highlight",
548
+ borderColor: "highlight",
549
+ color: "onHighlight"
550
+ }
551
+ },
552
+ accent: {
553
+ backgroundColor: "accent",
554
+ color: "onAccent",
555
+ border: "none"
556
+ },
557
+ quiet: {
558
+ backgroundColor: "transparent",
559
+ color: "text",
560
+ border: "none",
561
+ borderColor: "transparent"
562
+ }
542
563
  }
543
564
  },
544
565
  cards: {
@@ -562,12 +583,16 @@ var BruttalTheme = {
562
583
  fontSize: "sm",
563
584
  marginLeft: "2xs"
564
585
  },
586
+ '&:has(input[type="checkbox"])': {
587
+ fontSize: "base",
588
+ gap: "md"
589
+ },
590
+ '& > div:has(input[type="checkbox"]) > svg': {
591
+ marginRight: 0
592
+ },
565
593
  '&:has(input[type="checkbox"]:disabled)': {
566
594
  color: "onMuted"
567
595
  },
568
- "&:has(+div>:is(input, select, textarea))": {
569
- marginBottom: "md"
570
- },
571
596
  '&:has(div > input[type="radio"])': {
572
597
  alignItems: "center"
573
598
  },
@@ -620,6 +645,8 @@ var BruttalTheme = {
620
645
  borderColor: "onMuted",
621
646
  borderRadius: "action",
622
647
  backgroundColor: "surface",
648
+ fontSize: "base",
649
+ lineHeight: "base",
623
650
  "::placeholder": {
624
651
  color: "onMuted"
625
652
  },
@@ -635,7 +662,7 @@ var BruttalTheme = {
635
662
  '&[aria-invalid="true"]': {
636
663
  borderColor: "danger"
637
664
  },
638
- '&[aria-invalid="true"]+span>iconify-icon': {
665
+ '&[aria-invalid="true"] ~ span:has(iconify-icon)': {
639
666
  color: "danger"
640
667
  }
641
668
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/theme",
3
- "version": "1.4.36",
3
+ "version": "1.4.38",
4
4
  "description": "Theme for packages.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -1,5 +1,5 @@
1
1
  export const BruttalFonts = [
2
2
  'https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900',
3
- 'https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900',
3
+ 'https://fonts.googleapis.com/css?family=Work+Sans:wght@0,400;0,700;1,400;1,700&display=swap',
4
4
  'https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap',
5
5
  ];
@@ -157,6 +157,7 @@ export const BruttalTheme: Theme = {
157
157
  color: 'text',
158
158
  fontFamily: 'body',
159
159
  textDecorationLine: 'underline',
160
+ lineHeight: 'base',
160
161
  '&.quiet:not(:hover)': {
161
162
  textDecorationLine: 'none',
162
163
  },
@@ -172,29 +173,24 @@ export const BruttalTheme: Theme = {
172
173
  positive: {
173
174
  color: 'onPositive',
174
175
  bg: 'positive',
175
- borderRadius: 'informative',
176
176
  },
177
177
  negative: {
178
178
  color: 'onDanger',
179
179
  bg: 'danger',
180
- borderRadius: 'informative',
181
180
  },
182
181
  neutral: {
183
182
  color: 'onSecondary',
184
183
  bg: 'secondary',
185
- borderRadius: 'informative',
186
184
  border: 'muted',
187
185
  borderColor: 'onMuted',
188
186
  },
189
187
  informative: {
190
188
  color: 'onNotice',
191
189
  bg: 'notice',
192
- borderRadius: 'informative',
193
190
  },
194
191
  muted: {
195
192
  color: 'onMuted',
196
193
  bg: 'muted',
197
- borderRadius: 'xs',
198
194
  },
199
195
  },
200
196
  buttons: {
@@ -282,6 +278,31 @@ export const BruttalTheme: Theme = {
282
278
  borderColor: 'highlight',
283
279
  },
284
280
  },
281
+ actionButton: {
282
+ default: {
283
+ backgroundColor: 'secondary',
284
+ color: 'onSecondary',
285
+ border: 'default',
286
+ borderColor: 'onSecondary',
287
+ transition: 'all 0.2s',
288
+ ':is(:focus-within, :hover)': {
289
+ backgroundColor: 'highlight',
290
+ borderColor: 'highlight',
291
+ color: 'onHighlight',
292
+ },
293
+ },
294
+ accent: {
295
+ backgroundColor: 'accent',
296
+ color: 'onAccent',
297
+ border: 'none',
298
+ },
299
+ quiet: {
300
+ backgroundColor: 'transparent',
301
+ color: 'text',
302
+ border: 'none',
303
+ borderColor: 'transparent',
304
+ },
305
+ },
285
306
  },
286
307
  cards: {
287
308
  primary: {
@@ -304,12 +325,16 @@ export const BruttalTheme: Theme = {
304
325
  fontSize: 'sm',
305
326
  marginLeft: '2xs',
306
327
  },
328
+ '&:has(input[type="checkbox"])': {
329
+ fontSize: 'base',
330
+ gap: 'md',
331
+ },
332
+ '& > div:has(input[type="checkbox"]) > svg': {
333
+ marginRight: 0,
334
+ },
307
335
  '&:has(input[type="checkbox"]:disabled)': {
308
336
  color: 'onMuted',
309
337
  },
310
- '&:has(+div>:is(input, select, textarea))': {
311
- marginBottom: 'md',
312
- },
313
338
  '&:has(div > input[type="radio"])': {
314
339
  alignItems: 'center',
315
340
  },
@@ -362,6 +387,8 @@ export const BruttalTheme: Theme = {
362
387
  borderColor: 'onMuted',
363
388
  borderRadius: 'action',
364
389
  backgroundColor: 'surface',
390
+ fontSize: 'base',
391
+ lineHeight: 'base',
365
392
  '::placeholder': {
366
393
  color: 'onMuted',
367
394
  },
@@ -377,7 +404,7 @@ export const BruttalTheme: Theme = {
377
404
  '&[aria-invalid="true"]': {
378
405
  borderColor: 'danger',
379
406
  },
380
- '&[aria-invalid="true"]+span>iconify-icon': {
407
+ '&[aria-invalid="true"] ~ span:has(iconify-icon)': {
381
408
  color: 'danger',
382
409
  },
383
410
  },