From c5cfe06e1f9c71ef5045db7691abf9f37e81e71a Mon Sep 17 00:00:00 2001 From: Masakatsu Tokita Date: Tue, 24 Oct 2023 17:17:43 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20smarthr-ui-preset.ts=20=E3=82=92=20src?= =?UTF-8?q?=20=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF=E3=83=88=E3=83=AA?= =?UTF-8?q?=E5=86=85=E3=81=AB=E7=A7=BB=E5=8B=95=20(#3873)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smarthr-ui-preset.ts => src/smarthr-ui-preset.ts | 10 +++++----- src/themes/tailwind/TailwindThemeProvider.tsx | 2 +- tailwind.config.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename smarthr-ui-preset.ts => src/smarthr-ui-preset.ts (93%) diff --git a/smarthr-ui-preset.ts b/src/smarthr-ui-preset.ts similarity index 93% rename from smarthr-ui-preset.ts rename to src/smarthr-ui-preset.ts index 492516b700..d89231bc34 100644 --- a/smarthr-ui-preset.ts +++ b/src/smarthr-ui-preset.ts @@ -1,8 +1,8 @@ -import { defaultColor } from './src/themes/createColor' -import { defaultFontSize, defaultHtmlFontSize } from './src/themes/createFontSize' -import { defaultShadow } from './src/themes/createShadow' -import { createSpacingByChar, primitiveTokens as spacingSizes } from './src/themes/createSpacing' -import { defaultZIndex } from './src/themes/createZIndex' +import { defaultColor } from './themes/createColor' +import { defaultFontSize, defaultHtmlFontSize } from './themes/createFontSize' +import { defaultShadow } from './themes/createShadow' +import { createSpacingByChar, primitiveTokens as spacingSizes } from './themes/createSpacing' +import { defaultZIndex } from './themes/createZIndex' import type { Config } from 'tailwindcss' diff --git a/src/themes/tailwind/TailwindThemeProvider.tsx b/src/themes/tailwind/TailwindThemeProvider.tsx index fe6d5cbdc1..dba08d5b45 100644 --- a/src/themes/tailwind/TailwindThemeProvider.tsx +++ b/src/themes/tailwind/TailwindThemeProvider.tsx @@ -1,6 +1,6 @@ import React, { PropsWithChildren, createContext } from 'react' -import presetConfig from '../../../smarthr-ui-preset' +import presetConfig from '../../smarthr-ui-preset' type PresetConfig = typeof presetConfig diff --git a/tailwind.config.ts b/tailwind.config.ts index d467f48a96..39a241de84 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,4 +1,4 @@ -import preset from './smarthr-ui-preset' +import preset from './src/smarthr-ui-preset' import type { Config } from 'tailwindcss'