-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep the default CSS variables for npm consumers (#24890)
- Loading branch information
1 parent
6e459ea
commit e215c80
Showing
3 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
// It is important to include these styles in all built stylesheets. | ||
// This allows to CSS variables post CSS plugin to generate fallbacks. | ||
// It also provides default CSS variables for npm package consumers. | ||
:root { | ||
@include admin-scheme(#007cba); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
module.exports = [ | ||
require( 'postcss-custom-properties' )( { | ||
importFrom: [ | ||
{ | ||
customProperties: { | ||
'--wp-admin-theme-color': '#007cba', | ||
'--wp-admin-theme-color-darker-10': '#006ba1', | ||
'--wp-admin-theme-color-darker-20': '#005a87', | ||
}, | ||
}, | ||
], | ||
} ), | ||
require( 'postcss-custom-properties' )(), | ||
require( 'autoprefixer' )( { grid: true } ), | ||
]; |