Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Temzasse committed Oct 18, 2023
1 parent 02cbb54 commit b3a0fdf
Show file tree
Hide file tree
Showing 19 changed files with 751 additions and 476 deletions.
54 changes: 54 additions & 0 deletions example/.figmage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"outDir": "./example/tokens",
"tokenize": {
"tokens": [
{
"name": "colors",
"type": "color"
},
{
"name": "typography",
"type": "text"
},
{
"name": "shadows",
"type": "drop-shadow"
},
{
"name": "spacing",
"type": "width",
"nodeId": "110:694"
},
{
"name": "sizing",
"type": "height",
"nodeId": "102:7"
},
{
"name": "radii",
"type": "radius",
"nodeId": "102:8"
},
{
"name": "icons",
"type": "svg",
"nodeId": "102:2"
},
{
"name": "assets",
"type": "png",
"nodeId": "643:618"
}
]
},
"codegen": {
"defaults": {
"filetype": "ts",
"tokenCase": "camel"
},
"assets": {
"filetype": "png",
"tokenCase": "kebab"
}
}
}
1 change: 0 additions & 1 deletion example/assets/icons.svg

This file was deleted.

137 changes: 0 additions & 137 deletions example/package-lock.json

This file was deleted.

66 changes: 0 additions & 66 deletions example/package.json

This file was deleted.

Binary file added example/tokens/assets/adaptive-icon-stag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed example/tokens/assets/adaptive-icon-staging.png
Binary file not shown.
Binary file modified example/tokens/assets/adaptive-icon-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example/tokens/assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/tokens/assets/icon-stag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed example/tokens/assets/icon-staging.png
Binary file not shown.
Binary file modified example/tokens/assets/icon-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion example/tokens/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export const dark = {
"pressHighlight": "rgba(150, 150, 150, 0.2)",
"muted4": "#3a3a3c"
};
export const envStaging = "#9a008b";
export const envTest = "#009a9a";
export const light = {
"muted5": "#e5e5ea",
"hoverHighlight": "rgba(150, 150, 150, 0.1)",
Expand Down Expand Up @@ -66,4 +68,4 @@ export const light = {
"muted1": "#8e8e93"
};

export type ColorsToken = "backdrop" | "background" | "border" | "elevated" | "error" | "errorMuted" | "errorText" | "focusRing" | "hoverHighlight" | "info" | "infoMuted" | "infoText" | "muted1" | "muted2" | "muted3" | "muted4" | "muted5" | "muted6" | "pressHighlight" | "primary" | "primaryMuted" | "primaryText" | "success" | "successMuted" | "successText" | "surface" | "text" | "textMuted" | "warn" | "warnMuted" | "warnText";
export type ColorsToken = "backdrop" | "background" | "border" | "elevated" | "envStaging" | "envTest" | "error" | "errorMuted" | "errorText" | "focusRing" | "hoverHighlight" | "info" | "infoMuted" | "infoText" | "muted1" | "muted2" | "muted3" | "muted4" | "muted5" | "muted6" | "pressHighlight" | "primary" | "primaryMuted" | "primaryText" | "success" | "successMuted" | "successText" | "surface" | "text" | "textMuted" | "warn" | "warnMuted" | "warnText";
2 changes: 0 additions & 2 deletions example/tokens/icons-ids.ts

This file was deleted.

Loading

0 comments on commit b3a0fdf

Please sign in to comment.