Skip to content

Instantly share code, notes, and snippets.

View omer-os's full-sized avatar
🎯
Focusing

omar chatin omer-os

🎯
Focusing
View GitHub Profile
@omer-os
omer-os / code.ts
Last active March 16, 2026 02:58
svelte-shadcn utils file
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type WithoutChild<T> = T extends { child?: any } ? Omit<T, "child"> : T;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@omer-os
omer-os / readme.md
Last active July 15, 2025 08:28
How to Enable Tailwind CSS IntelliSense for Class-Variance-Authority in Visual Studio Code

How to Enable Tailwind CSS IntelliSense for Class-Variance-Authority in Visual Studio Code

Its just three steps

1- install Tailwind CSS IntelliSense extension

2- create this file .vscode/settings.json

3- copy paste this inside of settings.json