MCPcopy Create free account
hub / github.com/chakra-ui/panda / insert

Method insert

packages/core/src/layers.ts:77–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 insert() {
78 const { root } = this
79
80 const reset = this.getLayerRoot('reset')
81 if (reset.nodes?.length) root.append(reset)
82
83 const base = this.getLayerRoot('base')
84 if (base.nodes?.length) root.append(base)
85
86 const tokens = this.getLayerRoot('tokens')
87 if (tokens.nodes?.length) root.append(tokens)
88
89 const recipes = this.getLayerRoot('recipes')
90 if (recipes.nodes?.length) root.append(recipes)
91
92 const utilities = this.getLayerRoot('utilities')
93 if (utilities.nodes?.length) root.append(utilities)
94
95 return root
96 }
97
98 get layerNames() {
99 return Object.values(this.names)

Callers 1

StylesheetClass · 0.80

Calls 2

getLayerRootMethod · 0.95
appendMethod · 0.80

Tested by

no test coverage detected