Skip to content

Commit

Permalink
Merge pull request mac-cain13#369 from iv-mexx/patch-2
Browse files Browse the repository at this point in the history
Update Color example to use .clr instead of .color
  • Loading branch information
mac-cain13 authored Nov 17, 2017
2 parents e5fe16a + 4de52f0 commit 74156bf
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 74156bf

Please sign in to comment.