From dd6c144c0cd43bf67a13e7ab8f462e249bb4ac10 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Mon, 16 Oct 2023 12:29:56 +0530 Subject: [PATCH 1/2] fix: opacity tokenization --- packages/react/src/propertyTokenMap.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react/src/propertyTokenMap.ts b/packages/react/src/propertyTokenMap.ts index 9ffecb11b..5a991f2e5 100644 --- a/packages/react/src/propertyTokenMap.ts +++ b/packages/react/src/propertyTokenMap.ts @@ -128,6 +128,7 @@ export const propertyTokenMap = { shadowColor: colors, shadowOpacity: opacity, + opacity: opacity, shadow: shadows, // Media Query From f51a303b2321b5197c0e5a828abfd52cb9733342 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Mon, 16 Oct 2023 12:34:03 +0530 Subject: [PATCH 2/2] fix: opacity typings --- packages/react/src/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react/src/types.ts b/packages/react/src/types.ts index 746b97627..5b80e98f3 100644 --- a/packages/react/src/types.ts +++ b/packages/react/src/types.ts @@ -65,6 +65,7 @@ export interface Tokens { breakpoints?: { [key: GenericKey]: Record & {} }; mediaQueries?: { [key: GenericKey]: Record & {} }; letterSpacings?: { [key: GenericKey]: Record & {} }; + opacity?: { [key: GenericKey]: Record & {} }; lineHeights?: { [key: GenericKey]: any }; fontWeights?: { [key: GenericKey]: any }; fonts?: { [key: GenericKey]: any };