Contents

swift-standards/swift-color-standard

Unified color representation for Swift, composing CSS and display-profile specifications.

Overview

This package provides a Color type and protocol that convert between color spaces — sRGB, CIE LAB, CIE LCH, Oklab, Oklch, and CIE XYZ — under the Color Standard target, plus a small Theme target for color-role/product composition. It composes IEC 61966 (display-referred color management), ISO 9899, and ECMA 48 rather than reimplementing colorimetry from scratch.

Installation

dependencies: [
    .package(url: "https://github.com/swift-standards/swift-color-standard.git", from: "0.1.0")
]

Add the product to your target:

.target(
    name: "App",
    dependencies: [
        .product(name: "Color Standard", package: "swift-color-standard")
    ]
)

The package also vends Theme for color-role and product composition.

License

This package is licensed under the Apache License 2.0. See LICENSE.md for details.

Package Metadata

Repository: swift-standards/swift-color-standard

Default branch: main

README: README.md