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

Method css

packages/core/src/rule-processor.ts:54–65  ·  view source on GitHub ↗
(styles: SystemStyleObject)

Source from the content-addressed store, hash-verified

52 }
53
54 css(styles: SystemStyleObject): AtomicRule {
55 const { encoder, decoder } = this.getParamsOrThrow()
56
57 encoder.processAtomic(styles)
58 decoder.collect(encoder)
59
60 return {
61 styles,
62 getClassNames: () => Array.from(decoder.classNames.keys()),
63 toCss: this.toCss.bind(this),
64 }
65 }
66
67 cva(recipeConfig: RecipeDefinition<any>): AtomicRecipeRule {
68 const { encoder, decoder } = this.getParamsOrThrow()

Callers

nothing calls this directly

Calls 2

getParamsOrThrowMethod · 0.95
keysMethod · 0.80

Tested by

no test coverage detected