https://github.com/duckthom/google-colors-generator
Generate a SCSS/LESS file with the main colors from Google's material design guidelines
https://github.com/duckthom/google-colors-generator
Last synced: 4 months ago
JSON representation
Generate a SCSS/LESS file with the main colors from Google's material design guidelines
- Host: GitHub
- URL: https://github.com/duckthom/google-colors-generator
- Owner: DuckThom
- License: mit
- Created: 2016-04-08T22:58:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-30T20:12:09.000Z (almost 10 years ago)
- Last Synced: 2025-05-21T16:50:47.441Z (about 1 year ago)
- Language: HTML
- Homepage: https://material.google.com/style/color.html
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Colors Generator [](https://travis-ci.org/DuckThom/google-colors-generator) [](https://styleci.io/repos/55814616)
Generate a SCSS/LESS file with the main colors from https://material.google.com/style/color.html as variables.
The following color "strengths" have been added:
- 50, 100, 200, 300, 400, 500, 600, 700, 800, 900
- A100, A200, A400, A700
## Requirements
- PHP 5.5.9 or higher
## Installation
- Clone the repository `git clone https://github.com/DuckThom/google-colors-generator`
- Run `composer install` from the repository root folder
## Usage
```
$ php console generate:style --help
Usage:
generate:style [options] [--]
Arguments:
type Which style type should we generate?
Options:
--cache Do not download the source HTML file with curl
--pretend Do not write files
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Generate a style file in the given type
```
## Output
Style files will be written to `storage/colors.` ie. `storage/colors.scss`

## Contributions
If you see something that could be improved, feel free to send a Pull Request.
Please use [PSR-2](http://www.php-fig.org/psr/psr-2/) where possible.