@ttoss/theme 1.4.36 → 1.4.37

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: {
@@ -543,12 +539,16 @@ var BruttalTheme = {
543
539
  fontSize: "sm",
544
540
  marginLeft: "2xs"
545
541
  },
542
+ '&:has(input[type="checkbox"])': {
543
+ fontSize: "base",
544
+ gap: "md"
545
+ },
546
+ '& > div:has(input[type="checkbox"]) > svg': {
547
+ marginRight: 0
548
+ },
546
549
  '&:has(input[type="checkbox"]:disabled)': {
547
550
  color: "onMuted"
548
551
  },
549
- "&:has(+div>:is(input, select, textarea))": {
550
- marginBottom: "md"
551
- },
552
552
  '&:has(div > input[type="radio"])': {
553
553
  alignItems: "center"
554
554
  },
@@ -601,6 +601,8 @@ var BruttalTheme = {
601
601
  borderColor: "onMuted",
602
602
  borderRadius: "action",
603
603
  backgroundColor: "surface",
604
+ fontSize: "base",
605
+ lineHeight: "base",
604
606
  "::placeholder": {
605
607
  color: "onMuted"
606
608
  },
@@ -616,7 +618,7 @@ var BruttalTheme = {
616
618
  '&[aria-invalid="true"]': {
617
619
  borderColor: "danger"
618
620
  },
619
- '&[aria-invalid="true"]+span>iconify-icon': {
621
+ '&[aria-invalid="true"] ~ span:has(iconify-icon)': {
620
622
  color: "danger"
621
623
  }
622
624
  },
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-22ME5GR5.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-22ME5GR5.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: {
@@ -558,12 +554,16 @@ var BruttalTheme = {
558
554
  fontSize: "sm",
559
555
  marginLeft: "2xs"
560
556
  },
557
+ '&:has(input[type="checkbox"])': {
558
+ fontSize: "base",
559
+ gap: "md"
560
+ },
561
+ '& > div:has(input[type="checkbox"]) > svg': {
562
+ marginRight: 0
563
+ },
561
564
  '&:has(input[type="checkbox"]:disabled)': {
562
565
  color: "onMuted"
563
566
  },
564
- "&:has(+div>:is(input, select, textarea))": {
565
- marginBottom: "md"
566
- },
567
567
  '&:has(div > input[type="radio"])': {
568
568
  alignItems: "center"
569
569
  },
@@ -616,6 +616,8 @@ var BruttalTheme = {
616
616
  borderColor: "onMuted",
617
617
  borderRadius: "action",
618
618
  backgroundColor: "surface",
619
+ fontSize: "base",
620
+ lineHeight: "base",
619
621
  "::placeholder": {
620
622
  color: "onMuted"
621
623
  },
@@ -631,7 +633,7 @@ var BruttalTheme = {
631
633
  '&[aria-invalid="true"]': {
632
634
  borderColor: "danger"
633
635
  },
634
- '&[aria-invalid="true"]+span>iconify-icon': {
636
+ '&[aria-invalid="true"] ~ span:has(iconify-icon)': {
635
637
  color: "danger"
636
638
  }
637
639
  },
@@ -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: {
@@ -562,12 +558,16 @@ var BruttalTheme = {
562
558
  fontSize: "sm",
563
559
  marginLeft: "2xs"
564
560
  },
561
+ '&:has(input[type="checkbox"])': {
562
+ fontSize: "base",
563
+ gap: "md"
564
+ },
565
+ '& > div:has(input[type="checkbox"]) > svg': {
566
+ marginRight: 0
567
+ },
565
568
  '&:has(input[type="checkbox"]:disabled)': {
566
569
  color: "onMuted"
567
570
  },
568
- "&:has(+div>:is(input, select, textarea))": {
569
- marginBottom: "md"
570
- },
571
571
  '&:has(div > input[type="radio"])': {
572
572
  alignItems: "center"
573
573
  },
@@ -620,6 +620,8 @@ var BruttalTheme = {
620
620
  borderColor: "onMuted",
621
621
  borderRadius: "action",
622
622
  backgroundColor: "surface",
623
+ fontSize: "base",
624
+ lineHeight: "base",
623
625
  "::placeholder": {
624
626
  color: "onMuted"
625
627
  },
@@ -635,7 +637,7 @@ var BruttalTheme = {
635
637
  '&[aria-invalid="true"]': {
636
638
  borderColor: "danger"
637
639
  },
638
- '&[aria-invalid="true"]+span>iconify-icon': {
640
+ '&[aria-invalid="true"] ~ span:has(iconify-icon)': {
639
641
  color: "danger"
640
642
  }
641
643
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/theme",
3
- "version": "1.4.36",
3
+ "version": "1.4.37",
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: {
@@ -304,12 +300,16 @@ export const BruttalTheme: Theme = {
304
300
  fontSize: 'sm',
305
301
  marginLeft: '2xs',
306
302
  },
303
+ '&:has(input[type="checkbox"])': {
304
+ fontSize: 'base',
305
+ gap: 'md',
306
+ },
307
+ '& > div:has(input[type="checkbox"]) > svg': {
308
+ marginRight: 0,
309
+ },
307
310
  '&:has(input[type="checkbox"]:disabled)': {
308
311
  color: 'onMuted',
309
312
  },
310
- '&:has(+div>:is(input, select, textarea))': {
311
- marginBottom: 'md',
312
- },
313
313
  '&:has(div > input[type="radio"])': {
314
314
  alignItems: 'center',
315
315
  },
@@ -362,6 +362,8 @@ export const BruttalTheme: Theme = {
362
362
  borderColor: 'onMuted',
363
363
  borderRadius: 'action',
364
364
  backgroundColor: 'surface',
365
+ fontSize: 'base',
366
+ lineHeight: 'base',
365
367
  '::placeholder': {
366
368
  color: 'onMuted',
367
369
  },
@@ -377,7 +379,7 @@ export const BruttalTheme: Theme = {
377
379
  '&[aria-invalid="true"]': {
378
380
  borderColor: 'danger',
379
381
  },
380
- '&[aria-invalid="true"]+span>iconify-icon': {
382
+ '&[aria-invalid="true"] ~ span:has(iconify-icon)': {
381
383
  color: 'danger',
382
384
  },
383
385
  },