@syncupsuite/themes 0.3.0 → 0.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncupsuite/themes",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Pre-built, culturally-grounded design themes — ready to use",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -54,7 +54,7 @@
54
54
  "typescript": "^5.7.0",
55
55
  "vitest": "^4.0.18",
56
56
  "@syncupsuite/foundations": "0.2.0",
57
- "@syncupsuite/transformers": "0.2.0"
57
+ "@syncupsuite/transformers": "0.2.1"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "tsup",
@@ -215,6 +215,28 @@
215
215
 
216
216
  }
217
217
 
218
+ /* === Semantic Color API — theme-aware Tailwind utilities === */
219
+ @theme {
220
+ --color-canvas: var(--background-canvas);
221
+ --color-surface: var(--background-surface);
222
+ --color-muted: var(--background-muted);
223
+ --color-foreground: var(--text-primary);
224
+ --color-foreground-secondary: var(--text-secondary);
225
+ --color-foreground-muted: var(--text-muted);
226
+ --color-foreground-inverse: var(--text-inverse);
227
+ --color-primary: var(--interactive-primary);
228
+ --color-primary-hover: var(--interactive-primary-hover);
229
+ --color-primary-active: var(--interactive-primary-active);
230
+ --color-border: var(--border-default);
231
+ --color-border-strong: var(--border-strong);
232
+ --color-error: var(--status-error);
233
+ --color-success: var(--status-success);
234
+ --color-warning: var(--status-warning);
235
+ --color-info: var(--status-info);
236
+ --color-ring: var(--focus-ring);
237
+ --color-focus-visible: var(--accessibility-focus-visible);
238
+ }
239
+
218
240
  /* Primitive aliases + light mode semantic tokens */
