From c1b9bbacd9d511de2a1bae1e09f3bb4bd86a5d40 Mon Sep 17 00:00:00 2001 From: yue Date: Thu, 5 Oct 2023 14:37:58 +0900 Subject: [PATCH] fix: sub-module import polished --- packages/theme/src/default.ts | 2 +- packages/utils/src/index.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/theme/src/default.ts b/packages/theme/src/default.ts index d22aa7ae0..072fcdeaa 100644 --- a/packages/theme/src/default.ts +++ b/packages/theme/src/default.ts @@ -1,4 +1,4 @@ -import { rgba } from 'polished' +import rgba from 'polished/lib/color/rgba' import { CharcoalTheme } from './theme' import { BORDER_RADIUS, diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index 64b37ef52..fd2dcdcaa 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -1,5 +1,8 @@ -import { linearGradient, parseToRgb, rgba, rgbToColorString } from 'polished' -import { RgbColor } from 'polished/lib/types/color' +import rgba from 'polished/lib/color/rgba' +import rgbToColorString from 'polished/lib/color/rgbToColorString' +import parseToRgb from 'polished/lib/color/parseToRgb' +import linearGradient from 'polished/lib/mixins/linearGradient' +import { type RgbColor } from 'polished/lib/types/color' import { type AlphaEffect,