@estiato/tokens 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +33 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/package.json +33 -0
- package/src/tokens.css +77 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript mirror of tokens.css for non-CSS contexts (charts, generated SVGs, RN later).
|
|
3
|
+
* Keep in lockstep with src/tokens.css.
|
|
4
|
+
*/
|
|
5
|
+
declare const colors: {
|
|
6
|
+
readonly background: "#faf5ef";
|
|
7
|
+
readonly foreground: "#1a1a1a";
|
|
8
|
+
readonly accent: "#c4742e";
|
|
9
|
+
readonly accentLight: "#d4945e";
|
|
10
|
+
readonly accentDark: "#a05a1e";
|
|
11
|
+
readonly surface: "#ffffff";
|
|
12
|
+
readonly surfaceSecondary: "#f3ede5";
|
|
13
|
+
readonly muted: "#8a8278";
|
|
14
|
+
readonly border: "#e8e0d6";
|
|
15
|
+
readonly borderLight: "#f0ebe4";
|
|
16
|
+
readonly success: "#2d8a56";
|
|
17
|
+
readonly error: "#c44040";
|
|
18
|
+
readonly warning: "#c4a02e";
|
|
19
|
+
};
|
|
20
|
+
declare const radius: {
|
|
21
|
+
readonly sm: "0.375rem";
|
|
22
|
+
readonly md: "0.5rem";
|
|
23
|
+
readonly lg: "0.75rem";
|
|
24
|
+
readonly xl: "1rem";
|
|
25
|
+
};
|
|
26
|
+
declare const fonts: {
|
|
27
|
+
readonly sans: "var(--font-geist-sans, ui-sans-serif, system-ui, sans-serif)";
|
|
28
|
+
readonly mono: "var(--font-geist-mono, ui-monospace, monospace)";
|
|
29
|
+
};
|
|
30
|
+
type ColorToken = keyof typeof colors;
|
|
31
|
+
type RadiusToken = keyof typeof radius;
|
|
32
|
+
|
|
33
|
+
export { type ColorToken, type RadiusToken, colors, fonts, radius };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
var colors = {
|
|
3
|
+
background: "#faf5ef",
|
|
4
|
+
foreground: "#1a1a1a",
|
|
5
|
+
accent: "#c4742e",
|
|
6
|
+
accentLight: "#d4945e",
|
|
7
|
+
accentDark: "#a05a1e",
|
|
8
|
+
surface: "#ffffff",
|
|
9
|
+
surfaceSecondary: "#f3ede5",
|
|
10
|
+
muted: "#8a8278",
|
|
11
|
+
border: "#e8e0d6",
|
|
12
|
+
borderLight: "#f0ebe4",
|
|
13
|
+
success: "#2d8a56",
|
|
14
|
+
error: "#c44040",
|
|
15
|
+
warning: "#c4a02e"
|
|
16
|
+
};
|
|
17
|
+
var radius = {
|
|
18
|
+
sm: "0.375rem",
|
|
19
|
+
md: "0.5rem",
|
|
20
|
+
lg: "0.75rem",
|
|
21
|
+
xl: "1rem"
|
|
22
|
+
};
|
|
23
|
+
var fonts = {
|
|
24
|
+
sans: "var(--font-geist-sans, ui-sans-serif, system-ui, sans-serif)",
|
|
25
|
+
mono: "var(--font-geist-mono, ui-monospace, monospace)"
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
colors,
|
|
29
|
+
fonts,
|
|
30
|
+
radius
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * TypeScript mirror of tokens.css for non-CSS contexts (charts, generated SVGs, RN later).\n * Keep in lockstep with src/tokens.css.\n */\n\nexport const colors = {\n background: \"#faf5ef\",\n foreground: \"#1a1a1a\",\n accent: \"#c4742e\",\n accentLight: \"#d4945e\",\n accentDark: \"#a05a1e\",\n surface: \"#ffffff\",\n surfaceSecondary: \"#f3ede5\",\n muted: \"#8a8278\",\n border: \"#e8e0d6\",\n borderLight: \"#f0ebe4\",\n success: \"#2d8a56\",\n error: \"#c44040\",\n warning: \"#c4a02e\",\n} as const;\n\nexport const radius = {\n sm: \"0.375rem\",\n md: \"0.5rem\",\n lg: \"0.75rem\",\n xl: \"1rem\",\n} as const;\n\nexport const fonts = {\n sans: \"var(--font-geist-sans, ui-sans-serif, system-ui, sans-serif)\",\n mono: \"var(--font-geist-mono, ui-monospace, monospace)\",\n} as const;\n\nexport type ColorToken = keyof typeof colors;\nexport type RadiusToken = keyof typeof radius;\n"],"mappings":";AAKO,IAAM,SAAS;AAAA,EACpB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AACX;AAEO,IAAM,SAAS;AAAA,EACpB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,IAAM,QAAQ;AAAA,EACnB,MAAM;AAAA,EACN,MAAM;AACR;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@estiato/tokens",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Estiato design tokens — CSS variables and TypeScript constants.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/*.css"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"src/tokens.css"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./tokens.css": "./src/tokens.css"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"tsup": "^8.3.5",
|
|
23
|
+
"typescript": "^5.7.2"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"typecheck": "tsc --noEmit",
|
|
31
|
+
"lint": "echo 'no lint'"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/src/tokens.css
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* Estiato design tokens — single source of truth.
|
|
2
|
+
* Mirrored in src/index.ts for non-CSS contexts.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--background: #faf5ef;
|
|
7
|
+
--foreground: #1a1a1a;
|
|
8
|
+
--accent: #c4742e;
|
|
9
|
+
--accent-light: #d4945e;
|
|
10
|
+
--accent-dark: #a05a1e;
|
|
11
|
+
--surface: #ffffff;
|
|
12
|
+
--surface-secondary: #f3ede5;
|
|
13
|
+
--muted: #8a8278;
|
|
14
|
+
--border: #e8e0d6;
|
|
15
|
+
--border-light: #f0ebe4;
|
|
16
|
+
--success: #2d8a56;
|
|
17
|
+
--error: #c44040;
|
|
18
|
+
--warning: #c4a02e;
|
|
19
|
+
|
|
20
|
+
--radius-sm: 0.375rem;
|
|
21
|
+
--radius-md: 0.5rem;
|
|
22
|
+
--radius-lg: 0.75rem;
|
|
23
|
+
--radius-xl: 1rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@theme inline {
|
|
27
|
+
--color-background: var(--background);
|
|
28
|
+
--color-foreground: var(--foreground);
|
|
29
|
+
--color-accent: var(--accent);
|
|
30
|
+
--color-accent-light: var(--accent-light);
|
|
31
|
+
--color-accent-dark: var(--accent-dark);
|
|
32
|
+
--color-surface: var(--surface);
|
|
33
|
+
--color-surface-secondary: var(--surface-secondary);
|
|
34
|
+
--color-muted: var(--muted);
|
|
35
|
+
--color-border: var(--border);
|
|
36
|
+
--color-border-light: var(--border-light);
|
|
37
|
+
--color-success: var(--success);
|
|
38
|
+
--color-error: var(--error);
|
|
39
|
+
--color-warning: var(--warning);
|
|
40
|
+
--font-sans: var(--font-geist-sans, ui-sans-serif, system-ui, sans-serif);
|
|
41
|
+
--font-mono: var(--font-geist-mono, ui-monospace, monospace);
|
|
42
|
+
--radius-sm: var(--radius-sm);
|
|
43
|
+
--radius-md: var(--radius-md);
|
|
44
|
+
--radius-lg: var(--radius-lg);
|
|
45
|
+
--radius-xl: var(--radius-xl);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Shared utilities carried from estiato-web */
|
|
49
|
+
|
|
50
|
+
.shadow-diffuse {
|
|
51
|
+
box-shadow: 0 20px 40px -15px rgba(26, 26, 26, 0.06);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.shadow-diffuse-lg {
|
|
55
|
+
box-shadow: 0 30px 60px -20px rgba(26, 26, 26, 0.1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.glass {
|
|
59
|
+
background: rgba(250, 245, 239, 0.72);
|
|
60
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
61
|
+
border-bottom: 1px solid rgba(232, 224, 214, 0.5);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.glass-card {
|
|
65
|
+
background: rgba(255, 255, 255, 0.72);
|
|
66
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
67
|
+
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
68
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.scrollbar-hide {
|
|
72
|
+
-ms-overflow-style: none;
|
|
73
|
+
scrollbar-width: none;
|
|
74
|
+
}
|
|
75
|
+
.scrollbar-hide::-webkit-scrollbar {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|