Spaces:
Running
Running
met le css dans un style.css à part et importe le
Browse files- README.md +9 -5
- index.html +11 -19
- style.css +60 -23
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: ChromaCraft Tokens ✨
|
| 3 |
+
colorFrom: pink
|
| 4 |
+
colorTo: red
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
| 14 |
+
|
index.html
CHANGED
|
@@ -1,19 +1,11 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
|
| 13 |
-
<p>
|
| 14 |
-
Also don't forget to check the
|
| 15 |
-
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
|
| 16 |
-
</p>
|
| 17 |
-
</div>
|
| 18 |
-
</body>
|
| 19 |
-
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Design Tokens Playground</title>
|
| 7 |
+
<link rel="stylesheet" href="https://cdn.tailwindcss.com">
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<link rel="stylesheet" href="style.css">
|
| 10 |
+
</head>
|
| 11 |
+
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
style.css
CHANGED
|
@@ -1,28 +1,65 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
| 7 |
-
font-size: 16px;
|
| 8 |
-
margin-top: 0;
|
| 9 |
-
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
|
|
| 1 |
+
```css
|
| 2 |
+
:root {
|
| 3 |
+
/* Neutrals */
|
| 4 |
+
--neutral-600: rgb(107, 114, 128);
|
| 5 |
+
--neutral-400: rgb(185, 185, 185);
|
| 6 |
+
--neutral-300: rgb(228, 228, 228);
|
| 7 |
+
--neutral-200: rgb(245, 245, 245);
|
| 8 |
|
| 9 |
+
--default-font-family: 'Source Sans Pro', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
+
/* Brand (OKLCH base + derived states) */
|
| 12 |
+
--primary-base: oklch(0.75 0.12 47);
|
| 13 |
+
--primary-color: var(--primary-base);
|
| 14 |
+
--primary-color-hover: oklch(from var(--primary-color) calc(l - 0.05) c h);
|
| 15 |
+
--primary-color-active: oklch(from var(--primary-color) calc(l - 0.10) c h);
|
| 16 |
+
--on-primary: #ffffff;
|
| 17 |
|
| 18 |
+
/* Custom Primary Color */
|
| 19 |
+
--primary-custom: #4f46e5;
|
| 20 |
+
|
| 21 |
+
/* Custom Secondary Color */
|
| 22 |
+
--secondary-custom: #10b981;
|
| 23 |
+
|
| 24 |
+
/* Text & Surfaces */
|
| 25 |
+
--page-bg: #ffffff;
|
| 26 |
+
--text-color: rgba(0, 0, 0, .85);
|
| 27 |
+
--transparent-page-contrast: rgba(255, 255, 255, .85);
|
| 28 |
+
--muted-color: rgba(0, 0, 0, .6);
|
| 29 |
+
--border-color: rgba(0, 0, 0, .1);
|
| 30 |
+
--surface-bg: #fafafa;
|
| 31 |
+
--code-bg: #f6f8fa;
|
| 32 |
+
|
| 33 |
+
/* Links */
|
| 34 |
+
--link-underline: var(--primary-color);
|
| 35 |
+
--link-underline-hover: var(--primary-color-hover);
|
| 36 |
+
|
| 37 |
+
/* Spacing scale */
|
| 38 |
+
--spacing-1: 8px;
|
| 39 |
+
--spacing-2: 12px;
|
| 40 |
+
--spacing-3: 16px;
|
| 41 |
+
--spacing-4: 24px;
|
| 42 |
+
--spacing-5: 32px;
|
| 43 |
+
--spacing-6: 40px;
|
| 44 |
+
--spacing-7: 48px;
|
| 45 |
+
--spacing-8: 56px;
|
| 46 |
+
--spacing-9: 64px;
|
| 47 |
+
--spacing-10: 72px;
|
| 48 |
+
|
| 49 |
+
/* Button tokens */
|
| 50 |
+
--button-radius: 6px;
|
| 51 |
+
--button-padding-x: 12px;
|
| 52 |
+
--button-padding-y: 8px;
|
| 53 |
+
--button-font-size: 14px;
|
| 54 |
+
--button-icon-padding: 8px;
|
| 55 |
+
--button-big-padding-x: 16px;
|
| 56 |
+
--button-big-padding-y: 12px;
|
| 57 |
+
--button-big-font-size: 16px;
|
| 58 |
+
--button-big-icon-padding: 12px;
|
| 59 |
|
| 60 |
+
/* Table tokens */
|
| 61 |
+
--table-border-radius: 8px;
|
| 62 |
+
--table-header-bg: oklch(from var(--surface-bg) calc(l - 0.02) c h);
|
| 63 |
+
--table-row-odd-bg: oklch(from var(--surface-bg) calc(l - 0.01) c h);
|
| 64 |
}
|
| 65 |
+
```
|