@telus-uds/theme-koodo 3.13.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",
@@ -869,8 +870,36 @@
869
870
  "focus": true
870
871
  },
871
872
  "tokens": {
872
- "inputOutlineColor": "{palette.color.silver}",
873
- "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}"
874
903
  }
875
904
  }
876
905
  ],
@@ -1450,6 +1479,11 @@
1450
1479
  "focus": "{appearances.Button.focus}",
1451
1480
  "hover": "{appearances.Button.hover}",
1452
1481
  "inactive": "{appearances.Button.inactive}",
1482
+ "password": {
1483
+ "description": "Password masked or not",
1484
+ "type": "variant",
1485
+ "values": [true]
1486
+ },
1453
1487
  "pressed": "{appearances.Button.pressed}"
1454
1488
  },
1455
1489
  "rules": [
@@ -1460,6 +1494,62 @@
1460
1494
  "tokens": {
1461
1495
  "outerBorderGap": "{system.size.zero}"
1462
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
+ }
1463
1553
  }
1464
1554
  ],
1465
1555
  "tokens": {
@@ -3171,6 +3261,11 @@
3171
3261
  "focus": "{appearances.TextInput.focus}",
3172
3262
  "hover": "{appearances.TextInput.hover}",
3173
3263
  "inactive": "{appearances.TextInput.inactive}",
3264
+ "password": {
3265
+ "description": "capability that helps masking and unmasking text",
3266
+ "type": "variant",
3267
+ "values": [true]
3268
+ },
3174
3269
  "validation": "{appearances.TextInput.validation}"
3175
3270
  },
3176
3271
  "rules": [
@@ -3248,7 +3343,9 @@
3248
3343
  "paddingBottom": "{palette.size.size10}",
3249
3344
  "paddingLeft": "{palette.size.size16}",
3250
3345
  "paddingRight": "{palette.size.size16}",
3251
- "paddingTop": "{palette.size.size10}"
3346
+ "paddingTop": "{palette.size.size10}",
3347
+ "passwordHideButtonIcon": "{palette.icon.EyeMasked}",
3348
+ "passwordShowButtonIcon": "{palette.icon.EyeUnmasked}"
3252
3349
  }
3253
3350
  },
3254
3351
  "Timeline": {
@@ -3521,6 +3618,11 @@
3521
3618
  "type": "variant",
3522
3619
  "values": ["red"]
3523
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
+ },
3524
3626
  "inverse": {
3525
3627
  "description": "Styles the link white for use on dark backgrounds.",
3526
3628
  "type": "variant",
@@ -3528,7 +3630,20 @@
3528
3630
  },
3529
3631
  "size": {
3530
3632
  "type": "variant",
3531
- "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
+ ]
3532
3647
  },
3533
3648
  "viewport": "{appearances.system.viewport}",
3534
3649
  "weight": {
@@ -3562,7 +3677,34 @@
3562
3677
  },
3563
3678
  "tokens": {
3564
3679
  "fontSize": "{palette.fontSize.size20}",
3565
- "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}"
3566
3708
  }
3567
3709
  },
3568
3710
  {
@@ -3571,28 +3713,76 @@
3571
3713
  },
3572
3714
  "tokens": {
3573
3715
  "fontSize": "{palette.fontSize.size14}",
3574
- "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}"
3575
3726
  }
3576
3727
  },
3577
3728
  {
3578
3729
  "if": {
3579
- "size": "display"
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}"
3755
+ }
3756
+ },
3757
+ {
3758
+ "if": {
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"
3580
3770
  },
3581
3771
  "tokens": {
3582
3772
  "fontName": "{palette.fontName.StagSans}",
3583
- "fontSize": "{palette.fontSize.size48}",
3773
+ "fontSize": "{palette.fontSize.size36}",
3584
3774
  "fontWeight": "{palette.fontWeight.weight700}",
3585
- "lineHeight": "{palette.lineHeight.multiply120}"
3775
+ "lineHeight": "{palette.lineHeight.ratio11to9}"
3586
3776
  }
3587
3777
  },
3588
3778
  {
3589
3779
  "if": {
3590
- "size": "display",
3780
+ "size": "display2",
3591
3781
  "viewport": ["lg", "xl"]
3592
3782
  },
3593
3783
  "tokens": {
3594
- "fontSize": "{palette.fontSize.size64}",
3595
- "lineHeight": "{palette.lineHeight.multiply110}"
3784
+ "fontSize": "{palette.fontSize.size54}",
3785
+ "lineHeight": "{palette.lineHeight.ratio8to7}"
3596
3786
  }
3597
3787
  },
