@taishods/core 0.0.0-stage → 0.15.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.
Files changed (263) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +8 -0
  3. package/README.en.md +69 -0
  4. package/README.md +69 -2
  5. package/TRADEMARK.md +57 -0
  6. package/bin/taisho +29 -0
  7. package/cli.js +3385 -0
  8. package/core-modules/accordion.js +74 -0
  9. package/core-modules/alert-dialog.js +49 -0
  10. package/core-modules/avatar.js +58 -0
  11. package/core-modules/aviso-llave.js +29 -0
  12. package/core-modules/button.js +54 -0
  13. package/core-modules/campo.js +15 -0
  14. package/core-modules/chunk-57BZH65E.js +26 -0
  15. package/core-modules/chunk-5WP4DFKB.js +37 -0
  16. package/core-modules/chunk-EMSUZQWV.js +28 -0
  17. package/core-modules/chunk-F7YTWTV2.js +10 -0
  18. package/core-modules/chunk-FUMIXOBG.js +49 -0
  19. package/core-modules/chunk-GART7NOC.js +366 -0
  20. package/core-modules/chunk-GTFXCTIL.js +22 -0
  21. package/core-modules/chunk-L6XUCPIH.js +41 -0
  22. package/core-modules/chunk-NHY2DP5Q.js +285 -0
  23. package/core-modules/chunk-O5LHICVX.js +55 -0
  24. package/core-modules/chunk-U6635TKF.js +15 -0
  25. package/core-modules/chunk-UD56PTD6.js +16 -0
  26. package/core-modules/clear.js +85 -0
  27. package/core-modules/clipboard.js +63 -0
  28. package/core-modules/command-palette.js +149 -0
  29. package/core-modules/date-picker.js +1039 -0
  30. package/core-modules/desarrollo-local.js +9 -0
  31. package/core-modules/dismiss.js +49 -0
  32. package/core-modules/file-upload.js +167 -0
  33. package/core-modules/invalid.js +106 -0
  34. package/core-modules/invokers.js +117 -0
  35. package/core-modules/listbox.js +46 -0
  36. package/core-modules/medidas.js +27 -0
  37. package/core-modules/menu.js +173 -0
  38. package/core-modules/nucleo.js +319 -0
  39. package/core-modules/number-input.js +29 -0
  40. package/core-modules/opcion.js +68 -0
  41. package/core-modules/overlays.js +220 -0
  42. package/core-modules/pagination.js +159 -0
  43. package/core-modules/progress.js +23 -0
  44. package/core-modules/registro.js +9 -0
  45. package/core-modules/roving.js +7 -0
  46. package/core-modules/scrollspy.js +50 -0
  47. package/core-modules/segmented.js +60 -0
  48. package/core-modules/select.js +560 -0
  49. package/core-modules/sidebar.js +135 -0
  50. package/core-modules/slider.js +293 -0
  51. package/core-modules/spotlight.js +31 -0
  52. package/core-modules/table.js +182 -0
  53. package/core-modules/tabs.js +155 -0
  54. package/core-modules/textos.js +13 -0
  55. package/core-modules/toast.js +272 -0
  56. package/core-modules/toggle.js +95 -0
  57. package/core-modules/version.js +13 -0
  58. package/core.chunk-NK6Y3TCX.js +2 -0
  59. package/core.chunk-QGF7VNQ7.js +2 -0
  60. package/core.chunk-TXBWLT75.js +2 -0
  61. package/core.chunk-VQFCKOFN.js +2 -0
  62. package/core.chunk-YW6X5LWN.js +2 -0
  63. package/core.chunk-ZWYGPTWA.js +2 -0
  64. package/core.command-palette.js +2 -0
  65. package/core.date-picker.js +2 -0
  66. package/core.file-upload.js +2 -0
  67. package/core.invalid.js +2 -0
  68. package/core.js +2 -0
  69. package/core.key-warning.js +2 -0
  70. package/core.number-input.js +2 -0
  71. package/core.pagination.js +2 -0
  72. package/core.select.js +2 -0
  73. package/core.slider.js +2 -0
  74. package/core.table.js +2 -0
  75. package/css/taisho.full.css +2 -0
  76. package/css/tokens/taisho.css +2 -0
  77. package/generate.js +3306 -0
  78. package/package.json +103 -4
  79. package/shared/density.js +2 -0
  80. package/shared/icon-utils.js +2 -0
  81. package/shared/lucide-aliases.js +2 -0
  82. package/shared/motion-scale.js +2 -0
  83. package/theme.js +13 -0
  84. package/types/bin/taisho.d.ts +2 -0
  85. package/types/classes.d.ts +3290 -0
  86. package/types/config/scales.d.ts +48 -0
  87. package/types/config/taisho.types.d.ts +35 -0
  88. package/types/config/taisho.user.d.ts +9 -0
  89. package/types/config/themes/taisho.d.ts +11 -0
  90. package/types/generate/avisos-check.d.ts +10 -0
  91. package/types/generate/avisos-clases.d.ts +41 -0
  92. package/types/generate/avisos-tipos.d.ts +278 -0
  93. package/types/generate/canales.d.ts +33 -0
  94. package/types/generate/capa-estados.d.ts +25 -0
  95. package/types/generate/compile.d.ts +71 -0
  96. package/types/generate/emit-atomic.d.ts +2 -0
  97. package/types/generate/emit-cdn.d.ts +10 -0
  98. package/types/generate/emit-classes.d.ts +4 -0
  99. package/types/generate/emit-components.d.ts +2 -0
  100. package/types/generate/emit-dtcg.d.ts +9 -0
  101. package/types/generate/emit-flat.d.ts +80 -0
  102. package/types/generate/emit-fonts.d.ts +21 -0
  103. package/types/generate/emit-icon-sprite.d.ts +2 -0
  104. package/types/generate/emit-icons-internal.d.ts +2 -0
  105. package/types/generate/emit-manifest.d.ts +21 -0
  106. package/types/generate/emit-reset.d.ts +4 -0
  107. package/types/generate/emit-tokens.d.ts +113 -0
  108. package/types/generate/emit-utilities.d.ts +2 -0
  109. package/types/generate/errores-config.d.ts +407 -0
  110. package/types/generate/estados.d.ts +6 -0
  111. package/types/generate/extension-css.d.ts +8 -0
  112. package/types/generate/extension-parser.d.ts +69 -0
  113. package/types/generate/extension.d.ts +41 -0
  114. package/types/generate/faltantes.d.ts +6 -0
  115. package/types/generate/foco.d.ts +8 -0
  116. package/types/generate/icon-utils.d.ts +47 -0
  117. package/types/generate/index.d.ts +22 -0
  118. package/types/generate/leer-dir.d.ts +2 -0
  119. package/types/generate/llave-scope.d.ts +15 -0
  120. package/types/generate/lucide-aliases.d.ts +14 -0
  121. package/types/generate/manifest-fuentes.d.ts +4 -0
  122. package/types/generate/mensajes-errores.d.ts +4 -0
  123. package/types/generate/metricas-fuente.d.ts +8 -0
  124. package/types/generate/migrar-clasico.d.ts +26 -0
  125. package/types/generate/migrar-tailwind-texto.d.ts +66 -0
  126. package/types/generate/migrar-tailwind.d.ts +27 -0
  127. package/types/generate/naming-doc.d.ts +6 -0
  128. package/types/generate/naming-emitidos.d.ts +12 -0
  129. package/types/generate/naming-pagina.d.ts +14 -0
  130. package/types/generate/naming-renames.d.ts +45 -0
  131. package/types/generate/naming-table.d.ts +88 -0
  132. package/types/generate/orchestrate.d.ts +30 -0
  133. package/types/generate/podar-tema.d.ts +19 -0
  134. package/types/generate/propias.d.ts +43 -0
  135. package/types/generate/recorrer-literales.d.ts +47 -0
  136. package/types/generate/registro.d.ts +16 -0
  137. package/types/generate/resolve-extend.d.ts +21 -0
  138. package/types/generate/resolve-safelist.d.ts +14 -0
  139. package/types/generate/respaldo-fuentes.d.ts +6 -0
  140. package/types/generate/slugs-core.d.ts +1 -0
  141. package/types/generate/tailwind-map-en.d.ts +21 -0
  142. package/types/generate/tailwind-map.d.ts +55 -0
  143. package/types/generate/variantes.d.ts +32 -0
  144. package/types/generate/version.d.ts +1 -0
  145. package/types/generate/vite-plugin.d.ts +2 -0
  146. package/types/generate/vocabulary.d.ts +146 -0
  147. package/types/generate-cli/check.d.ts +20 -0
  148. package/types/generate-cli/cli.d.ts +2 -0
  149. package/types/generate-cli/core-js.d.ts +6 -0
  150. package/types/generate-cli/descubrir-paquetes.d.ts +27 -0
  151. package/types/generate-cli/errores.d.ts +1 -0
  152. package/types/generate-cli/generate.d.ts +13 -0
  153. package/types/generate-cli/idioma.d.ts +127 -0
  154. package/types/generate-cli/init.d.ts +6 -0
  155. package/types/generate-cli/mensajes-avisos.d.ts +8 -0
  156. package/types/generate-cli/mensajes.d.ts +133 -0
  157. package/types/generate-cli/migrate-tailwind.d.ts +31 -0
  158. package/types/generate-cli/migrate.d.ts +11 -0
  159. package/types/generate-cli/motor.d.ts +43 -0
  160. package/types/generate-cli/node-minimo.d.ts +3 -0
  161. package/types/generate-cli/piso.d.ts +1 -0
  162. package/types/generate-cli/read-content.d.ts +9 -0
  163. package/types/generate-cli/scan-html-icons.d.ts +29 -0
  164. package/types/generate-cli/solo-clases.d.ts +2 -0
  165. package/types/generate-cli/vite.d.ts +8 -0
  166. package/types/generate-cli/watch.d.ts +12 -0
  167. package/types/generate-cli/write-consumer-output.d.ts +4 -0
  168. package/types/lib/core/accordion.d.ts +8 -0
  169. package/types/lib/core/alert-dialog.d.ts +9 -0
  170. package/types/lib/core/auto.d.ts +1 -0
  171. package/types/lib/core/avatar.d.ts +6 -0
  172. package/types/lib/core/aviso-llave.d.ts +10 -0
  173. package/types/lib/core/base.d.ts +38 -0
  174. package/types/lib/core/button.d.ts +13 -0
  175. package/types/lib/core/campo.d.ts +7 -0
  176. package/types/lib/core/clear.d.ts +8 -0
  177. package/types/lib/core/clipboard.d.ts +4 -0
  178. package/types/lib/core/command-palette.d.ts +11 -0
  179. package/types/lib/core/date-picker.d.ts +42 -0
  180. package/types/lib/core/desarrollo-local.d.ts +9 -0
  181. package/types/lib/core/dismiss.d.ts +6 -0
  182. package/types/lib/core/dom.d.ts +9 -0
  183. package/types/lib/core/eventos.d.ts +50 -0
  184. package/types/lib/core/file-upload.d.ts +8 -0
  185. package/types/lib/core/floating.d.ts +35 -0
  186. package/types/lib/core/grid-logic.d.ts +13 -0
  187. package/types/lib/core/invalid.d.ts +12 -0
  188. package/types/lib/core/invokers.d.ts +16 -0
  189. package/types/lib/core/listbox.d.ts +24 -0
  190. package/types/lib/core/logica/accordion.d.ts +1 -0
  191. package/types/lib/core/logica/alert-dialog.d.ts +1 -0
  192. package/types/lib/core/logica/avatar.d.ts +2 -0
  193. package/types/lib/core/logica/breadcrumbs.d.ts +1 -0
  194. package/types/lib/core/logica/code.d.ts +1 -0
  195. package/types/lib/core/logica/combobox.d.ts +16 -0
  196. package/types/lib/core/logica/command-palette.d.ts +14 -0
  197. package/types/lib/core/logica/context-menu.d.ts +10 -0
  198. package/types/lib/core/logica/date-picker.d.ts +101 -0
  199. package/types/lib/core/logica/file-upload.d.ts +14 -0
  200. package/types/lib/core/logica/input.d.ts +7 -0
  201. package/types/lib/core/logica/menu.d.ts +8 -0
  202. package/types/lib/core/logica/nav-bar.d.ts +2 -0
  203. package/types/lib/core/logica/number-input-wheel.d.ts +3 -0
  204. package/types/lib/core/logica/number-input.d.ts +30 -0
  205. package/types/lib/core/logica/pagination.d.ts +4 -0
  206. package/types/lib/core/logica/select.d.ts +20 -0
  207. package/types/lib/core/logica/sidebar.d.ts +7 -0
  208. package/types/lib/core/logica/slider.d.ts +20 -0
  209. package/types/lib/core/logica/table.d.ts +4 -0
  210. package/types/lib/core/logica/tag.d.ts +1 -0
  211. package/types/lib/core/logica/toast.d.ts +9 -0
  212. package/types/lib/core/logica/toc.d.ts +5 -0
  213. package/types/lib/core/medidas.d.ts +6 -0
  214. package/types/lib/core/menu.d.ts +18 -0
  215. package/types/lib/core/modulos.d.ts +208 -0
  216. package/types/lib/core/nucleo.d.ts +2 -0
  217. package/types/lib/core/number-input.d.ts +21 -0
  218. package/types/lib/core/opcion.d.ts +9 -0
  219. package/types/lib/core/overlays.d.ts +14 -0
  220. package/types/lib/core/pagination.d.ts +8 -0
  221. package/types/lib/core/pesados/command-palette.d.ts +13 -0
  222. package/types/lib/core/pesados/date-picker.d.ts +24 -0
  223. package/types/lib/core/pesados/file-upload.d.ts +8 -0
  224. package/types/lib/core/pesados/invalid.d.ts +6 -0
  225. package/types/lib/core/pesados/key-warning.d.ts +1 -0
  226. package/types/lib/core/pesados/number-input.d.ts +16 -0
  227. package/types/lib/core/pesados/pagination.d.ts +8 -0
  228. package/types/lib/core/pesados/select.d.ts +25 -0
  229. package/types/lib/core/pesados/slider.d.ts +14 -0
  230. package/types/lib/core/pesados/table.d.ts +9 -0
  231. package/types/lib/core/popover-campos.d.ts +4 -0
  232. package/types/lib/core/progress.d.ts +6 -0
  233. package/types/lib/core/registro.d.ts +66 -0
  234. package/types/lib/core/roving.d.ts +26 -0
  235. package/types/lib/core/scrollspy.d.ts +4 -0
  236. package/types/lib/core/segmented.d.ts +6 -0
  237. package/types/lib/core/select.d.ts +32 -0
  238. package/types/lib/core/sidebar.d.ts +8 -0
  239. package/types/lib/core/slider.d.ts +20 -0
  240. package/types/lib/core/spotlight.d.ts +6 -0
  241. package/types/lib/core/table.d.ts +11 -0
  242. package/types/lib/core/tabs.d.ts +8 -0
  243. package/types/lib/core/textos.d.ts +34 -0
  244. package/types/lib/core/toast.d.ts +63 -0
  245. package/types/lib/core/toggle.d.ts +8 -0
  246. package/types/lib/core/vars.d.ts +2 -0
  247. package/types/lib/core/version.d.ts +4 -0
  248. package/types/lib/theme/aviso-blanca.d.ts +3 -0
  249. package/types/lib/theme/aviso-borde.d.ts +2 -0
  250. package/types/lib/theme/color-math.d.ts +8 -0
  251. package/types/lib/theme/createTheme.d.ts +19 -0
  252. package/types/lib/theme/density-scale.d.ts +1 -0
  253. package/types/lib/theme/density.d.ts +8 -0
  254. package/types/lib/theme/modo-oscuro.d.ts +8 -0
  255. package/types/lib/theme/motion-scale.d.ts +12 -0
  256. package/types/lib/theme/neutrals.d.ts +13 -0
  257. package/types/lib/theme/opciones.d.ts +11 -0
  258. package/types/lib/theme/palette.d.ts +117 -0
  259. package/types/lib/theme/radius-scale.d.ts +5 -0
  260. package/types/lib/theme/sin-light-dark.d.ts +4 -0
  261. package/types/lib/theme/theme-def.d.ts +160 -0
  262. package/types/lib/theme/typography-scale.d.ts +5 -0
  263. package/vite.js +3336 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pablo Di Filippo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ TaishoDS Core
