Skip to content

Instantly share code, notes, and snippets.

@simon-abbott
simon-abbott / @tailwindcss+forms+0.5.5.patch
Created August 23, 2023 19:18
Tailwind ring offset background color
diff --git a/node_modules/@tailwindcss/forms/src/index.js b/node_modules/@tailwindcss/forms/src/index.js
index 5d700f1..e30ecb5 100644
--- a/node_modules/@tailwindcss/forms/src/index.js
+++ b/node_modules/@tailwindcss/forms/src/index.js
@@ -55,7 +55,6 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
'outline-offset': '2px',
'--tw-ring-inset': 'var(--tw-empty,/*!*/ /*!*/)',
'--tw-ring-offset-width': '0px',
- '--tw-ring-offset-color': '#fff',
'--tw-ring-color': resolveColor(
@simon-abbott
simon-abbott / mockingvite.ts
Last active July 21, 2022 16:03 — forked from stolinski/mockingvite.ts
Mockingoose Vitest
/*
* A Vitest compatible version of Mockingoose
* Adapted from https://gist.github.com/stolinski/9b1de328b79e7b6edd8def14c224afdf
*/
import mongoose from 'mongoose';
import { vi } from 'vitest';
mongoose.connect = vi.fn().mockImplementation(() => Promise.resolve());