Making WordPress.org

Changeset 13265


Ignore:
Timestamp:
03/04/2024 04:37:55 AM (21 months ago)
Author:
dd32
Message:

wporg-plugins-2024: Set typography based on wporg-developer, instead of inheriting wporg-parent-2021 styles, missed in [13264].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/theme.json

    r13261 r13265  
    1414                    "color": "rgb(214, 218, 221)"
    1515                }
     16            },
     17            "heading": {
     18                "typography": {
     19                    "fontFamily": "var(--wp--preset--font-family--inter)",
     20                    "lineHeight": 1.2
     21                },
     22                "level-1": {
     23                    "typography": {
     24                        "lineHeight": 1.2
     25                    },
     26                    "breakpoint": {
     27                        "small-only": {
     28                            "typography": {
     29                                "fontSize": "26px",
     30                                "lineHeight": 1.2
     31                            }
     32                        }
     33                    }
     34                },
     35                "level-2": {
     36                    "typography": {
     37                        "lineHeight": 1.2
     38                    },
     39                    "breakpoint": {
     40                        "small-only": {
     41                            "typography": {
     42                                "fontSize": "24px",
     43                                "lineHeight": 1.2
     44                            }
     45                        }
     46                    }
     47                },
     48                "level-3": {
     49                    "typography": {
     50                        "lineHeight": 1.2
     51                    },
     52                    "breakpoint": {
     53                        "small-only": {
     54                            "typography": {
     55                                "fontSize": "22px",
     56                                "lineHeight": 1.2
     57                            }
     58                        }
     59                    }
     60                },
     61                "level-4": {
     62                    "typography": {
     63                        "lineHeight": 1.2
     64                    },
     65                    "breakpoint": {
     66                        "small-only": {
     67                            "typography": {
     68                                "fontSize": "20px",
     69                                "lineHeight": 1.2
     70                            }
     71                        }
     72                    }
     73                },
     74                "level-5": {
     75                    "typography": {
     76                        "lineHeight": 1.2
     77                    },
     78                    "breakpoint": {
     79                        "small-only": {
     80                            "typography": {
     81                                "fontSize": "18px",
     82                                "lineHeight": 1.2
     83                            }
     84                        }
     85                    }
     86                },
     87                "level-6": {
     88                    "typography": {
     89                        "lineHeight": 1.2
     90                    },
     91                    "breakpoint": {
     92                        "small-only": {
     93                            "typography": {
     94                                "fontSize": "16px",
     95                                "lineHeight": 1.2
     96                            }
     97                        }
     98                    }
     99                }
     100            }
     101        },
     102        "typography": {
     103            "fontSizes": [
     104                {
     105                    "name": "Heading 6",
     106                    "size": "18px",
     107                    "slug": "heading-6"
     108                },
     109                {
     110                    "name": "Heading 5",
     111                    "size": "20px",
     112                    "slug": "heading-5"
     113                },
     114                {
     115                    "name": "Heading 4",
     116                    "size": "24px",
     117                    "slug": "heading-4"
     118                },
     119                {
     120                    "name": "Heading 3",
     121                    "size": "29px",
     122                    "slug": "heading-3"
     123                },
     124                {
     125                    "name": "Heading 2",
     126                    "size": "32px",
     127                    "slug": "heading-2"
     128                },
     129                {
     130                    "name": "Heading 1",
     131                    "size": "38px",
     132                    "slug": "heading-1"
     133                }
     134            ]
     135        }
     136    },
     137    "styles": {
     138        "blocks": {
     139            "core/post-title": {
     140                "typography": {
     141                    "fontFamily": "var(--wp--preset--font-family--eb-garamond)",
     142                    "fontSize": "36px",
     143                    "lineHeight": "1.3"
     144                }
     145            },
     146            "core/query-title": {
     147                "typography": {
     148                    "fontFamily": "var(--wp--preset--font-family--eb-garamond)",
     149                    "fontSize": "36px",
     150                    "lineHeight": "1.3"
     151                }
     152            }
     153        },
     154        "elements": {
     155            "h2": {
     156                "typography": {
     157                    "fontSize": "var(--wp--preset--font-size--heading-4)",
     158                    "fontWeight": "600"
     159                },
     160                "spacing": {
     161                    "margin": {
     162                        "top": "0",
     163                        "bottom": "var(--wp--style--block-gap)"
     164                    }
     165                }
     166            },
     167            "h3": {
     168                "typography": {
     169                    "fontSize": "var(--wp--preset--font-size--heading-5)",
     170                    "fontWeight": "600"
     171                }
     172            },
     173            "h4": {
     174                "typography": {
     175                    "fontSize": "var(--wp--preset--font-size--heading-6)",
     176                    "fontWeight": "600"
     177                }
     178            },
     179            "h5": {
     180                "typography": {
     181                    "fontSize": "var(--wp--preset--font-size--heading-6)"
     182                }
    16183            }
    17184        }
Note: See TracChangeset for help on using the changeset viewer.