https://github.com/phpcolor/apple-colors
Color palettes used in Apple interfaces
https://github.com/phpcolor/apple-colors
apple color colors ios macos palette php scale watchos
Last synced: 6 months ago
JSON representation
Color palettes used in Apple interfaces
- Host: GitHub
- URL: https://github.com/phpcolor/apple-colors
- Owner: phpcolor
- License: mit
- Created: 2024-04-07T01:52:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-21T08:20:34.000Z (over 1 year ago)
- Last Synced: 2025-05-22T22:06:16.854Z (about 1 year ago)
- Topics: apple, color, colors, ios, macos, palette, php, scale, watchos
- Language: PHP
- Homepage: https://phpcolor.dev
- Size: 7.81 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Apple Colors
This package provides access to the color palettes used in Apple interfaces.
## Installation
```bash
composer require phpcolor/apple-colors
```
## Usage
### Color Palettes
```php
use PhpColor\Colors\Apple\AppleColors as Apple;
$colors = Apple::iOS();
$colors = Apple::iPadOS();
$colors = Apple::macOS();
$colors = Apple::tvOS();
$colors = Apple::visionOS();
$colors = Apple::watchOS();
```
### Themes
```php
use PhpColor\Colors\Apple\AppleColors as Apple;
$colors = Apple::macOS('light');
$colors = Apple::macOS('dark');
$colors = Apple::iOS('light');
$colors = Apple::iOS('dark');
// visionOS has only one theme
$colors = Apple::visionOS();
```
### Color names
```php
use PhpColor\Colors\Apple\AppleColors as Apple;
$colors = Apple::watchOS();
$names = $colors->getNames();
// 'red', 'orange', 'yellow', 'green', 'mint', 'teal', 'cyan',
// 'blue', 'indigo', 'purple', 'pink', 'brown', 'gray'
```
### Color values
```php
use PhpColor\Colors\Apple\AppleColors as Apple;
$colors = Apple::macOS();
echo $colors->blue; // #007AFF
echo $colors->get('indigo'); // #5856D6
```
---

## Credits
The colors listed in this project are based on the colors used by [Apple](https://www.apple.com/).
## License
This [PHPColor](https://phpcolor.dev) package is released under the [MIT license](LICENSE).