Skip to content

Commit 1b6517e

Browse files
refactor(theme/Heading): remove 3xl token for sizes
1 parent 96f63de commit 1b6517e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/@chakra-ui/components/Heading.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import { defineStyleConfig } from "@chakra-ui/react"
22

33
import { headingDefaultTheme } from "./components.utils"
44

5-
const HEADING_SIZES = ["3xl", "2xl", "xl", "lg", "md", "sm", "xs"] as const
5+
const HEADING_SIZES = ["2xl", "xl", "lg", "md", "sm", "xs"] as const
66

77
type SCALE_VALUE = string | [string, null, null, string]
88

99
type SIZE_SCALE = { [key in (typeof HEADING_SIZES)[number]]: SCALE_VALUE }
1010

1111
const lineHeightScale: SIZE_SCALE = {
12-
"3xl": ["6xs", null, null, "5xs"],
1312
"2xl": "4xs",
1413
xl: ["2xs", null, null, "4xs"],
1514
lg: "2xs",
@@ -19,7 +18,6 @@ const lineHeightScale: SIZE_SCALE = {
1918
}
2019

2120
const fontSizeScale: SIZE_SCALE = {
22-
"3xl": ["5xl", null, null, "6xl"],
2321
"2xl": ["4xl", null, null, "5xl"],
2422
xl: ["3xl", null, null, "4xl"],
2523
lg: ["2xl", null, null, "3xl"],

0 commit comments

Comments
 (0)