-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
154 lines (153 loc) · 5.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Style Dictionary Configurator, transform Tokens Studio Figma Plugin tokens to your platform of choice."
/>
<meta name="author" content="Tokens Studio" />
<meta
name="keywords"
content="Style-Dictionary, style, dictionary, design, tokens, studio, figma"
/>
<meta name="theme-color" content="#408ECF" />
<meta
name="twitter:title"
content="Style Dictionary Configurator | Tokens Studio"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="https://configurator.tokens.studio" />
<meta name="twitter:creator" content="@jorenbroekema" />
<meta
name="twitter:image"
content="https://configurator.tokens.studio/thumbnail.png"
/>
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:site" content="https://configurator.tokens.studio" />
<meta
property="og:title"
content="Style Dictionary Configurator | Tokens Studio"
/>
<meta
property="og:description"
content="Style Dictionary Configurator, transform Tokens Studio Figma Plugin tokens to your platform of choice."
/>
<meta
property="og:image"
content="https://configurator.tokens.studio/thumbnail.png"
/>
<meta
property="og:image:alt"
content="Display picture of Token Configurator"
/>
<title>Token Configurator</title>
<link rel="icon" href="./favicon.webp" />
<link
rel="stylesheet"
href="./node_modules/@tokens-studio/tokens/dist/css/dark.css"
/>
<link
rel="stylesheet"
href="./node_modules/@tokens-studio/tokens/dist/css/core.css"
/>
<link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="./fonts.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bootstrap.js"></script>
<script src="https://cdn.jsdelivr.net/npm/json5@^2.0.0/dist/index.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap"
rel="stylesheet"
/>
<script type="module" src="./src/components/button/ts-button.js"></script>
<script type="module" src="./src/components/dialog/sd-dialog.js"></script>
<script
type="module"
src="./src/components/dialog/sd-dialog-frame.js"
></script>
<script type="module">
import { initApp } from "./src/index.js";
initApp();
</script>
</head>
<body>
<header>
<h1>Style-Dictionary Configurator</h1>
<div class="menu">
<ts-button id="upload-tokens-btn">
<span class="codicon codicon-cloud-upload"></span> Upload tokens
<input
id="upload-tokens-input"
type="file"
accept="application/*, text/*"
aria-hidden="true"
hidden
/>
</ts-button>
<sd-dialog>
<ts-button
slot="invoker"
variant="secondary"
title="Eject by downloading your project so that you can run it locally."
>
<span class="codicon codicon-debug-disconnect"></span> Eject
</ts-button>
<sd-dialog-frame
slot="content"
title="Choose between Style-Dictionary v3 or v4"
class="eject-version-frame"
>
<div slot="content" class="eject-version-wrapper">
<ts-button
slot="invoker"
variant="primary"
id="eject-btn-v3"
title="Select Style-Dictionary v3"
>
v3
<input
type="file"
accept="application/*, text/*"
aria-hidden="true"
hidden
/>
</ts-button>
<ts-button
slot="invoker"
variant="primary"
id="eject-btn-v4"
title="Select Style-Dictionary v4"
>
v4
<input
type="file"
accept="application/*, text/*"
aria-hidden="true"
hidden
/>
</ts-button>
</div>
</sd-dialog-frame>
</sd-dialog>
<nav class="header-nav">
<a href="https://www.youtube.com/watch?v=dr3RWjZ28BE">
<ts-button variant="secondary">
<span class="codicon codicon-book"></span> Docs
</ts-button>
</a>
</nav>
</div>
</header>
<main>
<configurator-element>
<div style="height: 100%" slot="monaco-config"></div>
<div style="height: 100%" slot="monaco-output"></div>
</configurator-element>
</main>
</body>
</html>