Skip to content

Commit

Permalink
add colors sort by name
Browse files Browse the repository at this point in the history
  • Loading branch information
movch committed Mar 11, 2022
1 parent ad65577 commit 15b3fe8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ struct Colors: ParsableCommand {
private func render(figmaNodes: FileNodesResponse) throws -> String {
let paletteExtractor = PaletteExtractor(figmaNodes: figmaNodes)
let paletteColors = try paletteExtractor.extract()
.sorted(by: { first, second in first.name < second.name })

let context = ["colors": paletteColors]
let environment = Environment(
Expand Down

0 comments on commit 15b3fe8

Please sign in to comment.