From bdef8a73300512c55e66e7da5c1d773b2f47dd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=A4gy?= Date: Mon, 17 Feb 2025 14:47:25 +0100 Subject: [PATCH] Generate built CSS file containing the admin color theme CSS custom properties (#69128) Co-authored-by: fabiankaegy Co-authored-by: karmatosed Co-authored-by: t-hamano Co-authored-by: youknowriad --- packages/base-styles/README.md | 4 ++++ packages/base-styles/src/admin-schemes.scss | 1 + 2 files changed, 5 insertions(+) create mode 100644 packages/base-styles/src/admin-schemes.scss diff --git a/packages/base-styles/README.md b/packages/base-styles/README.md index 9c57d91ac5a98..25034c13a977b 100644 --- a/packages/base-styles/README.md +++ b/packages/base-styles/README.md @@ -40,6 +40,10 @@ To make that work with [`sass`](https://www.npmjs.com/package/sass) or [`node-sa } ``` +### CSS Admin Themes + +The package also includes a built version of the output generated by the `wordpress-admin-schemes()` mixin which can be used directly in your project. The CSS file is located at `node_modules/@wordpress/base-styles/build-style/admin-schemes.css`. + ## Contributing to this package This is an individual package that's part of the Gutenberg project. The project is organized as a monorepo. It's made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to [npm](https://www.npmjs.com/) and used by [WordPress](https://make.wordpress.org/core/) as well as other software projects. diff --git a/packages/base-styles/src/admin-schemes.scss b/packages/base-styles/src/admin-schemes.scss new file mode 100644 index 0000000000000..9aee5a6aed3c6 --- /dev/null +++ b/packages/base-styles/src/admin-schemes.scss @@ -0,0 +1 @@ +@include wordpress-admin-schemes();