From 4c4d46d637c2fc332b041ebdbb2fe4324641754c Mon Sep 17 00:00:00 2001 From: Hermann_Kitio Date: Sat, 18 Apr 2026 00:03:44 +0300 Subject: [PATCH] =?UTF-8?q?feat(design-system):=20scaffold=20shadcn/ui=20?= =?UTF-8?q?=E2=80=94=20components.json=20+=20cn()=20(Sprint=200.5=20=C3=A9?= =?UTF-8?q?tape=203)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.json | 21 +++++++++++++++++++++ src/shared/lib/utils.ts | 6 ++++++ 2 files changed, 27 insertions(+) create mode 100644 components.json create mode 100644 src/shared/lib/utils.ts diff --git a/components.json b/components.json new file mode 100644 index 0000000..18e6574 --- /dev/null +++ b/components.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "", + "css": "src/index.css", + "baseColor": "slate", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/shared/components", + "utils": "@/shared/lib/utils", + "ui": "@/shared/components/ui", + "lib": "@/shared/lib", + "hooks": "@/shared/hooks" + }, + "iconLibrary": "lucide" +} diff --git a/src/shared/lib/utils.ts b/src/shared/lib/utils.ts new file mode 100644 index 0000000..d32b0fe --- /dev/null +++ b/src/shared/lib/utils.ts @@ -0,0 +1,6 @@ +import { type ClassValue, clsx } from 'clsx' +import { twMerge } from 'tailwind-merge' + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)) +}