Skip to content

Commit 05648a5

Browse files
Themes: Add 3 and update 2 shadow presets in theme.json.
Adds Deep, Outlined, and Crisp default shadow presets to Core's `theme.json` file. Updates the Natural and Sharp `'shadow'` styles. These shadow presets are used to populate the Shadow tools in the Site Editor's Global Styles UI. References: * [WordPress/gutenberg#46502 Gutenberg PR 46502] Follow-up to [55176]. Props franz00, madhudollu, ajlende, beafialho, costdev, dhrupo, fabiankaegy, hellofromTonya, jameskoster, joen, kellychoffman, mamaduka, mtias, oandregal, priethor, richtabor, scruffian. Fixes #57708. See #57559. git-svn-id: https://develop.svn.wordpress.org/trunk@55405 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 01c65c0 commit 05648a5

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/wp-includes/theme.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,16 +326,32 @@
326326
}
327327
},
328328
"shadow": {
329+
"defaultPresets": true,
329330
"presets": [
330331
{
331332
"name": "Natural",
332333
"slug": "natural",
333-
"shadow": "0 .2rem .3rem 0 rgba(0,0,0, 0.3), 0 .5rem .6rem 0 rgba(0,0,0, 0.4)"
334+
"shadow": "6px 6px 9px rgba(0, 0, 0, 0.2)"
335+
},
336+
{
337+
"name": "Deep",
338+
"slug": "deep",
339+
"shadow": "12px 12px 50px rgba(0, 0, 0, 0.4)"
334340
},
335341
{
336342
"name": "Sharp",
337343
"slug": "sharp",
338-
"shadow": ".5rem .5rem 0 0 rgba(0,0,0, 0.4)"
344+
"shadow": "6px 6px 0px rgba(0, 0, 0, 0.2)"
345+
},
346+
{
347+
"name": "Outlined",
348+
"slug": "outlined",
349+
"shadow": "6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1)"
350+
},
351+
{
352+
"name": "Crisp",
353+
"slug": "crisp",
354+
"shadow": "6px 6px 0px rgba(0, 0, 0, 1)"
339355
}
340356
]
341357
},

0 commit comments

Comments
 (0)