Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryelle/admin-color-schemes

Even more admin color schemes for WP admin
https://github.com/ryelle/admin-color-schemes

Last synced: 15 days ago
JSON representation

Even more admin color schemes for WP admin

Awesome Lists containing this project

README

        

Admin Color Schemes
===================

Even more admin color schemes for WP admin.

Evergreen & Mint designed by @melchoyce

Primary, Sunset, and Vineyard designed by Kate & Dave Whitley

Kirk inspired by [the WordPress 5.3 release art.](https://wordpress.org/news/2019/11/kirk/)

Adderley inspired by [the WordPress 5.4 release art.](https://wordpress.org/news/2020/03/adderley/)

## Development

To work on the color schemes, first [fork this repo](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) to your account. Clone it into your plugins directory, and install the dependencies. You will need [node & npm](https://nodejs.org/en/) installed.

```
$ git clone [email protected]:[YOUR_USERNAME]/admin-color-schemes.git
$ cd admin-color-schemes
$ npm install
$ npm run build
```

You can also run `npm start` to watch the scss files as you work.

### Color Scheme Structure

Each color scheme has a folder, and in each folder is a `colors.scss` file, and 2 `.css` files. The CSS files are generated by the steps above, you should not need to edit these. A basic color scheme defines 3 variables, but you can add more. The list of variables you can define are in `_variables.scss`.

```scss
$base-color: #36395c;
$highlight-color: #8bbc9f;
$notification-color: #d2ac1f;
```

The last part of the `colors.scss` file is an import, which is how the scheme is generated. This is required, otherwise your color scheme won't work.

```scss
@import "../admin";
```

Now your scheme can be added to `admin-color-schemes.php` 🎨

**Note:** `_admin.scss`, `_mixins.scss`, and `_variables.scss` are synced with WordPress core files, and shouldn't be edited.