File size: 2,275 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { defineConfig } from "../styled-system"
import { breakpoints } from "./breakpoints"
import { globalCss } from "./global-css"
import { layerStyles } from "./layer-styles"
import { animationStyles } from "./motion-styles"
import { recipes } from "./recipes"
import { semanticColors } from "./semantic-tokens/colors"
import { semanticRadii } from "./semantic-tokens/radii"
import { semanticShadows } from "./semantic-tokens/shadows"
import { slotRecipes } from "./slot-recipes"
import { textStyles } from "./text-styles"
import { animations } from "./tokens/animations"
import { aspectRatios } from "./tokens/aspect-ratios"
import { blurs } from "./tokens/blurs"
import { borders } from "./tokens/borders"
import { colors } from "./tokens/colors"
import { cursor } from "./tokens/cursor"
import { durations } from "./tokens/durations"
import { easings } from "./tokens/easings"
import { fontSizes } from "./tokens/font-sizes"
import { fontWeights } from "./tokens/font-weights"
import { fonts } from "./tokens/fonts"
import { keyframes } from "./tokens/keyframes"
import { letterSpacings } from "./tokens/letter-spacing"
import { lineHeights } from "./tokens/line-heights"
import { radii } from "./tokens/radius"
import { sizes } from "./tokens/sizes"
import { spacing } from "./tokens/spacing"
import { zIndices } from "./tokens/z-indices"

export const tokens = {
  aspectRatios,
  animations,
  blurs,
  borders,
  colors,
  durations,
  easings,
  fonts,
  fontSizes,
  fontWeights,
  letterSpacings,
  lineHeights,
  radii,
  spacing,
  sizes,
  zIndex: zIndices,
  cursor,
}

export const semanticTokens = {
  colors: semanticColors,
  shadows: semanticShadows,
  radii: semanticRadii,
}

export const cssVarsPrefix = "chakra"
export const cssVarsRoot = ":where(html, .chakra-theme)"

export const defaultThemeConfig = defineConfig({
  preflight: true,
  cssVarsPrefix,
  cssVarsRoot,
  globalCss,
  theme: {
    breakpoints,
    keyframes,
    tokens,
    semanticTokens,
    recipes,
    slotRecipes,
    textStyles,
    layerStyles,
    animationStyles,
  },
})

export {
  recipes,
  slotRecipes,
  breakpoints,
  keyframes,
  textStyles,
  layerStyles,
  animationStyles,
  globalCss,
}

export * from "./recipes.export"
export * from "./slot-recipes.export"