@telus-uds/theme-koodo 3.12.0 → 3.14.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/theme.json CHANGED
@@ -29,6 +29,7 @@
29
29
  "appearances": {
30
30
  "background": {
31
31
  "description": "Background colour of box. White if not specified.",
32
+ "type": "variant",
32
33
  "values": [
33
34
  "lightest",
34
35
  "lighter",
@@ -670,10 +671,52 @@
670
671
  }
671
672
  },
672
673
  "Card": {
673
- "appearances": {},
674
- "rules": [],
674
+ "appearances": {
675
+ "background": {
676
+ "description": "Defines background related attributes of Card",
677
+ "type": "variant",
678
+ "values": ["alternative", "subtle", "grid", "feature"]
679
+ }
680
+ },
681
+ "rules": [
682
+ {
683
+ "if": {
684
+ "background": "alternative"
685
+ },
686
+ "tokens": {
687
+ "backgroundColor": "{palette.color.icicle}"
688
+ }
689
+ },
690
+ {
691
+ "if": {
692
+ "background": "subtle"
693
+ },
694
+ "tokens": {
695
+ "backgroundColor": "{palette.color.carouselPink}",
696
+ "borderRadius": "{palette.radius.radius8}"
697
+ }
698
+ },
699
+ {
700
+ "if": {
701
+ "background": "grid"
702
+ },
703
+ "tokens": {
704
+ "borderColor": "{palette.color.mosque}",
705
+ "borderRadius": "{palette.radius.radius8}",
706
+ "borderWidth": "{palette.border.border1}"
707
+ }
708
+ },
709
+ {
710
+ "if": {
711
+ "background": "feature"
712
+ },
713
+ "tokens": {
714
+ "backgroundColor": "{palette.color.texas}"
715
+ }
716
+ }
717
+ ],
675
718
  "tokens": {
676
- "backgroundColor": "{palette.color.texas}",
719
+ "backgroundColor": "{palette.color.white}",
677
720
  "borderColor": "{system.color.none}",
678
721
  "borderRadius": "{palette.radius.none}",
679
722
  "borderWidth": "{palette.border.none}",
@@ -827,8 +870,36 @@
827
870
  "focus": true
828
871
  },
829
872
  "tokens": {
830
- "inputOutlineColor": "{palette.color.silver}",
831
- "inputOutlineWidth": "{palette.border.border2}"
873
+ "inputOutlineColor": "{palette.color.chathamsBlue}",
874
+ "inputOutlineWidth": "{palette.border.border1}"
875
+ }
876
+ },
877
+ {
878
+ "if": {
879
+ "hover": true
880
+ },
881
+ "tokens": {
882
+ "inputOutlineColor": "{palette.color.chathamsBlue}",
883
+ "inputOutlineWidth": "{palette.border.border1}"
884
+ }
885
+ },
886
+ {
887
+ "if": {
888
+ "inactive": true
889
+ },
890
+ "tokens": {
891
+ "inputBackgroundColor": "{palette.color.silver}",
892
+ "inputBorderColor": "{palette.color.transparent}"
893
+ }
894
+ },
895
+ {
896
+ "if": {
897
+ "checked": true,
898
+ "inactive": true
899
+ },
900
+ "tokens": {
901
+ "iconBackgroundColor": "{palette.color.silver}",
902
+ "iconColor": "{palette.color.white}"
832
903
  }
833
904
  }
834
905
  ],
@@ -1408,6 +1479,11 @@
1408
1479
  "focus": "{appearances.Button.focus}",
1409
1480
  "hover": "{appearances.Button.hover}",
1410
1481
  "inactive": "{appearances.Button.inactive}",
1482
+ "password": {
1483
+ "description": "Password masked or not",
1484
+ "type": "variant",
1485
+ "values": [true]
1486
+ },
1411
1487
  "pressed": "{appearances.Button.pressed}"
1412
1488
  },
