[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/ -> theme.json (source)

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/theme.json",
   3      "version": 2,
   4      "customTemplates": [
   5          {
   6              "name": "blank",
   7              "title": "Blank",
   8              "postTypes": [
   9                  "page",
  10                  "post"
  11              ]
  12          },
  13          {
  14              "name": "page-large-header",
  15              "title": "Page (Large Header)",
  16              "postTypes": [
  17                  "page"
  18              ]
  19          },
  20          {
  21              "name": "single-no-separators",
  22              "title": "Single Post (No Separators)",
  23              "postTypes": [
  24                  "post"
  25              ]
  26          },
  27          {
  28              "name": "page-no-separators",
  29              "title": "Page (No Separators)",
  30              "postTypes": [
  31                  "page"
  32              ]
  33          }
  34      ],
  35      "settings": {
  36          "appearanceTools": true,
  37          "color": {
  38              "duotone": [
  39                  {
  40                      "colors": [ "#000000", "#ffffff" ],
  41                      "slug": "foreground-and-background",
  42                      "name": "Foreground and background"
  43                  },
  44                  {
  45                      "colors": [ "#000000", "#ffe2c7" ],
  46                      "slug": "foreground-and-secondary",
  47                      "name": "Foreground and secondary"
  48                  },
  49                  {
  50                      "colors": [ "#000000", "#f6f6f6" ],
  51                      "slug": "foreground-and-tertiary",
  52                      "name": "Foreground and tertiary"
  53                  },
  54                  {
  55                      "colors": [ "#1a4548", "#ffffff" ],
  56                      "slug": "primary-and-background",
  57                      "name": "Primary and background"
  58                  },
  59                  {
  60                      "colors": [ "#1a4548", "#ffe2c7" ],
  61                      "slug": "primary-and-secondary",
  62                      "name": "Primary and secondary"
  63                  },
  64                  {
  65                      "colors": [ "#1a4548", "#f6f6f6" ],
  66                      "slug": "primary-and-tertiary",
  67                      "name": "Primary and tertiary"
  68                  }
  69              ],
  70              "gradients": [
  71                  {
  72                      "slug": "vertical-secondary-to-tertiary",
  73                      "gradient": "linear-gradient(to bottom,var(--wp--preset--color--secondary) 0%,var(--wp--preset--color--tertiary) 100%)",
  74                      "name": "Vertical secondary to tertiary"
  75                  },
  76                  {
  77                      "slug": "vertical-secondary-to-background",
  78                      "gradient": "linear-gradient(to bottom,var(--wp--preset--color--secondary) 0%,var(--wp--preset--color--background) 100%)",
  79                      "name": "Vertical secondary to background"
  80                  },
  81                  {
  82                      "slug": "vertical-tertiary-to-background",
  83                      "gradient": "linear-gradient(to bottom,var(--wp--preset--color--tertiary) 0%,var(--wp--preset--color--background) 100%)",
  84                      "name": "Vertical tertiary to background"
  85                  },
  86                  {
  87                      "slug": "diagonal-primary-to-foreground",
  88                      "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--primary) 0%,var(--wp--preset--color--foreground) 100%)",
  89                      "name": "Diagonal primary to foreground"
  90                  },
  91                  {
  92                      "slug": "diagonal-secondary-to-background",
  93                      "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--secondary) 50%,var(--wp--preset--color--background) 50%)",
  94                      "name": "Diagonal secondary to background"
  95                  },
  96                  {
  97                      "slug": "diagonal-background-to-secondary",
  98                      "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--background) 50%,var(--wp--preset--color--secondary) 50%)",
  99                      "name": "Diagonal background to secondary"
 100                  },
 101                  {
 102                      "slug": "diagonal-tertiary-to-background",
 103                      "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--tertiary) 50%,var(--wp--preset--color--background) 50%)",
 104                      "name": "Diagonal tertiary to background"
 105                  },
 106                  {
 107                      "slug": "diagonal-background-to-tertiary",
 108                      "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--background) 50%,var(--wp--preset--color--tertiary) 50%)",
 109                      "name": "Diagonal background to tertiary"
 110                  }
 111              ],
 112              "palette": [
 113                  {
 114                      "slug": "foreground",
 115                      "color": "#000000",
 116                      "name": "Foreground"
 117                  },
 118                  {
 119                      "slug": "background",
 120                      "color": "#ffffff",
 121                      "name": "Background"
 122                  },
 123                  {
 124                      "slug": "primary",
 125                      "color": "#1a4548",
 126                      "name": "Primary"
 127                  },
 128                  {
 129                      "slug": "secondary",
 130                      "color": "#ffe2c7",
 131                      "name": "Secondary"
 132                  },
 133                  {
 134                      "slug": "tertiary",
 135                      "color": "#F6F6F6",
 136                      "name": "Tertiary"
 137                  }
 138              ]
 139          },
 140          "custom": {
 141              "spacing": {
 142                  "small": "max(1.25rem, 5vw)",
 143                  "medium": "clamp(2rem, 8vw, calc(4 * var(--wp--style--block-gap)))",
 144                  "large": "clamp(4rem, 10vw, 8rem)",
 145                  "outer": "var(--wp--custom--spacing--small, 1.25rem)"
 146              },
 147              "typography": {
 148                  "font-size": {
 149                      "huge": "clamp(2.25rem, 4vw, 2.75rem)",
 150                      "gigantic": "clamp(2.75rem, 6vw, 3.25rem)",
 151                      "colossal": "clamp(3.25rem, 8vw, 6.25rem)"
 152                  },
 153                  "line-height": {
 154                      "tiny": 1.15,
 155                      "small": 1.2,
 156                      "medium": 1.4,
 157                      "normal": 1.6
 158                  }
 159              }
 160          },
 161          "spacing": {
 162              "units": [
 163                  "%",
 164                  "px",
 165                  "em",
 166                  "rem",
 167                  "vh",
 168                  "vw"
 169              ]
 170          },
 171          "typography": {
 172              "dropCap": false,
 173              "fontFamilies": [
 174                  {
 175                      "fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif",
 176                      "name": "System Font",
 177                      "slug": "system-font"
 178                  },
 179                  {
 180                      "fontFamily": "\"Source Serif Pro\", serif",
 181                      "name": "Source Serif Pro",
 182                      "slug": "source-serif-pro",
 183                      "fontFace": [
 184                          {
 185                              "fontFamily": "Source Serif Pro",
 186                              "fontWeight": "200 900",
 187                              "fontStyle": "normal",
 188                              "fontStretch": "normal",
 189                              "src": [ "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2" ]
 190                          },
 191                          {
 192                              "fontFamily": "Source Serif Pro",
 193                              "fontWeight": "200 900",
 194                              "fontStyle": "italic",
 195                              "fontStretch": "normal",
 196                              "src": [ "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2" ]
 197                          }
 198                      ]
 199                  }
 200              ],
 201              "fontSizes": [
 202                  {
 203                      "size": "1rem",
 204                      "slug": "small"
 205                  },
 206                  {
 207                      "size": "1.125rem",
 208                      "slug": "medium"
 209                  },
 210                  {
 211                      "size": "1.75rem",
 212                      "slug": "large"
 213                  },
 214                  {
 215                      "size": "clamp(1.75rem, 3vw, 2.25rem)",
 216                      "slug": "x-large"
 217                  }
 218              ]
 219          },
 220          "layout": {
 221              "contentSize": "650px",
 222              "wideSize": "1000px"
 223          }
 224      },
 225      "styles": {
 226          "blocks": {
 227              "core/button": {
 228                  "border": {
 229                      "radius": "0"
 230                  },
 231                  "color": {
 232                      "background": "var(--wp--preset--color--primary)",
 233                      "text": "var(--wp--preset--color--background)"
 234                  },
 235                  "typography": {
 236                      "fontSize": "var(--wp--preset--font-size--medium)"
 237                  }
 238              },
 239              "core/post-title": {
 240                  "typography": {
 241                      "fontFamily": "var(--wp--preset--font-family--source-serif-pro)",
 242                      "fontWeight": "300",
 243                      "lineHeight": "var(--wp--custom--typography--line-height--tiny)",
 244                      "fontSize": "var(--wp--custom--typography--font-size--gigantic)"
 245                  }
 246              },
 247              "core/post-comments": {
 248                  "spacing": {
 249                      "padding": {
 250                          "top": "var(--wp--custom--spacing--small)"
 251                      }
 252                  }
 253              },
 254              "core/pullquote": {
 255                  "border": {
 256                      "width": "1px 0"
 257                  }
 258              },
 259              "core/query-title": {
 260                  "typography": {
 261                      "fontFamily": "var(--wp--preset--font-family--source-serif-pro)",
 262                      "fontWeight": "300",
 263                      "lineHeight": "var(--wp--custom--typography--line-height--small)",
 264                      "fontSize": "var(--wp--custom--typography--font-size--gigantic)"
 265                  }
 266              },
 267              "core/quote": {
 268                  "border": {
 269                      "width": "1px"
 270                  }
 271              },
 272              "core/site-title": {
 273                  "typography": {
 274                      "fontFamily": "var(--wp--preset--font-family--system-font)",
 275                      "lineHeight": "var(--wp--custom--typography--line-height--normal)",
 276                      "fontSize": "var(--wp--preset--font-size--medium)",
 277                      "fontStyle": "italic",
 278                      "fontWeight": "normal"
 279                  }
 280              }
 281          },
 282          "color": {
 283              "background": "var(--wp--preset--color--background)",
 284              "text": "var(--wp--preset--color--foreground)"
 285          },
 286          "elements": {
 287              "h1": {
 288                  "typography": {
 289                      "fontFamily": "var(--wp--preset--font-family--source-serif-pro)",
 290                      "fontWeight": "300",
 291                      "lineHeight": "var(--wp--custom--typography--line-height--tiny)",
 292                      "fontSize": "var(--wp--custom--typography--font-size--colossal)"
 293                  }
 294              },
 295              "h2": {
 296                  "typography": {
 297                      "fontFamily": "var(--wp--preset--font-family--source-serif-pro)",
 298                      "fontWeight": "300",
 299                      "lineHeight": "var(--wp--custom--typography--line-height--small)",
 300                      "fontSize": "var(--wp--custom--typography--font-size--gigantic)"
 301                  }
 302              },
 303              "h3": {
 304                  "typography": {
 305                      "fontFamily": "var(--wp--preset--font-family--source-serif-pro)",
 306                      "fontWeight": "300",
 307                      "lineHeight": "var(--wp--custom--typography--line-height--tiny)",
 308                      "fontSize": "var(--wp--custom--typography--font-size--huge)"
 309                  }
 310              },
 311              "h4": {
 312                  "typography": {
 313                      "fontFamily": "var(--wp--preset--font-family--source-serif-pro)",
 314                      "fontWeight": "300",
 315                      "lineHeight": "var(--wp--custom--typography--line-height--tiny)",
 316                      "fontSize": "var(--wp--preset--font-size--x-large)"
 317                  }
 318              },
 319              "h5": {
 320                  "typography": {
 321                      "fontFamily": "var(--wp--preset--font-family--system-font)",
 322                      "fontWeight": "700",
 323                      "textTransform": "uppercase",
 324                      "lineHeight": "var(--wp--custom--typography--line-height--normal)",
 325                      "fontSize": "var(--wp--preset--font-size--medium)"
 326                  }
 327              },
 328              "h6": {
 329                  "typography": {
 330                      "fontFamily": "var(--wp--preset--font-family--system-font)",
 331                      "fontWeight": "400",
 332                      "textTransform": "uppercase",
 333                      "lineHeight": "var(--wp--custom--typography--line-height--normal)",
 334                      "fontSize": "var(--wp--preset--font-size--medium)"
 335                  }
 336              },
 337              "link": {
 338                  "color": {
 339                      "text": "var(--wp--preset--color--foreground)"
 340                  }
 341              }
 342          },
 343          "spacing": {
 344              "blockGap": "1.5rem"
 345          },
 346          "typography": {
 347              "fontFamily": "var(--wp--preset--font-family--system-font)",
 348              "lineHeight": "var(--wp--custom--typography--line-height--normal)",
 349              "fontSize": "var(--wp--preset--font-size--medium)"
 350          }
 351      },
 352      "templateParts": [
 353          {
 354              "name": "header",
 355              "title": "Header",
 356              "area": "header"
 357          },
 358          {
 359              "name": "header-large-dark",
 360              "title": "Header (Dark, large)",
 361              "area": "header"
 362          },
 363          {
 364              "name": "header-small-dark",
 365              "title": "Header (Dark, small)",
 366              "area": "header"
 367          },
 368          {
 369              "name": "footer",
 370              "title": "Footer",
 371              "area": "footer"
 372          }
 373      ]
 374  }


Generated : Mon Apr 29 08:20:01 2024 Cross-referenced by PHPXref