3598
3788
  {
@@ -3601,9 +3791,9 @@
3601
3791
  },
3602
3792
  "tokens": {
3603
3793
  "fontName": "{palette.fontName.StagSans}",
3604
- "fontSize": "{palette.fontSize.size44}",
3794
+ "fontSize": "{palette.fontSize.size34}",
3605
3795
  "fontWeight": "{palette.fontWeight.weight700}",
3606
- "lineHeight": "{palette.lineHeight.multiply120}"
3796
+ "lineHeight": "{palette.lineHeight.ratio11to9}"
3607
3797
  }
3608
3798
  },
3609
3799
  {
@@ -3612,8 +3802,8 @@
3612
3802
  "viewport": ["lg", "xl"]
3613
3803
  },
3614
3804
  "tokens": {
3615
- "fontSize": "{palette.fontSize.size40}",
3616
- "lineHeight": "{palette.lineHeight.multiply110}"
3805
+ "fontSize": "{palette.fontSize.size44}",
3806
+ "lineHeight": "{palette.lineHeight.ratio11to9}"
3617
3807
  }
3618
3808
  },
3619
3809
  {
@@ -3623,50 +3813,53 @@
3623
3813
  "tokens": {
3624
3814
  "color": "{palette.color.black}",
3625
3815
  "fontName": "{palette.fontName.StagSans}",
3626
- "fontSize": "{palette.fontSize.size28}",
3816
+ "fontSize": "{palette.fontSize.size32}",
3627
3817
  "fontWeight": "{palette.fontWeight.weight700}",
3628
- "lineHeight": "{palette.lineHeight.multiply130}"
3818
+ "lineHeight": "{palette.lineHeight.ratio5to4}"
3629
3819
  }
3630
3820
  },
3631
3821
  {
3632
3822
  "if": {
3633
- "size": "h2",
3634
- "viewport": ["lg", "xl"]
3823
+ "size": "h3"
3635
3824
  },
3636
3825
  "tokens": {
3637
- "fontSize": "{palette.fontSize.size28}"
3826
+ "fontName": "{palette.fontName.StagSans}",
3827
+ "fontSize": "{palette.fontSize.size24}",
3828
+ "fontWeight": "{palette.fontWeight.weight700}",
3829
+ "lineHeight": "{palette.lineHeight.ratio4to3}"
3638
3830
  }
3639
3831
  },
3640
3832
  {
3641
3833
  "if": {
3642
- "size": "h3"
3834
+ "size": "h4"
3643
3835
  },
3644
3836
  "tokens": {
3645
3837
  "fontName": "{palette.fontName.StagSans}",
3646
3838
  "fontSize": "{palette.fontSize.size20}",
3647
3839
  "fontWeight": "{palette.fontWeight.weight700}",
3648
- "lineHeight": "{palette.lineHeight.multiply140}"
3840
+ "lineHeight": "{palette.lineHeight.ratio6to5}"
3649
3841
  }
3650
3842
  },
3651
3843
  {
3652
3844
  "if": {
3653
- "size": "h3",
3654
- "viewport": ["lg", "xl"]
3845
+ "size": "h5"
3655
3846
  },
3656
3847
  "tokens": {
3657
- "fontSize": "{palette.fontSize.size24}",
3658
- "lineHeight": "{palette.lineHeight.multiply130}"
3848
+ "fontName": "{palette.fontName.StagSans}",
3849
+ "fontSize": "{palette.fontSize.size18}",
3850
+ "fontWeight": "{palette.fontWeight.weight700}",
3851
+ "lineHeight": "{palette.lineHeight.ratio11to9}"
3659
3852
  }
3660
3853
  },
3661
3854
  {
3662
3855
  "if": {
3663
- "size": "h4"
3856
+ "size": "h6"
3664
3857
  },
3665
3858
  "tokens": {
3666
3859
  "fontName": "{palette.fontName.StagSans}",
3667
3860
  "fontSize": "{palette.fontSize.size16}",
3668
3861
  "fontWeight": "{palette.fontWeight.weight700}",
3669
- "lineHeight": "{palette.lineHeight.multiply150}"
3862
+ "lineHeight": "{palette.lineHeight.ratio5to4}"
3670
3863
  }
3671
3864
  },
3672
3865
  {