1413
1489
  "rules": [
@@ -1418,6 +1494,62 @@
1418
1494
  "tokens": {
1419
1495
  "outerBorderGap": "{system.size.zero}"
1420
1496
  }
1497
+ },
1498
+ {
1499
+ "if": {
1500
+ "hover": true
1501
+ },
1502
+ "tokens": {
1503
+ "backgroundColor": "{palette.color.mosque}",
1504
+ "iconColor": "{palette.color.white}"
1505
+ }
1506
+ },
1507
+ {
1508
+ "if": {
1509
+ "password": true
1510
+ },
1511
+ "tokens": {
1512
+ "borderColor": "{palette.color.transparent}"
1513
+ }
1514
+ },
1515
+ {
1516
+ "if": {
1517
+ "password": true,
1518
+ "pressed": true
1519
+ },
1520
+ "tokens": {
1521
+ "backgroundColor": "{palette.color.darkMosque}",
1522
+ "iconColor": "{palette.color.white}"
1523
+ }
1524
+ },
1525
+ {
1526
+ "if": {
1527
+ "focus": true,
1528
+ "password": true
1529
+ },
1530
+ "tokens": {
1531
+ "borderColor": "{palette.color.mosque}",
1532
+ "borderWidth": "{palette.border.border3}"
1533
+ }
1534
+ },
1535
+ {
1536
+ "if": {
1537
+ "inactive": true
1538
+ },
1539
+ "tokens": {
1540
+ "backgroundColor": "{palette.color.transparent}",
1541
+ "borderWidth": "{system.border.zero}",
1542
+ "iconColor": "{palette.color.white}"
1543
+ }
1544
+ },
1545
+ {
1546
+ "if": {
1547
+ "inactive": true,
1548
+ "password": true
1549
+ },
1550
+ "tokens": {
1551
+ "iconColor": "{palette.color.silver}"
1552
+ }
1421
1553
  }
1422
1554
  ],
1423
1555
  "tokens": {
@@ -3129,6 +3261,11 @@
3129
3261
  "focus": "{appearances.TextInput.focus}",
3130
3262
  "hover": "{appearances.TextInput.hover}",
3131
3263
  "inactive": "{appearances.TextInput.inactive}",
3264
+ "password": {
3265
+ "description": "capability that helps masking and unmasking text",
3266
+ "type": "variant",
3267
+ "values": [true]
3268
+ },
3132
3269
  "validation": "{appearances.TextInput.validation}"
3133
3270
  },
3134
3271
  "rules": [
@@ -3206,7 +3343,9 @@
3206
3343
  "paddingBottom": "{palette.size.size10}",
3207
3344
  "paddingLeft": "{palette.size.size16}",
3208
3345
  "paddingRight": "{palette.size.size16}",
3209
- "paddingTop": "{palette.size.size10}"
3346
+ "paddingTop": "{palette.size.size10}",
3347
+ "passwordHideButtonIcon": "{palette.icon.EyeMasked}",
3348
+ "passwordShowButtonIcon": "{palette.icon.EyeUnmasked}"
3210
3349
  }
3211
3350
  },
3212
3351
  "Timeline": {
@@ -3479,6 +3618,11 @@
3479
3618
  "type": "variant",
3480
3619
  "values": ["red"]
3481
3620
  },
3621
+ "compact": {
3622
+ "description": "Reduces line height on some body text styles. For data-rich content, not for flow content",
3623
+ "type": "variant",
3624
+ "values": [true]
3625
+ },
3482
3626
  "inverse": {
3483
3627
  "description": "Styles the link white for use on dark backgrounds.",
3484
3628
  "type": "variant",
@@ -3486,7 +3630,20 @@
3486
3630
  },
3487
3631
  "size": {
3488
3632
  "type": "variant",
3489
- "values": ["small", "large", "h1", "h2", "h3", "h4", "display"]
3633
+ "values": [
3634
+ "micro",
3635
+ "small",
3636
+ "medium",
3637
+ "large",
3638
+ "h1",
3639
+ "h2",
3640
+ "h3",
3641
+ "h4",
3642
+ "h5",
3643
+ "h6",
3644
+ "display1",
3645
+ "display2"
3646
+ ]
3490
3647
  },
3491
3648
  "viewport": "{appearances.system.viewport}",
3492
3649
  "weight": {
@@ -3520,7 +3677,34 @@
3520
3677
  },
