From fb8f5567fcc933986efe0d52086c3c2c1a6638ea Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Tue, 17 Sep 2024 14:01:52 +0200 Subject: [PATCH] rm overwrites --- .../src/tokens/functional/size/border.json | 43 ----- .../tokens/functional/size/breakpoints.json | 64 ------- .../tokens/functional/size/size-coarse.json | 28 --- .../src/tokens/functional/size/size-fine.json | 28 --- .../src/tokens/functional/size/size.json | 168 ------------------ 5 files changed, 331 deletions(-) delete mode 100644 packages/design-tokens/src/tokens/functional/size/border.json delete mode 100644 packages/design-tokens/src/tokens/functional/size/breakpoints.json delete mode 100644 packages/design-tokens/src/tokens/functional/size/size-coarse.json delete mode 100644 packages/design-tokens/src/tokens/functional/size/size-fine.json delete mode 100644 packages/design-tokens/src/tokens/functional/size/size.json diff --git a/packages/design-tokens/src/tokens/functional/size/border.json b/packages/design-tokens/src/tokens/functional/size/border.json deleted file mode 100644 index 16c80c6de..000000000 --- a/packages/design-tokens/src/tokens/functional/size/border.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "borderInset": { - "thin": { - "value": "inset 0 0 0 {borderWidth.thin}" - }, - "thick": { - "value": "inset 0 0 0 {borderWidth.thick}" - }, - "thicker": { - "value": "inset 0 0 0 {borderWidth.thicker}" - } - }, - "borderWidth": { - "thin": { - "value": "max(1px, 0.0625rem)" - }, - "thick": { - "value": "max(2px, 0.125rem)" - }, - "thicker": { - "value": "max(4px, 0.25rem)" - } - }, - "borderRadius": { - "small": { - "value": "{base.size.4}" - }, - "medium": { - "value": "{base.size.8}" - }, - "large": { - "value": "{base.size.16}" - }, - "xlarge": { - "value": "{base.size.24}" - }, - "full": { - "value": "9999px", - "$type": "dimension", - "comment": "Use this border radius for pill shaped elements" - } - } -} diff --git a/packages/design-tokens/src/tokens/functional/size/breakpoints.json b/packages/design-tokens/src/tokens/functional/size/breakpoints.json deleted file mode 100644 index e1458693a..000000000 --- a/packages/design-tokens/src/tokens/functional/size/breakpoints.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "breakpoint": { - "xsmall": { - "$value": "320px", - "$type": "dimension", - "$extensions": { - "org.primer.figma": { - "collection": "functional/size", - "scopes": ["size"] - } - } - }, - "small": { - "$value": "544px", - "$type": "dimension", - "$extensions": { - "org.primer.figma": { - "collection": "functional/size", - "scopes": ["size"] - } - } - }, - "medium": { - "$value": "768px", - "$type": "dimension", - "$extensions": { - "org.primer.figma": { - "collection": "functional/size", - "scopes": ["size"] - } - } - }, - "large": { - "$value": "1012px", - "$type": "dimension", - "$extensions": { - "org.primer.figma": { - "collection": "functional/size", - "scopes": ["size"] - } - } - }, - "xlarge": { - "$value": "1280px", - "$type": "dimension", - "$extensions": { - "org.primer.figma": { - "collection": "functional/size", - "scopes": ["size"] - } - } - }, - "xxlarge": { - "$value": "1400px", - "$type": "dimension", - "$extensions": { - "org.primer.figma": { - "collection": "functional/size", - "scopes": ["size"] - } - } - } - } -} diff --git a/packages/design-tokens/src/tokens/functional/size/size-coarse.json b/packages/design-tokens/src/tokens/functional/size/size-coarse.json deleted file mode 100644 index 2a6c5026e..000000000 --- a/packages/design-tokens/src/tokens/functional/size/size-coarse.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "control": { - "minTarget": { - "auto": { - "$value": "{base.size.44}", - "$type": "dimension" - } - } - }, - "controlStack": { - "small": { - "gap": { - "auto": { - "$value": "{base.size.16}", - "$type": "dimension" - } - } - }, - "medium": { - "gap": { - "auto": { - "$value": "{base.size.12}", - "$type": "dimension" - } - } - } - } -} diff --git a/packages/design-tokens/src/tokens/functional/size/size-fine.json b/packages/design-tokens/src/tokens/functional/size/size-fine.json deleted file mode 100644 index 47acb9ee1..000000000 --- a/packages/design-tokens/src/tokens/functional/size/size-fine.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "control": { - "minTarget": { - "auto": { - "$value": "{base.size.16}", - "$type": "dimension" - } - } - }, - "controlStack": { - "small": { - "gap": { - "auto": { - "$value": "{base.size.8}", - "$type": "dimension" - } - } - }, - "medium": { - "gap": { - "auto": { - "$value": "{base.size.8}", - "$type": "dimension" - } - } - } - } -} diff --git a/packages/design-tokens/src/tokens/functional/size/size.json b/packages/design-tokens/src/tokens/functional/size/size.json deleted file mode 100644 index 56ced0f71..000000000 --- a/packages/design-tokens/src/tokens/functional/size/size.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "control": { - "minTarget": { - "fine": { - "value": "{base.size.16}" - }, - "coarse": { - "value": "{base.size.44}" - } - }, - "small": { - "size": { - "value": "{base.size.32}" - }, - "lineBoxHeight": { - "value": "{base.size.12}" - }, - "paddingBlock": { - "value": "{base.size.8}" - }, - "paddingInline": { - "condensed": { - "value": "{base.size.8}" - }, - "normal": { - "value": "{base.size.12}" - }, - "spacious": { - "value": "{base.size.24}" - } - }, - "gap": { - "value": "{base.size.8}" - } - }, - "medium": { - "size": { - "value": "{base.size.48}" - }, - "lineBoxHeight": { - "value": "{base.size.16}" - }, - "paddingBlock": { - "value": "{base.size.16}" - }, - "paddingInline": { - "condensed": { - "value": "{base.size.12}" - }, - "normal": { - "value": "{base.size.16}" - }, - "spacious": { - "value": "{base.size.28}" - } - }, - "gap": { - "value": "{base.size.12}" - } - }, - "large": { - "size": { - "value": "60px", - "$type": "dimension" - }, - "lineBoxHeight": { - "value": "{base.size.20}" - }, - "paddingBlock": { - "value": "{base.size.20}" - }, - "paddingInline": { - "condensed": { - "value": "{base.size.16}" - }, - "normal": { - "value": "{base.size.20}" - }, - "spacious": { - "value": "{base.size.32}" - } - }, - "gap": { - "value": "{base.size.16}" - } - }, - "animation": { - "duration": { - "value": "80ms" - }, - "easing": { - "value": "var(--brand-animation-easing-glide)" - } - } - }, - "box": { - "spacing": { - "condensed": { - "value": "{base.size.16}" - }, - "normal": { - "value": "{base.size.24}" - }, - "spacious": { - "value": "{base.size.48}" - } - } - }, - "stack": { - "padding": { - "condensed": { - "value": "{base.size.16}" - }, - "normal": { - "value": "{base.size.24}" - }, - "spacious": { - "value": "{base.size.48}" - } - }, - "gap": { - "condensed": { - "value": "{base.size.16}" - }, - "normal": { - "value": "{base.size.24}" - }, - "spacious": { - "value": "{base.size.48}" - } - } - }, - "controlStack": { - "small": { - "gap": { - "condensed": { - "value": "{base.size.8}" - }, - "spacious": { - "value": "{base.size.16}" - } - } - }, - "medium": { - "gap": { - "condensed": { - "value": "{base.size.8}" - }, - "spacious": { - "value": "{base.size.12}" - } - } - }, - "large": { - "gap": { - "auto": { - "value": "{base.size.8}" - }, - "condensed": { - "value": "{base.size.8}" - }, - "spacious": { - "value": "{base.size.12}" - } - } - } - } -}