6.5 KiB
text — alcance de tema: análisis y propuesta
Generado por
node --import tsx/esm scripts/theming-census.ts --report. Lo medido y la propuesta se regeneran; el Veredicto (§5) se conserva. Vista de conjunto: README · método y protocolo:PLAN-theming.md§1, §2, §7.
- Medido: 2026-08-19 · Alcance: 0% — 0 de 24 knobs por token público
- Knobs de apariencia: 24 — público 0 · privado 24 · global 0 · literal 0 · sistema 0 (fuera del ratio)
- Contrato hoy (
lib/recipes/base.ts): 0 pública(s) · 1 privada(s) forward —_palette-text - Eje
size: no · ficheros:text.css
1. Knobs fuera de alcance
1.1 Directo a primitivo global (0)
Ninguno.
1.2 A través de un privado (24)
| # | fichero:línea | selector | propiedad | valor |
|---|---|---|---|---|
| 1 | text.css:17 |
[data-text] |
font-family |
var(--_text-font-family, var(--style-body-font-family)) |
| 2 | text.css:18 |
[data-text] |
font-size |
var(--_text-font-size, var(--style-body-font-size)) |
| 3 | text.css:19 |
[data-text] |
font-weight |
var(--_text-font-weight, var(--style-body-font-weight)) |
| 4 | text.css:20 |
[data-text] |
line-height |
var(--_text-line-height, var(--style-body-line-height)) |
| 5 | text.css:21 |
[data-text] |
letter-spacing |
var(--_text-letter-spacing, var(--style-body-letter-spacing)) |
| 6 | text.css:22 |
[data-text] |
color |
var(--_text-color, var(--style-body-color)) |
| 7 | text.css:49 |
[data-text][data-style='prose'] |
font-family |
var(--_text-font-family, var(--style-prose-font-family)) |
| 8 | text.css:50 |
[data-text][data-style='prose'] |
font-size |
var(--_text-font-size, var(--style-prose-font-size)) |
| 9 | text.css:51 |
[data-text][data-style='prose'] |
font-weight |
var(--_text-font-weight, var(--style-prose-font-weight)) |
| 10 | text.css:52 |
[data-text][data-style='prose'] |
line-height |
var(--_text-line-height, var(--style-prose-line-height)) |
| 11 | text.css:53 |
[data-text][data-style='prose'] |
letter-spacing |
var(--_text-letter-spacing, var(--style-prose-letter-spacing)) |
| 12 | text.css:54 |
[data-text][data-style='prose'] |
color |
var(--_text-color, var(--style-prose-color)) |
| 13 | text.css:59 |
[data-text][data-style='label'] |
font-family |
var(--_text-font-family, var(--style-label-font-family)) |
| 14 | text.css:60 |
[data-text][data-style='label'] |
font-size |
var(--_text-font-size, var(--style-label-font-size)) |
| 15 | text.css:61 |
[data-text][data-style='label'] |
font-weight |
var(--_text-font-weight, var(--style-label-font-weight)) |
| 16 | text.css:62 |
[data-text][data-style='label'] |
line-height |
var(--_text-line-height, var(--style-label-line-height)) |
| 17 | text.css:63 |
[data-text][data-style='label'] |
letter-spacing |
var(--_text-letter-spacing, var(--style-label-letter-spacing)) |
| 18 | text.css:64 |
[data-text][data-style='label'] |
color |
var(--_text-color, var(--style-label-color)) |
| 19 | text.css:69 |
[data-text][data-style='caption'] |
font-family |
var(--_text-font-family, var(--style-caption-font-family)) |
| 20 | text.css:70 |
[data-text][data-style='caption'] |
font-size |
var(--_text-font-size, var(--style-caption-font-size)) |
| 21 | text.css:71 |
[data-text][data-style='caption'] |
font-weight |
var(--_text-font-weight, var(--style-caption-font-weight)) |
| 22 | text.css:72 |
[data-text][data-style='caption'] |
line-height |
var(--_text-line-height, var(--style-caption-line-height)) |
| 23 | text.css:73 |
[data-text][data-style='caption'] |
letter-spacing |
var(--_text-letter-spacing, var(--style-caption-letter-spacing)) |
| 24 | text.css:74 |
[data-text][data-style='caption'] |
color |
var(--_text-color, var(--style-caption-color)) |
1.3 Literales (0)
Ninguno.
2. Sistema transversal (0) — informativo, fuera del ratio
Un tema los alcanza a nivel de sistema, por diseño (recipe-contract §2).
Ninguno.
3. Privados de la receta — ¿de dónde sale su valor?
| privado | declaraciones | valor(es) | origen | ¿deriva de un público? |
|---|---|---|---|---|
--_text-color |
1 | var(--_text-palette-text) |
private | no |
Consumidos y no declarados en el CSS (vienen de base.ts o de un estilo inline del wrapper): --_text-align, --_text-clamp, --_text-font-family, --_text-font-feature, --_text-font-size, --_text-font-weight, --_text-letter-spacing, --_text-line-height, --_text-measure, --_text-palette-text, --_text-variation, --_text-wrap.
4. Propuesta de corrección
4.1 Tokens a declarar en lib/recipes/base.ts (1)
Valor verbatim del CSS de hoy: el default no se mueve, sólo cambia quién
puede moverlo. Nombres derivados de recipe-contract §1 (ejes lógicos, talla
al final) y theming §6.7 (slots de color, modificador delante). Un token con
DOS valores distintos es una colisión de nombre: son dos knobs, o el nombre
no distingue lo que debería — se marca ⚠.
token (--text-…) |
scope TSC | valor propuesto | usos |
|---|---|---|---|
fg |
root |
var(--_text-palette-text) |
4 |
4.2 Sin nombre mecánico (20)
- ⚠ decisión: el privado que alimenta este knob no se declara en el CSS (viene de
base.tso de un estilo inline) — hay que resolverlo antes de nombrarlo — 20:font-family,font-size,font-weight,line-height,letter-spacing.
4.3 Avisos sobre los tokens propuestos (1)
- el privado
--_text-colordebe pasar a leer este público (o desaparecer) —--text-fg
4.4 Lo que hay que comprobar a mano (PLAN-theming §1.3 · §7.4)
- Privado que no deriva de un público — §3 lo marca; el privado debe leer el público o desaparecer.
- Velo o acento en el nodo equivocado (
archetype: 'item'en un envoltorio, unbackgrounden shorthand que mata la capa de estado) — se mide desde el píxel hacia arriba. - Doble animación al mover un sello a una superficie con animación propia — registro de
animationstart/animationend. - Diff de computed = 0 en reposo · hover · abierto · disabled · foco, por talla, antes y después.
- Centinela por token nuevo: valor imposible en el root → el nodo lo sigue. Si no, el token miente.
5. Veredicto
(pendiente — lo escribe el autor; se conserva al regenerar)