From c9d41d538d7f4ff3cda095ddce6f6081a3772e12 Mon Sep 17 00:00:00 2001 From: Tim R Date: Thu, 16 Nov 2023 12:23:31 -0600 Subject: [PATCH] Initial prototyping --- packages/tokens/colorTokenTest.json | 26 ++++++++++++++++++++++++++ packages/tokens/config.json | 11 +++++++++++ packages/tokens/spacerTokenTest.json | 14 ++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 packages/tokens/colorTokenTest.json create mode 100644 packages/tokens/spacerTokenTest.json diff --git a/packages/tokens/colorTokenTest.json b/packages/tokens/colorTokenTest.json new file mode 100644 index 00000000..9ead1afb --- /dev/null +++ b/packages/tokens/colorTokenTest.json @@ -0,0 +1,26 @@ +{ + "primary-darker": { + "$value": "#003e73", + "$type": "color" + }, + "primary-alt-lightest": { + "$value": "#e1f3f8", + "$type": "color" + }, + "white": { + "$value": "#ffffff", + "$type": "color" + }, + "gray-*": { + "$value": "#5b616b", + "$type": "color" + }, + "gray-lightest": { + "$value": "#f1f1f1", + "$type": "color" + }, + "uswds-system-color-blue-vivid-30": { + "$value": "#58b4ff", + "$type": "color" + } +} \ No newline at end of file diff --git a/packages/tokens/config.json b/packages/tokens/config.json index a1c65205..a7e2dde3 100644 --- a/packages/tokens/config.json +++ b/packages/tokens/config.json @@ -17,6 +17,17 @@ "destination": "index.d.ts" } ] + }, + "figma": { + "transformGroup": "react-native", + "buildPath": "./figma/", + "prefix": "", + "files": [ + { + "destination": "tokens.json", + "format": "json" + } + ] } } } diff --git a/packages/tokens/spacerTokenTest.json b/packages/tokens/spacerTokenTest.json new file mode 100644 index 00000000..be9edf1b --- /dev/null +++ b/packages/tokens/spacerTokenTest.json @@ -0,0 +1,14 @@ +{ + "full": { + "$value": "8px", + "$type": "dimension" + }, + "half": { + "$value": "4px", + "$type": "dimension" + }, + "quarter": { + "$value": "2px", + "$type": "dimension" + } +} \ No newline at end of file