createCssFunction = (config, sheet) =>
  createCssFunctionMap(config, () => {
    const _css = (args, componentConfig = {}) => {
      let internals = {
        type: null,
        composers: new Set(),
      }

      for (const arg of args) {
        // skip any void argument
        if (arg == null) continue

        // conditionally extend the component
        if (arg[internal]) {
          if (internals.type == null) internals.type = arg[internal].type

          for (const composer of arg[internal].composers) {
            internals.composers.add(composer)
          }
        }

        // otherwise, conditionally define the component type
        else if (arg.constructor !== Object || arg.$$typeof) {
          if (internals.type == null) internals.type = arg
        }

        // otherwise, add a new composer to this component
        else {
          internals.composers.add(createComposer(arg, config, componentConfig))
        }
      }

      // set the component type if none was set
      if (internals.type == null) internals.type = 'span'
      if (!internals.composers.size) internals.composers.add(['PJLV', {}, [], [], {}, []])

      return createRenderer(config, internals, sheet, componentConfig)
    }

		const css = (...args) => _css(args)

		css.withConfig = (componentConfig) => (...args) => _css(args, componentConfig)

    return css
  })
Returns a function that applies component styles.