@tetsustudio/tokens 0.1.0 → 0.2.1
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/README.md +22 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/themes/bloque.css +24 -0
- package/dist/themes/brasa.css +38 -0
- package/dist/themes/caramelo.css +23 -0
- package/dist/themes/chicle.css +28 -0
- package/dist/themes/hambre.css +40 -0
- package/dist/themes/laca.css +38 -0
- package/dist/themes/musgo.css +37 -0
- package/dist/themes/origami.css +38 -0
- package/dist/themes/original.css +25 -0
- package/dist/themes/papel.css +24 -0
- package/dist/themes/plano.css +30 -0
- package/dist/themes/recto.css +25 -0
- package/dist/themes/tetsu.css +32 -0
- package/dist/themes/vidrio.css +40 -0
- package/dist/themes.d.ts +3 -0
- package/dist/themes.js +3 -0
- package/package.json +30 -10
package/README.md
CHANGED
|
@@ -26,6 +26,26 @@ npm install @tetsustudio/tokens
|
|
|
26
26
|
Styles: `original`, `recto`, `papel`, `bloque`, `caramelo`, `tetsu`, `vidrio`.
|
|
27
27
|
Each one ships a default light and dark palette; `class="dark"` switches mode.
|
|
28
28
|
|
|
29
|
+
## Gallery themes
|
|
30
|
+
|
|
31
|
+
Every style of [style.tetsustudio.com](https://style.tetsustudio.com) ships as
|
|
32
|
+
a theme: brasa, chicle, hambre, laca, musgo, origami, plano, tetsu, vidrio, and
|
|
33
|
+
the app styles original, recto, papel, bloque and caramelo.
|
|
34
|
+
|
|
35
|
+
```css
|
|
36
|
+
@import '@tetsustudio/tokens/css';
|
|
37
|
+
@import '@tetsustudio/tokens/themes/vidrio.css';
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<html data-style="vidrio"> <!-- class="dark" for dark mode -->
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
A theme loads its Google Fonts and sets colors (light and dark), shape and
|
|
45
|
+
fonts. Its rules are unlayered, so they win over the base palettes. The list is
|
|
46
|
+
exported as `GALLERY_THEMES`; `npm run sync-themes` refreshes it from the
|
|
47
|
+
gallery repo.
|
|
48
|
+
|
|
29
49
|
## The contract
|
|
30
50
|
|
|
31
51
|
A theme sets five variables, in light and in dark:
|
|
@@ -66,4 +86,6 @@ surface 3. The same checks are exported as `parseThemeCss` and `validateTheme`.
|
|
|
66
86
|
import { STYLE_IDS, VISUAL_STYLES, COLOR_THEME_PRESETS, applyPalette } from '@tetsustudio/tokens'
|
|
67
87
|
```
|
|
68
88
|
|
|
89
|
+
Published from GitHub Actions with npm trusted publishing and provenance.
|
|
90
|
+
|
|
69
91
|
MIT © Tetsu Studio
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* bloque as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
|
|
2
|
+
Use: <html data-style="bloque"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;700&family=Archivo+Black&display=swap');
|
|
4
|
+
|
|
5
|
+
html[data-style='bloque'] {
|
|
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 Black', Archivo, ui-sans-serif, system-ui, sans-serif;
|
|
11
|
+
--background: #ffe34d;
|
|
12
|
+
--surface: #fffdf0;
|
|
13
|
+
--foreground: #111111;
|
|
14
|
+
--brand: #d81b63;
|
|
15
|
+
--brand-foreground: #ffffff;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
html[data-style='bloque'].dark {
|
|
19
|
+
--background: #141414;
|
|
20
|
+
--surface: #232323;
|
|
21
|
+
--foreground: #f6f5ee;
|
|
22
|
+
--brand: #d9ff3f;
|
|
23
|
+
--brand-foreground: #000000;
|
|
24
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* brasa as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
|
|
2
|
+
Use: <html data-style="brasa"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=Newsreader:ital,opsz,wght@0,6..72,300..500;1,6..72,300..500&family=Schibsted+Grotesk:wght@400;500;600&family=Martian+Mono:wdth,wght@87.5,400&display=swap');
|
|
4
|
+
|
|
5
|
+
html[data-style='brasa'] {
|
|
6
|
+
--radius: 2px;
|
|
7
|
+
--shape-lg: 8px;
|
|
8
|
+
--font-sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
|
|
9
|
+
--font-heading: 'Big Shoulders Display', 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
|
|
10
|
+
--font-mono: 'Martian Mono', ui-monospace, monospace;
|
|
11
|
+
--background: #F3EBDF;
|
|
12
|
+
--surface: #ebe3d8;
|
|
13
|
+
--foreground: #0F0B09;
|
|
14
|
+
--brand: #d94d1a;
|
|
15
|
+
--brand-foreground: #000000;
|
|
16
|
+
--destructive: #bf6858;
|
|
17
|
+
--destructive-foreground: #000000;
|
|
18
|
+
--success: #768674;
|
|
19
|
+
--success-foreground: #000000;
|
|
20
|
+
--warning: #a98135;
|
|
21
|
+
--warning-foreground: #000000;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
html[data-style='brasa'].dark {
|
|
25
|
+
--background: #0F0B09;
|
|
26
|
+
--surface: #1A1411;
|
|
27
|
+
--foreground: #F3EBDF;
|
|
28
|
+
--brand: #FF5A1F;
|
|
29
|
+
--brand-foreground: #0F0B09;
|
|
30
|
+
--muted-foreground: #9A8E83;
|
|
31
|
+
--border: #2E2620;
|
|
32
|
+
--destructive: #FF8A75;
|
|
33
|
+
--destructive-foreground: #000000;
|
|
34
|
+
--success: #9DB39A;
|
|
35
|
+
--success-foreground: #000000;
|
|
36
|
+
--warning: #F2B84B;
|
|
37
|
+
--warning-foreground: #000000;
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* caramelo as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
|
|
2
|
+
Use: <html data-style="caramelo"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Fredoka:wght@500;600&display=swap');
|
|
4
|
+
|
|
5
|
+
html[data-style='caramelo'] {
|
|
6
|
+
--radius: 20px;
|
|
7
|
+
--shape-lg: 20px;
|
|
8
|
+
--font-sans: Nunito, ui-sans-serif, system-ui, sans-serif;
|
|
9
|
+
--font-heading: Fredoka, Nunito, ui-sans-serif, system-ui, sans-serif;
|
|
10
|
+
--background: #f5efff;
|
|
11
|
+
--surface: #ffffff;
|
|
12
|
+
--foreground: #2a1a4a;
|
|
13
|
+
--brand: #7235e0;
|
|
14
|
+
--brand-foreground: #ffffff;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
html[data-style='caramelo'].dark {
|
|
18
|
+
--background: #1a1230;
|
|
19
|
+
--surface: #271c44;
|
|
20
|
+
--foreground: #f1eaff;
|
|
21
|
+
--brand: #b999ff;
|
|
22
|
+
--brand-foreground: #000000;
|
|
23
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* chicle as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
|
|
2
|
+
Use: <html data-style="chicle"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Anybody:ital,wdth,wght@0,50..150,100..900;1,50..150,100..900&family=Host+Grotesk:wght@400;500;700&display=swap');
|
|
4
|
+
|
|
5
|
+
html[data-style='chicle'] {
|
|
6
|
+
--radius: 16px;
|
|
7
|
+
--shape-full: 9999px;
|
|
8
|
+
--font-sans: 'Host Grotesk', ui-sans-serif, system-ui, sans-serif;
|
|
9
|
+
--font-heading: Anybody, 'Host Grotesk', ui-sans-serif, system-ui, sans-serif;
|
|
10
|
+
--background: #FF5CA8;
|
|
11
|
+
--surface: #FFF6FB;
|
|
12
|
+
--foreground: #1A0B2E;
|
|
13
|
+
--brand: #779223;
|
|
14
|
+
--brand-foreground: #1A0B2E;
|
|
15
|
+
--muted-foreground: #6B5A7A;
|
|
16
|
+
--destructive: #C8104F;
|
|
17
|
+
--destructive-foreground: #ffffff;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
html[data-style='chicle'].dark {
|
|
21
|
+
--background: #1A0B2E;
|
|
22
|
+
--surface: #281035;
|
|
23
|
+
--foreground: #FF5CA8;
|
|
24
|
+
--brand: #779223;
|
|
25
|
+
--brand-foreground: #000000;
|
|
26
|
+
--destructive: #C8104F;
|
|
27
|
+
--destructive-foreground: #ffffff;
|
|
28
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* hambre as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
|
|
2
|
+
Use: <html data-style="hambre"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,400..800&display=swap');
|
|
4
|
+
|
|
5
|
+
html[data-style='hambre'] {
|
|
6
|
+
--radius: 6px;
|
|
7
|
+
--shape-lg: 20px;
|
|
8
|
+
--shape-full: 14px;
|
|
9
|
+
--font-sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
|
|
10
|
+
--font-heading: 'Bricolage Grotesque', 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
|
|
11
|
+
--background: #fff7ed;
|
|
12
|
+
--surface: #ffffff;
|
|
13
|
+
--foreground: #3b1f12;
|
|
14
|
+
--brand: #c2410c;
|
|
15
|
+
--brand-foreground: #fff7ed;
|
|
16
|
+
--muted-foreground: #725b4f;
|
|
17
|
+
--border: #e4d9ce;
|
|
18
|
+
--destructive: #ff5f56;
|
|
19
|
+
--destructive-foreground: #000000;
|
|
20
|
+
--success: #27c93f;
|
|
21
|
+
--success-foreground: #000000;
|
|
22
|
+
--warning: #ffbd2e;
|
|
23
|
+
--warning-foreground: #000000;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
html[data-style='hambre'].dark {
|
|
27
|
+
--background: #221a16;
|
|
28
|
+
--surface: #2e241f;
|
|
29
|
+
--foreground: #fff1e4;
|
|
30
|
+
--brand: #c94c20;
|
|
31
|
+
--brand-foreground: #000000;
|
|
32
|
+
--muted-foreground: #c1b5aa;
|
|
33
|
+
--border: #453c37;
|
|
34
|
+
--destructive: #ff5f56;
|
|
35
|
+
--destructive-foreground: #000000;
|
|
36
|
+
--success: #27c93f;
|
|
37
|
+
--success-foreground: #000000;
|
|
38
|
+
--warning: #ffbd2e;
|
|
39
|
+
--warning-foreground: #000000;
|
|
40
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* laca as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
|
|
2
|
+
Use: <html data-style="laca"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..600;1,6..96,400..600&family=Hanken+Grotesk:wght@300..600&display=swap');
|
|
4
|
+
|
|
5
|
+
html[data-style='laca'] {
|
|
6
|
+
--radius: 14px;
|
|
7
|
+
--shape-lg: 28px;
|
|
8
|
+
--shape-full: 9999px;
|
|
9
|
+
--font-sans: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
|
|
10
|
+
--font-heading: 'Bodoni Moda', 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
|
|
11
|
+
--background: #F1EEEF;
|
|
12
|
+
--surface: #e9e6e7;
|
|
13
|
+
--foreground: #160407;
|
|
14
|
+
--brand: #8d7f65;
|
|
15
|
+
--brand-foreground: #000000;
|
|
16
|
+
--destructive: #b36f6f;
|
|
17
|
+
--destructive-foreground: #000000;
|
|
18
|
+
--success: #768d7e;
|
|
19
|
+
--success-foreground: #000000;
|
|
20
|
+
--warning: #90856c;
|
|
21
|
+
--warning-foreground: #000000;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
html[data-style='laca'].dark {
|
|
25
|
+
--background: #160407;
|
|
26
|
+
--surface: #220A0F;
|
|
27
|
+
--foreground: #F1EEEF;
|
|
28
|
+
--brand: #D9C39C;
|
|
29
|
+
--brand-foreground: #1A0508;
|
|
30
|
+
--muted-foreground: #B9A5A9;
|
|
31
|
+
--border: #4A1A22;
|
|
32
|
+
--destructive: #FF9E9E;
|
|
33
|
+
--destructive-foreground: #000000;
|
|
34
|
+
--success: #A8C9B4;
|
|
35
|
+
--success-foreground: #000000;
|
|
36
|
+
--warning: #F0DDB4;
|
|
37
|
+
--warning-foreground: #000000;
|
|
38
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* musgo as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
|
|
2
|
+
Use: <html data-style="musgo"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Piazzolla:opsz,wght@8..30,300..500&family=Ysabeau+Office:wght@400..600&display=swap');
|
|
4
|
+
|
|
5
|
+
html[data-style='musgo'] {
|
|
6
|
+
--radius: 16px;
|
|
7
|
+
--shape-full: 9999px;
|
|
8
|
+
--font-sans: 'Ysabeau Office', ui-sans-serif, system-ui, sans-serif;
|
|
9
|
+
--font-heading: Piazzolla, 'Ysabeau Office', ui-sans-serif, system-ui, sans-serif;
|
|
10
|
+
--background: #E1E2D5;
|
|
11
|
+
--surface: #ECEBE2;
|
|
12
|
+
--foreground: #1E211C;
|
|
13
|
+
--brand: #2F4A33;
|
|
14
|
+
--brand-foreground: #ECEBE2;
|
|
15
|
+
--muted-foreground: #565B4E;
|
|
16
|
+
--border: #A9AB99;
|
|
17
|
+
--destructive: #97391F;
|
|
18
|
+
--destructive-foreground: #ffffff;
|
|
19
|
+
--success: #2F4A33;
|
|
20
|
+
--success-foreground: #ffffff;
|
|
21
|
+
--warning: #7A5810;
|
|
22
|
+
--warning-foreground: #ffffff;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
html[data-style='musgo'].dark {
|
|
26
|
+
--background: #1E211C;
|
|
27
|
+
--surface: #2a2d27;
|
|
28
|
+
--foreground: #E1E2D5;
|
|
29
|
+
--brand: #6d8070;
|
|
30
|
+
--brand-foreground: #000000;
|
|
31
|
+
--destructive: #a75741;
|
|
32
|
+
--destructive-foreground: #ffffff;
|
|
33
|
+
--success: #637766;
|
|
34
|
+
--success-foreground: #ffffff;
|
|
35
|
+
--warning: #876928;
|
|
36
|
+
--warning-foreground: #ffffff;
|
|
37
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* origami as a Tetsu theme. Generated by scripts/theme-css.mjs from tokens.json; do not edit.
|
|
2
|
+
Use: <html data-style="origami"> (add class="dark" for dark) with @tetsustudio/tokens/css. */
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@800;900&family=Atkinson+Hyperlegible+Next:wght@400;500;700&display=swap');
|
|
4
|
+
|
|
5
|
+
html[data-style='origami'] {
|
|
6
|
+
--radius: 14px;
|
|
7
|
+
--shape-lg: 6px;
|
|
8
|
+
--shape-full: 14px;
|
|
9
|
+
--font-sans: 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, sans-serif;
|
|
10
|
+
--font-heading: 'M PLUS Rounded 1c', 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, sans-serif;
|
|
11
|
+
--background: #F6EFE2;
|
|
12
|
+
--surface: #FFFBF4;
|
|
13
|
+
--foreground: #2B2320;
|
|
14
|
+
--brand: #CF3A2D;
|
|
15
|
+
--brand-foreground: #FFFFFF;
|
|
16
|
+
--muted-foreground: #6B5D53;
|
|
17
|
+
--border: #D9CBB2;
|
|
18
|
+
--destructive: #A82B21;
|
|
19
|
+
--destructive-foreground: #ffffff;
|
|
20
|
+
--success: #1D6A72;
|
|
21
|
+
--success-foreground: #ffffff;
|
|
22
|
+
--warning: #C98F14;
|
|
23
|
+
--warning-foreground: #000000;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
html[data-style='origami'].dark {
|
|
27
|
+
--background: #2B2320;
|
|
28
|
+
--surface: #372f2c;
|
|
29
|
+
--foreground: #F6EFE2;
|
|
30
|
+
--brand: #d44e42;
|
|
31
|
+
--brand-foreground: #000000;
|
|
32
|
+
--destructive: #b9554d;
|
|
33
|
+
--destructive-foreground: #ffffff;
|
|
34
|
+
--success: #347980;
|
|
35
|
+
--success-foreground: #ffffff;
|
|
36
|
+
--warning: #C98F14;
|
|
37
|
+
--warning-foreground: #000000;
|
|
38
|
+
}
|
|
@@ -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
|
+
}
|
package/dist/themes.d.ts
ADDED
|
@@ -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,31 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tetsustudio/tokens",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "Tetsu design tokens: the CSS variable contract, visual styles, palettes and a theme validator.",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Tetsu design tokens: the CSS variable contract, visual styles, palettes, the style gallery themes and a theme validator.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"repository": {
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/tetsustudio/library.git",
|
|
10
|
+
"directory": "packages/tokens"
|
|
11
|
+
},
|
|
8
12
|
"homepage": "https://library.tetsustudio.com",
|
|
9
|
-
"sideEffects": [
|
|
13
|
+
"sideEffects": [
|
|
14
|
+
"*.css"
|
|
15
|
+
],
|
|
10
16
|
"exports": {
|
|
11
|
-
".": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
12
21
|
"./css": "./dist/css/index.css",
|
|
13
22
|
"./base.css": "./dist/css/base.css",
|
|
14
23
|
"./styles.css": "./dist/css/styles.css",
|
|
15
24
|
"./palettes.css": "./dist/css/palettes.css",
|
|
16
25
|
"./tailwind.css": "./dist/css/tailwind.css",
|
|
17
|
-
"./package.json": "./package.json"
|
|
26
|
+
"./package.json": "./package.json",
|
|
27
|
+
"./themes/*": "./dist/themes/*"
|
|
18
28
|
},
|
|
19
29
|
"types": "./dist/index.d.ts",
|
|
20
|
-
"bin": {
|
|
21
|
-
|
|
30
|
+
"bin": {
|
|
31
|
+
"tetsu-validate-theme": "./bin/validate-theme.mjs"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"bin",
|
|
36
|
+
"README.md"
|
|
37
|
+
],
|
|
22
38
|
"scripts": {
|
|
23
39
|
"build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/build-css.mjs",
|
|
24
40
|
"typecheck": "tsc --noEmit",
|
|
25
|
-
"test": "npm run build && node --test test/*.test.mjs"
|
|
41
|
+
"test": "npm run build && node --test test/*.test.mjs",
|
|
42
|
+
"sync-themes": "node scripts/sync-themes.mjs"
|
|
26
43
|
},
|
|
27
44
|
"devDependencies": {
|
|
28
45
|
"typescript": "^5.9.3"
|
|
29
46
|
},
|
|
30
|
-
"publishConfig": {
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public",
|
|
49
|
+
"provenance": true
|
|
50
|
+
}
|
|
31
51
|
}
|