@openkfw/design-tokens 0.5.5 → 0.5.7
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/demo/dist/css/style.min.css +1 -1
- package/demo/scripts/build-custom-media.js +38 -0
- package/demo/scripts/postcss.color-to-filter.js +66 -0
- package/demo/scripts/postcss.svg-load-plugin.js +96 -0
- package/demo/src/style.css +126 -84
- package/output/css/kfw-design-tokens.light.css +27 -26
- package/output/figma/kfw-design-tokens.light.json +8 -4
- package/output/js/{kfw-design-tokens.light.d.ts → kfw-design-tokens.d.ts} +23 -4
- package/output/js/kfw-design-tokens.light.js +31 -30
- package/output/json/{kfw-design-tokens.light.json → kfw-design-tokens.json} +87 -30
- package/output/penpot/kfw-design-tokens.light.json +8 -4
- package/output/scss/kfw-design-tokens.light.scss +27 -26
- package/output/web_thirdparty_16px/css/kfw-design-tokens.light.css +27 -26
- package/output/web_thirdparty_16px/js/kfw-design-tokens.light.d.ts +1 -1
- package/output/web_thirdparty_16px/js/kfw-design-tokens.light.js +31 -30
- package/output/web_thirdparty_16px/scss/kfw-design-tokens.light.scss +27 -26
- package/package.json +6 -6
- package/tokens/gen-tokens.dark.json5 +34 -12
- package/tokens/tokens.json +24 -23
package/demo/src/style.css
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
font-size: 80%;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
:
|
|
65
|
+
:where(sub, sup) {
|
|
66
66
|
position: relative;
|
|
67
67
|
line-height: 0;
|
|
68
68
|
vertical-align: baseline;
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
top: -0.5em;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
:
|
|
80
|
+
:where(address, blockquote, dl, ol, p, pre, table, ul) {
|
|
81
81
|
margin-block: 0 var(--kfw-fontspace);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
:
|
|
84
|
+
:where(address, blockquote, dl, ol, p, pre, table, ul):last-child {
|
|
85
85
|
margin-block-end: 0;
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
color: var(--kfw-color-state-danger);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
:
|
|
230
|
+
:where(h1, h2, h3, h4, h5, h6, .hl--1, .hl--2, .hl--3, .hl--4, .hl--5, .hl--6) {
|
|
231
231
|
font-weight: var(--kfw-fontweight-bold);
|
|
232
232
|
line-height: var(--kfw-lineheight-heading);
|
|
233
233
|
margin-block-start: 0;
|
|
@@ -305,6 +305,7 @@
|
|
|
305
305
|
display: inline-block;
|
|
306
306
|
flex-shrink: 0;
|
|
307
307
|
vertical-align: top;
|
|
308
|
+
pointer-events: none;
|
|
308
309
|
min-width: 1.6rem;
|
|
309
310
|
min-height: 1.6rem;
|
|
310
311
|
filter: color-to-filter(var(--kfw-color-text));
|
|
@@ -348,7 +349,7 @@
|
|
|
348
349
|
box-shadow: 0 0 0 var(--kfw-borderwidth) var(--borderhover);
|
|
349
350
|
}
|
|
350
351
|
|
|
351
|
-
:
|
|
352
|
+
:where([type="checkbox"], [type="radio"], select.form-control):not(:disabled) {
|
|
352
353
|
cursor: pointer;
|
|
353
354
|
}
|
|
354
355
|
|
|
@@ -377,10 +378,15 @@
|
|
|
377
378
|
box-shadow: 0 0 0 var(--kfw-borderwidth) var(--borderhover);
|
|
378
379
|
}
|
|
379
380
|
|
|
380
|
-
:
|
|
381
|
+
:where(progress, [type="checkbox"], [type="radio"], [type="range"]) {
|
|
381
382
|
accent-color: var(--kfw-color-fn);
|
|
382
383
|
}
|
|
383
384
|
|
|
385
|
+
[type="color"] {
|
|
386
|
+
padding-inline: 0.2rem;
|
|
387
|
+
padding-block: 0;
|
|
388
|
+
}
|
|
389
|
+
|
|
384
390
|
textarea {
|
|
385
391
|
display: block;
|
|
386
392
|
resize: vertical;
|
|
@@ -392,8 +398,7 @@
|
|
|
392
398
|
border: 0;
|
|
393
399
|
}
|
|
394
400
|
|
|
395
|
-
[type="file"],
|
|
396
|
-
[type="range"] {
|
|
401
|
+
:where([type="file"], [type="range"]) {
|
|
397
402
|
padding: 0;
|
|
398
403
|
border: 0;
|
|
399
404
|
width: 100%;
|
|
@@ -403,9 +408,7 @@
|
|
|
403
408
|
margin-inline-end: var(--kfw-space-xsmall);
|
|
404
409
|
}
|
|
405
410
|
|
|
406
|
-
:where(
|
|
407
|
-
.form-text,
|
|
408
|
-
.invalid-feedback {
|
|
411
|
+
:where(.form-text, .invalid-feedback, .valid-feedback) {
|
|
409
412
|
display: block;
|
|
410
413
|
width: 100%;
|
|
411
414
|
margin-block-start: 0.8rem;
|
|
@@ -414,15 +417,23 @@
|
|
|
414
417
|
letter-spacing: var(--kfw-base-letterspacing-normal);
|
|
415
418
|
}
|
|
416
419
|
|
|
420
|
+
.valid-feedback {
|
|
421
|
+
color: var(--kfw-color-state-success);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.valid-feedback__icon {
|
|
425
|
+
filter: color-to-filter(var(--kfw-color-state-success));
|
|
426
|
+
}
|
|
427
|
+
|
|
417
428
|
.invalid-feedback {
|
|
418
429
|
color: var(--kfw-color-state-danger);
|
|
419
430
|
}
|
|
420
431
|
|
|
421
432
|
.invalid-feedback__icon {
|
|
422
|
-
filter: color-to-filter(var(--kfw-
|
|
433
|
+
filter: color-to-filter(var(--kfw-color-state-danger));
|
|
423
434
|
}
|
|
424
435
|
|
|
425
|
-
:
|
|
436
|
+
:where(label, .form-label) {
|
|
426
437
|
display: inline-block;
|
|
427
438
|
margin-block-end: 0.8rem;
|
|
428
439
|
font-weight: var(--kfw-fontweight-bold);
|
|
@@ -460,7 +471,7 @@
|
|
|
460
471
|
padding-block-start: 0.4rem;
|
|
461
472
|
}
|
|
462
473
|
|
|
463
|
-
.list-group-form :
|
|
474
|
+
.list-group-form :where([type="checkbox"], [type="radio"]) {
|
|
464
475
|
appearance: none;
|
|
465
476
|
width: var(--field-size);
|
|
466
477
|
height: var(--field-size);
|
|
@@ -476,7 +487,7 @@
|
|
|
476
487
|
background-color: var(--kfw-color-background);
|
|
477
488
|
}
|
|
478
489
|
|
|
479
|
-
.list-group-form :
|
|
490
|
+
.list-group-form :where([type="checkbox"], [type="radio"])[aria-invalid="true"] {
|
|
480
491
|
border-color: var(--kfw-color-state-danger);
|
|
481
492
|
border-width: var(--kfw-borderwidth-large);
|
|
482
493
|
color: var(--kfw-color-state-danger);
|
|
@@ -490,13 +501,13 @@
|
|
|
490
501
|
border-radius: var(--kfw-borderradius);
|
|
491
502
|
}
|
|
492
503
|
|
|
493
|
-
.list-group-form :
|
|
504
|
+
.list-group-form :where([type="checkbox"], [type="radio"]):disabled {
|
|
494
505
|
background-color: var(--kfw-base-color-gray-100);
|
|
495
506
|
color: var(--kfw-color-fn-inactive);
|
|
496
507
|
border-color: var(--kfw-color-fn-inactive);
|
|
497
508
|
}
|
|
498
509
|
|
|
499
|
-
.list-group-form :
|
|
510
|
+
.list-group-form :where([type="checkbox"], [type="radio"])::before {
|
|
500
511
|
content: none;
|
|
501
512
|
display: block;
|
|
502
513
|
position: absolute;
|
|
@@ -525,12 +536,12 @@
|
|
|
525
536
|
forced-color-adjust: none;
|
|
526
537
|
}
|
|
527
538
|
|
|
528
|
-
.list-group-form :
|
|
539
|
+
.list-group-form :where([type="checkbox"], [type="radio"]):checked::before {
|
|
529
540
|
content: "";
|
|
530
541
|
}
|
|
531
542
|
|
|
532
|
-
.list-group-form :
|
|
533
|
-
.list-group-form :
|
|
543
|
+
.list-group-form :where([type="radio"], [type="checkbox"]):hover:not(:disabled),
|
|
544
|
+
.list-group-form :where([type="radio"], [type="checkbox"]):focus:not(:disabled) {
|
|
534
545
|
border-width: var(--kfw-borderwidth-large);
|
|
535
546
|
}
|
|
536
547
|
|
|
@@ -562,31 +573,18 @@
|
|
|
562
573
|
}
|
|
563
574
|
}
|
|
564
575
|
|
|
565
|
-
[type="date"],
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
padding-right: 3.6rem;
|
|
576
|
+
:where([type="date"], [type="time"])::-webkit-calendar-picker-indicator {
|
|
577
|
+
background: transparent; /* rest native icon */
|
|
578
|
+
width: 1.8rem;
|
|
579
|
+
height: 1.8rem;
|
|
570
580
|
}
|
|
571
581
|
|
|
572
|
-
[type="date"]::-webkit-calendar-picker-indicator
|
|
573
|
-
|
|
574
|
-
[type="time"]::-webkit-inner-spin-button {
|
|
575
|
-
display: none;
|
|
582
|
+
[type="date"]::-webkit-calendar-picker-indicator {
|
|
583
|
+
content: var(--kfw-icon-calendar-fn);
|
|
576
584
|
}
|
|
577
585
|
|
|
578
|
-
[type="
|
|
579
|
-
|
|
580
|
-
background-repeat: no-repeat;
|
|
581
|
-
background-position: right 1rem center;
|
|
582
|
-
background-image: var(--kfw-icon-calendar-fn);
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
[type="time"] {
|
|
586
|
-
background-size: 1.8rem auto;
|
|
587
|
-
background-repeat: no-repeat;
|
|
588
|
-
background-position: right 1rem center;
|
|
589
|
-
background-image: var(--kfw-icon-time-fn);
|
|
586
|
+
[type="time"]::-webkit-calendar-picker-indicator {
|
|
587
|
+
content: var(--kfw-icon-time-fn);
|
|
590
588
|
}
|
|
591
589
|
|
|
592
590
|
:where(a:not([role="button"]), [role="link"]) {
|
|
@@ -600,38 +598,37 @@
|
|
|
600
598
|
vertical-align: top;
|
|
601
599
|
}
|
|
602
600
|
|
|
603
|
-
:where(a:not([role="button"]), [role="link"]):
|
|
601
|
+
:where(a:not([role="button"]), [role="link"]):where(:hover, :focus, :active) {
|
|
604
602
|
color: var(--link-color-hover);
|
|
605
603
|
text-decoration: underline;
|
|
606
604
|
}
|
|
607
605
|
|
|
608
606
|
:where(a:not([role="button"]), [role="link"]):has(.icon) {
|
|
607
|
+
--space-between: 0.5rem;
|
|
608
|
+
|
|
609
609
|
justify-content: flex-start;
|
|
610
610
|
align-items: center;
|
|
611
|
-
gap:
|
|
611
|
+
gap: var(--space-between);
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
:where(a, [role="link"], button, [type="button"]) .icon {
|
|
615
615
|
filter: color-to-filter(var(--kfw-color-fn));
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
:where(a, [role="link"], button, [type="button"]):
|
|
618
|
+
:where(a, [role="link"], button, [type="button"]):where(:hover, :focus) .icon {
|
|
619
619
|
filter: color-to-filter(var(--kfw-color-fn-active));
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
button,
|
|
623
|
-
[type="submit"],
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
[role="button"],
|
|
627
|
-
[type="file"]::file-selector-button {
|
|
628
|
-
border: var(--kfw-borderwidth) solid transparent;
|
|
622
|
+
[type="file"]::file-selector-button,
|
|
623
|
+
:where(button, [type="submit"], [type="reset"], [type="button"], [role="button"]) {
|
|
624
|
+
--space-between: 0.8rem;
|
|
625
|
+
|
|
629
626
|
font-family: var(--kfw-fontfamily);
|
|
630
627
|
font-size: var(--kfw-fontsize);
|
|
631
628
|
font-weight: var(--kfw-fontweight);
|
|
632
629
|
border-radius: var(--kfw-borderradius);
|
|
633
630
|
display: inline-flex;
|
|
634
|
-
gap:
|
|
631
|
+
gap: var(--space-between);
|
|
635
632
|
text-align: center;
|
|
636
633
|
text-decoration: none;
|
|
637
634
|
line-height: var(--kfw-lineheight);
|
|
@@ -643,6 +640,9 @@
|
|
|
643
640
|
white-space: nowrap;
|
|
644
641
|
cursor: pointer;
|
|
645
642
|
align-items: center;
|
|
643
|
+
border-width: var(--kfw-borderwidth);
|
|
644
|
+
border-style: solid;
|
|
645
|
+
border-color: transparent;
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
:where([type="submit"], .button--primary) {
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
border-color: var(--button-border-color);
|
|
659
659
|
}
|
|
660
660
|
|
|
661
|
-
:where([type="submit"], .button--primary):
|
|
661
|
+
:where([type="submit"], .button--primary):where(:hover, :focus) {
|
|
662
662
|
color: var(--button-color-hover);
|
|
663
663
|
background-color: var(--button-bg-hover);
|
|
664
664
|
border-color: var(--button-border-color-hover);
|
|
@@ -673,16 +673,16 @@
|
|
|
673
673
|
filter: color-to-filter(var(--kfw-color-fn));
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
-
.button--primary:
|
|
676
|
+
.button--primary:where(:hover, :focus) .icon {
|
|
677
677
|
filter: color-to-filter(var(--kfw-color-text-on-dark-bg));
|
|
678
678
|
}
|
|
679
679
|
|
|
680
|
-
.button--secondary:
|
|
680
|
+
.button--secondary:where(:hover, :focus) .icon {
|
|
681
681
|
filter: color-to-filter(var(--kfw-color-text-on-dark-bg));
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
[type="file"]::file-selector-button,
|
|
685
|
-
:
|
|
685
|
+
:where([type="reset"], .button--secondary) {
|
|
686
686
|
--button-border-color: var(--kfw-color-fn);
|
|
687
687
|
--button-bg: transparent;
|
|
688
688
|
--button-color: var(--kfw-color-fn);
|
|
@@ -695,8 +695,8 @@
|
|
|
695
695
|
border-color: var(--button-border-color);
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
[type="file"]::file-selector-button:
|
|
699
|
-
:
|
|
698
|
+
[type="file"]::file-selector-button:where(:hover, :focus),
|
|
699
|
+
:where([type="reset"], .button--secondary):where(:hover, :focus) {
|
|
700
700
|
color: var(--button-color-hover);
|
|
701
701
|
background-color: var(--button-bg-hover);
|
|
702
702
|
border-color: var(--button-border-color-hover);
|
|
@@ -715,6 +715,7 @@
|
|
|
715
715
|
--button-color: var(--kfw-color-fn);
|
|
716
716
|
--button-bg: transparent;
|
|
717
717
|
--button-color-hover: var(--kfw-color-fn-active);
|
|
718
|
+
--space-between: 0.5rem;
|
|
718
719
|
|
|
719
720
|
background-color: var(--button-bg);
|
|
720
721
|
color: var(--button-color);
|
|
@@ -723,7 +724,7 @@
|
|
|
723
724
|
text-decoration: none;
|
|
724
725
|
}
|
|
725
726
|
|
|
726
|
-
.button--tertiary:
|
|
727
|
+
.button--tertiary:where(:hover, :focus) {
|
|
727
728
|
color: var(--button-color-hover);
|
|
728
729
|
text-decoration: underline;
|
|
729
730
|
}
|
|
@@ -737,7 +738,7 @@
|
|
|
737
738
|
select[disabled],
|
|
738
739
|
textarea[disabled],
|
|
739
740
|
label[aria-disabled="true"],
|
|
740
|
-
:where(fieldset[disabled]) :
|
|
741
|
+
:where(fieldset[disabled]) :where(input:not([type="submit"], [type="button"], [type="reset"]), select, textarea) {
|
|
741
742
|
pointer-events: none;
|
|
742
743
|
}
|
|
743
744
|
|
|
@@ -774,7 +775,7 @@
|
|
|
774
775
|
border-radius: 1rem;
|
|
775
776
|
}
|
|
776
777
|
|
|
777
|
-
.searchfield__button:
|
|
778
|
+
.searchfield__button:where(:hover, :focus) {
|
|
778
779
|
outline: 2px solid var(--kfw-color-fn-active);
|
|
779
780
|
}
|
|
780
781
|
|
|
@@ -788,12 +789,16 @@
|
|
|
788
789
|
* File-Upload
|
|
789
790
|
*/
|
|
790
791
|
.file-upload {
|
|
792
|
+
display: grid;
|
|
793
|
+
row-gap: var(--kfw-space-medium);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.file-upload__inner {
|
|
791
797
|
display: flex;
|
|
792
798
|
flex-direction: column;
|
|
793
799
|
align-items: center;
|
|
794
800
|
padding: var(--kfw-space-small) var(--kfw-space-small) var(--kfw-space-medium);
|
|
795
801
|
background-color: var(--kfw-color-background-light-green);
|
|
796
|
-
margin-block-end: var(--kfw-space-medium);
|
|
797
802
|
}
|
|
798
803
|
|
|
799
804
|
.file-upload__title {
|
|
@@ -803,20 +808,12 @@
|
|
|
803
808
|
}
|
|
804
809
|
|
|
805
810
|
.file-upload__input {
|
|
806
|
-
width: auto;
|
|
807
|
-
max-width: 100%;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
.file-upload--with-native-input .file-upload__input {
|
|
811
811
|
display: none;
|
|
812
812
|
}
|
|
813
813
|
|
|
814
|
-
.file-upload
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
.file-upload--with-native-input:has(.file-upload__input--has-files) :is(button, [role="button"]) {
|
|
819
|
-
display: none;
|
|
814
|
+
.file-upload :where([type="file"], [type="range"]) {
|
|
815
|
+
width: auto;
|
|
816
|
+
max-width: 100%;
|
|
820
817
|
}
|
|
821
818
|
|
|
822
819
|
.file-upload__icon {
|
|
@@ -829,12 +826,12 @@
|
|
|
829
826
|
/**
|
|
830
827
|
* Containers
|
|
831
828
|
*/
|
|
832
|
-
:
|
|
829
|
+
:where(.container, .container-fluid, .container-narrow, .container-extended, .container-extended-fullwidth) {
|
|
833
830
|
margin-inline: auto;
|
|
834
831
|
width: 100%;
|
|
835
832
|
}
|
|
836
833
|
|
|
837
|
-
:
|
|
834
|
+
:where(.container, .container-fluid, .container-narrow, .container-extended) {
|
|
838
835
|
padding-inline: var(--kfw-safezone);
|
|
839
836
|
}
|
|
840
837
|
|
|
@@ -868,16 +865,16 @@
|
|
|
868
865
|
|
|
869
866
|
@layer variations {
|
|
870
867
|
table.file-upload-table {
|
|
871
|
-
margin-top: var(--kfw-space-medium);
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
table.file-upload-table table {
|
|
875
868
|
border-top: 0;
|
|
876
869
|
min-height: 10px;
|
|
877
870
|
min-width: 500px;
|
|
878
871
|
}
|
|
879
872
|
|
|
880
|
-
table.file-upload-table .
|
|
873
|
+
table.file-upload-table :where(.file-upload-table__error, .file-upload-table__success, .file-upload-table__info) {
|
|
874
|
+
grid-column: 1 / span 3;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
table.file-upload-table :where(.form-text, .invalid-feedback, .valid-feedback) {
|
|
881
878
|
margin-block-start: 0;
|
|
882
879
|
}
|
|
883
880
|
|
|
@@ -908,6 +905,10 @@
|
|
|
908
905
|
--action: 20%;
|
|
909
906
|
}
|
|
910
907
|
}
|
|
908
|
+
|
|
909
|
+
table.file-upload-table .file-upload-table__filename {
|
|
910
|
+
overflow-wrap: break-word;
|
|
911
|
+
}
|
|
911
912
|
}
|
|
912
913
|
}
|
|
913
914
|
|
|
@@ -937,7 +938,7 @@
|
|
|
937
938
|
margin: 1.2rem 0.8rem;
|
|
938
939
|
}
|
|
939
940
|
|
|
940
|
-
:where(.header-logo-mobile, .header-logo-desktop) {
|
|
941
|
+
:where(.header-logo-mobile, .header-logo-desktop img) {
|
|
941
942
|
width: auto;
|
|
942
943
|
}
|
|
943
944
|
|
|
@@ -958,7 +959,7 @@
|
|
|
958
959
|
}
|
|
959
960
|
|
|
960
961
|
@media (--kfw-breakpoint-desktop) {
|
|
961
|
-
.header :
|
|
962
|
+
.header :where(button, a) {
|
|
962
963
|
font-size: var(--kfw-fontsize-large);
|
|
963
964
|
}
|
|
964
965
|
|
|
@@ -1018,6 +1019,11 @@
|
|
|
1018
1019
|
margin-block-end: var(--kfw-fontspace);
|
|
1019
1020
|
}
|
|
1020
1021
|
|
|
1022
|
+
.grid [type="file"]::file-selector-button,
|
|
1023
|
+
.grid :where(button, [type="submit"], [type="reset"], [type="button"], [role="button"]) {
|
|
1024
|
+
white-space: normal;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1021
1027
|
@media (--kfw-breakpoint-tablet) {
|
|
1022
1028
|
.grid {
|
|
1023
1029
|
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
@@ -1091,6 +1097,30 @@
|
|
|
1091
1097
|
height: auto;
|
|
1092
1098
|
max-width: 128rem;
|
|
1093
1099
|
}
|
|
1100
|
+
|
|
1101
|
+
.color-palette {
|
|
1102
|
+
margin-block-end: var(--kfw-space-small);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
.color-palette__color {
|
|
1106
|
+
display: block;
|
|
1107
|
+
width: 100%;
|
|
1108
|
+
height: 3rem;
|
|
1109
|
+
border-color: var(--kfw-color-fn-inactive);
|
|
1110
|
+
border-width: var(--kfw-borderwidth);
|
|
1111
|
+
border-style: solid; /* @todo add border-style token here later */
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.color-palette__label {
|
|
1115
|
+
text-wrap: balance;
|
|
1116
|
+
display: block;
|
|
1117
|
+
padding: 0.5rem 0.5rem 0;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
.color-palette__container {
|
|
1121
|
+
text-align: center;
|
|
1122
|
+
padding-inline: 1rem;
|
|
1123
|
+
}
|
|
1094
1124
|
}
|
|
1095
1125
|
|
|
1096
1126
|
@layer variations {
|
|
@@ -1109,7 +1139,7 @@
|
|
|
1109
1139
|
text-decoration: underline;
|
|
1110
1140
|
}
|
|
1111
1141
|
|
|
1112
|
-
:where(.bg-dark, .footer) :where(a:not([role="button"]), [role="link"]):
|
|
1142
|
+
:where(.bg-dark, .footer) :where(a:not([role="button"]), [role="link"]):where(:hover, :focus, :active) {
|
|
1113
1143
|
text-decoration: none;
|
|
1114
1144
|
}
|
|
1115
1145
|
|
|
@@ -1146,7 +1176,7 @@
|
|
|
1146
1176
|
filter: color-to-filter(var(--kfw-color-text-on-dark-bg));
|
|
1147
1177
|
}
|
|
1148
1178
|
|
|
1149
|
-
:where(.bg-dark, .footer) :where(.button--secondary, [type="reset"]):
|
|
1179
|
+
:where(.bg-dark, .footer) :where(.button--secondary, [type="reset"]):where(:hover, :focus) .icon {
|
|
1150
1180
|
filter: color-to-filter(var(--kfw-color-text));
|
|
1151
1181
|
}
|
|
1152
1182
|
|
|
@@ -1223,6 +1253,10 @@
|
|
|
1223
1253
|
margin-inline: auto;
|
|
1224
1254
|
}
|
|
1225
1255
|
|
|
1256
|
+
.p-0 {
|
|
1257
|
+
padding: 0;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1226
1260
|
.p-x {
|
|
1227
1261
|
padding-inline: var(--kfw-safezone);
|
|
1228
1262
|
}
|
|
@@ -1258,4 +1292,12 @@
|
|
|
1258
1292
|
.mb-xl {
|
|
1259
1293
|
margin-block-end: var(--kfw-space-big);
|
|
1260
1294
|
}
|
|
1295
|
+
|
|
1296
|
+
.t-center {
|
|
1297
|
+
text-align: center;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.gutter-0 {
|
|
1301
|
+
column-gap: 0;
|
|
1302
|
+
}
|
|
1261
1303
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.5.
|
|
2
|
+
* KfW Design Tokens v0.5.7 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root, :host, .kfw-theme--light { color-scheme: light; }
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
--kfw-base-color-gray-500-90: #41484ce6;
|
|
30
30
|
--kfw-base-color-gray-500: #41484c;
|
|
31
31
|
--kfw-base-color-gray-600: #2d3134;
|
|
32
|
-
--kfw-base-color-violet-400: #
|
|
33
|
-
--kfw-base-color-violet-500: #
|
|
32
|
+
--kfw-base-color-violet-400: #a455c5;
|
|
33
|
+
--kfw-base-color-violet-500: #643179;
|
|
34
34
|
--kfw-base-color-red-400: #c80538;
|
|
35
35
|
--kfw-base-color-yellow-500: #eac80b;
|
|
36
36
|
--kfw-base-fontfamily-sans: "KfW Centro Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
@@ -155,30 +155,30 @@
|
|
|
155
155
|
--kfw-base-layout-gridgap-fluid-min: 1.2rem;
|
|
156
156
|
--kfw-base-layout-gridgap-fluid-max: 3.6rem;
|
|
157
157
|
--kfw-base-layout-gridgap-fluid-val: 3.529vi - 0.9176rem;
|
|
158
|
-
--kfw-color-fn: #005a8c; /** Main interaction color for buttons and links */
|
|
159
|
-
--kfw-color-fn-active: #00446e;
|
|
160
|
-
--kfw-color-fn-inactive: #a1adb5;
|
|
161
|
-
--kfw-color-fn-border: #2d3134;
|
|
162
|
-
--kfw-color-fn-label: #2d3134;
|
|
163
|
-
--kfw-color-text: #2d3134; /** Main text color for body */
|
|
164
|
-
--kfw-color-text-on-dark-bg: #ffffff;
|
|
165
|
-
--kfw-color-text-on-disabled: #ffffff;
|
|
166
|
-
--kfw-color-text-headline-on-dark-bg: #b7f9aa;
|
|
167
|
-
--kfw-color-background: #ffffff; /** Main background color for body */
|
|
168
|
-
--kfw-color-background-subtle: #f6f7f8;
|
|
169
|
-
--kfw-color-background-disabled: #a1adb5;
|
|
170
|
-
--kfw-color-background-light-blue: #e9f5fb;
|
|
171
|
-
--kfw-color-background-light-green: #ecfded;
|
|
172
|
-
--kfw-color-background-dark-blue: #00375b;
|
|
173
|
-
--kfw-color-background-dark-green: #398357;
|
|
174
|
-
--kfw-color-opaque-white-90: #ffffffe6;
|
|
175
|
-
--kfw-color-opaque-white-95: #fffffff2;
|
|
176
|
-
--kfw-color-opaque-gray-500-10: #41484c1a;
|
|
177
|
-
--kfw-color-opaque-gray-500-30: #41484c4d;
|
|
178
|
-
--kfw-color-opaque-gray-500-90: #41484ce6;
|
|
158
|
+
--kfw-color-fn: #005a8c; /** Main interaction color for buttons and links (Blue 600) */
|
|
159
|
+
--kfw-color-fn-active: #00446e; /** Interaction color when active (e.g., hover, Blue 700) */
|
|
160
|
+
--kfw-color-fn-inactive: #a1adb5; /** Interaction color when inactive (Gray 300) */
|
|
161
|
+
--kfw-color-fn-border: #2d3134; /** Interaction border color (Gray 600) */
|
|
162
|
+
--kfw-color-fn-label: #2d3134; /** Interaction label color (Gray 600) */
|
|
163
|
+
--kfw-color-text: #2d3134; /** Main text color for body (Gray 600) */
|
|
164
|
+
--kfw-color-text-on-dark-bg: #ffffff; /** Main text color on dark background (White) */
|
|
165
|
+
--kfw-color-text-on-disabled: #ffffff; /** Main text color on disabled (White) */
|
|
166
|
+
--kfw-color-text-headline-on-dark-bg: #b7f9aa; /** Headline text color on dark background (Green 300) */
|
|
167
|
+
--kfw-color-background: #ffffff; /** Main background color for body (White) */
|
|
168
|
+
--kfw-color-background-subtle: #f6f7f8; /** Neutral (Gray 50) */
|
|
169
|
+
--kfw-color-background-disabled: #a1adb5; /** Disabled (Gray 300) */
|
|
170
|
+
--kfw-color-background-light-blue: #e9f5fb; /** Light blue (Blue 100) */
|
|
171
|
+
--kfw-color-background-light-green: #ecfded; /** Light green (Green 100) */
|
|
172
|
+
--kfw-color-background-dark-blue: #00375b; /** Dark blue (Blue 800) */
|
|
173
|
+
--kfw-color-background-dark-green: #398357; /** Dark green (Green 700) */
|
|
174
|
+
--kfw-color-opaque-white-90: #ffffffe6; /** White 90% */
|
|
175
|
+
--kfw-color-opaque-white-95: #fffffff2; /** White 95% */
|
|
176
|
+
--kfw-color-opaque-gray-500-10: #41484c1a; /** Gray 500 10% */
|
|
177
|
+
--kfw-color-opaque-gray-500-30: #41484c4d; /** Gray 500 30% */
|
|
178
|
+
--kfw-color-opaque-gray-500-90: #41484ce6; /** Gray 500 90% */
|
|
179
179
|
--kfw-color-state-danger: #c80538;
|
|
180
180
|
--kfw-color-state-success: #398357;
|
|
181
|
-
--kfw-color-state-warning: #
|
|
181
|
+
--kfw-color-state-warning: #a455c5;
|
|
182
182
|
--kfw-color-status-red: #c80538;
|
|
183
183
|
--kfw-color-status-yellow: #eac80b;
|
|
184
184
|
--kfw-color-status-green: #398357;
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
--kfw-color-product-container: #f6f7f8;
|
|
193
193
|
--kfw-color-product-benefit: #007abc;
|
|
194
194
|
--kfw-color-product-credit: #398357;
|
|
195
|
-
--kfw-color-product-cooperation: #
|
|
195
|
+
--kfw-color-product-cooperation: #643179;
|
|
196
196
|
--kfw-color-product-credit-benefit: #41484c;
|
|
197
197
|
--kfw-color-icon: #005a8c;
|
|
198
198
|
--kfw-color-icon-secondary: #54b3e2;
|
|
@@ -248,6 +248,7 @@
|
|
|
248
248
|
--kfw-borderradius-circle: 999.9rem;
|
|
249
249
|
--kfw-borderwidth: 1px;
|
|
250
250
|
--kfw-borderwidth-large: 2px;
|
|
251
|
+
--kfw-borderstyle: solid;
|
|
251
252
|
--kfw-focusring-outline-width: 2px;
|
|
252
253
|
--kfw-focusring-outline-offset: 2px;
|
|
253
254
|
--kfw-focusring-outline-style: dashed;
|
|
@@ -109,11 +109,11 @@
|
|
|
109
109
|
},
|
|
110
110
|
"Violet": {
|
|
111
111
|
"400": {
|
|
112
|
-
"$value": "#
|
|
112
|
+
"$value": "#a455c5",
|
|
113
113
|
"$type": "color"
|
|
114
114
|
},
|
|
115
115
|
"500": {
|
|
116
|
-
"$value": "#
|
|
116
|
+
"$value": "#643179",
|
|
117
117
|
"$type": "color"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
"$type": "color"
|
|
412
412
|
},
|
|
413
413
|
"Warning": {
|
|
414
|
-
"$value": "#
|
|
414
|
+
"$value": "#a455c5",
|
|
415
415
|
"$type": "color"
|
|
416
416
|
}
|
|
417
417
|
},
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
"$type": "color"
|
|
474
474
|
},
|
|
475
475
|
"Cooperation": {
|
|
476
|
-
"$value": "#
|
|
476
|
+
"$value": "#643179",
|
|
477
477
|
"$type": "color"
|
|
478
478
|
},
|
|
479
479
|
"Credit-benefit": {
|
|
@@ -702,6 +702,10 @@
|
|
|
702
702
|
"$type": "borderWidth"
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
|
+
"Borderstyle": {
|
|
706
|
+
"$value": "solid",
|
|
707
|
+
"$type": "strokeStyle"
|
|
708
|
+
},
|
|
705
709
|
"Fontweight": {
|
|
706
710
|
"Default": {
|
|
707
711
|
"$value": 400,
|