Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ColorsKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ColorsKit'
s.version = '0.1.0'
s.version = '0.1.1'
s.summary = 'Comprehensive color management for iOS: hex APIs, theming, accessibility, gradients.'
s.description = <<-DESC
ColorKit simplifies color usage in iOS apps by providing:
Expand All @@ -13,7 +13,7 @@ ColorKit simplifies color usage in iOS apps by providing:
DESC
s.homepage = 'https://github.com/ckdash-git/ColorKit'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Your Name' => 'Chandan Kumar Dash' }
s.author = { 'Chandan Kumar Dash' => 'chandan@optionallabs.com' }
s.source = { :git => 'https://github.com/ckdash-git/ColorKit.git', :tag => s.version.to_s }
s.swift_version = '5.9'
s.ios.deployment_target = '13.0'
Expand Down
2 changes: 1 addition & 1 deletion Documentation/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Use the GitHub URL and a tagged version in Xcode or `Package.swift`.

```swift
.dependencies: [
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.0")
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.1")
]
.targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Example/ConsumerSample/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
.executableTarget(
name: "ConsumerSample",
dependencies: [
.product(name: "ColorKit", package: "ColorsKit")
.product(name: "ColorKit", package: "ColorKit")
]
)
]
Expand Down
47 changes: 45 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,54 @@
# ColorKit

[![version](https://img.shields.io/github/v/tag/ckdash-git/ColorKit?label=version)](https://github.com/ckdash-git/ColorKit/tags) [![lines of code](https://tokei.rs/b1/github/ckdash-git/ColorKit?category=code)](https://github.com/ckdash-git/ColorKit) [![license](https://img.shields.io/github/license/ckdash-git/ColorKit)](LICENSE) [![CocoaPods](https://img.shields.io/cocoapods/v/ColorsKit.svg)](https://cocoapods.org/pods/ColorsKit)
[![version](https://img.shields.io/github/v/tag/ckdash-git/ColorKit?label=version)](https://github.com/ckdash-git/ColorKit/tags) [![lines of code](https://tokei.rs/b1/github/ckdash-git/ColorKit?category=code)](https://github.com/ckdash-git/ColorKit) [![license](https://img.shields.io/github/license/ckdash-git/ColorKit)](https://github.com/ckdash-git/ColorKit/blob/main/LICENSE)

Pragmatic color utilities for SwiftUI and UIKit.

ColorKit helps you parse hex colors, check accessibility contrast, generate palettes, build gradients, and simulate color‑vision deficiencies — all with a tiny, focused API that feels at home in Swift.

## Installation (SPM)
Add the package to Xcode or your `Package.swift` using the public repo and a tag.

- URL: `https://github.com/ckdash-git/ColorKit.git`
- Minimum platforms: iOS 13+, macOS 12+, tvOS 13+, watchOS 6+

```swift
// Package.swift
.dependencies: [
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.1")
]
.targets: [
.target(
name: "App",
dependencies: [
.product(name: "ColorKit", package: "ColorKit")
]
)
]
```

In Xcode: File → Add Packages… → paste the URL → add the `ColorKit` product.

## Installation (CocoaPods)
Add to your Podfile (iOS example):

```ruby
platform :ios, '13.0'
use_frameworks!

target 'App' do
pod 'ColorsKit', '~> 0.1'
end
```

Then run `pod install` and import the module:

```swift
import ColorKit
```

Note: The CocoaPods pod name is `ColorsKit`, but the Swift module is `ColorKit`.

## Features
- Hex parsing to and from `RGBA` (`#RGB`, `#RGBA`, `#RRGGBB`, `#RRGGBBAA`)
- WCAG contrast ratio and AA/AAA compliance checks
Expand All @@ -22,7 +65,7 @@ Add the package to Xcode or your `Package.swift` using the public repo and a tag
```swift
// Package.swift
.dependencies: [
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.0")
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.1")
]
.targets: [
.target(
Expand Down