This package bundles the SCSS files required to compile a WordPress admin color scheme in an npm-ready package.
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
Add to your project:
npm install wp-admin-colors
Include in your SCSS file and override variables as desired:
@import "~wp-admin-colors/dist/admin";
Note: The ~
is a webpack convention.
This repository checks for WordPress updates via a scheduled GitHub action every week. When a new version is detected, the GitHub action will check to see if the relevant files have changed, create an appropriately-titled pull request with the changes if they have, and automatically merge it. This leaves two remaining steps for a developer to publish a release:
- Merge the release pull request generated by release-please.
- Pull the changes into you locally cloned copy of the repository, then run
npm publish
.