Skip to content

Commit

Permalink
Update Color example to use .clr instead of .color
Browse files Browse the repository at this point in the history
  • Loading branch information
iv-mexx authored Nov 17, 2017
1 parent 0306ec1 commit 4de52f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/Colors.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
About Colors
============

R.swift can parse .clr color palette files and generate structs in `R.colors.*`.
R.swift can parse .clr color palette files and generate structs in `R.clr.*`.
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()`.
> A designer maintains a color palette called `App Colors.clr`, a developer refers to colors like so: `R.clr.appColors.errorColor()`.
>
> When the designer updates the color, the new `App Colors.clr` file is copied to the project, and R.swift will generate a new color constant with the same identifier.
Expand Down

0 comments on commit 4de52f0

Please sign in to comment.