Skip to content

Commit

Permalink
Merge pull request mac-cain13#215 from mac-cain13/tomlokhorst-patch-1
Browse files Browse the repository at this point in the history
Update Colors.md
  • Loading branch information
tomlokhorst committed May 16, 2016
2 parents 5d0acac + 93206b7 commit b429495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/Colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ About Colors
R.swift can parse .clr color palette files and generate structs in `R.colors.*`.
This is useful if you're using .clr color palettes as the source of colors in your project.

_NOTE: Make sure the .clr file is part of the project, and a member of the target, for R.swift to pick it up._

A potential work flow is this:
> A designer maintains a color palette called `App Colors.clr`, a developer refers to colors like so: `R.colors.appColors.errorColor()`.
>
Expand All @@ -19,6 +21,6 @@ The above points are not resolved by R.swift, so keep these in mind when using c

### Further reading

- Discussion on using [other file formats](https://github.com/mac-cain13/R.swift/issues/204)
- R.swift issue: [Add support for R.colors from .clr files](https://github.com/mac-cain13/R.swift/issues/169)
- Natasha The Robot: [Xcode Tip: Color palette](http://natashatherobot.com/xcode-color-palette/)

0 comments on commit b429495

Please sign in to comment.