Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix: change dt/android/color output from RGBA to ARGB (#5)
Browse files Browse the repository at this point in the history
This reverts commit 0896acb.
  • Loading branch information
braddialpad committed Oct 24, 2022
1 parent 0896acb commit ce72695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ StyleDictionary.registerTransform({
},
transformer: (token, options) => {
const hex8 = Color(token.value).toHex8();
return `Color(0x${hex8})`;
return `Color(0x${hex8.slice(6) + hex8.slice(0, 6)})`;
}
});

Expand Down

0 comments on commit ce72695

Please sign in to comment.