MCPcopy
hub / github.com/tailwindlabs/tailwindcss / loadModule

Function loadModule

packages/tailwindcss/src/css-functions.test.ts:1385–1406  ·  packages/tailwindcss/src/css-functions.test.ts::loadModule
()

Source from the content-addressed store, hash-verified

1383 `,
1384 {
1385 async loadModule() {
1386 return {
1387 path: class="st">'',
1388 base: class="st">'/root',
1389 module: plugin(({ addBase, addUtilities }) => {
1390 addBase({
1391 class="st">'.my-base-rule': {
1392 color: class="st">'theme(colors.red)',
1393 class="st">'outline-color': class="st">'theme(colors.orange / 15%)',
1394 class="st">'background-color': class="st">'theme(--color-blue)',
1395 class="st">'border-color': class="st">'theme(--color-pink / 10%)',
1396 },
1397 })
1398
1399 addUtilities({
1400 class="st">'.my-utility': {
1401 color: class="st">'theme(colors.red)',
1402 },
1403 })
1404 }),
1405 }
1406 },
1407 },
1408 ),
1409 ).toMatchInlineSnapshot(`

Callers

nothing calls this directly

Calls 2

addBaseFunction · 0.85
addUtilitiesFunction · 0.85

Tested by

no test coverage detected