Created
July 9, 2024 22:41
-
-
Save bacoords/5bff837a6557d63530ab47e88ca62eef to your computer and use it in GitHub Desktop.
Example dark section style
This file contains hidden or 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
{ | |
"$schema": "https://schemas.wp.org/trunk/theme.json", | |
"version": 3, | |
"title": "Section Dark Mode", | |
"slug": "section-dark", | |
"blockTypes": ["core/group"], | |
"styles": { | |
"color": { | |
"background": "var:preset|color|foreground", | |
"text": "var:preset|color|background" | |
}, | |
"elements": { | |
"button": { | |
"color": { | |
"text": "var:preset|color|primary" | |
}, | |
"border":{ | |
"color": "var:preset|color|primary" | |
}, | |
":hover": { | |
"color": { | |
"background": "var:preset|color|background" | |
} | |
} | |
}, | |
"h3":{ | |
"color" : { | |
"text": "var:preset|color|primary" | |
} | |
}, | |
"link": { | |
"color": { | |
"text": "var:preset|color|tertiary" | |
}, | |
":hover": { | |
"color": { | |
"text": "var:preset|color|tertiary" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment