Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit e3fe923

Browse files
committed
feat(css-units.ts): Added CSSUnit
1 parent 71812f5 commit e3fe923

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/_internal/types/common/css-units.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type ViewportCSSUnit = 'vh' | 'vw' | 'vmin' | 'vmax' | 'vb' | 'vi';
55
type RespectCSSUnit = 'svw' | 'svh' | 'lvw' | 'lvh' | 'dvw' | 'dvh';
66
type PercentageCSSUnit = '%';
77

8+
export type CSSUnit = AbsoluteCSSUnit | LocalFontRelativeCSSUnit | RootFontRelativeCSSUnit | ViewportCSSUnit | RespectCSSUnit | PercentageCSSUnit;
89
export type CSSAbsoluteUnitValue = '0' | `${number}${AbsoluteCSSUnit}`;
910
export type CSSLocalFontRelativeUnitValue = '0' | `${number}${LocalFontRelativeCSSUnit}`;
1011
export type CSSRootFontRelativeUnitValue = '0' | `${number}${RootFontRelativeCSSUnit}`;

0 commit comments

Comments
 (0)