https://github.com/swordray/ios-color
iOS built-in colors defined as CSS variables.
https://github.com/swordray/ios-color
color colors css ios
Last synced: 18 days ago
JSON representation
iOS built-in colors defined as CSS variables.
- Host: GitHub
- URL: https://github.com/swordray/ios-color
- Owner: swordray
- License: mit
- Created: 2023-05-19T15:06:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T15:06:23.000Z (about 3 years ago)
- Last Synced: 2025-05-10T20:34:28.867Z (about 1 year ago)
- Topics: color, colors, css, ios
- Language: CSS
- Homepage: https://github.com/swordray/ios-color
- Size: 1.95 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ios-color
[iOS built-in colors](https://developer.apple.com/design/human-interface-guidelines/color) defined as CSS variables.
## Usage
Usage pre-defined variables in modern browsers or with transforming tools like PostCSS.
```css
@import "ios-color";
body {
color: var(--label);
background-color: var(--system-background);
}
a {
color: var(--system-blue);
}
```
## Install
### NPM
```bash
npm install ios-color
```
### Yarn
```bash
yarn add ios-color
```
## License
Copyright © 2023 Jianqiu Xiao swordray@gmail.com under The [MIT License](http://opensource.org/licenses/MIT).