Build with PHPColor
Start from the beginning, follow a focused Guide, solve one task with a recipe, or look up the API.
Learn the library
Getting Started
One connected path from installation to production CSS.
Begin the walkthroughUnderstand a decision
The Guide
Short chapters for choosing an input, a space, an operation, or an output.
Browse the complete GuideComplete one task
Recipes
Copyable, verified solutions with the decision already made.
- Validate CSS input
tryFrom() - Build a tonal scale
lightnessScale() - Repair contrast
ContrastSolver
Look up the contract
API Reference
Classes, signatures, parameters, return values, and exceptions from the installed library.
Color::parse()- ColorInterface
Color::mix()- ColorInterface
Color::contrast()- float