Pointf5ive commited on
Commit
9674914
·
1 Parent(s): 0a5f994

stage 1: design tokens and css foundation

Browse files

Scope: add scoped TOTEM token variables and wire token CSS into launch without layout/callback changes.

Validation: py_compile + import app checks passed; stage acceptance gate passed.

Files changed (1) hide show
  1. app.py +34 -1
app.py CHANGED
@@ -260,6 +260,39 @@ footer { display: none !important; }
260
  }
261
  """
262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
  HEAD = """
264
  <script>
265
  (() => {
@@ -1406,4 +1439,4 @@ with gr.Blocks(title="TOTEM Studio") as demo:
1406
 
1407
 
1408
  if __name__ == "__main__":
1409
- demo.launch(ssr_mode=False, css=CSS + SS_CSS, head=HEAD)
 
260
  }
261
  """
262
 
263
+ TOTEM_CSS = """
264
+ .totem-shell {
265
+ --totem-navy: #07122D;
266
+ --totem-indigo: #0D1733;
267
+ --totem-panel: #101A3A;
268
+ --totem-panel-2: #111E44;
269
+ --totem-gold: #F2C14E;
270
+ --totem-violet: #8A4DFF;
271
+ --totem-pink: #FF5FD2;
272
+ --totem-emerald: #22B573;
273
+ --totem-cyan: #39C9FF;
274
+ --totem-ivory: #F6F1E8;
275
+ --totem-muted: #AEB7CC;
276
+ --totem-danger: #E04B45;
277
+ --totem-warning: #F2A93B;
278
+
279
+ --space-1: 4px;
280
+ --space-2: 8px;
281
+ --space-3: 12px;
282
+ --space-4: 16px;
283
+ --space-5: 20px;
284
+ --space-6: 24px;
285
+ --space-7: 32px;
286
+ --space-8: 40px;
287
+
288
+ --radius-panel: 18px;
289
+ --radius-card: 14px;
290
+
291
+ --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
292
+ --font-ui: Inter, Aptos, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
293
+ }
294
+ """
295
+
296
  HEAD = """
297
  <script>
298
  (() => {
 
1439
 
1440
 
1441
  if __name__ == "__main__":
1442
+ demo.launch(ssr_mode=False, css=CSS + TOTEM_CSS + SS_CSS, head=HEAD)