3521
3678
  "tokens": {
3522
3679
  "fontSize": "{palette.fontSize.size20}",
3523
- "lineHeight": "{palette.lineHeight.multiply160}"
3680
+ "lineHeight": "{palette.lineHeight.ratio7to5}"
3681
+ }
3682
+ },
3683
+ {
3684
+ "if": {
3685
+ "compact": true,
3686
+ "size": "large"
3687
+ },
3688
+ "tokens": {
3689
+ "lineHeight": "{palette.lineHeight.ratio6to5}"
3690
+ }
3691
+ },
3692
+ {
3693
+ "if": {
3694
+ "size": "medium"
3695
+ },
3696
+ "tokens": {
3697
+ "fontSize": "{palette.fontSize.size16}",
3698
+ "lineHeight": "{palette.lineHeight.ratio3to2}"
3699
+ }
3700
+ },
3701
+ {
3702
+ "if": {
3703
+ "compact": true,
3704
+ "size": "medium"
3705
+ },
3706
+ "tokens": {
3707
+ "lineHeight": "{palette.lineHeight.ratio5to4}"
3524
3708
  }
3525
3709
  },
3526
3710
  {
@@ -3529,28 +3713,76 @@
3529
3713
  },
3530
3714
  "tokens": {
3531
3715
  "fontSize": "{palette.fontSize.size14}",
3532
- "lineHeight": "{palette.lineHeight.multiply140}"
3716
+ "lineHeight": "{palette.lineHeight.ratio10to7}"
3717
+ }
3718
+ },
3719
+ {
3720
+ "if": {
3721
+ "compact": true,
3722
+ "size": "small"
3723
+ },
3724
+ "tokens": {
3725
+ "lineHeight": "{palette.lineHeight.ratio8to7}"
3726
+ }
3727
+ },
3728
+ {
3729
+ "if": {
3730
+ "size": "micro"
3731
+ },
3732
+ "tokens": {
3733
+ "fontSize": "{palette.fontSize.size12}",
3734
+ "lineHeight": "{palette.lineHeight.ratio4to3}"
3735
+ }
3736
+ },
3737
+ {
3738
+ "if": {
3739
+ "compact": true,
3740
+ "size": "micro"
3741
+ },
3742
+ "tokens": {
3743
+ "lineHeight": "{palette.lineHeight.ratio4to3}"
3744
+ }
3745
+ },
3746
+ {
3747
+ "if": {
3748
+ "size": "display1"
3749
+ },
3750
+ "tokens": {
3751
+ "fontName": "{palette.fontName.StagSans}",
3752
+ "fontSize": "{palette.fontSize.size44}",
3753
+ "fontWeight": "{palette.fontWeight.weight700}",
3754
+ "lineHeight": "{palette.lineHeight.ratio11to9}"
3533
3755
  }
3534
3756
  },
3535
3757
  {
3536
3758
  "if": {
3537
- "size": "display"
3759
+ "size": "display1",
3760
+ "viewport": ["lg", "xl"]
3761
+ },
3762
+ "tokens": {
3763
+ "fontSize": "{palette.fontSize.size70}",
3764
+ "lineHeight": "{palette.lineHeight.ratio6to5}"
3765
+ }
3766
+ },
3767
+ {
3768
+ "if": {
3769
+ "size": "display2"
3538
3770
  },
3539
3771
  "tokens": {
3540
3772
  "fontName": "{palette.fontName.StagSans}",
3541
- "fontSize": "{palette.fontSize.size48}",
3773
+ "fontSize": "{palette.fontSize.size36}",
3542
3774
  "fontWeight": "{palette.fontWeight.weight700}",
3543
- "lineHeight": "{palette.lineHeight.multiply120}"
3775
+ "lineHeight": "{palette.lineHeight.ratio11to9}"
3544
3776
  }
3545
3777
  },
3546
3778
  {
3547
3779
  "if": {
3548
- "size": "display",
3780
+ "size": "display2",
3549
3781
  "viewport": ["lg", "xl"]
3550
3782
  },
3551
3783
  "tokens": {
3552
- "fontSize": "{palette.fontSize.size64}",
3553
- "lineHeight": "{palette.lineHeight.multiply110}"
3784
+ "fontSize": "{palette.fontSize.size54}",
3785
+ "lineHeight": "{palette.lineHeight.ratio8to7}"
3554
3786
  }
3555
3787
  },