2
+ Copyright (c) 2026 Pablo Di Filippo
3
+
4
+ Este producto se distribuye bajo la licencia MIT (ver LICENSE).
5
+
6
+ El nombre "Taisho", el logo y la identidad visual NO están cubiertos por esa
7
+ licencia. El código se puede usar, modificar y redistribuir; no se puede presentar una
8
+ versión propia como si fuera Taisho ni usar el nombre para identificarla.
package/README.en.md ADDED
@@ -0,0 +1,69 @@
1
+ [Español](README.md) · **English**
2
+
3
+ # @taishods/core
4
+
5
+ *Consistency that scales.*
6
+
7
+ TaishoDS Core: the system CSS, the tokens, and the behavior JavaScript, for any HTML page. Free, MIT license. No
8
+ Svelte, no React.
9
+
10
+ There are two ways to add it to your project. It's the same Core either way, and you can switch whenever you want.
11
+
12
+ ## 1. Via CDN: paste three lines
13
+
14
+ It's the shortest path, with nothing to install. The version is pinned in the URL:
15
+
16
+ ```html
17
+ <link rel="stylesheet" href="https://taisho.design/core/0.15.0/taisho.tokens.css" integrity="sha384-+2WHAtu42BCWEq7KajKLeexi0n+E4UXhDgH4f5iQLZWhC0WJf3DNRH2uBr4FrdIV" crossorigin="anonymous">
18
+ <link rel="stylesheet" href="https://taisho.design/core/0.15.0/taisho.full.css" integrity="sha384-Q4p8fayuCmybnPl6l9HXyJZz4RweEW3ls0TT6mYaODd89tmBm/RhF5aMRrFXMJSb" crossorigin="anonymous">
19
+ <script type="module" src="https://taisho.design/core/0.15.0/taisho.core.js" integrity="sha384-aDnCXLrAb0LOoe1+BB7FZmWSc9VilhinDNU4cu4E4m+NaiWTM539k3rhWDg23Ib5" crossorigin="anonymous"></script>
20
+ ```
21
+
22
+ Order matters. The theme goes first, because it defines the variables; then the system CSS, which reads them; and
23
+ the JS last, which initializes itself. Classes go on the same element as the `ts` scope class:
24
+ `class="ts button size-md variant-primary"`.
25
+
26
+ ## 2. With the package and CLI: your brand in the CSS
27
+
28
+ To get your colors and fonts into the CSS, and only the classes you use, install the package and run the `taisho`
29
+ command from your project root (Node 22.18 or later):
30
+
31
+ ```bash
32
+ npm i -D @taishods/core
33
+ npx taisho init # asks for the language, brand, theme name, fonts, and your own icons, and writes taisho.config.ts
34
+ npx taisho generate # compiles your CSS to ./taisho/
35
+ ```
36
+
37
+ When it's done, `generate` prints the exact `<link>` tags to paste into your HTML. The behavior JS lives in
38
+ `node_modules/@taishods/core/core.js` and loads with `<script type="module">`.
39
+
40
+ If you'd rather not generate anything, you can also link the system theme and the full CSS straight from
41
+ `node_modules`, in this order:
42
+
43
+ ```html
44
+ <link rel="stylesheet" href="node_modules/@taishods/core/css/tokens/taisho.css">
45
+ <link rel="stylesheet" href="node_modules/@taishods/core/css/taisho.full.css">
46
+ <script type="module" src="node_modules/@taishods/core/core.js"></script>
47
+ ```
48
+
49
+ ## What's included
50
+
51
+ - **Full CSS** — `css/taisho.full.css`, with every component and utility.
52
+ - **System theme** — `css/tokens/taisho.css`.
53
+ - **Behavior** — `core.js`: accordions, tabs, select, combobox, calendar, sortable table, and command palette,
54
+ wired up through `data-ts-*` attributes.
55
+ - **Theming in the browser** — `createTheme()`: pass it a hex color and everything repaints, with dark mode and
56
+ accessible contrast derived for you.
57
+ - **The `taisho` command** — `init`, `generate`, `watch`, `check`, and `migrate`: they compile the CSS with your brand, rebuild it on save, check your classes, and migrate from other systems.
58
+
59
+ ## What's not included
60
+
61
+ Components for any particular framework: Core is HTML, CSS, and JavaScript, and works the same on any page. With a framework in the middle, it was tested in Astro, Next (App Router), and SvelteKit: the versions, the steps, and what wasn't tested are at https://taisho.design/docs/compatibility#frameworks.
62
+
63
+ ## Documentation
64
+
65
+ Installation, every component, the tokens, and the utilities: https://taisho.design/en/docs/installation
66
+
67
+ ## License
68
+
69
+ MIT. The “Taisho” trademark isn't included—see TRADEMARK.md.
package/README.md CHANGED
@@ -1,3 +1,70 @@
1
- # Temporary Holding Version
1
+ **Español** · [English](README.en.md)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # @taishods/core
4
+
5
+ *Coherencia que escala.*
6
+
7
+ El Core de TaishoDS: el CSS del sistema, los tokens y el JavaScript de comportamiento, para
8
+ usar en cualquier página HTML. Gratis, licencia MIT. Sin Svelte, sin React.
9
+
10
+ Hay dos formas de tenerlo en tu proyecto. Son el mismo Core y se puede pasar de una a otra en cualquier momento.
11
+
12
+ ## 1. Por CDN: tres líneas
13
+
14
+ Es la más corta, no instala nada. La versión va fija en la URL:
15
+
16
+ ```html
17
+ <link rel="stylesheet" href="https://taisho.design/core/0.15.0/taisho.tokens.css" integrity="sha384-+2WHAtu42BCWEq7KajKLeexi0n+E4UXhDgH4f5iQLZWhC0WJf3DNRH2uBr4FrdIV" crossorigin="anonymous">
18
+ <link rel="stylesheet" href="https://taisho.design/core/0.15.0/taisho.full.css" integrity="sha384-Q4p8fayuCmybnPl6l9HXyJZz4RweEW3ls0TT6mYaODd89tmBm/RhF5aMRrFXMJSb" crossorigin="anonymous">
19
+ <script type="module" src="https://taisho.design/core/0.15.0/taisho.core.js" integrity="sha384-aDnCXLrAb0LOoe1+BB7FZmWSc9VilhinDNU4cu4E4m+NaiWTM539k3rhWDg23Ib5" crossorigin="anonymous"></script>
20
+ ```
21
+
22
+ El orden importa: primero el tema, que define las variables; después el CSS del sistema, que las
23
+ consulta; al final el JS, que se inicializa solo. Las clases se escriben con la llave `ts` en el
24
+ mismo elemento: `class="ts button size-md variant-primary"`.
25
+
26
+ ## 2. Con este paquete: tu marca en el CSS
27
+
28
+ Para que el CSS lleve tus colores y fuentes, y sólo las clases que se usan, se instala el paquete y
29
+ se corre el comando `taisho` desde la raíz de tu proyecto (Node 22.18 o más nuevo):
30
+
31
+ ```bash
32
+ npm i -D @taishods/core
33
+ npx taisho init # pregunta idioma, marca, nombre del tema, fuentes e íconos propios, y escribe taisho.config.ts
34
+ npx taisho generate # compila tu CSS a ./taisho/
35
+ ```
36
+
37
+ Al terminar, `generate` imprime los `<link>` exactos para pegar en tu HTML. El JS de
38
+ comportamiento queda en `node_modules/@taishods/core/core.js` y se carga con
39
+ `<script type="module">`.
40
+
41
+ Para no generar nada, el tema del sistema y el CSS completo también se pueden enlazar directo
42
+ desde `node_modules`, en este orden:
43
+
44
+ ```html
45
+ <link rel="stylesheet" href="node_modules/@taishods/core/css/tokens/taisho.css">
46
+ <link rel="stylesheet" href="node_modules/@taishods/core/css/taisho.full.css">
47
+ <script type="module" src="node_modules/@taishods/core/core.js"></script>
48
+ ```
49
+
50
+ ## Qué trae
51
+
52
+ - **CSS completo** — `css/taisho.full.css`, con todos los componentes y utilidades.
53
+ - **Tema del sistema** — `css/tokens/taisho.css`.
54
+ - **Comportamiento** — `core.js`: acordeones, pestañas, select, combobox, calendario, tabla
55
+ ordenable y paleta de comandos, que se enganchan por atributos `data-ts-*`.
56
+ - **Theming en el navegador** — `createTheme()`: se le pasa un color en hexadecimal y se repinta
57
+ todo, con modo oscuro y contrastes accesibles derivados solos.
58
+ - **El comando `taisho`** — `init`, `generate`, `watch`, `check` y `migrate`: compilan el CSS con tu marca, lo recompilan al guardar, revisan las clases y migran desde otros sistemas.
59
+
60
+ ## Qué no trae
61
+
62
+ Componentes de ningún framework: el Core es HTML, CSS y JavaScript, y se usa igual en cualquier página. Con un framework de por medio, se probó en Astro, Next (App Router) y SvelteKit: las versiones, los pasos y lo que no se probó están en https://taisho.design/docs/compatibility#frameworks.
63
+
64
+ ## Documentación
65
+
66
+ Instalación, cada componente, los tokens y las utilidades: https://taisho.design/docs/installation
67
+
68
+ ## Licencia
69
+
70
+ MIT. La marca "Taisho" no está incluida: ver TRADEMARK.md.
package/TRADEMARK.md ADDED
@@ -0,0 +1,57 @@
1
+ # Política de marca — Taisho
2
+
3
+ **El código es MIT. El nombre no.**
4
+
5
+ `@taishods/core` se distribuye bajo licencia MIT: se puede usar, modificar, redistribuir y
6
+ vender, sin pedir permiso ni pagar nada. Esta página trata de otra cosa: **la marca**.
7
+
8
+ ## Por qué hace falta este archivo
9
+
10
+ Una licencia de copyright —MIT, Apache, la que sea— regula el **código**. No regula el
11
+ **nombre**, el logo ni la identidad visual: eso es derecho de marcas, que es un régimen
12
+ distinto y no se transmite con la licencia del software.
13
+
14
+ Así que sin este documento la situación queda ambigua: alguien podría creer que MIT lo
15
+ autoriza a publicar su fork como "Taisho", y no es así. Escribirlo no agrega una restricción
16
+ al código — aclara un límite que ya existía.
17
+
18
+ ## Lo que se puede hacer, siempre
19
+
20
+ - Usar Taisho en proyectos personales, comerciales o de clientes.
21
+ - Forkearlo, modificarlo y publicar tu versión.
22
+ - Decir con qué está construido tu producto: *"hecho con Taisho"*, *"basado en Taisho"*,
23
+ *"compatible con Taisho"*.
24
+ - Escribir tutoriales, cursos, artículos y charlas que usen el nombre para referirse a esto.
25
+ - Usar el nombre en comparaciones honestas con otros sistemas de diseño.
26
+
27
+ No hace falta pedir permiso para nada de lo anterior.
28
+
29
+ ## Lo que no se puede hacer
30
+
31
+ - **Llamar "Taisho" a tu fork o derivado**, ni ponerle un nombre que se confunda con él
32
+ (`Taisho UI`, `TaishoDS Pro`).
33
+ - Usar el nombre o el logo de manera que sugiera que tu producto es **oficial**, que está
34
+ respaldado por Taisho o que salió de aquí.
35
+ - Usar el logo como logo de tu propio producto o servicio.
36
+ - Registrar "Taisho" —o algo suficientemente parecido— como marca, nombre de dominio, cuenta
37
+ de red social o paquete, en cualquier jurisdicción.
38
+
39
+ La regla, en una línea: **se puede decir que un producto usa Taisho; no se puede decir que es Taisho.**
40
+
41
+ ## Alcance
42
+
43
+ Cubre el nombre "Taisho", "TaishoDS", el logo, la marca gráfica y la identidad visual del
44
+ sistema y de su documentación.
45
+
46
+ **No** cubre el código, que es MIT y se rige por `LICENSE`.
47
+
48
+ ## Dudas y permisos
49
+
50
+ Ante cualquier uso que no encaje claramente arriba, conviene preguntar antes: **pablo.difilippo@gmail.com**.
51
+ La respuesta por defecto a un uso de buena fe es que sí.
52
+
53
+ ---
54
+
55
+ *Esta política puede cambiar. Los cambios no son retroactivos sobre usos ya autorizados por
56
+ escrito, y nunca afectan la licencia MIT del código, que es irrevocable para las versiones ya
57
+ publicadas.*
package/bin/taisho ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/generate-cli/node-minimo.ts
4
+ var NODE_MINIMO = "22.18";
5
+ function nodeSirve(version) {
6
+ const [mayor, menor] = version.split(".").map(Number);
7
+ return mayor > 22 || mayor === 22 && menor >= 18;
8
+ }
9
+ function idiomaDelArranque(argv, env) {
10
+ const i = argv.indexOf("--lang");
11
+ const pedido = i !== -1 ? argv[i + 1] : argv.find((a) => a.startsWith("--lang="))?.slice("--lang=".length);
12
+ if (pedido === "es" || pedido === "en") return pedido;
13
+ return /^es/i.test(env.LC_ALL || env.LC_MESSAGES || env.LANG || "") ? "es" : "en";
14
+ }
15
+ function mensajeNodeMinimo(version, argv, env) {
16
+ return idiomaDelArranque(argv, env) === "es" ? `taisho: hace falta Node ${NODE_MINIMO} o superior (esta es la ${version}). Actualiza Node y vuelve a correr el comando.` : `taisho: Node ${NODE_MINIMO} or newer is required (this is ${version}). Update Node and run the command again.`;
17
+ }
18
+
19
+ // src/bin/taisho.ts
20
+ if (!nodeSirve(process.versions.node)) {
21
+ console.error(mensajeNodeMinimo(process.versions.node, process.argv.slice(2), process.env));
22
+ process.exitCode = 1;
23
+ } else {
24
+ const { main } = await import("../cli.js");
25
+ await main().catch((err) => {
26
+ console.error("Error:", err instanceof Error ? err.message : err);
27
+ process.exitCode = 1;
28
+ });
29
+ }