-
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.
Add tests for new plugin theme.json merging functionality.
- Loading branch information
Showing
4 changed files
with
249 additions
and
1 deletion.
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
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,10 @@ | ||
<?php | ||
/** | ||
* Plugin Name: Test Plugin Theme JSON | ||
* Plugin URI: https://dev.test | ||
* Description: For testing plugin adding theme.json. | ||
* Version: 1.0 | ||
* Author: WordPress | ||
* Author URI: https://dev.test | ||
* Text Domain: dev-test | ||
*/ |
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,42 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/theme.json", | ||
"settings": { | ||
"appearanceTools": true, | ||
"border": { | ||
"color": true, | ||
"radius": true, | ||
"style": true, | ||
"width": true | ||
}, | ||
"color": { | ||
"custom": true, | ||
"customGradient": true, | ||
"link": true, | ||
"palette": [ | ||
{ | ||
"color": "#e44064", | ||
"name": "Pink Red", | ||
"slug": "pink-red" | ||
} | ||
] | ||
} | ||
}, | ||
"styles": { | ||
"blocks": { | ||
"core/button": { | ||
"border": { | ||
"radius": "10px" | ||
}, | ||
"color": { | ||
"background": "var(--wp--preset--color--pink-red)" | ||
} | ||
}, | ||
"mycustom/block": { | ||
"color": { | ||
"background": "var(--wp--preset--color--pink-red)" | ||
} | ||
} | ||
} | ||
}, | ||
"version": 2 | ||
} |