@digdir/designsystemet 1.10.0 → 1.11.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.
@@ -861,7 +861,7 @@ import pc5 from "picocolors";
861
861
  // package.json
862
862
  var package_default = {
863
863
  name: "@digdir/designsystemet",
864
- version: "1.10.0",
864
+ version: "1.11.0",
865
865
  description: "CLI for Designsystemet",
866
866
  author: "Designsystemet team",
867
867
  engines: {
@@ -932,14 +932,14 @@ var package_default = {
932
932
  picocolors: "^1.1.1",
933
933
  postcss: "^8.5.6",
934
934
  ramda: "^0.32.0",
935
- "style-dictionary": "^5.1.1",
935
+ "style-dictionary": "^5.1.3",
936
936
  zod: "^4.3.5",
937
- "zod-validation-error": "^4.0.2"
937
+ "zod-validation-error": "^5.0.0"
938
938
  },
939
939
  devDependencies: {
940
940
  "@tokens-studio/types": "0.5.2",
941
941
  "@types/chroma-js": "^3.1.2",
942
- "@types/node": "^22.19.3",
942
+ "@types/node": "^24.10.7",
943
943
  "@types/object-hash": "^3.0.6",
944
944
  "@types/ramda": "^0.31.1",
945
945
  tsup: "^8.5.1",
package/dist/src/index.js CHANGED
@@ -2445,7 +2445,7 @@ import * as R9 from "ramda";
2445
2445
  // package.json
2446
2446
  var package_default = {
2447
2447
  name: "@digdir/designsystemet",
2448
- version: "1.10.0",
2448
+ version: "1.11.0",
2449
2449
  description: "CLI for Designsystemet",
2450
2450
  author: "Designsystemet team",
2451
2451
  engines: {
@@ -2516,14 +2516,14 @@ var package_default = {
2516
2516
  picocolors: "^1.1.1",
2517
2517
  postcss: "^8.5.6",
2518
2518
  ramda: "^0.32.0",
2519
- "style-dictionary": "^5.1.1",
2519
+ "style-dictionary": "^5.1.3",
2520
2520
  zod: "^4.3.5",
2521
- "zod-validation-error": "^4.0.2"
2521
+ "zod-validation-error": "^5.0.0"
2522
2522
  },
2523
2523
  devDependencies: {
2524
2524
  "@tokens-studio/types": "0.5.2",
2525
2525
  "@types/chroma-js": "^3.1.2",
2526
- "@types/node": "^22.19.3",
2526
+ "@types/node": "^24.10.7",
2527
2527
  "@types/object-hash": "^3.0.6",
2528
2528
  "@types/ramda": "^0.31.1",
2529
2529
  tsup: "^8.5.1",
@@ -1 +1 @@
1
- {"version":3,"file":"update-template.d.ts","sourceRoot":"","sources":["../../../src/scripts/update-template.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,eAAe,qBAwF3B,CAAC"}
1
+ {"version":3,"file":"update-template.d.ts","sourceRoot":"","sources":["../../../src/scripts/update-template.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,eAAe,qBA0F3B,CAAC"}
@@ -3,7 +3,7 @@ import path from "path";
3
3
  import pc2 from "picocolors";
4
4
  import * as R from "ramda";
5
5
 
6
- // ../../internal/design-tokens/semantic/color.json
6
+ // ../../design-tokens/semantic/color.json
7
7
  var color_default = {
8
8
  color: {
9
9
  accent: {
@@ -270,72 +270,6 @@ var color_default = {
270
270
  $value: "{color.brand2.16}"
271
271
  }
272
272
  },
273
- brand3: {
274
- "background-default": {
275
- $type: "color",
276
- $value: "{color.brand3.1}"
277
- },
278
- "background-tinted": {
279
- $type: "color",
280
- $value: "{color.brand3.2}"
281
- },
282
- "surface-default": {
283
- $type: "color",
284
- $value: "{color.brand3.3}"
285
- },
286
- "surface-tinted": {
287
- $type: "color",
288
- $value: "{color.brand3.4}"
289
- },
290
- "surface-hover": {
291
- $type: "color",
292
- $value: "{color.brand3.5}"
293
- },
294
- "surface-active": {
295
- $type: "color",
296
- $value: "{color.brand3.6}"
297
- },
298
- "border-subtle": {
299
- $type: "color",
300
- $value: "{color.brand3.7}"
301
- },
302
- "border-default": {
303
- $type: "color",
304
- $value: "{color.brand3.8}"
305
- },
306
- "border-strong": {
307
- $type: "color",
308
- $value: "{color.brand3.9}"
309
- },
310
- "text-subtle": {
311
- $type: "color",
312
- $value: "{color.brand3.10}"
313
- },
314
- "text-default": {
315
- $type: "color",
316
- $value: "{color.brand3.11}"
317
- },
318
- "base-default": {
319
- $type: "color",
320
- $value: "{color.brand3.12}"
321
- },
322
- "base-hover": {
323
- $type: "color",
324
- $value: "{color.brand3.13}"
325
- },
326
- "base-active": {
327
- $type: "color",
328
- $value: "{color.brand3.14}"
329
- },
330
- "base-contrast-subtle": {
331
- $type: "color",
332
- $value: "{color.brand3.15}"
333
- },
334
- "base-contrast-default": {
335
- $type: "color",
336
- $value: "{color.brand3.16}"
337
- }
338
- },
339
273
  info: {
340
274
  "background-default": {
341
275
  $type: "color",
@@ -621,7 +555,7 @@ var color_default = {
621
555
  }
622
556
  };
623
557
 
624
- // ../../internal/design-tokens/semantic/modes/main-color/accent.json
558
+ // ../../design-tokens/semantic/modes/main-color/accent.json
625
559
  var accent_default = {
626
560
  color: {
627
561
  main: {
@@ -693,636 +627,570 @@ var accent_default = {
693
627
  }
694
628
  };
695
629
 
696
- // ../../internal/design-tokens/themes/digdir.json
697
- var digdir_default = {
630
+ // ../../design-tokens/themes/designsystemet.json
631
+ var designsystemet_default = {
698
632
  color: {
699
633
  accent: {
700
634
  "1": {
701
635
  $type: "color",
702
- $value: "{digdir.accent.1}"
636
+ $value: "{designsystemet.accent.1}"
703
637
  },
704
638
  "2": {
705
639
  $type: "color",
706
- $value: "{digdir.accent.2}"
640
+ $value: "{designsystemet.accent.2}"
707
641
  },
708
642
  "3": {
709
643
  $type: "color",
710
- $value: "{digdir.accent.3}"
644
+ $value: "{designsystemet.accent.3}"
711
645
  },
712
646
  "4": {
713
647
  $type: "color",
714
- $value: "{digdir.accent.4}"
648
+ $value: "{designsystemet.accent.4}"
715
649
  },
716
650
  "5": {
717
651
  $type: "color",
718
- $value: "{digdir.accent.5}"
652
+ $value: "{designsystemet.accent.5}"
719
653
  },
720
654
  "6": {
721
655
  $type: "color",
722
- $value: "{digdir.accent.6}"
656
+ $value: "{designsystemet.accent.6}"
723
657
  },
724
658
  "7": {
725
659
  $type: "color",
726
- $value: "{digdir.accent.7}"
660
+ $value: "{designsystemet.accent.7}"
727
661
  },
728
662
  "8": {
729
663
  $type: "color",
730
- $value: "{digdir.accent.8}"
664
+ $value: "{designsystemet.accent.8}"
731
665
  },
732
666
  "9": {
733
667
  $type: "color",
734
- $value: "{digdir.accent.9}"
668
+ $value: "{designsystemet.accent.9}"
735
669
  },
736
670
  "10": {
737
671
  $type: "color",
738
- $value: "{digdir.accent.10}"
672
+ $value: "{designsystemet.accent.10}"
739
673
  },
740
674
  "11": {
741
675
  $type: "color",
742
- $value: "{digdir.accent.11}"
676
+ $value: "{designsystemet.accent.11}"
743
677
  },
744
678
  "12": {
745
679
  $type: "color",
746
- $value: "{digdir.accent.12}"
680
+ $value: "{designsystemet.accent.12}"
747
681
  },
748
682
  "13": {
749
683
  $type: "color",
750
- $value: "{digdir.accent.13}"
684
+ $value: "{designsystemet.accent.13}"
751
685
  },
752
686
  "14": {
753
687
  $type: "color",
754
- $value: "{digdir.accent.14}"
688
+ $value: "{designsystemet.accent.14}"
755
689
  },
756
690
  "15": {
757
691
  $type: "color",
758
- $value: "{digdir.accent.15}"
692
+ $value: "{designsystemet.accent.15}"
759
693
  },
760
694
  "16": {
761
695
  $type: "color",
762
- $value: "{digdir.accent.16}"
696
+ $value: "{designsystemet.accent.16}"
763
697
  }
764
698
  },
765
699
  neutral: {
766
700
  "1": {
767
701
  $type: "color",
768
- $value: "{digdir.neutral.1}"
702
+ $value: "{designsystemet.neutral.1}"
769
703
  },
770
704
  "2": {
771
705
  $type: "color",
772
- $value: "{digdir.neutral.2}"
706
+ $value: "{designsystemet.neutral.2}"
773
707
  },
774
708
  "3": {
775
709
  $type: "color",
776
- $value: "{digdir.neutral.3}"
710
+ $value: "{designsystemet.neutral.3}"
777
711
  },
778
712
  "4": {
779
713
  $type: "color",
780
- $value: "{digdir.neutral.4}"
714
+ $value: "{designsystemet.neutral.4}"
781
715
  },
782
716
  "5": {
783
717
  $type: "color",
784
- $value: "{digdir.neutral.5}"
718
+ $value: "{designsystemet.neutral.5}"
785
719
  },
786
720
  "6": {
787
721
  $type: "color",
788
- $value: "{digdir.neutral.6}"
722
+ $value: "{designsystemet.neutral.6}"
789
723
  },
790
724
  "7": {
791
725
  $type: "color",
792
- $value: "{digdir.neutral.7}"
726
+ $value: "{designsystemet.neutral.7}"
793
727
  },
794
728
  "8": {
795
729
  $type: "color",
796
- $value: "{digdir.neutral.8}"
730
+ $value: "{designsystemet.neutral.8}"
797
731
  },
798
732
  "9": {
799
733
  $type: "color",
800
- $value: "{digdir.neutral.9}"
734
+ $value: "{designsystemet.neutral.9}"
801
735
  },
802
736
  "10": {
803
737
  $type: "color",
804
- $value: "{digdir.neutral.10}"
738
+ $value: "{designsystemet.neutral.10}"
805
739
  },
806
740
  "11": {
807
741
  $type: "color",
808
- $value: "{digdir.neutral.11}"
742
+ $value: "{designsystemet.neutral.11}"
809
743
  },
810
744
  "12": {
811
745
  $type: "color",
812
- $value: "{digdir.neutral.12}"
746
+ $value: "{designsystemet.neutral.12}"
813
747
  },
814
748
  "13": {
815
749
  $type: "color",
816
- $value: "{digdir.neutral.13}"
750
+ $value: "{designsystemet.neutral.13}"
817
751
  },
818
752
  "14": {
819
753
  $type: "color",
820
- $value: "{digdir.neutral.14}"
754
+ $value: "{designsystemet.neutral.14}"
821
755
  },
822
756
  "15": {
823
757
  $type: "color",
824
- $value: "{digdir.neutral.15}"
758
+ $value: "{designsystemet.neutral.15}"
825
759
  },
826
760
  "16": {
827
761
  $type: "color",
828
- $value: "{digdir.neutral.16}"
762
+ $value: "{designsystemet.neutral.16}"
829
763
  }
830
764
  },
831
765
  brand1: {
832
766
  "1": {
833
767
  $type: "color",
834
- $value: "{digdir.brand1.1}"
768
+ $value: "{designsystemet.brand1.1}"
835
769
  },
836
770
  "2": {
837
771
  $type: "color",
838
- $value: "{digdir.brand1.2}"
772
+ $value: "{designsystemet.brand1.2}"
839
773
  },
840
774
  "3": {
841
775
  $type: "color",
842
- $value: "{digdir.brand1.3}"
776
+ $value: "{designsystemet.brand1.3}"
843
777
  },
844
778
  "4": {
845
779
  $type: "color",
846
- $value: "{digdir.brand1.4}"
780
+ $value: "{designsystemet.brand1.4}"
847
781
  },
848
782
  "5": {
849
783
  $type: "color",
850
- $value: "{digdir.brand1.5}"
784
+ $value: "{designsystemet.brand1.5}"
851
785
  },
852
786
  "6": {
853
787
  $type: "color",
854
- $value: "{digdir.brand1.6}"
788
+ $value: "{designsystemet.brand1.6}"
855
789
  },
856
790
  "7": {
857
791
  $type: "color",
858
- $value: "{digdir.brand1.7}"
792
+ $value: "{designsystemet.brand1.7}"
859
793
  },
860
794
  "8": {
861
795
  $type: "color",
862
- $value: "{digdir.brand1.8}"
796
+ $value: "{designsystemet.brand1.8}"
863
797
  },
864
798
  "9": {
865
799
  $type: "color",
866
- $value: "{digdir.brand1.9}"
800
+ $value: "{designsystemet.brand1.9}"
867
801
  },
868
802
  "10": {
869
803
  $type: "color",
870
- $value: "{digdir.brand1.10}"
804
+ $value: "{designsystemet.brand1.10}"
871
805
  },
872
806
  "11": {
873
807
  $type: "color",
874
- $value: "{digdir.brand1.11}"
808
+ $value: "{designsystemet.brand1.11}"
875
809
  },
876
810
  "12": {
877
811
  $type: "color",
878
- $value: "{digdir.brand1.12}"
812
+ $value: "{designsystemet.brand1.12}"
879
813
  },
880
814
  "13": {
881
815
  $type: "color",
882
- $value: "{digdir.brand1.13}"
816
+ $value: "{designsystemet.brand1.13}"
883
817
  },
884
818
  "14": {
885
819
  $type: "color",
886
- $value: "{digdir.brand1.14}"
820
+ $value: "{designsystemet.brand1.14}"
887
821
  },
888
822
  "15": {
889
823
  $type: "color",
890
- $value: "{digdir.brand1.15}"
824
+ $value: "{designsystemet.brand1.15}"
891
825
  },
892
826
  "16": {
893
827
  $type: "color",
894
- $value: "{digdir.brand1.16}"
828
+ $value: "{designsystemet.brand1.16}"
895
829
  }
896
830
  },
897
831
  brand2: {
898
832
  "1": {
899
833
  $type: "color",
900
- $value: "{digdir.brand2.1}"
834
+ $value: "{designsystemet.brand2.1}"
901
835
  },
902
836
  "2": {
903
837
  $type: "color",
904
- $value: "{digdir.brand2.2}"
838
+ $value: "{designsystemet.brand2.2}"
905
839
  },
906
840
  "3": {
907
841
  $type: "color",
908
- $value: "{digdir.brand2.3}"
842
+ $value: "{designsystemet.brand2.3}"
909
843
  },
910
844
  "4": {
911
845
  $type: "color",
912
- $value: "{digdir.brand2.4}"
846
+ $value: "{designsystemet.brand2.4}"
913
847
  },
914
848
  "5": {
915
849
  $type: "color",
916
- $value: "{digdir.brand2.5}"
850
+ $value: "{designsystemet.brand2.5}"
917
851
  },
918
852
  "6": {
919
853
  $type: "color",
920
- $value: "{digdir.brand2.6}"
854
+ $value: "{designsystemet.brand2.6}"
921
855
  },
922
856
  "7": {
923
857
  $type: "color",
924
- $value: "{digdir.brand2.7}"
858
+ $value: "{designsystemet.brand2.7}"
925
859
  },
926
860
  "8": {
927
861
  $type: "color",
928
- $value: "{digdir.brand2.8}"
862
+ $value: "{designsystemet.brand2.8}"
929
863
  },
930
864
  "9": {
931
865
  $type: "color",
932
- $value: "{digdir.brand2.9}"
866
+ $value: "{designsystemet.brand2.9}"
933
867
  },
934
868
  "10": {
935
869
  $type: "color",
936
- $value: "{digdir.brand2.10}"
870
+ $value: "{designsystemet.brand2.10}"
937
871
  },
938
872
  "11": {
939
873
  $type: "color",
940
- $value: "{digdir.brand2.11}"
874
+ $value: "{designsystemet.brand2.11}"
941
875
  },
942
876
  "12": {
943
877
  $type: "color",
944
- $value: "{digdir.brand2.12}"
878
+ $value: "{designsystemet.brand2.12}"
945
879
  },
946
880
  "13": {
947
881
  $type: "color",
948
- $value: "{digdir.brand2.13}"
882
+ $value: "{designsystemet.brand2.13}"
949
883
  },
950
884
  "14": {
951
885
  $type: "color",
952
- $value: "{digdir.brand2.14}"
886
+ $value: "{designsystemet.brand2.14}"
953
887
  },
954
888
  "15": {
955
889
  $type: "color",
956
- $value: "{digdir.brand2.15}"
890
+ $value: "{designsystemet.brand2.15}"
957
891
  },
958
892
  "16": {
959
893
  $type: "color",
960
- $value: "{digdir.brand2.16}"
961
- }
962
- },
963
- brand3: {
964
- "1": {
965
- $type: "color",
966
- $value: "{digdir.brand3.1}"
967
- },
968
- "2": {
969
- $type: "color",
970
- $value: "{digdir.brand3.2}"
971
- },
972
- "3": {
973
- $type: "color",
974
- $value: "{digdir.brand3.3}"
975
- },
976
- "4": {
977
- $type: "color",
978
- $value: "{digdir.brand3.4}"
979
- },
980
- "5": {
981
- $type: "color",
982
- $value: "{digdir.brand3.5}"
983
- },
984
- "6": {
985
- $type: "color",
986
- $value: "{digdir.brand3.6}"
987
- },
988
- "7": {
989
- $type: "color",
990
- $value: "{digdir.brand3.7}"
991
- },
992
- "8": {
993
- $type: "color",
994
- $value: "{digdir.brand3.8}"
995
- },
996
- "9": {
997
- $type: "color",
998
- $value: "{digdir.brand3.9}"
999
- },
1000
- "10": {
1001
- $type: "color",
1002
- $value: "{digdir.brand3.10}"
1003
- },
1004
- "11": {
1005
- $type: "color",
1006
- $value: "{digdir.brand3.11}"
1007
- },
1008
- "12": {
1009
- $type: "color",
1010
- $value: "{digdir.brand3.12}"
1011
- },
1012
- "13": {
1013
- $type: "color",
1014
- $value: "{digdir.brand3.13}"
1015
- },
1016
- "14": {
1017
- $type: "color",
1018
- $value: "{digdir.brand3.14}"
1019
- },
1020
- "15": {
1021
- $type: "color",
1022
- $value: "{digdir.brand3.15}"
1023
- },
1024
- "16": {
1025
- $type: "color",
1026
- $value: "{digdir.brand3.16}"
894
+ $value: "{designsystemet.brand2.16}"
1027
895
  }
1028
896
  },
1029
897
  info: {
1030
898
  "1": {
1031
899
  $type: "color",
1032
- $value: "{digdir.info.1}"
900
+ $value: "{designsystemet.info.1}"
1033
901
  },
1034
902
  "2": {
1035
903
  $type: "color",
1036
- $value: "{digdir.info.2}"
904
+ $value: "{designsystemet.info.2}"
1037
905
  },
1038
906
  "3": {
1039
907
  $type: "color",
1040
- $value: "{digdir.info.3}"
908
+ $value: "{designsystemet.info.3}"
1041
909
  },
1042
910
  "4": {
1043
911
  $type: "color",
1044
- $value: "{digdir.info.4}"
912
+ $value: "{designsystemet.info.4}"
1045
913
  },
1046
914
  "5": {
1047
915
  $type: "color",
1048
- $value: "{digdir.info.5}"
916
+ $value: "{designsystemet.info.5}"
1049
917
  },
1050
918
  "6": {
1051
919
  $type: "color",
1052
- $value: "{digdir.info.6}"
920
+ $value: "{designsystemet.info.6}"
1053
921
  },
1054
922
  "7": {
1055
923
  $type: "color",
1056
- $value: "{digdir.info.7}"
924
+ $value: "{designsystemet.info.7}"
1057
925
  },
1058
926
  "8": {
1059
927
  $type: "color",
1060
- $value: "{digdir.info.8}"
928
+ $value: "{designsystemet.info.8}"
1061
929
  },
1062
930
  "9": {
1063
931
  $type: "color",
1064
- $value: "{digdir.info.9}"
932
+ $value: "{designsystemet.info.9}"
1065
933
  },
1066
934
  "10": {
1067
935
  $type: "color",
1068
- $value: "{digdir.info.10}"
936
+ $value: "{designsystemet.info.10}"
1069
937
  },
1070
938
  "11": {
1071
939
  $type: "color",
1072
- $value: "{digdir.info.11}"
940
+ $value: "{designsystemet.info.11}"
1073
941
  },
1074
942
  "12": {
1075
943
  $type: "color",
1076
- $value: "{digdir.info.12}"
944
+ $value: "{designsystemet.info.12}"
1077
945
  },
1078
946
  "13": {
1079
947
  $type: "color",
1080
- $value: "{digdir.info.13}"
948
+ $value: "{designsystemet.info.13}"
1081
949
  },
1082
950
  "14": {
1083
951
  $type: "color",
1084
- $value: "{digdir.info.14}"
952
+ $value: "{designsystemet.info.14}"
1085
953
  },
1086
954
  "15": {
1087
955
  $type: "color",
1088
- $value: "{digdir.info.15}"
956
+ $value: "{designsystemet.info.15}"
1089
957
  },
1090
958
  "16": {
1091
959
  $type: "color",
1092
- $value: "{digdir.info.16}"
960
+ $value: "{designsystemet.info.16}"
1093
961
  }
1094
962
  },
1095
963
  success: {
1096
964
  "1": {
1097
965
  $type: "color",
1098
- $value: "{digdir.success.1}"
966
+ $value: "{designsystemet.success.1}"
1099
967
  },
1100
968
  "2": {
1101
969
  $type: "color",
1102
- $value: "{digdir.success.2}"
970
+ $value: "{designsystemet.success.2}"
1103
971
  },
1104
972
  "3": {
1105
973
  $type: "color",
1106
- $value: "{digdir.success.3}"
974
+ $value: "{designsystemet.success.3}"
1107
975
  },
1108
976
  "4": {
1109
977
  $type: "color",
1110
- $value: "{digdir.success.4}"
978
+ $value: "{designsystemet.success.4}"
1111
979
  },
1112
980
  "5": {
1113
981
  $type: "color",
1114
- $value: "{digdir.success.5}"
982
+ $value: "{designsystemet.success.5}"
1115
983
  },
1116
984
  "6": {
1117
985
  $type: "color",
1118
- $value: "{digdir.success.6}"
986
+ $value: "{designsystemet.success.6}"
1119
987
  },
1120
988
  "7": {
1121
989
  $type: "color",
1122
- $value: "{digdir.success.7}"
990
+ $value: "{designsystemet.success.7}"
1123
991
  },
1124
992
  "8": {
1125
993
  $type: "color",
1126
- $value: "{digdir.success.8}"
994
+ $value: "{designsystemet.success.8}"
1127
995
  },
1128
996
  "9": {
1129
997
  $type: "color",
1130
- $value: "{digdir.success.9}"
998
+ $value: "{designsystemet.success.9}"
1131
999
  },
1132
1000
  "10": {
1133
1001
  $type: "color",
1134
- $value: "{digdir.success.10}"
1002
+ $value: "{designsystemet.success.10}"
1135
1003
  },
1136
1004
  "11": {
1137
1005
  $type: "color",
1138
- $value: "{digdir.success.11}"
1006
+ $value: "{designsystemet.success.11}"
1139
1007
  },
1140
1008
  "12": {
1141
1009
  $type: "color",
1142
- $value: "{digdir.success.12}"
1010
+ $value: "{designsystemet.success.12}"
1143
1011
  },
1144
1012
  "13": {
1145
1013
  $type: "color",
1146
- $value: "{digdir.success.13}"
1014
+ $value: "{designsystemet.success.13}"
1147
1015
  },
1148
1016
  "14": {
1149
1017
  $type: "color",
1150
- $value: "{digdir.success.14}"
1018
+ $value: "{designsystemet.success.14}"
1151
1019
  },
1152
1020
  "15": {
1153
1021
  $type: "color",
1154
- $value: "{digdir.success.15}"
1022
+ $value: "{designsystemet.success.15}"
1155
1023
  },
1156
1024
  "16": {
1157
1025
  $type: "color",
1158
- $value: "{digdir.success.16}"
1026
+ $value: "{designsystemet.success.16}"
1159
1027
  }
1160
1028
  },
1161
1029
  warning: {
1162
1030
  "1": {
1163
1031
  $type: "color",
1164
- $value: "{digdir.warning.1}"
1032
+ $value: "{designsystemet.warning.1}"
1165
1033
  },
1166
1034
  "2": {
1167
1035
  $type: "color",
1168
- $value: "{digdir.warning.2}"
1036
+ $value: "{designsystemet.warning.2}"
1169
1037
  },
1170
1038
  "3": {
1171
1039
  $type: "color",
1172
- $value: "{digdir.warning.3}"
1040
+ $value: "{designsystemet.warning.3}"
1173
1041
  },
1174
1042
  "4": {
1175
1043
  $type: "color",
1176
- $value: "{digdir.warning.4}"
1044
+ $value: "{designsystemet.warning.4}"
1177
1045
  },
1178
1046
  "5": {
1179
1047
  $type: "color",
1180
- $value: "{digdir.warning.5}"
1048
+ $value: "{designsystemet.warning.5}"
1181
1049
  },
1182
1050
  "6": {
1183
1051
  $type: "color",
1184
- $value: "{digdir.warning.6}"
1052
+ $value: "{designsystemet.warning.6}"
1185
1053
  },
1186
1054
  "7": {
1187
1055
  $type: "color",
1188
- $value: "{digdir.warning.7}"
1056
+ $value: "{designsystemet.warning.7}"
1189
1057
  },
1190
1058
  "8": {
1191
1059
  $type: "color",
1192
- $value: "{digdir.warning.8}"
1060
+ $value: "{designsystemet.warning.8}"
1193
1061
  },
1194
1062
  "9": {
1195
1063
  $type: "color",
1196
- $value: "{digdir.warning.9}"
1064
+ $value: "{designsystemet.warning.9}"
1197
1065
  },
1198
1066
  "10": {
1199
1067
  $type: "color",
1200
- $value: "{digdir.warning.10}"
1068
+ $value: "{designsystemet.warning.10}"
1201
1069
  },
1202
1070
  "11": {
1203
1071
  $type: "color",
1204
- $value: "{digdir.warning.11}"
1072
+ $value: "{designsystemet.warning.11}"
1205
1073
  },
1206
1074
  "12": {
1207
1075
  $type: "color",
1208
- $value: "{digdir.warning.12}"
1076
+ $value: "{designsystemet.warning.12}"
1209
1077
  },
1210
1078
  "13": {
1211
1079
  $type: "color",
1212
- $value: "{digdir.warning.13}"
1080
+ $value: "{designsystemet.warning.13}"
1213
1081
  },
1214
1082
  "14": {
1215
1083
  $type: "color",
1216
- $value: "{digdir.warning.14}"
1084
+ $value: "{designsystemet.warning.14}"
1217
1085
  },
1218
1086
  "15": {
1219
1087
  $type: "color",
1220
- $value: "{digdir.warning.15}"
1088
+ $value: "{designsystemet.warning.15}"
1221
1089
  },
1222
1090
  "16": {
1223
1091
  $type: "color",
1224
- $value: "{digdir.warning.16}"
1092
+ $value: "{designsystemet.warning.16}"
1225
1093
  }
1226
1094
  },
1227
1095
  danger: {
1228
1096
  "1": {
1229
1097
  $type: "color",
1230
- $value: "{digdir.danger.1}"
1098
+ $value: "{designsystemet.danger.1}"
1231
1099
  },
1232
1100
  "2": {
1233
1101
  $type: "color",
1234
- $value: "{digdir.danger.2}"
1102
+ $value: "{designsystemet.danger.2}"
1235
1103
  },
1236
1104
  "3": {
1237
1105
  $type: "color",
1238
- $value: "{digdir.danger.3}"
1106
+ $value: "{designsystemet.danger.3}"
1239
1107
  },
1240
1108
  "4": {
1241
1109
  $type: "color",
1242
- $value: "{digdir.danger.4}"
1110
+ $value: "{designsystemet.danger.4}"
1243
1111
  },
1244
1112
  "5": {
1245
1113
  $type: "color",
1246
- $value: "{digdir.danger.5}"
1114
+ $value: "{designsystemet.danger.5}"
1247
1115
  },
1248
1116
  "6": {
1249
1117
  $type: "color",
1250
- $value: "{digdir.danger.6}"
1118
+ $value: "{designsystemet.danger.6}"
1251
1119
  },
1252
1120
  "7": {
1253
1121
  $type: "color",
1254
- $value: "{digdir.danger.7}"
1122
+ $value: "{designsystemet.danger.7}"
1255
1123
  },
1256
1124
  "8": {
1257
1125
  $type: "color",
1258
- $value: "{digdir.danger.8}"
1126
+ $value: "{designsystemet.danger.8}"
1259
1127
  },
1260
1128
  "9": {
1261
1129
  $type: "color",
1262
- $value: "{digdir.danger.9}"
1130
+ $value: "{designsystemet.danger.9}"
1263
1131
  },
1264
1132
  "10": {
1265
1133
  $type: "color",
1266
- $value: "{digdir.danger.10}"
1134
+ $value: "{designsystemet.danger.10}"
1267
1135
  },
1268
1136
  "11": {
1269
1137
  $type: "color",
1270
- $value: "{digdir.danger.11}"
1138
+ $value: "{designsystemet.danger.11}"
1271
1139
  },
1272
1140
  "12": {
1273
1141
  $type: "color",
1274
- $value: "{digdir.danger.12}"
1142
+ $value: "{designsystemet.danger.12}"
1275
1143
  },
1276
1144
  "13": {
1277
1145
  $type: "color",
1278
- $value: "{digdir.danger.13}"
1146
+ $value: "{designsystemet.danger.13}"
1279
1147
  },
1280
1148
  "14": {
1281
1149
  $type: "color",
1282
- $value: "{digdir.danger.14}"
1150
+ $value: "{designsystemet.danger.14}"
1283
1151
  },
1284
1152
  "15": {
1285
1153
  $type: "color",
1286
- $value: "{digdir.danger.15}"
1154
+ $value: "{designsystemet.danger.15}"
1287
1155
  },
1288
1156
  "16": {
1289
1157
  $type: "color",
1290
- $value: "{digdir.danger.16}"
1158
+ $value: "{designsystemet.danger.16}"
1291
1159
  }
1292
1160
  },
1293
1161
  link: {
1294
1162
  visited: {
1295
1163
  $type: "color",
1296
- $value: "{digdir.link.visited}"
1164
+ $value: "{designsystemet.link.visited}"
1297
1165
  }
1298
1166
  },
1299
1167
  focus: {
1300
1168
  "inner-color": {
1301
1169
  $type: "color",
1302
- $value: "{digdir.focus.inner}"
1170
+ $value: "{designsystemet.focus.inner}"
1303
1171
  },
1304
1172
  "outer-color": {
1305
1173
  $type: "color",
1306
- $value: "{digdir.focus.outer}"
1174
+ $value: "{designsystemet.focus.outer}"
1307
1175
  }
1308
1176
  }
1309
1177
  },
1310
1178
  "font-family": {
1311
1179
  $type: "fontFamilies",
1312
- $value: "{digdir.font-family}"
1180
+ $value: "{designsystemet.font-family}"
1313
1181
  },
1314
1182
  "font-weight": {
1315
1183
  medium: {
1316
1184
  $type: "fontWeights",
1317
- $value: "{digdir.font-weight.medium}"
1185
+ $value: "{designsystemet.font-weight.medium}"
1318
1186
  },
1319
1187
  semibold: {
1320
1188
  $type: "fontWeights",
1321
- $value: "{digdir.font-weight.semibold}"
1189
+ $value: "{designsystemet.font-weight.semibold}"
1322
1190
  },
1323
1191
  regular: {
1324
1192
  $type: "fontWeights",
1325
- $value: "{digdir.font-weight.regular}"
1193
+ $value: "{designsystemet.font-weight.regular}"
1326
1194
  }
1327
1195
  },
1328
1196
  "border-radius": {
@@ -1419,7 +1287,8 @@ var readFile = async (path2, dry, allowFileNotFound) => {
1419
1287
 
1420
1288
  // src/scripts/update-template.ts
1421
1289
  var DIRNAME = import.meta.dirname || __dirname;
1422
- var SOURCE_FILES_PATH = path.join(DIRNAME, "../../../../internal/design-tokens");
1290
+ var themeName = "designsystemet";
1291
+ var SOURCE_FILES_PATH = path.join(DIRNAME, "../../../../design-tokens");
1423
1292
  var TEMPLATE_FILES_PATH = path.join(DIRNAME, "../tokens/template/design-tokens");
1424
1293
  var designTokensPath = (_path) => path.join(SOURCE_FILES_PATH, _path);
1425
1294
  var argsFromToPaths = (path_) => [
@@ -1432,17 +1301,19 @@ var updateTemplates = async () => {
1432
1301
  await cp(...argsFromToPaths("primitives/modes/size"));
1433
1302
  await cp(...argsFromToPaths("primitives/modes/typography/size"));
1434
1303
  await cp(...argsFromToPaths("semantic/style.json"));
1435
- const digdirTypographyJson = await readFile(designTokensPath("primitives/modes/typography/primary/digdir.json"));
1304
+ const designsystemetTypographyJson = await readFile(
1305
+ designTokensPath(`primitives/modes/typography/primary/${themeName}.json`)
1306
+ );
1436
1307
  const typographyTemplate = R.set(
1437
- R.lensPath(["digdir", "font-family", "$value"]),
1308
+ R.lensPath([themeName, "font-family", "$value"]),
1438
1309
  "<font-family>",
1439
- JSON.parse(digdirTypographyJson)
1310
+ JSON.parse(designsystemetTypographyJson)
1440
1311
  );
1441
1312
  const typographyDir = path.join(TEMPLATE_FILES_PATH, "primitives/modes/typography/");
1442
1313
  await mkdir(typographyDir);
1443
1314
  await writeFile(
1444
1315
  path.join(typographyDir, "typography.template.json"),
1445
- JSON.stringify(typographyTemplate, null, 2).replaceAll("digdir", "<theme>")
1316
+ JSON.stringify(typographyTemplate, null, 2).replaceAll(themeName, "<theme>")
1446
1317
  );
1447
1318
  const categoryColorTemplate = accent_default.color.main;
1448
1319
  const categoryDir = path.join(TEMPLATE_FILES_PATH, "semantic/modes");
@@ -1475,17 +1346,17 @@ var updateTemplates = async () => {
1475
1346
  );
1476
1347
  const themeBaseFile = {
1477
1348
  color: {},
1478
- ...R.omit(["color"], digdir_default)
1349
+ ...R.omit(["color"], designsystemet_default)
1479
1350
  };
1480
1351
  await mkdir(path.join(TEMPLATE_FILES_PATH, "themes"));
1481
1352
  await writeFile(
1482
1353
  path.join(TEMPLATE_FILES_PATH, `themes/theme.base.template.json`),
1483
- JSON.stringify(themeBaseFile, null, 2).replaceAll("digdir", "<theme>")
1354
+ JSON.stringify(themeBaseFile, null, 2).replaceAll(themeName, "<theme>")
1484
1355
  );
1485
- const themeColorTemplate = digdir_default.color.accent;
1356
+ const themeColorTemplate = designsystemet_default.color.accent;
1486
1357
  await writeFile(
1487
1358
  path.join(TEMPLATE_FILES_PATH, `themes/theme.template.json`),
1488
- JSON.stringify(themeColorTemplate, null, 2).replaceAll("digdir.accent", "<theme>.<color>")
1359
+ JSON.stringify(themeColorTemplate, null, 2).replaceAll(`${themeName}.accent`, "<theme>.<color>")
1489
1360
  );
1490
1361
  console.log(pc2.green("Templates updated"));
1491
1362
  };
@@ -49,7 +49,7 @@ import pc4 from "picocolors";
49
49
  // package.json
50
50
  var package_default = {
51
51
  name: "@digdir/designsystemet",
52
- version: "1.10.0",
52
+ version: "1.11.0",
53
53
  description: "CLI for Designsystemet",
54
54
  author: "Designsystemet team",
55
55
  engines: {
@@ -120,14 +120,14 @@ var package_default = {
120
120
  picocolors: "^1.1.1",
121
121
  postcss: "^8.5.6",
122
122
  ramda: "^0.32.0",
123
- "style-dictionary": "^5.1.1",
123
+ "style-dictionary": "^5.1.3",
124
124
  zod: "^4.3.5",
125
- "zod-validation-error": "^4.0.2"
125
+ "zod-validation-error": "^5.0.0"
126
126
  },
127
127
  devDependencies: {
128
128
  "@tokens-studio/types": "0.5.2",
129
129
  "@types/chroma-js": "^3.1.2",
130
- "@types/node": "^22.19.3",
130
+ "@types/node": "^24.10.7",
131
131
  "@types/object-hash": "^3.0.6",
132
132
  "@types/ramda": "^0.31.1",
133
133
  tsup: "^8.5.1",
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@digdir/designsystemet",
4
- version: "1.10.0",
4
+ version: "1.11.0",
5
5
  description: "CLI for Designsystemet",
6
6
  author: "Designsystemet team",
7
7
  engines: {
@@ -72,14 +72,14 @@ var package_default = {
72
72
  picocolors: "^1.1.1",
73
73
  postcss: "^8.5.6",
74
74
  ramda: "^0.32.0",
75
- "style-dictionary": "^5.1.1",
75
+ "style-dictionary": "^5.1.3",
76
76
  zod: "^4.3.5",
77
- "zod-validation-error": "^4.0.2"
77
+ "zod-validation-error": "^5.0.0"
78
78
  },
79
79
  devDependencies: {
80
80
  "@tokens-studio/types": "0.5.2",
81
81
  "@types/chroma-js": "^3.1.2",
82
- "@types/node": "^22.19.3",
82
+ "@types/node": "^24.10.7",
83
83
  "@types/object-hash": "^3.0.6",
84
84
  "@types/ramda": "^0.31.1",
85
85
  tsup: "^8.5.1",
@@ -46,7 +46,7 @@ var readFile = async (path2, dry, allowFileNotFound) => {
46
46
  // package.json
47
47
  var package_default = {
48
48
  name: "@digdir/designsystemet",
49
- version: "1.10.0",
49
+ version: "1.11.0",
50
50
  description: "CLI for Designsystemet",
51
51
  author: "Designsystemet team",
52
52
  engines: {
@@ -117,14 +117,14 @@ var package_default = {
117
117
  picocolors: "^1.1.1",
118
118
  postcss: "^8.5.6",
119
119
  ramda: "^0.32.0",
120
- "style-dictionary": "^5.1.1",
120
+ "style-dictionary": "^5.1.3",
121
121
  zod: "^4.3.5",
122
- "zod-validation-error": "^4.0.2"
122
+ "zod-validation-error": "^5.0.0"
123
123
  },
124
124
  devDependencies: {
125
125
  "@tokens-studio/types": "0.5.2",
126
126
  "@types/chroma-js": "^3.1.2",
127
- "@types/node": "^22.19.3",
127
+ "@types/node": "^24.10.7",
128
128
  "@types/object-hash": "^3.0.6",
129
129
  "@types/ramda": "^0.31.1",
130
130
  tsup: "^8.5.1",
@@ -2217,7 +2217,7 @@ import * as R8 from "ramda";
2217
2217
  // package.json
2218
2218
  var package_default = {
2219
2219
  name: "@digdir/designsystemet",
2220
- version: "1.10.0",
2220
+ version: "1.11.0",
2221
2221
  description: "CLI for Designsystemet",
2222
2222
  author: "Designsystemet team",
2223
2223
  engines: {
@@ -2288,14 +2288,14 @@ var package_default = {
2288
2288
  picocolors: "^1.1.1",
2289
2289
  postcss: "^8.5.6",
2290
2290
  ramda: "^0.32.0",
2291
- "style-dictionary": "^5.1.1",
2291
+ "style-dictionary": "^5.1.3",
2292
2292
  zod: "^4.3.5",
2293
- "zod-validation-error": "^4.0.2"
2293
+ "zod-validation-error": "^5.0.0"
2294
2294
  },
2295
2295
  devDependencies: {
2296
2296
  "@tokens-studio/types": "0.5.2",
2297
2297
  "@types/chroma-js": "^3.1.2",
2298
- "@types/node": "^22.19.3",
2298
+ "@types/node": "^24.10.7",
2299
2299
  "@types/object-hash": "^3.0.6",
2300
2300
  "@types/ramda": "^0.31.1",
2301
2301
  tsup: "^8.5.1",
@@ -2233,7 +2233,7 @@ import * as R8 from "ramda";
2233
2233
  // package.json
2234
2234
  var package_default = {
2235
2235
  name: "@digdir/designsystemet",
2236
- version: "1.10.0",
2236
+ version: "1.11.0",
2237
2237
  description: "CLI for Designsystemet",
2238
2238
  author: "Designsystemet team",
2239
2239
  engines: {
@@ -2304,14 +2304,14 @@ var package_default = {
2304
2304
  picocolors: "^1.1.1",
2305
2305
  postcss: "^8.5.6",
2306
2306
  ramda: "^0.32.0",
2307
- "style-dictionary": "^5.1.1",
2307
+ "style-dictionary": "^5.1.3",
2308
2308
  zod: "^4.3.5",
2309
- "zod-validation-error": "^4.0.2"
2309
+ "zod-validation-error": "^5.0.0"
2310
2310
  },
2311
2311
  devDependencies: {
2312
2312
  "@tokens-studio/types": "0.5.2",
2313
2313
  "@types/chroma-js": "^3.1.2",
2314
- "@types/node": "^22.19.3",
2314
+ "@types/node": "^24.10.7",
2315
2315
  "@types/object-hash": "^3.0.6",
2316
2316
  "@types/ramda": "^0.31.1",
2317
2317
  tsup: "^8.5.1",
@@ -4,7 +4,7 @@ import pc3 from "picocolors";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "@digdir/designsystemet",
7
- version: "1.10.0",
7
+ version: "1.11.0",
8
8
  description: "CLI for Designsystemet",
9
9
  author: "Designsystemet team",
10
10
  engines: {
@@ -75,14 +75,14 @@ var package_default = {
75
75
  picocolors: "^1.1.1",
76
76
  postcss: "^8.5.6",
77
77
  ramda: "^0.32.0",
78
- "style-dictionary": "^5.1.1",
78
+ "style-dictionary": "^5.1.3",
79
79
  zod: "^4.3.5",
80
- "zod-validation-error": "^4.0.2"
80
+ "zod-validation-error": "^5.0.0"
81
81
  },
82
82
  devDependencies: {
83
83
  "@tokens-studio/types": "0.5.2",
84
84
  "@types/chroma-js": "^3.1.2",
85
- "@types/node": "^22.19.3",
85
+ "@types/node": "^24.10.7",
86
86
  "@types/object-hash": "^3.0.6",
87
87
  "@types/ramda": "^0.31.1",
88
88
  tsup: "^8.5.1",
@@ -5,7 +5,7 @@ import * as R2 from "ramda";
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@digdir/designsystemet",
8
- version: "1.10.0",
8
+ version: "1.11.0",
9
9
  description: "CLI for Designsystemet",
10
10
  author: "Designsystemet team",
11
11
  engines: {
@@ -76,14 +76,14 @@ var package_default = {
76
76
  picocolors: "^1.1.1",
77
77
  postcss: "^8.5.6",
78
78
  ramda: "^0.32.0",
79
- "style-dictionary": "^5.1.1",
79
+ "style-dictionary": "^5.1.3",
80
80
  zod: "^4.3.5",
81
- "zod-validation-error": "^4.0.2"
81
+ "zod-validation-error": "^5.0.0"
82
82
  },
83
83
  devDependencies: {
84
84
  "@tokens-studio/types": "0.5.2",
85
85
  "@types/chroma-js": "^3.1.2",
86
- "@types/node": "^22.19.3",
86
+ "@types/node": "^24.10.7",
87
87
  "@types/object-hash": "^3.0.6",
88
88
  "@types/ramda": "^0.31.1",
89
89
  tsup: "^8.5.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "CLI for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "engines": {
@@ -48,15 +48,15 @@
48
48
  "picocolors": "^1.1.1",
49
49
  "postcss": "^8.5.6",
50
50
  "ramda": "^0.32.0",
51
- "style-dictionary": "^5.1.1",
51
+ "style-dictionary": "^5.1.3",
52
52
  "zod": "^4.3.5",
53
- "zod-validation-error": "^4.0.2",
54
- "@digdir/designsystemet-types": "^1.10.0"
53
+ "zod-validation-error": "^5.0.0",
54
+ "@digdir/designsystemet-types": "^1.11.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@tokens-studio/types": "0.5.2",
58
58
  "@types/chroma-js": "^3.1.2",
59
- "@types/node": "^22.19.3",
59
+ "@types/node": "^24.10.7",
60
60
  "@types/object-hash": "^3.0.6",
61
61
  "@types/ramda": "^0.31.1",
62
62
  "tsup": "^8.5.1",