From dacb0d328afe1d9ced6feea51edfd800510a30fb Mon Sep 17 00:00:00 2001 From: Qs-F Date: Mon, 30 Sep 2024 19:00:51 +0900 Subject: [PATCH] =?UTF-8?q?fix(smarthr-ui-preset):=20breakpoint=E3=82=92?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/smarthr-ui/src/smarthr-ui-preset.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/smarthr-ui/src/smarthr-ui-preset.ts b/packages/smarthr-ui/src/smarthr-ui-preset.ts index 88c4cbba4c..ac4ee0a65e 100644 --- a/packages/smarthr-ui/src/smarthr-ui-preset.ts +++ b/packages/smarthr-ui/src/smarthr-ui-preset.ts @@ -2,6 +2,7 @@ import { darken } from 'polished' import { defaultConfig } from 'tailwind-variants' import plugin from 'tailwindcss/plugin' +import { defaultBreakpoint } from './themes/createBreakpoint' import { defaultColor } from './themes/createColor' import { defaultFontSize, defaultHtmlFontSize } from './themes/createFontSize' import { defaultShadow } from './themes/createShadow' @@ -153,6 +154,9 @@ export default { outlineColor: { DEFAULT: defaultColor.OUTLINE, }, + screens: Object.fromEntries( + Object.entries(defaultBreakpoint).map(([key, value]) => [key, { max: `${value}px` }]), + ), spacing: { px: '1px', em: '1em',