From 8aeb3c90df1e87c1d7e128a0b50662727417e679 Mon Sep 17 00:00:00 2001 From: "S. Amir Mohammad Najafi" Date: Mon, 17 Jul 2023 14:49:02 +0330 Subject: [PATCH] feat(style): add ui-kit2 to tailwind content --- ui/style/lib/tailwind.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/style/lib/tailwind.ts b/ui/style/lib/tailwind.ts index 8361f3b05..d353f38ba 100644 --- a/ui/style/lib/tailwind.ts +++ b/ui/style/lib/tailwind.ts @@ -1,3 +1,5 @@ +import {join, dirname} from 'node:path'; + import {colorTheme} from './colors.js'; import {typographyTheme} from './typography.js'; import {zIndex} from './z-index.js'; @@ -5,7 +7,11 @@ import {zIndex} from './z-index.js'; import type {Config} from 'tailwindcss'; export const tailwindConfig: Config = { - content: ['./res/*.html', './src/**/*.ts'], + content: [ + './res/*.html', + './src/**/*.ts', + join(dirname(require.resolve('@alwatr/ui-kit2')), '**/*.ts'), + ], darkMode: 'media', theme: { extend: {