MCPcopy
hub / github.com/romboHQ/tailwindcss-motion / pluginCreator

Function pluginCreator

src/index.ts:13–26  ·  view source on GitHub ↗
({
  matchUtilities,
  theme,
  addBase,
  addUtilities,
  addComponents,
  matchComponents,
}: PluginAPI)

Source from the content-addressed store, hash-verified

11import { addPresets } from "./presets.js";
12
13const pluginCreator: PluginCreator = ({
14 matchUtilities,
15 theme,
16 addBase,
17 addUtilities,
18 addComponents,
19 matchComponents,
20}: PluginAPI) => {
21 addDefaults(addBase);
22 addKeyframes(addBase);
23 addPresets(addComponents, matchComponents);
24 addBaseAnimations(matchUtilities, theme);
25 addModifiers(matchUtilities, addUtilities, theme);
26};
27
28const pluginConfig: Partial<Config> = {
29 theme: {

Callers

nothing calls this directly

Calls 5

addDefaultsFunction · 0.85
addKeyframesFunction · 0.85
addPresetsFunction · 0.85
addBaseAnimationsFunction · 0.85
addModifiersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…