Closed davidaberg closed 3 years ago
Hello. I've found an issue. typography
section must contains nameStyle
parameter. Just add nameStyle: camelCase
parameter to the typography section.
I've just updated config file for ExampleSwiftUI. https://github.com/RedMadRobot/figma-export/blob/master/Examples/ExampleSwiftUI/figma-export.yaml
That did it, thanks!
It looks like the figma-export init
command is still creating a invalid sample config
Not sure what goes wrong here. I modified the yaml file from the SwiftUI example app with my own file Id. When I run
figma-export colors -i figma-export.yaml
I then get this error:Error: keyNotFound(CodingKeys(stringValue: "nameStyle", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "ios", intValue: nil), CodingKeys(stringValue: "colors", intValue: nil)], debugDescription: "No value associated with key CodingKeys(stringValue: \"nameStyle\", intValue: nil) (\"nameStyle\").", underlyingError: nil))
I tried a couple of different Figma files and got the same error.