8000 Make `ease-linear` a static utility by adamwathan · Pull Request #14880 · tailwindlabs/tailwindcss · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make ease-linear a static utility
  • Loading branch information
adamwathan committed Nov 5, 2024
commit 0c7b00ba29c94165e7c9d4313dba7244ad3401c2
6 changes: 5 additions & 1 deletion packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3792,7 +3792,11 @@ export function createUtilities(theme: Theme) {
}

staticUtility('ease-initial', [transitionTimingFunctionProperty, ['--tw-ease', 'initial']])

staticUtility('ease-linear', [
transitionTimingFunctionProperty,
['--tw-ease', 'linear'],
['transition-timing-function', 'linear'],
])
functionalUtility('ease', {
themeKeys: ['--transition-timing-function'],
handle: (value) => [
Expand Down
1 change: 0 additions & 1 deletion packages/tailwindcss/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@
--perspective-distant: 1200px;

/* Transition timing functions */
--transition-timing-function-linear: linear;
--transition-timing-function-in: cubic-bezier(0.4, 0, 1, 1);
--transition-timing-function-out: cubic-bezier(0, 0, 0.2, 1);
--transition-timing-function-in-out: cubic-bezier(0.4, 0, 0.2, 1);
Expand Down
Loading