Skip to content
This repository was archived by the owner on Sep 6, 2018. It is now read-only.

Commit 2ebc5d4

Browse files
committed
Update documentation
1 parent aff2523 commit 2ebc5d4

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Due to the removal of legacy code, there are a few breaking changes in this new
3434
* Storyboards now provide a `platform` identifier (iOS, macOS, tvOS, watchOS).
3535
[David Jennes](https://github.com/djbe)
3636
[#45](https://github.com/SwiftGen/templates/issues/45)
37+
* Added support for multiple color palettes.
38+
[David Jennes](https://github.com/djbe)
39+
[#41](https://github.com/SwiftGen/templates/issues/40)
3740

3841
### Internal Changes
3942

Documentation/Colors.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ The colors parser supports multiple input file types:
1313

1414
The output context has the following structure:
1515

16-
- `colors`: `Array` — list of colors:
17-
- `name` : `String` — name of the color
18-
- `red` : `String` — hex value of the red component
19-
- `green`: `String` — hex value of the green component
20-
- `blue` : `String` — hex value of the blue component
21-
- `alpha`: `String` — hex value of the alpha component
16+
- `palettes`: `Array` of:
17+
- `name` : `String` — name of the palette
18+
- `colors`: `Array` of:
19+
- `name` : `String` — name of each color
20+
- `red` : `String` — hex value of the red component
21+
- `green`: `String` — hex value of the green component
22+
- `blue` : `String` — hex value of the blue component
23+
- `alpha`: `String` — hex value of the alpha component

0 commit comments

Comments
 (0)