@eduardoalvarez/arrecife 0.11.0 → 0.12.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 (42) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +34 -14
  3. package/dist/brand/index.cjs +2 -2
  4. package/dist/brand/index.d.cts +1 -1
  5. package/dist/brand/index.d.ts +1 -1
  6. package/dist/brand/index.js +3 -3
  7. package/dist/chart/index.cjs +2 -2
  8. package/dist/chart/index.d.cts +3 -3
  9. package/dist/chart/index.d.ts +3 -3
  10. package/dist/chart/index.js +3 -3
  11. package/dist/{chunk-FGFNK72B.js → chunk-5YWGOFDX.js} +17 -4
  12. package/dist/{chunk-5A5GH2PF.js → chunk-6QJQ6K7J.js} +1 -1
  13. package/dist/{chunk-TRPBID2W.js → chunk-BFYNBIVJ.js} +1 -1
  14. package/dist/{chunk-RKGKO2TW.js → chunk-BRDTB44R.js} +2 -2
  15. package/dist/{chunk-XXDATT3A.js → chunk-FF33ARRA.js} +1 -1
  16. package/dist/{chunk-FAAGZG7A.js → chunk-TMUGT3Y3.js} +1 -1
  17. package/dist/{chunk-6IGD5REB.js → chunk-W75O3Z77.js} +1 -1
  18. package/dist/{chunk-ZSCSKCTY.js → chunk-WU66TPJT.js} +1 -1
  19. package/dist/form/index.cjs +2 -2
  20. package/dist/form/index.js +4 -4
  21. package/dist/icons/index.cjs +2 -2
  22. package/dist/icons/index.d.cts +2 -2
  23. package/dist/icons/index.d.ts +2 -2
  24. package/dist/icons/index.js +3 -3
  25. package/dist/index.cjs +81 -11
  26. package/dist/index.d.cts +31 -16
  27. package/dist/index.d.ts +31 -16
  28. package/dist/index.js +78 -21
  29. package/dist/og/index.cjs +1 -2
  30. package/dist/og/index.js +1 -1
  31. package/dist/shiki/index.js +1 -1
  32. package/dist/tokens/index.cjs +17 -4
  33. package/dist/tokens/index.d.cts +20 -5
  34. package/dist/tokens/index.d.ts +20 -5
  35. package/dist/tokens/index.js +2 -2
  36. package/dist/tokens/theme.css +20 -3
  37. package/dist/variants/index.cjs +1 -1
  38. package/dist/variants/index.d.cts +2 -2
  39. package/dist/variants/index.d.ts +2 -2
  40. package/dist/variants/index.js +1 -1
  41. package/llms.txt +39 -13
  42. package/package.json +1 -1
package/dist/og/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ASSETS_PATH, faces, poses, fins } from '../chunk-CKRSQPTX.js';
2
- import { fonts, dark, light, naming, gradient, tagline, typeScale } from '../chunk-FGFNK72B.js';
2
+ import { fonts, dark, light, naming, gradient, tagline, typeScale } from '../chunk-5YWGOFDX.js';
3
3
 
4
4
  // src/og/templates.ts
