diff --git a/scripts/resolveObject.js b/scripts/resolveObject.js index e4cb6a4..0dd8231 100644 --- a/scripts/resolveObject.js +++ b/scripts/resolveObject.js @@ -47,7 +47,7 @@ function resolveObject(object, opts) { const isReference = (value) => typeof value === "string" && value.startsWith("{") && value.endsWith("}"); -const hasModifier = (value) => !!value?.$extensions?.["studio.tokens"]?.modify; +const hasModifier = (value) => !!value?.$extensions; function traverseObj(obj) { let key; diff --git a/transformed/default.json b/transformed/default.json index e9853da..d1bf146 100644 --- a/transformed/default.json +++ b/transformed/default.json @@ -123,24 +123,24 @@ }, "color": { "bg": { - "canvas": "{color.bodyBg}", - "surface": "{color.bodyFrontBg}", + "canvas": "#f6f6f8", + "surface": "#ffffff", "muted": "#adadad", "subtle": "#ebebeb", - "on-subtle": "{color.coverImageBg}", - "cover": "{color.coverImageBg}" + "on-subtle": "#EDEEF2", + "cover": "#EDEEF2" }, "fg": { - "default": "{color.textColor}", - "emphasis": "{color.headingsColor}", - "muted": "{color.descTextColor}", - "subtle": "{color.descLightTextColor}", - "inverse": "{color.bodyFrontBg}", + "default": "#000000", + "emphasis": "#000000", + "muted": "#737679", + "subtle": "#838A98", + "inverse": "#ffffff", "disabled": "#d6d6d6", "on-disabled": "#adadad" }, "accent": { - "default": "{color.primaryColor}", + "default": "#007cff", "emphasis": "#57a9ff", "muted": "#6092ff", "subtle": "#0a81ff", @@ -149,7 +149,7 @@ "on-disabled": "#fff" }, "info": { - "default": "{color.primaryColor}", + "default": "#007cff", "emphasis": "#57a9ff", "muted": "#6092ff", "subtle": "#0a81ff", @@ -158,7 +158,7 @@ "on-disabled": "#fff" }, "border": { - "default": "{color.borderColor}", + "default": "#C6C6C8", "subtle": "#ebebeb", "disabled": "#d6d6d6" } @@ -520,4 +520,4 @@ "menu": "System", "code": "System" } -} +} \ No newline at end of file diff --git a/transformed/financial.json b/transformed/financial.json index e944589..d1bf146 100644 --- a/transformed/financial.json +++ b/transformed/financial.json @@ -123,24 +123,24 @@ }, "color": { "bg": { - "canvas": "{color.bodyBg}", - "surface": "{color.bodyFrontBg}", + "canvas": "#f6f6f8", + "surface": "#ffffff", "muted": "#adadad", "subtle": "#ebebeb", - "on-subtle": "{color.coverImageBg}", - "cover": "{color.coverImageBg}" + "on-subtle": "#EDEEF2", + "cover": "#EDEEF2" }, "fg": { - "default": "{color.textColor}", - "emphasis": "{color.headingsColor}", - "muted": "{color.descTextColor}", - "subtle": "{color.descLightTextColor}", - "inverse": "{color.bodyFrontBg}", + "default": "#000000", + "emphasis": "#000000", + "muted": "#737679", + "subtle": "#838A98", + "inverse": "#ffffff", "disabled": "#d6d6d6", "on-disabled": "#adadad" }, "accent": { - "default": "{color.primaryColor}", + "default": "#007cff", "emphasis": "#57a9ff", "muted": "#6092ff", "subtle": "#0a81ff", @@ -149,7 +149,7 @@ "on-disabled": "#fff" }, "info": { - "default": "{color.primaryColor}", + "default": "#007cff", "emphasis": "#57a9ff", "muted": "#6092ff", "subtle": "#0a81ff", @@ -158,7 +158,7 @@ "on-disabled": "#fff" }, "border": { - "default": "{color.borderColor}", + "default": "#C6C6C8", "subtle": "#ebebeb", "disabled": "#d6d6d6" } diff --git a/transformed/fitness.json b/transformed/fitness.json index e944589..d1bf146 100644 --- a/transformed/fitness.json +++ b/transformed/fitness.json @@ -123,24 +123,24 @@ }, "color": { "bg": { - "canvas": "{color.bodyBg}", - "surface": "{color.bodyFrontBg}", + "canvas": "#f6f6f8", + "surface": "#ffffff", "muted": "#adadad", "subtle": "#ebebeb", - "on-subtle": "{color.coverImageBg}", - "cover": "{color.coverImageBg}" + "on-subtle": "#EDEEF2", + "cover": "#EDEEF2" }, "fg": { - "default": "{color.textColor}", - "emphasis": "{color.headingsColor}", - "muted": "{color.descTextColor}", - "subtle": "{color.descLightTextColor}", - "inverse": "{color.bodyFrontBg}", + "default": "#000000", + "emphasis": "#000000", + "muted": "#737679", + "subtle": "#838A98", + "inverse": "#ffffff", "disabled": "#d6d6d6", "on-disabled": "#adadad" }, "accent": { - "default": "{color.primaryColor}", + "default": "#007cff", "emphasis": "#57a9ff", "muted": "#6092ff", "subtle": "#0a81ff", @@ -149,7 +149,7 @@ "on-disabled": "#fff" }, "info": { - "default": "{color.primaryColor}", + "default": "#007cff", "emphasis": "#57a9ff", "muted": "#6092ff", "subtle": "#0a81ff", @@ -158,7 +158,7 @@ "on-disabled": "#fff" }, "border": { - "default": "{color.borderColor}", + "default": "#C6C6C8", "subtle": "#ebebeb", "disabled": "#d6d6d6" } diff --git a/transformed/gaming.json b/transformed/gaming.json index e944589..d1bf146 100644 --- a/transformed/gaming.json +++ b/transformed/gaming.json @@ -123,24 +123,24 @@ }, "color": { "bg": { - "canvas": "{color.bodyBg}", - "surface": "{color.bodyFrontBg}", + "canvas": "#f6f6f8", + "surface": "#ffffff", "muted": "#adadad", "subtle": "#ebebeb", - "on-subtle": "{color.coverImageBg}", - "cover": "{color.coverImageBg}" + "on-subtle": "#EDEEF2", + "cover": "#EDEEF2" }, "fg": { - "default": "{color.textColor}", - "emphasis": "{color.headingsColor}", - "muted": "{color.descTextColor}", - "subtle": "{color.descLightTextColor}", - "inverse": "{color.bodyFrontBg}", + "default": "#000000", + "emphasis": "#000000", + "muted": "#737679", + "subtle": "#838A98", + "inverse": "#ffffff", "disabled": "#d6d6d6", "on-disabled": "#adadad" }, "accent": { - "default": "{color.primaryColor}", + "default": "#007cff", "emphasis": "#57a9ff", "muted": "#6092ff", "subtle": "#0a81ff", @@ -149,7 +149,7 @@ "on-disabled": "#fff" }, "info": { - "default": "{color.primaryColor}", + "default": "#007cff", "emphasis": "#57a9ff", "muted": "#6092ff", "subtle": "#0a81ff", @@ -158,7 +158,7 @@ "on-disabled": "#fff" }, "border": { - "default": "{color.borderColor}", + "default": "#C6C6C8", "subtle": "#ebebeb", "disabled": "#d6d6d6" }