From d6ccd800174227b5ec8cddca12c0529f49891e65 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Wed, 14 Aug 2024 15:31:55 -0400 Subject: [PATCH] wip --- packages/tailwindcss/src/plugin-api.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/tailwindcss/src/plugin-api.ts b/packages/tailwindcss/src/plugin-api.ts index b77b875c0..7c96a937e 100644 --- a/packages/tailwindcss/src/plugin-api.ts +++ b/packages/tailwindcss/src/plugin-api.ts @@ -230,10 +230,10 @@ export function buildPluginApi( } } -// We can't use a symbol here because a lot of code in the ecosystem assumes an object with string / number keys -// for example using Object.entries() + Object.fromEntries() to modify an object which removes symbol keys -// We use `Math.random()` to ensure that users are unable to rely on the name of thiskey -const BARE_VALUE = `__BARE_VALUE__${Math.random().toString(36).slice(2)}` +// Ideally this would be a Symbol but some of the ecosystem assumes object with +// string / number keys for example by using `Object.entries()` which means that +// the function that handles the bare value would be lost +const BARE_VALUE = `__BARE_VALUE__` export function registerPlugins(plugins: Plugin[], designSystem: DesignSystem, ast: AstNode[]) { let pluginObjects = [] @@ -281,6 +281,10 @@ export function createCompatabilityConfig(theme: Theme) { } }, }, + + transitionTimingFunction: { + DEFAULT: theme.get(['--default-transition-timing-function']) ?? null, + }, }, } }