5
5
  var OG = {
@@ -1,4 +1,4 @@
1
- import { syntax } from '../chunk-FGFNK72B.js';
1
+ import { syntax } from '../chunk-5YWGOFDX.js';
2
2
 
3
3
  // src/shiki/theme.ts
4
4
  var arrecife = {
@@ -146,7 +146,7 @@ var typeScale = {
146
146
  * (plankton 5.57:1 over abyss), which is the part that is not negotiable.
147
147
  *
148
148
  * At 13 the three badge families grew past the size of a small button and
149
- * outweighed the title they accompany. See `docs/decisions/`.
149
+ * outweighed the title they accompany. See `docs/decisions/` § 10.
150
150
  */
151
151
  chip: { family: "mono", size: 11.5, lineHeight: 1.4, weight: 400 },
152
152
  /**
@@ -200,7 +200,7 @@ var control = {
200
200
  * baseline; 28 would have been a fifth height that matches nothing.
201
201
  *
202
202
  * It does not replace `icon`. A page's primary action stays at 42; this is for
203
- * a row of a table. See `docs/decisions/0.6.md` § 22.
203
+ * a row of a table. See `docs/decisions/` § 22.
204
204
  */
205
205
  iconSm: 32
206
206
  };
@@ -223,7 +223,7 @@ var size = {
223
223
  * together eat the top of the content area. 56 is what `cursos` had arrived at
224
224
  * on its own, and it is the same reasoning as `control.iconSm`: the one admin
225
225
  * app of the five is denser than the four reading sites. See
226
- * `docs/decisions/0.7.md` § 30.
226
+ * `docs/decisions/` § 30.
227
227
  */
228
228
  navCompact: 56,
229
229
  /**
@@ -296,7 +296,20 @@ var naming = {
296
296
  wordmark: "Eduardo \xC1lvarez",
297
297
  mascot: "Tiburonc\xEDn",
298
298
  /** The domain, for the footer CLI signature: `$ cd ~/eduardoalvarez.dev/2026`. */
299
- domain: "eduardoalvarez.dev"
299
+ domain: "eduardoalvarez.dev",
300
+ /** The library's own name, for a footer that credits it. */
301
+ library: "Arrecife",
302
+ /**
303
+ * Where the library is published, for `Footer builtWith`.
304
+ *
305
+ * It is here and not written into the component for the reason the domain is:
306
+ * one string, five projects. It is the same URL as `homepage` in
307
+ * `package.json` and it cannot be derived from it — this file imports nothing
308
+ * — so `check:exports` compares the two on every build. Without that, moving
309
+ * the Storybook would update what npm prints and leave five production
310
+ * footers linking at the old address.
311
+ */
312
+ libraryUrl: "https://arrecife.eduardoalvarez.dev"
300
313
  };
301
314
 
302
315
  // src/tokens/index.ts
@@ -280,7 +280,7 @@ declare const typeScale: {
280
280
  * (plankton 5.57:1 over abyss), which is the part that is not negotiable.
281
281
  *
282
282
  * At 13 the three badge families grew past the size of a small button and
283
- * outweighed the title they accompany. See `docs/decisions/`.
283
+ * outweighed the title they accompany. See `docs/decisions/` § 10.
284
284
  */
285
285
  readonly chip: {
286
286
  readonly family: "mono";
@@ -336,7 +336,7 @@ declare const radius: {
336
336
  *
337
337
  * Only the horizontal padding and the icon button's square. Height comes from
338
338
  * the type scale, and there is a single radius for all three sizes: see
339
- * `docs/decisions/`.
339
+ * `docs/decisions/` § 1.
340
340
  *
341
341
  * They are not in `spacing` because they are not page rhythm: 14, 22 and 30 do
342
342
  * not compose with 8/12/16/26/40 and must not be offered as margins.
@@ -360,7 +360,7 @@ declare const control: {
360
360
  * baseline; 28 would have been a fifth height that matches nothing.
361
361
  *
362
362
  * It does not replace `icon`. A page's primary action stays at 42; this is for
363
- * a row of a table. See `docs/decisions/0.6.md` § 22.
363
+ * a row of a table. See `docs/decisions/` § 22.
364
364
  */
365
365
  readonly iconSm: 32;
366
366
  };
@@ -405,7 +405,7 @@ declare const size: {
405
405
  * together eat the top of the content area. 56 is what `cursos` had arrived at
406
406
  * on its own, and it is the same reasoning as `control.iconSm`: the one admin
407
407
  * app of the five is denser than the four reading sites. See
408
- * `docs/decisions/0.7.md` § 30.
408
+ * `docs/decisions/` § 30.
409
409
  */
410
410
  readonly navCompact: 56;
411
411
  /**
@@ -488,7 +488,7 @@ declare const syntax: {
488
488
  *
489
489
  * A fifth series is not added by inventing a hue. If a chart needs five
490
490
  * categories, either there are too many categories or they need an «other»
491
- * bucket: see `docs/decisions/`.
491
+ * bucket: see `docs/decisions/` § 18.
492
492
  */
493
493
  declare const series: {
494
494
  readonly dark: readonly ["#35D6C0", "#F2A65A", "#3E7CB1", "#71919C"];
@@ -538,6 +538,19 @@ declare const naming: {
538
538
  readonly mascot: "Tiburoncín";
539
539
  /** The domain, for the footer CLI signature: `$ cd ~/eduardoalvarez.dev/2026`. */
540
540
  readonly domain: "eduardoalvarez.dev";
541
+ /** The library's own name, for a footer that credits it. */
542
+ readonly library: "Arrecife";
543
+ /**
544
+ * Where the library is published, for `Footer builtWith`.
545
+ *
546
+ * It is here and not written into the component for the reason the domain is:
547
+ * one string, five projects. It is the same URL as `homepage` in
548
+ * `package.json` and it cannot be derived from it — this file imports nothing
549
+ * — so `check:exports` compares the two on every build. Without that, moving
550
+ * the Storybook would update what npm prints and leave five production
551
+ * footers linking at the old address.
552
+ */
553
+ readonly libraryUrl: "https://arrecife.eduardoalvarez.dev";
541
554
  };
542
555
  type ColorMode = keyof typeof colors;
543
556
  type ColorToken = keyof typeof dark;
@@ -782,6 +795,8 @@ declare const tokens: {
782
795
  readonly wordmark: "Eduardo Álvarez";
783
796
  readonly mascot: "Tiburoncín";
784
797
  readonly domain: "eduardoalvarez.dev";
798
+ readonly library: "Arrecife";
799
+ readonly libraryUrl: "https://arrecife.eduardoalvarez.dev";
785
800
  };
786
801
  };
787
802
  type Tokens = typeof tokens;
@@ -280,7 +280,7 @@ declare const typeScale: {
280
280
  * (plankton 5.57:1 over abyss), which is the part that is not negotiable.
281
281
  *
282
282
  * At 13 the three badge families grew past the size of a small button and
283
- * outweighed the title they accompany. See `docs/decisions/`.
283
+ * outweighed the title they accompany. See `docs/decisions/` § 10.
284
284
  */
285
285
  readonly chip: {
286
286
  readonly family: "mono";
@@ -336,7 +336,7 @@ declare const radius: {
336
336
  *
337
337
  * Only the horizontal padding and the icon button's square. Height comes from
338
338
  * the type scale, and there is a single radius for all three sizes: see
339
- * `docs/decisions/`.
339
+ * `docs/decisions/` § 1.
340
340
  *
341
341
  * They are not in `spacing` because they are not page rhythm: 14, 22 and 30 do
342
342
  * not compose with 8/12/16/26/40 and must not be offered as margins.
@@ -360,7 +360,7 @@ declare const control: {
360
360
  * baseline; 28 would have been a fifth height that matches nothing.
361
361
  *
362
362
  * It does not replace `icon`. A page's primary action stays at 42; this is for
363
- * a row of a table. See `docs/decisions/0.6.md` § 22.
363
+ * a row of a table. See `docs/decisions/` § 22.
364
364
  */
365
365
  readonly iconSm: 32;
366
366
  };
@@ -405,7 +405,7 @@ declare const size: {
405
405
  * together eat the top of the content area. 56 is what `cursos` had arrived at
406
406
  * on its own, and it is the same reasoning as `control.iconSm`: the one admin
407
407
  * app of the five is denser than the four reading sites. See
408
- * `docs/decisions/0.7.md` § 30.
408
+ * `docs/decisions/` § 30.
409
409
  */
410
410
  readonly navCompact: 56;
411
411
  /**
@@ -488,7 +488,7 @@ declare const syntax: {
488
488
  *
489
489
  * A fifth series is not added by inventing a hue. If a chart needs five
490
490
  * categories, either there are too many categories or they need an «other»
491
- * bucket: see `docs/decisions/`.
491
+ * bucket: see `docs/decisions/` § 18.
492
492
  */
493
493
  declare const series: {
494
494
  readonly dark: readonly ["#35D6C0", "#F2A65A", "#3E7CB1", "#71919C"];
@@ -538,6 +538,19 @@ declare const naming: {
538
538
  readonly mascot: "Tiburoncín";
539
539
  /** The domain, for the footer CLI signature: `$ cd ~/eduardoalvarez.dev/2026`. */
540
540
  readonly domain: "eduardoalvarez.dev";
541
+ /** The library's own name, for a footer that credits it. */
542
+ readonly library: "Arrecife";
543
+ /**
544
+ * Where the library is published, for `Footer builtWith`.
545
+ *
546
+ * It is here and not written into the component for the reason the domain is:
547
+ * one string, five projects. It is the same URL as `homepage` in
548
+ * `package.json` and it cannot be derived from it — this file imports nothing
549
+ * — so `check:exports` compares the two on every build. Without that, moving
550
+ * the Storybook would update what npm prints and leave five production
551
+ * footers linking at the old address.
552
+ */
553
+ readonly libraryUrl: "https://arrecife.eduardoalvarez.dev";
541
554
  };
542
555
  type ColorMode = keyof typeof colors;
543
556
  type ColorToken = keyof typeof dark;
@@ -782,6 +795,8 @@ declare const tokens: {
782
795
  readonly wordmark: "Eduardo Álvarez";
783
796
  readonly mascot: "Tiburoncín";
784
797
  readonly domain: "eduardoalvarez.dev";
798
+ readonly library: "Arrecife";
799
+ readonly libraryUrl: "https://arrecife.eduardoalvarez.dev";
785
800
  };
786
801
  };
787
802
  type Tokens = typeof tokens;
@@ -1,2 +1,2 @@
1
- export { tokens } from '../chunk-5A5GH2PF.js';
2
- export { brand, colors, control, dark, fonts, gradient, light, limits, motion, naming, radius, series, shadow, size, spacing, syntax, tagline, typeScale } from '../chunk-FGFNK72B.js';
1
+ export { tokens } from '../chunk-6QJQ6K7J.js';
2
+ export { brand, colors, control, dark, fonts, gradient, light, limits, motion, naming, radius, series, shadow, size, spacing, syntax, tagline, typeScale } from '../chunk-5YWGOFDX.js';
@@ -18,7 +18,24 @@
18
18
  @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
19
19
  @custom-variant light (&:where([data-theme="light"], [data-theme="light"] *));
20
20
 
21
- @theme {
21
+ /* STATIC, and that word is the whole of a bug fix. Tailwind v4 emits a theme
22
+ variable only if some utility it generated uses it, and a token read with
23
+ var() from JS is asked for by no utility at all: seriesColor(i) returns
24
+ var(--color-series-N) on purpose, so the color follows the mode instead of
25
+ freezing to whichever one was live when the chart mounted. No project writes
26
+ bg-series-1, so Tailwind dropped all four as unused, the var() resolved to
27
+ nothing, and a fill that resolves to nothing is black — on a dark page,
28
+ indistinguishable from «no data». No error in the console and none in the
29
+ build; the report that arrived was «the information is not showing».
30
+
31
+ With static, every token this file declares reaches :root whether a class
32
+ asks for it or not, which is what a published token set is: a contract, not
33
+ a subset of itself discovered by usage. It costs CSS — measured at +1.6 KB
34
+ raw / +234 B gzipped for a project using the library's whole vocabulary, and
35
+ +3.2 KB / +579 B for one that writes almost nothing — and it buys the
36
+ removal of a whole class of silent failure rather than of one instance.
37
+ See docs/decisions/ § 61. */
38
+ @theme static {
22
39
  /* --- color · dark mode (default) ------------------------------------- */
23
40
  --color-background: #091319;
24
41
  --color-surface: #10202B;
@@ -265,7 +282,7 @@
265
282
  written from first principles about terminals rather than read off the two
266
283
  sites that already had a signature. A utility with no consumer and no origin
267
284
  is not a feature, it is the invention still sitting there under a new label.
268
- See docs/decisions/0.8.md § 45.
285
+ See docs/decisions/ § 45.
269
286
 
270
287
  Its reason is the one the other four exceptions share: it is feedback about
271
288
  PROGRESS. A prompt that radiates says the terminal is live, which is the same
@@ -283,7 +300,7 @@
283
300
  Behind motion-safe at the call site — the half NOT copied from cursos, whose
284
301
  span animates regardless. The blog guarded it, every other exception here is
285
302
  guarded, and at rest the bar is simply solid.
286
- See docs/decisions/0.8.md § 45. */
303
+ See docs/decisions/ § 45. */
287
304
  @keyframes arrecife-pulse {
288
305
  0%, 100% {
289
306
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-accent) 70%, transparent);
@@ -21,7 +21,7 @@ var button = classVarianceAuthority.cva(
21
21
  ],
22
22
  // The one control whose focus ring is not biolume. It is the system's
23
23
  // only sand fill, and a biolume ring three pixels off a sand button puts
24
- // both of the brand's accents in the same glance. See `docs/decisions/0.7.md` § 37.
24
+ // both of the brand's accents in the same glance. See `docs/decisions/` § 37.
25
25
  conversion: "bg-warm text-warm-on hover:bg-warm-hover focus-ring-warm",
26
26
  secondary: [
27
27
  "border-hairline-hover border bg-transparent text-text-primary",
@@ -32,7 +32,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
32
32
  * actions and toolbars, next to «Editar» and «Duplicar», with no context to tell
33
33
  * them apart: with every one rendered as `secondary`, «Eliminar curso» looked
34
34
  * exactly like «Cancelar» and only the word separated them. See
35
- * `docs/decisions/0.6.md` § 21.
35
+ * `docs/decisions/` § 21.
36
36
  *
37
37
  * `destructiveOutline` fills on hover, and that IS an exception to «secondary is
38
38
  * never filled» — declared here rather than discovered later. A destructive
@@ -151,7 +151,7 @@ declare const text: (props?: ({
151
151
  *
152
152
  * The radius: the document says 12, which is none of the system's five radii. It
153
153
  * uses the card radius rather than introducing a sixth — see
154
- * `docs/decisions/`.
154
+ * `docs/decisions/` § 3.
155
155
  */
156
156
  declare const alert: (props?: ({
157
157
  variant?: "error" | "accent" | "success" | "warning" | null | undefined;
@@ -32,7 +32,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
32
32
  * actions and toolbars, next to «Editar» and «Duplicar», with no context to tell
33
33
  * them apart: with every one rendered as `secondary`, «Eliminar curso» looked
34
34
  * exactly like «Cancelar» and only the word separated them. See
35
- * `docs/decisions/0.6.md` § 21.
35
+ * `docs/decisions/` § 21.
36
36
  *
37
37
  * `destructiveOutline` fills on hover, and that IS an exception to «secondary is
38
38
  * never filled» — declared here rather than discovered later. A destructive
@@ -151,7 +151,7 @@ declare const text: (props?: ({
151
151
  *
152
152
  * The radius: the document says 12, which is none of the system's five radii. It
153
153
  * uses the card radius rather than introducing a sixth — see
154
- * `docs/decisions/`.
154
+ * `docs/decisions/` § 3.
155
155
  */
156
156
  declare const alert: (props?: ({
157
157
  variant?: "error" | "accent" | "success" | "warning" | null | undefined;
@@ -1,2 +1,2 @@
1
- export { CARD, CARD_HOVER, CARD_SURFACE, alert as alertVariants, avatar as avatarVariants, badge as badgeVariants, button as buttonVariants, category as categoryBadgeVariants, metric as metricBadgeVariants } from '../chunk-XXDATT3A.js';
1
+ export { CARD, CARD_HOVER, CARD_SURFACE, alert as alertVariants, avatar as avatarVariants, badge as badgeVariants, button as buttonVariants, category as categoryBadgeVariants, metric as metricBadgeVariants } from '../chunk-FF33ARRA.js';
2
2
  export { text as textVariants } from '../chunk-ODBFN44D.js';
package/llms.txt CHANGED
@@ -72,6 +72,15 @@ project declares `@source`, include the package:
72
72
  @source "../node_modules/@eduardoalvarez/arrecife/dist";
73
73
  ```
74
74
 
75
+ **Every token is in `:root`, and you may read it with `var()`.** The block is
76
+ `@theme static`, so a token is emitted whether or not a utility asks for it:
77
+ `style={{ fill: 'var(--color-series-1)' }}` or `var(--radius-card)` from your own
78
+ JavaScript resolves. Do not write a fallback hexadecimal next to it — that is a
79
+ second copy of a value this package exists to keep in one place. Before that fix
80
+ Tailwind dropped the four `--color-series-*` as unused, because they are read by
81
+ `var()` and requested by no class, and the charts drew black. See
82
+ `decisions/` § 61.
83
+
75
84
  ### Light mode and dark mode
76
85
 
77
86
  **Dark mode is primary and it is the default.** A dark project declares nothing.
@@ -263,7 +272,7 @@ does nothing.
263
272
 
264
273
  **One `Nav` per page.** It renders the site's `banner` landmark, and two banners
265
274
  on one page is an accessibility failure — which is also why `PageHeader` goes
266
- inside `<main>` and is not a landmark. See `decisions/0.7.md` § 30.
275
+ inside `<main>` and is not a landmark. See `decisions/` § 30.
267
276
 
268
277
  ### Icons are yours, the way they are drawn is not
269
278
 
@@ -332,7 +341,7 @@ a Server Component throws. It ships no `"use client"` to stop you, so the failur
332
341
  arrives at render rather than at build. The `/ssr` entry is the same icons
333
342
  without the context read, and `Icon` works with either.
334
343
 
335
- See `decisions/0.7.md` § 29 and § 35.
344
+ See `decisions/` § 29 and § 35.
336
345
 
337
346
  ### `Stat`'s delta says direction, not judgement
338
347
 
@@ -349,7 +358,7 @@ errores» point the same way and mean opposite things, so whether a number is go
349
358
  news is `tone`'s job and yours: `neutral` for a datum, `alert` when the number IS
350
359
  the problem, `achievement` when it is the reward. `alert` and `achievement` paint
351
360
  the same sand on purpose — the API is the meaning, the colour is the
352
- implementation. See `decisions/0.7.md` § 28.
361
+ implementation. See `decisions/` § 28.
353
362
 
354
363
  `delta.value` arrives already formatted, like `value`: the library imposes no
355
364
  locale and computes no percentage. `spark` is a `ReactNode` and the library ships
@@ -359,7 +368,7 @@ no sparkline — pass your own, exactly like `icon`.
359
368
  and biolume goes on the icon badge and the sparkline instead: three accents in
360
369
  one card and the figure stops being the loudest thing in it. `alert` and
361
370
  `achievement` DO paint the number sand, which is how «this number is not just a
362
- number» is said. See `decisions/0.7.md` § 31.
371
+ number» is said. See `decisions/` § 31.
363
372
 
364
373
  **`icon` is a badge in the corner opposite the title**, in a circle tinted at
365
374
  10 % of the tone. You pass the glyph; the circle, the tint and the size are the
@@ -433,6 +442,13 @@ it is `aria-hidden`. The column titles render as `<h3>`. Pass `linkAsChild` to
433
442
  plug in the router's `Link`; without it the columns are plain `<a>` and every
434
443
  navigation costs a page load.
435
444
 
445
+ **`builtWith` adds «Creado con Arrecife ♥» under the signature**, linking to the
446
+ library's Storybook. It works on both shapes and it is OFF by default:
447
+ the credit is the site's to give, so the library does not put it in a footer
448
+ that did not ask. Do not hand-write that line instead — the heart is Phosphor's
449
+ filled `Heart` and never the emoji, and the URL is checked against the package's
450
+ `homepage` on every build. See `decisions/` § 62.
451
+
436
452
  ### `Table` brings its own surface
437
453
 
438
454
  ```tsx
@@ -485,7 +501,7 @@ largest datum, and on a horizontal ranking — whose value axis is hidden — a
485
501
  course watched to 40 % draws as a full bar when it is the highest on the list.
486
502
  The bottom is always zero, and it is a floor rather than a clip: a datum above
487
503
  `valueMax` widens the axis instead of running off the edge. It is on all three
488
- types. See `decisions/0.11.md` § 58.
504
+ types. See `decisions/` § 58.
489
505
 
490
506
  `stacked` on `AreaChart` and `BarChart` adds the series up. Without it areas
491
507
  overlap, which is honest and rarely what you want with more than one series: to
@@ -494,6 +510,13 @@ COMPARE rather than add up, the type is `LineChart`.
494
510
  Anything that is not a series over a category axis has no type and is not missing
495
511
  one. A doughnut is `ChartContainer` plus Recharts' `Pie` with `SERIES_COLORS`.
496
512
 
513
+ **The series palette comes from `seriesColor(i)` and `SERIES_COLORS`, and both
514
+ return `var(--color-series-N)`** rather than a hexadecimal, so the colors follow
515
+ the mode instead of freezing to the one that was live when the chart mounted. You
516
+ do not need `data-theme` on `<html>` for that to resolve, and you do not need a
517
+ fallback: the tokens are in `:root` on every page. Pass `color` per series only
518
+ to override the palette on purpose — a semantic red for a failure count, say.
519
+
497
520
  ### The social icons are yours, and they come from Phosphor
498
521
 
499
522
  Until 0.10.0 the library shipped ten of them at `./social` — `GitHub`,
@@ -585,7 +608,7 @@ compiles and looks wrong, or that fails the project's accessibility audit.
585
608
  3. **`Button variant="destructive"` is for the irreversible only.** Never for
586
609
  «cancel» on a form, and not inside an `AlertDialog` — there the confirm button
587
610
  stays `primary`, because the title, the focus on cancel and the no-click-outside
588
- already carry the weight. See `decisions/0.6.md` § 21.
611
+ already carry the weight. See `decisions/` § 21.
589
612
  4. **`secondary` is never filled.** It is border and text.
590
613
  5. **No entrance animations.** Modals, menus, tooltips and toasts appear where
591
614
  they will stay. There are five declared exceptions, all behind `motion-safe`
@@ -600,7 +623,7 @@ compiles and looks wrong, or that fails the project's accessibility audit.
600
623
  `PageHeader` makes the same split: `as` is the level and `titleVariant` the
601
624
  scale. An admin panel's title is `<PageHeader title="Ventas"
602
625
  titleVariant="h3" />` — still the page's only `h1`, at 25px instead of 44. See
603
- `decisions/0.11.md` § 57.
626
+ `decisions/` § 57.
604
627
  7. **`textMuted` never goes over `surfaceRaised`**: it gives 4.07 in dark. Over a
605
628
  raised surface — menus, active tabs — the token is `textSecondary`.
606
629
  8. **A background tinted with a semantic color carries text from a text token**,
@@ -618,14 +641,14 @@ compiles and looks wrong, or that fails the project's accessibility audit.
618
641
  hole inside a table page or a dashboard widget, and it carries no face — the
619
642
  type does not accept one. `page`, the default, is the one that IS the screen,
620
643
  and there `expression` stays mandatory. A dozen mascots on one admin screen is
621
- not the humour contract. See `decisions/0.7.md` § 27.
644
+ not the humour contract. See `decisions/` § 27.
622
645
  12. **The fin is not a free parameter**: `foam` on a dark background, `color` on a
623
646
  light one. The components already choose it from the background.
624
647
  **On a site that switches theme, pass `background="auto"`** to `Isotype` or
625
648
  `Logo`: both fins are rendered and the `light:` variant shows the one that
626
649
  reads, so no call site has to know the theme. A surface that keeps one mode
627
650
  whatever the page does — a dark panel on a light page — is a fixed
628
- background, and it still says `dark`. See `decisions/0.11.md` § 60.
651
+ background, and it still says `dark`. See `decisions/` § 60.
629
652
 
630
653
  ## What the library does NOT do, on purpose
631
654
 
@@ -646,7 +669,7 @@ These are the confusions people run into most often when consuming it.
646
669
  already names the card — and `footer`, the closing row where a project puts the
647
670
  rating and the price. Both are nodes the project draws; the card keeps the
648
671
  title, its hover and the sand progress bar. The title does not go over the
649
- cover. See `decisions/0.11.md` § 59.
672
+ cover. See `decisions/` § 59.
650
673
  - **It ships no `data-testid`.** A composed part your test suite has to reach is
651
674
  reached with a slot: `ArticleCard`'s `tagAsChild`, `Breadcrumb`'s and
652
675
  `TableOfContents`'s `linkAsChild`. They hand you the element and its
@@ -1470,6 +1493,7 @@ Source: `src/components/footer/index.tsx`
1470
1493
  | --- | --- | --- | --- | --- |
1471
1494
  | `action` | `ReactNode` | | | An action under the row of icons — «Reportar un problema». Usually a tertiary button. |
1472
1495
  | `brand` | `ReactNode` | | | The brand row: the fin and the wordmark, at the very top. |
1496
+ | `builtWith` | `boolean \| undefined` | | | Adds «Creado con Arrecife ♥», linking to the library's Storybook. |
1473
1497
  | `columns` | `readonly FooterColumn[]` | | | The link columns. Mandatory: without them `full` is the default form with extra steps. |
1474
1498
  | `description` | `ReactNode` | | | One line under the brand, saying what the site is. |
1475
1499
  | `domain` | `string` | | | The domain the signature prints, defaulting to the identity's own. |
@@ -1615,7 +1639,7 @@ A large metric: the number in the `stat` scale and its name underneath.
1615
1639
  | `label` | `ReactNode` | yes | | What is being counted. It goes in mono small caps. |
1616
1640
  | `progress` | `number` | | | With `progress`, the metric reads as progress and adds the bar. |
1617
1641
  | `spark` | `ReactNode` | | | The number's shape over time, under it. A `ReactNode` and not a data prop: a sparkline needs a charting library, and this component lives in the barrel that four projects install. The one project that draws them passes its own, exactly like `icon`. |
1618
- | `tone` | `"neutral" \| "alert" \| "achievement"` | | `neutral` | `alert` ONLY when the number is the problem, and `achievement` when it is the opposite — the diplomas issued, the modules finished. The two paint the same sand today and they are still two names: a system that names by meaning cannot make «this is bad» the only way to say «this stands out». See `docs/decisions/0.7.md` § 28. |
1642
+ | `tone` | `"neutral" \| "alert" \| "achievement"` | | `neutral` | `alert` ONLY when the number is the problem, and `achievement` when it is the opposite — the diplomas issued, the modules finished. The two paint the same sand today and they are still two names: a system that names by meaning cannot make «this is bad» the only way to say «this stands out». See `docs/decisions/` § 28. |
1619
1643
  | `value` | `ReactNode` | yes | | The number, already formatted. The library imposes no locale. |
1620
1644
 
1621
1645
  ### TalkCard
@@ -1927,7 +1951,7 @@ it: if the code does not mount React, that subpath is the one to import.
1927
1951
  | `light` | `{ background, surface, surfaceRaised, border, hairline, hairlineHover, textPrimary, textSecondary, textMuted, accent, accentHover, accentOn, warm, warmHover, warmOn, success, warning, error, danger, dangerHover, dangerOn }` | Light mode. Contrast measured against `background` #F6F2EA. `background` is WARM white: never #FFF as the page background. |
1928
1952
  | `limits` | `{ readonly minScreenPx: 13; readonly minPrintPt: 12; readonly measure: "68ch"; }` | Hard legibility limits. |
1929
1953
  | `motion` | `{ readonly duration: "150ms"; readonly easing: "ease-out"; readonly properties: "color, background-color, border-color, fill, stroke"; }` | 150ms ease-out — color and border only. The system animates neither position nor scale: states are communicated with border and color, not with movement. |
1930
- | `naming` | `{ readonly wordmark: "Eduardo Álvarez"; readonly mascot: "Tiburoncín"; readonly domain: "eduardoalvarez.dev"; }` | The wordmark always reads «Eduardo Álvarez». The mascot is called Tiburoncín and its name never appears inside the logo. |
1954
+ | `naming` | `{ wordmark, mascot, domain, library, libraryUrl }` | The wordmark always reads «Eduardo Álvarez». The mascot is called Tiburoncín and its name never appears inside the logo. |
1931
1955
  | `radius` | `{ readonly chip: 6; readonly control: 10; readonly card: 14; readonly panel: 16; readonly pill: 999; }` | |
1932
1956
  | `series` | `{ readonly dark: readonly ["#35D6C0", "#F2A65A", "#3E7CB1", "#71919C"]; readonly light: readonly ["#0D7C6F", "#A65B27", "#3E7CB1", "#626A75"]; }` | The chart series palette. FOUR, for the same reason as the syntax palette: the system communicates with color and border, not with chromatic noise. |
1933
1957
  | `shadow` | `{ readonly standard: "0 1px 2px rgba(0, 0, 0, 0.35)"; }` | A single level. There is no elevation scale. |
@@ -2035,5 +2059,7 @@ Types (60): `AccordionProps`, `AccordionTriggerProps`, `AlertProps`, `ArticleCar
2035
2059
  - `architecture/design-system.md` and `architecture/brand-manual.md`: the identity documents,
2036
2060
  greppable.
2037
2061
  - `decisions/`: the points where the code and the document did not say the
2038
- same thing, each with its resolution.
2062
+ same thing, each with its resolution. One file per decision, named for its
2063
+ number, so «§ 45» is `decisions/045-*.md` — which is how every `§ N` in this
2064
+ file resolves.
2039
2065
  - `AGENTS.md`: for working inside the library's repo.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eduardoalvarez/arrecife",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "The component library of Eduardo Álvarez’s visual identity",
5
5
  "license": "MIT",
6
6
  "author": "Eduardo Esteban Álvarez Castañeda <soy@eduardoalvarez.dev>",