Skip to content

Commit 6012ab5

Browse files
committed
fix Microsoft fluent semanticColors aliases
1 parent d5ef7e9 commit 6012ab5

4 files changed

Lines changed: 9 additions & 121 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.2
2+
3+
- Microsoft Fluent: fix `semanticColors.cardShadow` and `semanticColors.cardShadowHovered`
4+
15
## 1.1.1
26

37
- Microsoft Fluent: fix bad elevation shadow values

microsoft-fluent/theme-default.tokens.json

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,69 +1043,11 @@
10431043
},
10441044
"cardShadow": {
10451045
"$type": "shadow",
1046-
"$value": [
1047-
{
1048-
"color": {
1049-
"colorSpace": "srgb",
1050-
"components": [
1051-
0,
1052-
0,
1053-
0
1054-
],
1055-
"alpha": 1,
1056-
"hex": "#000"
1057-
},
1058-
"offsetX": {
1059-
"value": 0,
1060-
"unit": "px"
1061-
},
1062-
"offsetY": {
1063-
"value": 0,
1064-
"unit": "px"
1065-
},
1066-
"blur": {
1067-
"value": 0,
1068-
"unit": "px"
1069-
},
1070-
"spread": {
1071-
"value": 0,
1072-
"unit": "px"
1073-
}
1074-
}
1075-
]
1046+
"$value": "{effects.elevation4}"
10761047
},
10771048
"cardShadowHovered": {
10781049
"$type": "shadow",
1079-
"$value": [
1080-
{
1081-
"color": {
1082-
"colorSpace": "srgb",
1083-
"components": [
1084-
0,
1085-
0,
1086-
0
1087-
],
1088-
"alpha": 1,
1089-
"hex": "#000"
1090-
},
1091-
"offsetX": {
1092-
"value": 0,
1093-
"unit": "px"
1094-
},
1095-
"offsetY": {
1096-
"value": 0,
1097-
"unit": "px"
1098-
},
1099-
"blur": {
1100-
"value": 0,
1101-
"unit": "px"
1102-
},
1103-
"spread": {
1104-
"value": 0,
1105-
"unit": "px"
1106-
}
1107-
}
1108-
]
1050+
"$value": "{effects.elevation8}"
11091051
},
11101052
"primaryButtonBorder": {
11111053
"$type": "color",

microsoft-fluent/theme-inverted.tokens.json

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,69 +1043,11 @@
10431043
},
10441044
"cardShadow": {
10451045
"$type": "shadow",
1046-
"$value": [
1047-
{
1048-
"color": {
1049-
"colorSpace": "srgb",
1050-
"components": [
1051-
0,
1052-
0,
1053-
0
1054-
],
1055-
"alpha": 1,
1056-
"hex": "#000"
1057-
},
1058-
"offsetX": {
1059-
"value": 0,
1060-
"unit": "px"
1061-
},
1062-
"offsetY": {
1063-
"value": 0,
1064-
"unit": "px"
1065-
},
1066-
"blur": {
1067-
"value": 0,
1068-
"unit": "px"
1069-
},
1070-
"spread": {
1071-
"value": 0,
1072-
"unit": "px"
1073-
}
1074-
}
1075-
]
1046+
"$value": "{effects.elevation4}"
10761047
},
10771048
"cardShadowHovered": {
10781049
"$type": "shadow",
1079-
"$value": [
1080-
{
1081-
"color": {
1082-
"colorSpace": "srgb",
1083-
"components": [
1084-
0,
1085-
0,
1086-
0
1087-
],
1088-
"alpha": 1,
1089-
"hex": "#000"
1090-
},
1091-
"offsetX": {
1092-
"value": 0,
1093-
"unit": "px"
1094-
},
1095-
"offsetY": {
1096-
"value": 0,
1097-
"unit": "px"
1098-
},
1099-
"blur": {
1100-
"value": 0,
1101-
"unit": "px"
1102-
},
1103-
"spread": {
1104-
"value": 0,
1105-
"unit": "px"
1106-
}
1107-
}
1108-
]
1050+
"$value":"{effects.elevation8}"
11091051
},
11101052
"primaryButtonBorder": {
11111053
"$type": "color",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dtcg-examples",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Open source design systems, expressed as DTCG JSON",
55
"keywords": [
66
"carbon",

0 commit comments

Comments
 (0)