3556
3788
  {
@@ -3559,9 +3791,9 @@
3559
3791
  },
3560
3792
  "tokens": {
3561
3793
  "fontName": "{palette.fontName.StagSans}",
3562
- "fontSize": "{palette.fontSize.size44}",
3794
+ "fontSize": "{palette.fontSize.size34}",
3563
3795
  "fontWeight": "{palette.fontWeight.weight700}",
3564
- "lineHeight": "{palette.lineHeight.multiply120}"
3796
+ "lineHeight": "{palette.lineHeight.ratio11to9}"
3565
3797
  }
3566
3798
  },
3567
3799
  {
@@ -3570,8 +3802,8 @@
3570
3802
  "viewport": ["lg", "xl"]
3571
3803
  },
3572
3804
  "tokens": {
3573
- "fontSize": "{palette.fontSize.size40}",
3574
- "lineHeight": "{palette.lineHeight.multiply110}"
3805
+ "fontSize": "{palette.fontSize.size44}",
3806
+ "lineHeight": "{palette.lineHeight.ratio11to9}"
3575
3807
  }
3576
3808
  },
3577
3809
  {
@@ -3581,50 +3813,53 @@
3581
3813
  "tokens": {
3582
3814
  "color": "{palette.color.black}",
3583
3815
  "fontName": "{palette.fontName.StagSans}",
3584
- "fontSize": "{palette.fontSize.size28}",
3816
+ "fontSize": "{palette.fontSize.size32}",
3585
3817
  "fontWeight": "{palette.fontWeight.weight700}",
3586
- "lineHeight": "{palette.lineHeight.multiply130}"
3818
+ "lineHeight": "{palette.lineHeight.ratio5to4}"
3587
3819
  }
3588
3820
  },
3589
3821
  {
3590
3822
  "if": {
3591
- "size": "h2",
3592
- "viewport": ["lg", "xl"]
3823
+ "size": "h3"
3593
3824
  },
3594
3825
  "tokens": {
3595
- "fontSize": "{palette.fontSize.size28}"
3826
+ "fontName": "{palette.fontName.StagSans}",
3827
+ "fontSize": "{palette.fontSize.size24}",
3828
+ "fontWeight": "{palette.fontWeight.weight700}",
3829
+ "lineHeight": "{palette.lineHeight.ratio4to3}"
3596
3830
  }
3597
3831
  },
3598
3832
  {
3599
3833
  "if": {
3600
- "size": "h3"
3834
+ "size": "h4"
3601
3835
  },
3602
3836
  "tokens": {
3603
3837
  "fontName": "{palette.fontName.StagSans}",
3604
3838
  "fontSize": "{palette.fontSize.size20}",
3605
3839
  "fontWeight": "{palette.fontWeight.weight700}",
3606
- "lineHeight": "{palette.lineHeight.multiply140}"
3840
+ "lineHeight": "{palette.lineHeight.ratio6to5}"
3607
3841
  }
3608
3842
  },
3609
3843
  {
3610
3844
  "if": {
3611
- "size": "h3",
3612
- "viewport": ["lg", "xl"]
3845
+ "size": "h5"
3613
3846
  },
3614
3847
  "tokens": {
3615
- "fontSize": "{palette.fontSize.size24}",
3616
- "lineHeight": "{palette.lineHeight.multiply130}"
3848
+ "fontName": "{palette.fontName.StagSans}",
3849
+ "fontSize": "{palette.fontSize.size18}",
3850
+ "fontWeight": "{palette.fontWeight.weight700}",
3851
+ "lineHeight": "{palette.lineHeight.ratio11to9}"
3617
3852
  }
3618
3853
  },
3619
3854
  {
3620
3855
  "if": {
3621
- "size": "h4"
3856
+ "size": "h6"
3622
3857
  },
3623
3858
  "tokens": {
3624
3859
  "fontName": "{palette.fontName.StagSans}",
3625
3860
  "fontSize": "{palette.fontSize.size16}",
3626
3861
  "fontWeight": "{palette.fontWeight.weight700}",
3627
- "lineHeight": "{palette.lineHeight.multiply150}"
3862
+ "lineHeight": "{palette.lineHeight.ratio5to4}"
3628
3863
  }
3629
3864
  },
3630
3865
  {