219
241
  :root {
220
242
  /* --primitive-color-* aliases → @theme --color-* (for semantic var() resolution) */
@@ -1,5 +1,19 @@
1
- /* art-deco — Design Tokens */
2
- /* Generated by @syncupsuite/transformers */
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ * art-deco Design Tokens
3
+ * Generated by @syncupsuite/transformers
4
+ *
5
+ * CONSUMER API — Use these semantic tokens in your styles:
6
+ *
7
+ * Backgrounds: var(--background-canvas | surface | muted)
8
+ * Text: var(--text-primary | secondary | muted | inverse)
9
+ * Interactive: var(--interactive-primary | primary-hover | primary-active)
10
+ * Borders: var(--border-default | strong)
11
+ * Status: var(--status-error | success | warning | info)
12
+ * Focus: var(--focus-ring)
13
+ *
14
+ * Dark mode: Add [data-theme="dark"] to a parent element.
15
+ * Primitives: --primitive-color-*, --primitive-spacing-*, etc.
16
+ * ═══════════════════════════════════════════════════════════════ */
3
17
 
4
18
  :root {
5
19
  /* --- Primitive Colors --- */
@@ -195,6 +195,28 @@
195
195
 
196
196
  }
197
197
 
198
+ /* === Semantic Color API — theme-aware Tailwind utilities === */
199
+ @theme {
200
+ --color-canvas: var(--background-canvas);
201
+ --color-surface: var(--background-surface);
202
+ --color-muted: var(--background-muted);
203
+ --color-foreground: var(--text-primary);
204
+ --color-foreground-secondary: var(--text-secondary);
205
+ --color-foreground-muted: var(--text-muted);
206
+ --color-foreground-inverse: var(--text-inverse);
207
+ --color-primary: var(--interactive-primary);
208
+ --color-primary-hover: var(--interactive-primary-hover);
209
+ --color-primary-active: var(--interactive-primary-active);
210
+ --color-border: var(--border-default);
211
+ --color-border-strong: var(--border-strong);
212
+ --color-error: var(--status-error);
213
+ --color-success: var(--status-success);
214
+ --color-warning: var(--status-warning);
215
+ --color-info: var(--status-info);
216
+ --color-ring: var(--focus-ring);
217
+ --color-focus-visible: var(--accessibility-focus-visible);
218
+ }
219
+
198
220
  /* Primitive aliases + light mode semantic tokens */
199
221
  :root {
200
222
  /* --primitive-color-* aliases → @theme --color-* (for semantic var() resolution) */
@@ -1,5 +1,19 @@
1
- /* nihon-minimal — Design Tokens */
2
- /* Generated by @syncupsuite/transformers */
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ * nihon-minimal Design Tokens
3
+ * Generated by @syncupsuite/transformers
4
+ *
5
+ * CONSUMER API — Use these semantic tokens in your styles:
6
+ *
7
+ * Backgrounds: var(--background-canvas | surface | muted)
8
+ * Text: var(--text-primary | secondary | muted | inverse)
9
+ * Interactive: var(--interactive-primary | primary-hover | primary-active)
10
+ * Borders: var(--border-default | strong)
11
+ * Status: var(--status-error | success | warning | info)
12
+ * Focus: var(--focus-ring)
13
+ *
14
+ * Dark mode: Add [data-theme="dark"] to a parent element.
15
+ * Primitives: --primitive-color-*, --primitive-spacing-*, etc.
16
+ * ═══════════════════════════════════════════════════════════════ */
3
17
 
4
18
  :root {
5
19
  /* --- Primitive Colors --- */
@@ -255,6 +255,28 @@
255
255
 
256
256
  }
257
257
 
258
+ /* === Semantic Color API — theme-aware Tailwind utilities === */
259
+ @theme {
260
+ --color-canvas: var(--background-canvas);
261
+ --color-surface: var(--background-surface);
262
+ --color-muted: var(--background-muted);
263
+ --color-foreground: var(--text-primary);
264
+ --color-foreground-secondary: var(--text-secondary);
265
+ --color-foreground-muted: var(--text-muted);
266
+ --color-foreground-inverse: var(--text-inverse);
267
+ --color-primary: var(--interactive-primary);
268
+ --color-primary-hover: var(--interactive-primary-hover);
269
+ --color-primary-active: var(--interactive-primary-active);
270
+ --color-border: var(--border-default);
271
+ --color-border-strong: var(--border-strong);
272
+ --color-error: var(--status-error);
273
+ --color-success: var(--status-success);
274
+ --color-warning: var(--status-warning);
275
+ --color-info: var(--status-info);
276
+ --color-ring: var(--focus-ring);
277
+ --color-focus-visible: var(--accessibility-focus-visible);
278
+ }
279
+
258
280
  /* Primitive aliases + light mode semantic tokens */
259
281
  :root {
260
282
  /* --primitive-color-* aliases → @theme --color-* (for semantic var() resolution) */
@@ -1,5 +1,19 @@
1
- /* nihon-no-iro-traditional — Design Tokens */
2
- /* Generated by @syncupsuite/transformers */
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ * nihon-no-iro-traditional Design Tokens
3
+ * Generated by @syncupsuite/transformers
4
+ *
5
+ * CONSUMER API — Use these semantic tokens in your styles:
6
+ *
7
+ * Backgrounds: var(--background-canvas | surface | muted)
8
+ * Text: var(--text-primary | secondary | muted | inverse)
9
+ * Interactive: var(--interactive-primary | primary-hover | primary-active)
10
+ * Borders: var(--border-default | strong)
11
+ * Status: var(--status-error | success | warning | info)
12
+ * Focus: var(--focus-ring)
13
+ *
14
+ * Dark mode: Add [data-theme="dark"] to a parent element.
15
+ * Primitives: --primitive-color-*, --primitive-spacing-*, etc.
16
+ * ═══════════════════════════════════════════════════════════════ */
3
17
 
4
18
  :root {
5
19
  /* --- Primitive Colors --- */
@@ -235,6 +235,28 @@
235
235
 
236
236
  }
237
237
 
238
+ /* === Semantic Color API — theme-aware Tailwind utilities === */
239
+ @theme {
240
+ --color-canvas: var(--background-canvas);
241
+ --color-surface: var(--background-surface);
242
+ --color-muted: var(--background-muted);
243
+ --color-foreground: var(--text-primary);
244
+ --color-foreground-secondary: var(--text-secondary);
245
+ --color-foreground-muted: var(--text-muted);
246
+ --color-foreground-inverse: var(--text-inverse);
247
+ --color-primary: var(--interactive-primary);
248
+ --color-primary-hover: var(--interactive-primary-hover);
249
+ --color-primary-active: var(--interactive-primary-active);
250
+ --color-border: var(--border-default);
251
+ --color-border-strong: var(--border-strong);
252
+ --color-error: var(--status-error);
253
+ --color-success: var(--status-success);
254
+ --color-warning: var(--status-warning);
255
+ --color-info: var(--status-info);
256
+ --color-ring: var(--focus-ring);
257
+ --color-focus-visible: var(--accessibility-focus-visible);
258
+ }
259
+
238
260
  /* Primitive aliases + light mode semantic tokens */
239
261
  :root {
240
262
  /* --primitive-color-* aliases → @theme --color-* (for semantic var() resolution) */
@@ -1,5 +1,19 @@
1
- /* nordic-modern — Design Tokens */
2
- /* Generated by @syncupsuite/transformers */
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ * nordic-modern Design Tokens
3
+ * Generated by @syncupsuite/transformers
4
+ *
5
+ * CONSUMER API — Use these semantic tokens in your styles:
6
+ *
7
+ * Backgrounds: var(--background-canvas | surface | muted)
8
+ * Text: var(--text-primary | secondary | muted | inverse)
9
+ * Interactive: var(--interactive-primary | primary-hover | primary-active)
10
+ * Borders: var(--border-default | strong)
11
+ * Status: var(--status-error | success | warning | info)
12
+ * Focus: var(--focus-ring)
13
+ *
14
+ * Dark mode: Add [data-theme="dark"] to a parent element.
15
+ * Primitives: --primitive-color-*, --primitive-spacing-*, etc.
16
+ * ═══════════════════════════════════════════════════════════════ */
3
17
 
4
18
  :root {
5
19
  /* --- Primitive Colors --- */
@@ -235,6 +235,28 @@
235
235
 
236
236
  }
237
237
 
238
+ /* === Semantic Color API — theme-aware Tailwind utilities === */
239
+ @theme {
240
+ --color-canvas: var(--background-canvas);
241
+ --color-surface: var(--background-surface);
242
+ --color-muted: var(--background-muted);
243
+ --color-foreground: var(--text-primary);
244
+ --color-foreground-secondary: var(--text-secondary);
245
+ --color-foreground-muted: var(--text-muted);
246
+ --color-foreground-inverse: var(--text-inverse);
247
+ --color-primary: var(--interactive-primary);
248
+ --color-primary-hover: var(--interactive-primary-hover);
249
+ --color-primary-active: var(--interactive-primary-active);
250
+ --color-border: var(--border-default);
251
+ --color-border-strong: var(--border-strong);
252
+ --color-error: var(--status-error);
253
+ --color-success: var(--status-success);
254
+ --color-warning: var(--status-warning);
255
+ --color-info: var(--status-info);
256
+ --color-ring: var(--focus-ring);
257
+ --color-focus-visible: var(--accessibility-focus-visible);
258
+ }
259
+
238
260
  /* Primitive aliases + light mode semantic tokens */
239
261
  :root {
240
262
  /* --primitive-color-* aliases → @theme --color-* (for semantic var() resolution) */
@@ -1,5 +1,19 @@
1
- /* renaissance — Design Tokens */
2
- /* Generated by @syncupsuite/transformers */
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ * renaissance Design Tokens
3
+ * Generated by @syncupsuite/transformers
4
+ *
5
+ * CONSUMER API — Use these semantic tokens in your styles:
6
+ *
7
+ * Backgrounds: var(--background-canvas | surface | muted)
8
+ * Text: var(--text-primary | secondary | muted | inverse)
9
+ * Interactive: var(--interactive-primary | primary-hover | primary-active)
10
+ * Borders: var(--border-default | strong)
11
+ * Status: var(--status-error | success | warning | info)
12
+ * Focus: var(--focus-ring)
13
+ *
14
+ * Dark mode: Add [data-theme="dark"] to a parent element.
15
+ * Primitives: --primitive-color-*, --primitive-spacing-*, etc.
16
+ * ═══════════════════════════════════════════════════════════════ */
3
17
 
4
18
  :root {
5
19
  /* --- Primitive Colors --- */
@@ -235,6 +235,28 @@
235
235
 
236
236
  }
237
237
 
238
+ /* === Semantic Color API — theme-aware Tailwind utilities === */
239
+ @theme {
240
+ --color-canvas: var(--background-canvas);
241
+ --color-surface: var(--background-surface);
242
+ --color-muted: var(--background-muted);
243
+ --color-foreground: var(--text-primary);
244
+ --color-foreground-secondary: var(--text-secondary);
245
+ --color-foreground-muted: var(--text-muted);
246
+ --color-foreground-inverse: var(--text-inverse);
247
+ --color-primary: var(--interactive-primary);
248
+ --color-primary-hover: var(--interactive-primary-hover);
249
+ --color-primary-active: var(--interactive-primary-active);
250
+ --color-border: var(--border-default);
251
+ --color-border-strong: var(--border-strong);
252
+ --color-error: var(--status-error);
253
+ --color-success: var(--status-success);
254
+ --color-warning: var(--status-warning);
255
+ --color-info: var(--status-info);
256
+ --color-ring: var(--focus-ring);
257
+ --color-focus-visible: var(--accessibility-focus-visible);
258
+ }
259
+
238
260
  /* Primitive aliases + light mode semantic tokens */
239
261
  :root {
240
262
  /* --primitive-color-* aliases → @theme --color-* (for semantic var() resolution) */
@@ -1,5 +1,19 @@
1
- /* shuimo-modern — Design Tokens */
2
- /* Generated by @syncupsuite/transformers */
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ * shuimo-modern Design Tokens
3
+ * Generated by @syncupsuite/transformers
4
+ *
5
+ * CONSUMER API — Use these semantic tokens in your styles:
6
+ *
7
+ * Backgrounds: var(--background-canvas | surface | muted)
8
+ * Text: var(--text-primary | secondary | muted | inverse)
9
+ * Interactive: var(--interactive-primary | primary-hover | primary-active)
10
+ * Borders: var(--border-default | strong)
11
+ * Status: var(--status-error | success | warning | info)
12
+ * Focus: var(--focus-ring)
13
+ *
14
+ * Dark mode: Add [data-theme="dark"] to a parent element.
15
+ * Primitives: --primitive-color-*, --primitive-spacing-*, etc.
16
+ * ═══════════════════════════════════════════════════════════════ */
3
17
 
4
18
  :root {
5
19
  /* --- Primitive Colors --- */
@@ -235,6 +235,28 @@
235
235
 
236
236
  }
237
237
 
238
+ /* === Semantic Color API — theme-aware Tailwind utilities === */
239
+ @theme {
240
+ --color-canvas: var(--background-canvas);
241
+ --color-surface: var(--background-surface);
242
+ --color-muted: var(--background-muted);
243
+ --color-foreground: var(--text-primary);
244
+ --color-foreground-secondary: var(--text-secondary);
245
+ --color-foreground-muted: var(--text-muted);
246
+ --color-foreground-inverse: var(--text-inverse);
247
+ --color-primary: var(--interactive-primary);
248
+ --color-primary-hover: var(--interactive-primary-hover);
249
+ --color-primary-active: var(--interactive-primary-active);
250
+ --color-border: var(--border-default);
251
+ --color-border-strong: var(--border-strong);
252
+ --color-error: var(--status-error);
253
+ --color-success: var(--status-success);
254
+ --color-warning: var(--status-warning);
255
+ --color-info: var(--status-info);
256
+ --color-ring: var(--focus-ring);
257
+ --color-focus-visible: var(--accessibility-focus-visible);
258
+ }
259
+
238
260
  /* Primitive aliases + light mode semantic tokens */
239
261
  :root {
240
262
  /* --primitive-color-* aliases → @theme --color-* (for semantic var() resolution) */
@@ -1,5 +1,19 @@
1
- /* swiss-international-style — Design Tokens */
2
- /* Generated by @syncupsuite/transformers */
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ * swiss-international-style Design Tokens
3
+ * Generated by @syncupsuite/transformers
4
+ *
5
+ * CONSUMER API — Use these semantic tokens in your styles:
6
+ *
7
+ * Backgrounds: var(--background-canvas | surface | muted)
8
+ * Text: var(--text-primary | secondary | muted | inverse)
9
+ * Interactive: var(--interactive-primary | primary-hover | primary-active)
10
+ * Borders: var(--border-default | strong)
11
+ * Status: var(--status-error | success | warning | info)
12
+ * Focus: var(--focus-ring)
13
+ *
14
+ * Dark mode: Add [data-theme="dark"] to a parent element.
15
+ * Primitives: --primitive-color-*, --primitive-spacing-*, etc.
16
+ * ═══════════════════════════════════════════════════════════════ */
3
17
 
4
18
  :root {
5
19
  /* --- Primitive Colors --- */
@@ -235,6 +235,28 @@
235
235
 
236
236
  }
237
237
 
238
+ /* === Semantic Color API — theme-aware Tailwind utilities === */
239
+ @theme {
240
+ --color-canvas: var(--background-canvas);
241
+ --color-surface: var(--background-surface);
242
+ --color-muted: var(--background-muted);
243
+ --color-foreground: var(--text-primary);
244
+ --color-foreground-secondary: var(--text-secondary);
245
+ --color-foreground-muted: var(--text-muted);
246
+ --color-foreground-inverse: var(--text-inverse);
247
+ --color-primary: var(--interactive-primary);
248
+ --color-primary-hover: var(--interactive-primary-hover);
249
+ --color-primary-active: var(--interactive-primary-active);
250
+ --color-border: var(--border-default);
251
+ --color-border-strong: var(--border-strong);
252
+ --color-error: var(--status-error);
253
+ --color-success: var(--status-success);
254
+ --color-warning: var(--status-warning);
255
+ --color-info: var(--status-info);
256
+ --color-ring: var(--focus-ring);
257
+ --color-focus-visible: var(--accessibility-focus-visible);
258
+ }
259
+
238
260
  /* Primitive aliases + light mode semantic tokens */
239
261
  :root {
240
262
  /* --primitive-color-* aliases → @theme --color-* (for semantic var() resolution) */
@@ -1,5 +1,19 @@
1
- /* tang-imperial — Design Tokens */
2
- /* Generated by @syncupsuite/transformers */
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ * tang-imperial Design Tokens
3
+ * Generated by @syncupsuite/transformers
4
+ *
5
+ * CONSUMER API — Use these semantic tokens in your styles:
6
+ *
7
+ * Backgrounds: var(--background-canvas | surface | muted)
8
+ * Text: var(--text-primary | secondary | muted | inverse)
9
+ * Interactive: var(--interactive-primary | primary-hover | primary-active)
10
+ * Borders: var(--border-default | strong)
11
+ * Status: var(--status-error | success | warning | info)
12
+ * Focus: var(--focus-ring)
13
+ *
14
+ * Dark mode: Add [data-theme="dark"] to a parent element.
15
+ * Primitives: --primitive-color-*, --primitive-spacing-*, etc.
16
+ * ═══════════════════════════════════════════════════════════════ */
3
17
 
4
18
  :root {
5
19
  /* --- Primitive Colors --- */