README
wp-admin-colors
This package bundles the SCSS files required to compile a WordPress admin color scheme in a npm-ready package.
Hein?
./dist/*.*
is a copy/paste of these files:
- https://github.com/WordPress/WordPress/blob/master/wp-admin/css/colors/_admin.scss
- https://github.com/WordPress/WordPress/blob/master/wp-admin/css/colors/_mixins.scss
- https://github.com/WordPress/WordPress/blob/master/wp-admin/css/colors/_variables.scss
Usage
Add to your project:
npm install wp-admin-colors
Include in your SCSS file and override some variables:
@import "~wp-admin-colors/dist/admin";
Note: The ~
is a webpack convention.
How to update wp-admin-colors
- Clone this repo.
- Run
npm install
. - In gulpfile.js, update the WordPress version. Note that WordPress does not use semantic versioning, so "major" versions will be something like
5.1
, not5.1.0
. - Run
npm run build
. - Bump the version in package.json and package-lock.json to match the WordPress version.
- Commit and push, then run
npm publish
to publish a new version. - Tag a new release: https://github.com/pressbooks/wp-admin-colors/releases