@tetsustudio/tokens 0.0.0-stage → 0.2.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.
@@ -0,0 +1,25 @@
1
+ /* original as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
2
+ Use: <html data-style="original"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
3
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Nunito:wght@600;700&family=JetBrains+Mono:wght@400;500&display=swap');
4
+
5
+ html[data-style='original'] {
6
+ --radius: 12px;
7
+ --shape-lg: 12px;
8
+ --shape-full: 9999px;
9
+ --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
10
+ --font-heading: Nunito, Inter, ui-sans-serif, system-ui, sans-serif;
11
+ --font-mono: 'JetBrains Mono', ui-monospace, monospace;
12
+ --background: #ffffff;
13
+ --surface: #fafafa;
14
+ --foreground: #000000;
15
+ --brand: #3b82f6;
16
+ --brand-foreground: #000000;
17
+ }
18
+
19
+ html[data-style='original'].dark {
20
+ --background: #090909;
21
+ --surface: #171717;
22
+ --foreground: #ffffff;
23
+ --brand: #3b82f6;
24
+ --brand-foreground: #000000;
25
+ }
@@ -0,0 +1,24 @@
1
+ /* papel as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
2
+ Use: <html data-style="papel"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
3
+ @import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..500;1,6..72,400&display=swap');
4
+
5
+ html[data-style='papel'] {
6
+ --radius: 3px;
7
+ --shape-lg: 4px;
8
+ --shape-full: 3px;
9
+ --font-sans: Newsreader, ui-sans-serif, system-ui, sans-serif;
10
+ --font-heading: Newsreader, Newsreader, ui-sans-serif, system-ui, sans-serif;
11
+ --background: #eef0ea;
12
+ --surface: #f9faf6;
13
+ --foreground: #14213a;
14
+ --brand: #2740b0;
15
+ --brand-foreground: #ffffff;
16
+ }
17
+
18
+ html[data-style='papel'].dark {
19
+ --background: #10182a;
20
+ --surface: #1a2439;
21
+ --foreground: #e9edf2;
22
+ --brand: #8ea6ff;
23
+ --brand-foreground: #000000;
24
+ }
@@ -0,0 +1,30 @@
1
+ /* plano as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
2
+ Use: <html data-style="plano"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
3
+ @import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..100,200..600&family=Azeret+Mono:wght@400;500&display=swap');
4
+
5
+ html[data-style='plano'] {
6
+ --radius: 0px;
7
+ --shape-lg: 0px;
8
+ --shape-full: 0px;
9
+ --font-sans: Archivo, ui-sans-serif, system-ui, sans-serif;
10
+ --font-heading: Archivo, Archivo, ui-sans-serif, system-ui, sans-serif;
11
+ --font-mono: 'Azeret Mono', ui-monospace, monospace;
12
+ --background: #F4FAFF;
13
+ --surface: #ecf3fb;
14
+ --foreground: #0B3D91;
15
+ --brand: #5f8a99;
16
+ --brand-foreground: #000000;
17
+ --destructive: #cc7b6e;
18
+ --destructive-foreground: #000000;
19
+ }
20
+
21
+ html[data-style='plano'].dark {
22
+ --background: #0B3D91;
23
+ --surface: #1450B0;
24
+ --foreground: #F4FAFF;
25
+ --brand: #9FE6FF;
26
+ --brand-foreground: #072A66;
27
+ --muted-foreground: #B8CCEB;
28
+ --destructive: #FF9A8A;
29
+ --destructive-foreground: #000000;
30
+ }
@@ -0,0 +1,25 @@
1
+ /* recto as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
2
+ Use: <html data-style="recto"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
3
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
4
+
5
+ html[data-style='recto'] {
6
+ --radius: 0px;
7
+ --shape-lg: 0px;
8
+ --shape-full: 0px;
9
+ --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
10
+ --font-heading: Inter, Inter, ui-sans-serif, system-ui, sans-serif;
11
+ --font-mono: 'JetBrains Mono', ui-monospace, monospace;
12
+ --background: #ffffff;
13
+ --surface: #f4f4f5;
14
+ --foreground: #0a0a0a;
15
+ --brand: #0a0a0a;
16
+ --brand-foreground: #ffffff;
17
+ }
18
+
19
+ html[data-style='recto'].dark {
20
+ --background: #0a0a0a;
21
+ --surface: #171717;
22
+ --foreground: #fafafa;
23
+ --brand: #fafafa;
24
+ --brand-foreground: #000000;
25
+ }
@@ -0,0 +1,32 @@
1
+ /* tetsu as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
2
+ Use: <html data-style="tetsu"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
3
+ @import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=JetBrains+Mono:wght@400;500&family=Nunito:wght@600&display=swap');
4
+
5
+ html[data-style='tetsu'] {
6
+ --radius: 4px;
7
+ --shape-full: 9999px;
8
+ --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
9
+ --font-heading: Inter, Inter, ui-sans-serif, system-ui, sans-serif;
10
+ --font-mono: 'JetBrains Mono', ui-monospace, monospace;
11
+ --background: #FFFFFF;
12
+ --surface: #F4F4F2;
13
+ --foreground: #0B0B0C;
14
+ --brand: #E2470F;
15
+ --brand-foreground: #000000;
16
+ --muted-foreground: #5E6167;
17
+ --border: #E2E2DE;
18
+ --destructive: #FF5A1F;
19
+ --destructive-foreground: #000000;
20
+ }
21
+
22
+ html[data-style='tetsu'].dark {
23
+ --background: #070708;
24
+ --surface: #0E0F11;
25
+ --foreground: #F2F2EE;
26
+ --brand: #FF5A1F;
27
+ --brand-foreground: #070708;
28
+ --muted-foreground: #8C9097;
29
+ --border: #26292E;
30
+ --destructive: #FF5A1F;
31
+ --destructive-foreground: #000000;
32
+ }
@@ -0,0 +1,40 @@
1
+ /* vidrio as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
2
+ Use: <html data-style="vidrio"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
3
+
4
+ html[data-style='vidrio'] {
5
+ --radius: 6px;
6
+ --shape-lg: 2px;
7
+ --shape-full: 9999px;
8
+ --font-sans: 'Funnel Sans', ui-sans-serif, system-ui, sans-serif;
9
+ --font-heading: 'Funnel Display', 'Funnel Sans', ui-sans-serif, system-ui, sans-serif;
10
+ --font-mono: 'Martian Mono', ui-monospace, monospace;
11
+ --background: #F3F4F1;
12
+ --surface: #FFFFFF;
13
+ --foreground: #16191D;
14
+ --brand: #1747FF;
15
+ --brand-foreground: #FFFFFF;
16
+ --muted-foreground: #5B6168;
17
+ --border: #DADDD8;
18
+ --destructive: #C8312A;
19
+ --destructive-foreground: #ffffff;
20
+ --success: #1E7A50;
21
+ --success-foreground: #ffffff;
22
+ --warning: #9A5B00;
23
+ --warning-foreground: #ffffff;
24
+ }
25
+
26
+ html[data-style='vidrio'].dark {
27
+ --background: #0E1013;
28
+ --surface: #15181C;
29
+ --foreground: #ECEEEF;
30
+ --brand: #6E8BFF;
31
+ --brand-foreground: #0E1013;
32
+ --muted-foreground: #8E959D;
33
+ --border: #262A30;
34
+ --destructive: #C8312A;
35
+ --destructive-foreground: #ffffff;
36
+ --success: #1E7A50;
37
+ --success-foreground: #ffffff;
38
+ --warning: #9A5B00;
39
+ --warning-foreground: #ffffff;
40
+ }
@@ -0,0 +1,3 @@
1
+ /** Gallery styles shipped as themes: import '@tetsustudio/tokens/themes/<id>.css'. */
2
+ export declare const GALLERY_THEMES: readonly ["bloque", "brasa", "caramelo", "chicle", "hambre", "laca", "musgo", "origami", "original", "papel", "plano", "recto", "tetsu", "vidrio"];
3
+ export type GalleryThemeId = (typeof GALLERY_THEMES)[number];
package/dist/themes.js ADDED
@@ -0,0 +1,3 @@
1
+ // Generated by scripts/sync-themes.mjs from the style gallery. Do not edit.
2
+ /** Gallery styles shipped as themes: import '@tetsustudio/tokens/themes/<id>.css'. */
3
+ export const GALLERY_THEMES = ["bloque", "brasa", "caramelo", "chicle", "hambre", "laca", "musgo", "origami", "original", "papel", "plano", "recto", "tetsu", "vidrio"];
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@tetsustudio/tokens",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Tetsu design tokens: the CSS variable contract, visual styles, palettes, the style gallery themes and a theme validator.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/tetsustudio/library.git",
10
+ "directory": "packages/tokens"
11
+ },
12
+ "homepage": "https://library.tetsustudio.com",
13
+ "sideEffects": [
14
+ "*.css"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js"
20
+ },
21
+ "./css": "./dist/css/index.css",
22
+ "./base.css": "./dist/css/base.css",
23
+ "./styles.css": "./dist/css/styles.css",
24
+ "./palettes.css": "./dist/css/palettes.css",
25
+ "./tailwind.css": "./dist/css/tailwind.css",
26
+ "./package.json": "./package.json",
27
+ "./themes/*": "./dist/themes/*"
28
+ },
29
+ "types": "./dist/index.d.ts",
30
+ "bin": {
31
+ "tetsu-validate-theme": "./bin/validate-theme.mjs"
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "bin",
36
+ "README.md"
37
+ ],
38
+ "scripts": {
39
+ "build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/build-css.mjs",
40
+ "typecheck": "tsc --noEmit",
41
+ "test": "npm run build && node --test test/*.test.mjs",
42
+ "sync-themes": "node scripts/sync-themes.mjs"
43
+ },
44
+ "devDependencies": {
45
+ "typescript": "^5.9.3"
46
+ },
47
+ "publishConfig": {
48
+ "access": "public",
49
+ "provenance": true
50
+ }
51
+ }