<commit_before>Spectrum
========

Generates color palettes and categories for Cocoa projects<commit_msg>added actual readme content<commit_after>Spectrum
========
Keep your app's colors in-sync between InterfaceBuilder and code!


Command-line utility which uses a Ruby DSL to synchronize color palettes, Objective-C UIColor categories, and Swift UIColor extensions. Define a colors.rb file and execute the spectrum command from the same directory to generate the output files.

## DSL Overview

Specifying a class/method prefix (required):
```ruby
prefix :spc # subsitute your prefix as desired
```

Specifying output formats (optional, defaults to `:palette` and `:objc`):
```ruby
formats :palette, :swift
format  :objc, 'path/to/categories'
```

Specifying colors (optional, but it's pretty pointless not to):
```ruby
color :red,    (components 255, 0, 0)
color :gray,   (hex 0xEEEEEE 0.6)
color :white,  (white 1.0)
color :overlay (components 0.8, 0.7, 0.2, 0.75)

## alternate syntax

color :red,     r: 255
color :gray,    hex: 0xEEEEEE, a: 0.6
color :white,   w: 1.0
color :overlay, r: 0.8, g: 0.7, b: 0.2, a: 0.75
```
{'fraction_non_alphanumeric': 0.12088888888888889, 'fraction_numerical': 0.032, 'mean_word_length': 4.63, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1103603', 'n_tokens_mistral': 400, 'n_tokens_neox': 353, 'n_words': 146}