oficina / slides Public

Calma: Slides' own accent, Onest and the new icons

Slides adopts estilo's Calma (estilo decisions-table row 8, 5b2ce83).
static/theme.css is now estilo's theme for slides, written by the new
scripts/writetheme and pinned to estilo by TestThemeIsEstilosForSlides
(it leaves the day-vendored set: vendoredIsMine). Onest is served by
estilo's FontHandler and linked first; credits list it (-onest). Calma's
Slides icon replaces the Lucide tile.

Credits were regenerated from the committed asset inventory under the
pinned toolchain (go1.26.5): the Wasm is untouched, and a local rebuild
of it is not byte-identical to CI's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev dd27b5033ae2aa38f2a4b4368bd30d4471acea8e parent e8a015f
14 files changed, +134 −166
  • go.mod +1 −1
  • go.sum +2 −0
  • internal/slides/app.go +3 −0
  • internal/slides/credits/notices.json +11 −0
  • internal/slides/static/brand/apple-touch-icon.png binary
  • internal/slides/static/brand/brand.css +2 −2
  • internal/slides/static/brand/icon-32.png binary
  • internal/slides/static/brand/icon.svg +1 −3
  • internal/slides/static/theme.css +70 −158
  • internal/slides/templates/layout.html +1 −0
  • internal/slidestest/vendored_test.go +21 −1
  • scripts/__pycache__/credits.cpython-314.pyc binary
  • scripts/credits.py +1 −1
  • scripts/writetheme/main.go +21 −0

CI passed — run details

CI log
=== gate ===
=== rust: fmt
=== rust: clippy
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling serde_core v1.0.229
   Compiling zerocopy v0.8.56
   Compiling version_check v0.9.5
    Checking cfg-if v1.0.4
   Compiling serde v1.0.229
    Checking once_cell v1.21.4
    Checking smallvec v1.15.2
   Compiling libc v0.2.189
   Compiling zmij v1.0.23
   Compiling parking_lot_core v0.9.12
   Compiling crossbeam-utils v0.8.22
    Checking pin-project-lite v0.2.17
   Compiling autocfg v1.5.1
    Checking parking v2.2.1
   Compiling rustversion v1.0.23
   Compiling thiserror v2.0.20
    Checking event-listener v5.4.2
   Compiling libm v0.2.16
    Checking scopeguard v1.2.0
   Compiling paste v1.0.15
   Compiling serde_json v1.0.151
    Checking lock_api v0.4.14
    Checking memchr v2.8.3
   Compiling ahash v0.8.12
    Checking event-listener-strategy v0.5.4
    Checking itoa v1.0.18
    Checking foldhash v0.2.0
    Checking smallstr v0.3.1
    Checking async-lock v3.4.2
   Compiling num-traits v0.2.19
    Checking downcast-rs v1.2.1
    Checking equivalent v1.0.2
    Checking fastrand v2.5.0 (/home/paulca/.local/state/amadan/runner/repos/oficina__slides/wt/theme-calma/core/vendor/fastrand-2.5.0)
    Checking indexmap-nostd v0.4.0
    Checking spin v0.9.9
    Checking bitflags v2.13.1
    Checking multi-stash v0.2.0
    Checking semver v1.0.28
    Checking arrayvec v0.7.8
    Checking wasmparser-nostd v0.100.2
    Checking arc-swap v1.9.2
   Compiling syn v3.0.4
   Compiling syn v2.0.119
    Checking wasmi_core v0.32.3
    Checking hashbrown v0.17.1
   Compiling num-derive v0.4.2
    Checking indexmap v2.14.1
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
    Checking hashbrown v0.14.5
    Checking dashmap v6.2.1
    Checking string-interner v0.17.0
    Checking yrs v0.23.5
    Checking wasmparser v0.258.0
    Checking wasmi_collections v0.32.3
    Checking wasmi v0.32.3
    Checking slides-core v0.1.0 (/home/paulca/.local/state/amadan/runner/repos/oficina__slides/wt/theme-calma/core)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.33s
=== wasm: the artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling serde_core v1.0.229
   Compiling cfg-if v1.0.4
   Compiling pin-project-lite v0.2.17
   Compiling smallvec v1.15.2
   Compiling crossbeam-utils v0.8.22
   Compiling parking_lot_core v0.9.12
   Compiling zmij v1.0.23
   Compiling rustversion v1.0.23
   Compiling getrandom v0.4.3
   Compiling serde v1.0.229
   Compiling serde_json v1.0.151
   Compiling thiserror v2.0.20
   Compiling scopeguard v1.2.0
   Compiling event-listener v5.4.2
   Compiling memchr v2.8.3
   Compiling lock_api v0.4.14
   Compiling hashbrown v0.14.5
   Compiling once_cell v1.21.4
   Compiling itoa v1.0.18
   Compiling smallstr v0.3.1
   Compiling fastrand v2.5.0 (/home/paulca/.local/state/amadan/runner/repos/oficina__slides/wt/theme-calma/core/vendor/fastrand-2.5.0)
   Compiling event-listener-strategy v0.5.4
   Compiling async-lock v3.4.2
   Compiling arc-swap v1.9.2
   Compiling dashmap v6.2.1
   Compiling syn v3.0.4
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
   Compiling yrs v0.23.5
   Compiling slides-core v0.1.0 (/home/paulca/.local/state/amadan/runner/repos/oficina__slides/wt/theme-calma/core)
    Finished `release` profile [optimized] target(s) in 6.43s
core/target/wasm32-unknown-unknown/release/slides_core.wasm (1228229 bytes)
=== the embedded wasm must match a fresh build
=== rust: test
   Compiling cfg-if v1.0.4
   Compiling once_cell v1.21.4
   Compiling smallvec v1.15.2
   Compiling parking v2.2.1
   Compiling pin-project-lite v0.2.17
   Compiling serde_core v1.0.229
   Compiling zerocopy v0.8.56
   Compiling libc v0.2.189
   Compiling scopeguard v1.2.0
   Compiling zmij v1.0.23
   Compiling crossbeam-utils v0.8.22
   Compiling foldhash v0.2.0
   Compiling memchr v2.8.3
   Compiling itoa v1.0.18
   Compiling arc-swap v1.9.2
   Compiling thiserror v2.0.20
   Compiling num-traits v0.2.19
   Compiling lock_api v0.4.14
   Compiling libm v0.2.16
   Compiling indexmap-nostd v0.4.0
   Compiling event-listener v5.4.2
   Compiling smallstr v0.3.1
   Compiling downcast-rs v1.2.1
   Compiling fastrand v2.5.0 (/home/paulca/.local/state/amadan/runner/repos/oficina__slides/wt/theme-calma/core/vendor/fastrand-2.5.0)
   Compiling equivalent v1.0.2
   Compiling spin v0.9.9
   Compiling semver v1.0.28
   Compiling wasmparser-nostd v0.100.2
   Compiling bitflags v2.13.1
   Compiling multi-stash v0.2.0
   Compiling arrayvec v0.7.8
   Compiling event-listener-strategy v0.5.4
   Compiling async-lock v3.4.2
   Compiling parking_lot_core v0.9.12
   Compiling wasmi_core v0.32.3
   Compiling serde v1.0.229
   Compiling hashbrown v0.17.1
   Compiling serde_json v1.0.151
   Compiling indexmap v2.14.1
   Compiling wasmparser v0.258.0
   Compiling ahash v0.8.12
   Compiling hashbrown v0.14.5
   Compiling string-interner v0.17.0
   Compiling dashmap v6.2.1
   Compiling wasmi_collections v0.32.3
   Compiling yrs v0.23.5
   Compiling wasmi v0.32.3
   Compiling slides-core v0.1.0 (/home/paulca/.local/state/amadan/runner/repos/oficina__slides/wt/theme-calma/core)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 7.46s
     Running unittests src/lib.rs (core/target/debug/deps/slides_core-929bfceb2edd4a94)

running 30 tests
test check::tests::the_empty_document_passes ... ok
test layout::tests::aside_region_rect ... ok
test layout::tests::body_region_rect_narrows_for_an_aside ... ok
test layout::tests::heading_region_rect ... ok
test layout::tests::default_region_by_kind ... ok
test layout::tests::media_region_rect ... ok
test layout::tests::to_canvas_narrows_body_when_an_aside_is_present ... ok
test markdown::tests::inline_marks ... ok
test markdown::tests::marks_nest_and_links_carry_marks ... ok
test markdown::tests::empty_input_is_no_paragraphs_and_lines_keep_blanks ... ok
test check::tests::what_the_ops_write_passes ... ok
test check::tests::a_non_paragraph_child_is_reported ... ok
test layout::tests::to_canvas_splits_a_shared_region_equally_and_sets_z_by_index ... ok
test markdown::tests::paragraphs_split_on_blank_lines_and_list_markers ... ok
test layout::tests::to_flow_classifies_by_position_and_kind ... ok
test check::tests::bare_text_at_fragment_level_is_reported ... ok
test check::tests::y_prosemirror_shapes_pass ... ok
test layout::tests::to_flow_is_a_no_op_when_already_in_order ... ok
test check::tests::an_element_inside_a_paragraph_is_reported ... ok
test schema::tests::an_empty_map_reads_as_a_set_mark ... ok
test layout::tests::to_flow_orders_y_then_x ... ok
test schema::tests::an_href_map_without_a_string_url_reads_as_no_link ... ok
test schema::tests::href_written_as_a_plain_string_still_reads_back ... ok
test schema::tests::href_is_written_as_a_one_key_map_and_reads_back ... ok
test check::tests::an_unknown_formatting_attribute_is_reported ... ok
test view::tests::malformed_background_is_the_default ... ok
test view::tests::malformed_box_is_null_and_phone_keeps_only_typed_fields ... ok
test view::tests::malformed_fonts_are_null ... ok
test view::tests::assets_are_typed_or_skipped ... ok
test layout::tests::to_flow_keeps_a_concurrent_text_edit ... ok

test result: ok. 30 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/target/debug/deps/no_host_imports-184c0d8bf00e14f9)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/ops.rs (core/target/debug/deps/ops-256addce27f366d1)

running 12 tests
test ops_are_atomic ... ok
test add_slide_then_view_lists_it ... ok
test add_block_with_markdown_produces_runs ... ok
test layout_switch_assigns_boxes ... ok
test remove_block_drops_it_from_columns_children ... ok
test duplicate_slide_remaps_columns_children ... ok
test columns_children_must_name_blocks_on_the_slide ... ok
test move_block_keeps_a_concurrent_text_edit ... ok
test columns_children_have_one_parent_and_no_cycles ... ok
test update_roundtrip ... ok
test move_slide_keeps_a_concurrent_text_edit ... ok
test remaining_ops_roundtrip ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

   Doc-tests slides_core

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== rust: fmt (pdf)
=== rust: clippy (pdf)
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling autocfg v1.5.1
    Checking log v0.4.34
    Checking simd-adler32 v0.3.10
    Checking arrayvec v0.7.8
   Compiling serde_core v1.0.229
   Compiling libm v0.2.16
    Checking adler2 v2.0.1
    Checking smallvec v1.16.0
   Compiling crc32fast v1.5.1
    Checking bitflags v2.13.1
    Checking cfg-if v1.0.4
   Compiling version_check v0.9.5
   Compiling libc v0.2.189
    Checking foldhash v0.2.0
    Checking arrayref v0.3.9
    Checking equivalent v1.0.2
    Checking memchr v2.8.3
    Checking roxmltree v0.20.0
    Checking unicode-script v0.5.8
    Checking miniz_oxide v0.9.1
    Checking miniz_oxide v0.8.9
    Checking fdeflate v0.3.7
    Checking polycool v0.4.0
    Checking unicode-bidi-mirroring v0.4.0
    Checking siphasher v1.0.3
   Compiling slotmap v1.1.1
    Checking tinyvec_macros v0.1.1
    Checking unicode-properties v0.1.4
    Checking kurbo v0.13.1
    Checking unicode-ccc v0.4.0
   Compiling num-traits v0.2.19
    Checking tinyvec v1.13.2
    Checking base64 v0.22.1
    Checking byteorder-lite v0.1.0
    Checking quick-error v2.0.1
    Checking imagesize v0.14.0
    Checking weezl v0.1.12
    Checking fontconfig-parser v0.5.8
    Checking flate2 v1.1.10
    Checking zune-core v0.5.3
    Checking color_quant v1.1.0
    Checking image-webp v0.2.4
    Checking roxmltree v0.21.1
    Checking simplecss v0.2.2
    Checking itoa v1.0.18
    Checking rustc-hash v2.1.3
    Checking gif v0.14.2
    Checking zune-jpeg v0.5.15
    Checking stable_deref_trait v1.2.1
    Checking data-url v0.3.2
    Checking ryu v1.0.23
    Checking pico-args v0.5.0
    Checking png v0.18.1
    Checking unicode-vo v0.1.0
    Checking unicode-bidi v0.3.18
    Checking xmlwriter v0.1.0
    Checking pdf-writer v0.15.0
   Compiling syn v3.0.5
   Compiling syn v2.0.119
    Checking bumpalo v3.20.3
    Checking xmp-writer v0.3.3
   Compiling serde v1.0.229
    Checking semver v1.0.28
    Checking svgtypes v0.16.1
    Checking core_maths v0.1.1
    Checking ttf-parser v0.25.1
    Checking float-cmp v0.9.0
    Checking strict-num v0.1.1
    Checking memmap2 v0.9.11
    Checking hashbrown v0.17.1
    Checking indexmap v2.14.2
   Compiling bytemuck_derive v1.12.0
    Checking fontdb v0.23.0
   Compiling synstructure v0.13.2
    Checking wasmparser v0.258.0
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
    Checking bytemuck v1.25.2
    Checking font-types v0.11.3
    Checking tiny-skia-path v0.12.0
    Checking rustybuzz v0.20.1
    Checking rgb v0.8.53
    Checking zerofrom v0.1.8
    Checking yoke v0.8.3
    Checking read-fonts v0.39.2
    Checking tiny-skia v0.12.0
    Checking usvg v0.47.0
    Checking resvg v0.47.0
    Checking skrifa v0.42.1
    Checking write-fonts v0.48.1
    Checking subsetter v0.2.6
    Checking krilla v0.8.2
    Checking krilla-svg v0.8.1
    Checking slides-pdf v0.1.0 (/home/paulca/.local/state/amadan/runner/repos/oficina__slides/wt/theme-calma/core/pdf)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.43s
=== wasm: the pdf artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.03s
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling autocfg v1.5.1
   Compiling libm v0.2.16
   Compiling log v0.4.34
   Compiling arrayvec v0.7.8
   Compiling simd-adler32 v0.3.10
   Compiling smallvec v1.16.0
   Compiling adler2 v2.0.1
   Compiling crc32fast v1.5.1
   Compiling bitflags v2.13.1
   Compiling cfg-if v1.0.4
   Compiling version_check v0.9.5
   Compiling memchr v2.8.3
   Compiling arrayref v0.3.9
   Compiling fdeflate v0.3.7
   Compiling unicode-script v0.5.8
   Compiling miniz_oxide v0.9.1
   Compiling miniz_oxide v0.8.9
   Compiling siphasher v1.0.3
   Compiling polycool v0.4.0
   Compiling hashbrown v0.17.1
   Compiling tinyvec_macros v0.1.1
   Compiling unicode-ccc v0.4.0
   Compiling slotmap v1.1.1
   Compiling unicode-properties v0.1.4
   Compiling kurbo v0.13.1
   Compiling equivalent v1.0.2
   Compiling num-traits v0.2.19
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling tinyvec v1.13.2
   Compiling memmap2 v0.9.11
   Compiling imagesize v0.14.0
   Compiling quick-error v2.0.1
   Compiling byteorder-lite v0.1.0
   Compiling weezl v0.1.12
   Compiling base64 v0.22.1
   Compiling flate2 v1.1.10
   Compiling color_quant v1.1.0
   Compiling zune-core v0.5.3
   Compiling indexmap v2.14.2
   Compiling image-webp v0.2.4
   Compiling syn v3.0.5
   Compiling syn v2.0.119
   Compiling zune-jpeg v0.5.15
   Compiling gif v0.14.2
   Compiling png v0.18.1
   Compiling roxmltree v0.21.1
   Compiling float-cmp v0.9.0
   Compiling core_maths v0.1.1
   Compiling strict-num v0.1.1
   Compiling ttf-parser v0.25.1
   Compiling svgtypes v0.16.1
   Compiling simplecss v0.2.2
   Compiling data-url v0.3.2
   Compiling unicode-bidi v0.3.18
   Compiling itoa v1.0.18
   Compiling unicode-vo v0.1.0
   Compiling xmlwriter v0.1.0
   Compiling stable_deref_trait v1.2.1
   Compiling pico-args v0.5.0
   Compiling rustc-hash v2.1.3
   Compiling ryu v1.0.23
   Compiling bumpalo v3.20.3
   Compiling xmp-writer v0.3.3
   Compiling pdf-writer v0.15.0
   Compiling bytemuck_derive v1.12.0
   Compiling synstructure v0.13.2
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
   Compiling fontdb v0.23.0
   Compiling bytemuck v1.25.2
   Compiling font-types v0.11.3
   Compiling tiny-skia-path v0.12.0
   Compiling rustybuzz v0.20.1
   Compiling rgb v0.8.53
   Compiling zerofrom v0.1.8
   Compiling yoke v0.8.3
   Compiling read-fonts v0.39.2
   Compiling tiny-skia v0.12.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling write-fonts v0.48.1
   Compiling skrifa v0.42.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/paulca/.local/state/amadan/runner/repos/oficina__slides/wt/theme-calma/core/pdf)
    Finished `release` profile [optimized] target(s) in 15.28s
core/pdf/target/wasm32-unknown-unknown/release/slides_pdf.wasm (5301002 bytes)
=== the embedded pdf wasm must match a fresh build
=== rust: test (pdf)
   Compiling log v0.4.34
   Compiling simd-adler32 v0.3.10
   Compiling arrayvec v0.7.8
   Compiling adler2 v2.0.1
   Compiling smallvec v1.16.0
   Compiling bitflags v2.13.1
   Compiling cfg-if v1.0.4
   Compiling foldhash v0.2.0
   Compiling serde_core v1.0.229
   Compiling libm v0.2.16
   Compiling arrayref v0.3.9
   Compiling memchr v2.8.3
   Compiling equivalent v1.0.2
   Compiling libc v0.2.189
   Compiling num-traits v0.2.19
   Compiling bytemuck v1.25.2
   Compiling crc32fast v1.5.1
   Compiling roxmltree v0.20.0
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling miniz_oxide v0.9.1
   Compiling polycool v0.4.0
   Compiling fdeflate v0.3.7
   Compiling miniz_oxide v0.8.9
   Compiling unicode-ccc v0.4.0
   Compiling tinyvec_macros v0.1.1
   Compiling siphasher v1.0.3
   Compiling unicode-script v0.5.8
   Compiling font-types v0.11.3
   Compiling unicode-properties v0.1.4
   Compiling tinyvec v1.13.2
   Compiling slotmap v1.1.1
   Compiling kurbo v0.13.1
   Compiling weezl v0.1.12
   Compiling byteorder-lite v0.1.0
   Compiling read-fonts v0.39.2
   Compiling color_quant v1.1.0
   Compiling base64 v0.22.1
   Compiling fontconfig-parser v0.5.8
   Compiling flate2 v1.1.10
   Compiling float-cmp v0.9.0
   Compiling zune-core v0.5.3
   Compiling quick-error v2.0.1
   Compiling strict-num v0.1.1
   Compiling imagesize v0.14.0
   Compiling image-webp v0.2.4
   Compiling gif v0.14.2
   Compiling core_maths v0.1.1
   Compiling tiny-skia-path v0.12.0
   Compiling memmap2 v0.9.11
   Compiling ttf-parser v0.25.1
   Compiling png v0.18.1
   Compiling zune-jpeg v0.5.15
   Compiling roxmltree v0.21.1
   Compiling zerofrom v0.1.8
   Compiling simplecss v0.2.2
   Compiling rustc-hash v2.1.3
   Compiling pico-args v0.5.0
   Compiling itoa v1.0.18
   Compiling svgtypes v0.16.1
   Compiling unicode-bidi v0.3.18
   Compiling stable_deref_trait v1.2.1
   Compiling ryu v1.0.23
   Compiling data-url v0.3.2
   Compiling xmlwriter v0.1.0
   Compiling unicode-vo v0.1.0
   Compiling pdf-writer v0.15.0
   Compiling yoke v0.8.3
   Compiling rgb v0.8.53
   Compiling xmp-writer v0.3.3
   Compiling bumpalo v3.20.3
   Compiling semver v1.0.28
   Compiling tiny-skia v0.12.0
   Compiling hashbrown v0.17.1
   Compiling serde v1.0.229
   Compiling indexmap v2.14.2
   Compiling rustybuzz v0.20.1
   Compiling fontdb v0.23.0
   Compiling wasmparser v0.258.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling skrifa v0.42.1
   Compiling write-fonts v0.48.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/paulca/.local/state/amadan/runner/repos/oficina__slides/wt/theme-calma/core/pdf)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 15.86s
     Running unittests src/lib.rs (core/pdf/target/debug/deps/slides_pdf-891fafaa44f9fd64)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/pdf/target/debug/deps/no_host_imports-17ccbb1d62120093)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/render.rs (core/pdf/target/debug/deps/render-2e1d7e8b19d78595)

running 6 tests
test a_null_zero_length_pair_is_no_frames_not_a_dereference ... ok
test text_with_no_fonts_at_all_still_renders_the_shapes ... ok
test raster_image_is_embedded ... ok
test abi_frames_round_trip ... ok
test renders_text_as_embedded_glyphs ... ok
test two_svgs_make_two_pages ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

   Doc-tests slides_pdf

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== fixtures: node dependencies
v24.19.0
11.17.0
=== fixtures: npm ci (needs the registry — see .amadan/README.md)

added 19 packages, and audited 20 packages in 504ms

5 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm warn allow-scripts 1 package has install scripts not yet covered by allowScripts:
npm warn allow-scripts   esbuild@0.28.2 (postinstall: node install.js)
npm warn allow-scripts
npm warn allow-scripts Run `npm approve-scripts --allow-scripts-pending` to review, or `npm approve-scripts <pkg>` to allow.
=== fixtures: the JS side's own tests
✔ one finished upload is register_asset plus the block that uses it, in one batch (14.625159ms)
✔ a record missing its numbers still makes an op the core accepts (1.626294ms)
✔ unusedAssets is what no slide refers to, and remove_asset drops one (3.953234ms)
✔ the Unused images list reconciles by id and names each Remove button (1.318343ms)
✔ an upload refusal is said in words the person can act on (0.187208ms)
✔ clampBox keeps the box inside the frame and no smaller than the minimum (1.734747ms)
✔ fixBox writes four decimals (0.331587ms)
✔ guides are the thirds plus every other block edge (0.2797ms)
✔ snapMove pulls the nearest edge onto a guide within one per cent, and leaves a far one (0.524496ms)
✔ snapResize moves only the edges the handle drags (0.272968ms)
✔ moveBox and resizeBox by handle (0.302713ms)
✔ nudge: arrows move by half a per cent, Shift by two, Alt resizes (0.260395ms)
✔ rectBox reads a block rectangle against its frame (0.298706ms)
✔ typing into a block is a text change on its slide only (10.597855ms)
✔ a block's props changing is structure on its slide (1.537691ms)
✔ adding, moving or removing a block is structure on its slide (2.2149ms)
✔ the notes are text on their slide (1.07533ms)
✔ a slide added, removed or moved is an order change (1.434288ms)
✔ one transaction touching several things reports each once (1.119553ms)
✔ what the ops write passes, and so does an empty document (9.800722ms)
✔ the shapes y-prosemirror and older documents write pass (2.031409ms)
✔ an unknown formatting attribute is reported with the core's message (2.000632ms)
✔ an element inside a paragraph, a non-paragraph child and bare text are reported (1.953034ms)
✔ the unknownmark poison shape is what the check refuses (1.384456ms)
✔ y-prosemirror 1.3.7 deletes the words under an unknown mark; sanitising first keeps them (3.462832ms)
✔ the vocabulary is the five marks and nothing else (0.122799ms)
✔ a reload reuses the id this tab stored for the deck (1.148136ms)
✔ two tabs, and two decks in one tab, get different ids (2.504299ms)
✔ a stored value that is not an id, or storage that throws, gives a fresh id (1.218417ms)
✔ a duplicated tab gives up the copied id; the original keeps it (9.202079ms)
✔ a reload finds no rival and keeps its id (2.712707ms)
✔ presence switches id: beats carry the new one and the old one is somebody else (2.119382ms)
✔ an empty body is no frames (1.724508ms)
✔ frames come back in order with their exact bytes (0.376871ms)
✔ a length prefix is big-endian (0.218406ms)
✔ a truncated frame throws rather than returning a short update (2.944358ms)
✔ deck controls are set_meta (35.991247ms)
✔ slide controls are set_slide, and background keeps its colour (2.744035ms)
✔ move up and down are move_slide with the right after (1.597442ms)
✔ block props: value kinds, region, a shape label (1.908311ms)
✔ box fields are set_block on the desktop and set_phone in the phone view (4.225521ms)
✔ move block and the layer buttons (1.54794ms)
✔ add block: region after the selection on flow, a default box on canvas, a heading level that fits (5.101931ms)
✔ a block is named by its type and its first words (0.987157ms)
✔ blockChange: a control element to its op (1.017082ms)
✔ the Blocks list reconciles by id and keeps its buttons (0.846765ms)
✔ open resolves to the button that closed it and the trimmed field (1.78414ms)
✔ a second open while the dialog is up joins the first (0.221723ms)
✔ a missing dialog mounts as nothing (0.140912ms)
✔ a tab advances its own cursor only when its POST is the very next row (3.578207ms)
✔ the cursor never moves backwards when a response is overtaken by this tab's own write (0.52128ms)
✔ a later response still carries the cursor forward (0.291172ms)
✔ a burst of notifications collapses into one fetch at a time (0.262609ms)
✔ an event naming a seq the tab already has fetches nothing (0.204551ms)
✔ a stopped subscriber drops a response that arrives late (0.40307ms)
✔ stop closes the stream, and start opens exactly one (0.318984ms)
✔ a hidden tab closes its stream on a shortened deadline, and activity reopens it (0.988539ms)
✔ switching away and back inside the grace never drops the stream, so nothing has to be caught up (0.680285ms)
✔ a visible tab that is only being READ closes when idle and comes back on any activity (1.314715ms)
✔ activity while streaming defers the idle close rather than reopening anything (0.293536ms)
✔ a stream failure is never reported as a save failure, and heals on activity (0.251978ms)
✔ an empty response advances the cursor without applying anything (0.357054ms)
✔ a failed fetch leaves the cursor alone so the next notification retries it (0.704591ms)
✔ a decode failure retries once through the raw log, then gives up (1.909563ms)
✔ updatesURL spells the query string exactly, in particular raw as the literal raw=1 (0.196626ms)
✔ empty_doc_views_as_defaults (6.403652ms)
✔ set_meta (3.490283ms)
✔ slides: add, move, remove, set_slide, set_notes (6.514519ms)
✔ duplicate_slide (4.067327ms)
✔ blocks: add, move, remove, set_block (3.064862ms)
✔ set_phone (2.052258ms)
✔ table cells follow rows and cols (1.398221ms)
✔ canvas blocks: box defaults from the region, z from the index (1.0104ms)
✔ assets: register and remove (0.851114ms)
✔ markdown: every mark, code blocks are plain lines (4.094646ms)
✔ batch_is_atomic (2.455458ms)
✔ a batch applies in one transaction with the given origin (0.647595ms)
✔ columns_children_validated (1.274661ms)
✔ layout_switch_round_trip (1.953664ms)
✔ view_matches_snapshot_fixtures (21.406132ms)
✔ columns children have one parent and no cycles (codex 7) (1.180476ms)
✔ canvas-to-flow keeps a concurrent text edit (codex 4) (2.936834ms)
✔ move_block keeps a concurrent text edit, and later inserts land where after says (codex 4) (2.912729ms)
✔ move_slide keeps a concurrent text edit, and later inserts land where after says (codex 4 at slide level) (2.425663ms)
✔ format: {name} and {n} interpolate; an unknown key is left as text (1.109624ms)
✔ a beat on connect, then one every twenty seconds (2.360572ms)
✔ a move posts once, 200ms after the last of a burst, and re-arms the beat (0.349019ms)
✔ a hidden tab stops beating; coming back posts at once (0.497014ms)
✔ applySet leaves this tab out and answers what changed (0.657543ms)
✔ a set with rubbish in it is read for what it does carry (0.299868ms)
✔ initials, and a client id per tab (5.597003ms)
✔ a resync that fails is retried with backoff until it succeeds, without ever running twice at once (2.076313ms)
✔ the browser's online event retries immediately, not just on the next backoff tick (0.357405ms)
✔ reportDivergence before any failure runs the first attempt without a caller ever calling online (1.616558ms)
✔ a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit (85.003567ms)
✔ a network failure or a 5xx is retried, not dropped (60.560884ms)
✔ a 500 is retried the same way a network failure is, never dropped (60.310257ms)
✔ the core-written structure reads as ProseMirror marks (6.754807ms)
✔ a y-prosemirror round trip preserves bold and the link (3.874007ms)
✔ y-prosemirror writes href as the one-key map and marks as {} (1.196145ms)
✔ a plain-string href, written before the map shape, still reads (0.61264ms)
✔ textFragment writes the same shape as writeText (0.774892ms)
✔ safeHref is the server allowlist, and a disallowed href never draws an anchor (0.431533ms)
✔ parseHash splits the slide and the block, and survives a stray % (4.293688ms)
✔ destroy takes the listeners off, and a second mount leaves one of each (0.802262ms)
✔ formatHash is the inverse (2.773801ms)
✔ textBlocks finds the text-bearing blocks and skips the rest (1.31181ms)
✔ mountTarget is the element whose children are the paragraphs (0.170236ms)
✔ paragraphTag keeps the renderer's own markup per type (0.11277ms)
✔ blockFragment finds a block's text by slide and block id (4.974154ms)
✔ notesFragment finds the slide's notes (0.675798ms)
✔ blockIDs and slideIDs are the orders on the stage and the strip (0.753532ms)
✔ cellFragments are a table's cells, row-major (1.112379ms)
✔ a load that fails leaves the stage on the slide it was showing and says so (1.139059ms)
✔ slideAfter is the slide to show once one is gone (0.151792ms)
✔ the queue words map to savestatus states, failed staying failed (0.971648ms)
✔ a dropped batch outranks the queue, for the rest of the session (0.148637ms)
✔ the editor status: the save line and the load error are two lines (0.247791ms)
✔ mountSaveStatus loads estilo's module and mounts it on the line (0.734968ms)
✔ a save-status module that will not load says so and refuses to mount (0.609063ms)
✔ dropTarget: before puts it ahead of the item, after behind it, null means first (0.831677ms)
✔ a drop that leaves the order as it is is no move (0.165959ms)
✔ dropOp is the move_slide (0.582344ms)
✔ labelFor is the slide's first heading, else the numbered fallback (4.717406ms)
✔ flush re-points every dirty thumbnail and relabels it (1.416736ms)
✔ destroy takes the item-menu listener off; a second mount leaves one (0.237963ms)
✔ plan says what to add, drop and where each item goes (0.661671ms)
✔ sync moves only the items out of place and keeps focus (0.956981ms)
✔ desktop view: box and size are the block; hidden and order are always the phone map (1.189242ms)
✔ phone view: everything goes to set_phone, carrying the rest of the map (0.319364ms)
✔ the ops it makes are ones the document takes (7.65477ms)
✔ phoneMap reads only the four keys, and only well-typed (0.15632ms)
✔ the stored view is read defensively (0.261807ms)
✔ linkAt reads the link under the cursor and nothing elsewhere (2.366242ms)
✔ setLink marks the selection (2.153987ms)
✔ setLink on a collapsed cursor inside a link replaces that link (0.522993ms)
✔ setLink with nothing selected and no link does nothing (0.169485ms)
✔ removeLink clears the link under the cursor (0.33362ms)
✔ the keymap binds every documented shortcut (0.188841ms)
✔ Mod-b toggles bold through the keymap (0.480374ms)
✔ setLink refuses an address outside the allowlist and writes nothing (0.524325ms)
✔ the state machine runs choose → sign → put → register → op (3.116267ms)
✔ a file the deck will not take never reaches the network (0.634952ms)
✔ alt text is required before the bytes move, unless the image is decorative (0.360922ms)
✔ a step that fails stops the ones after it and reports its own code (0.546096ms)
✔ a failure that is not ours still becomes an UploadError (0.266996ms)
✔ a second pick while one is in flight is refused, not raced (0.384716ms)
✔ an unreadable size is zero rather than a failure (0.254414ms)
✔ a per-call applyOp wins, so an upload lands on the block it was chosen for (0.244545ms)
✔ checkFile takes exactly the four types (0.379165ms)
✔ sha256Hex is the hex digest of the bytes (9.074222ms)
✔ refusal reads this app's JSON error shape, and survives one that is not (0.292915ms)
✔ malformed fonts are null (2.775503ms)
✔ a malformed background is the theme default (1.314135ms)
✔ a malformed box is null (0.610916ms)
✔ the phone layer keeps only its typed fields, order as a whole number (0.484762ms)
✔ assets are typed or skipped (1.419421ms)
✔ every poison update is deterministic bytes that apply to any deck (6.130465ms)
ℹ tests 158
ℹ suites 0
ℹ pass 158
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 288.64493
=== the vectors must match a fresh generation
canvas: 22 ops, 3715 bytes
columns: 23 ops, 3134 bytes
every-block: 36 ops, 3180 bytes
table: 14 ops, 1509 bytes
title-only: 6 ops, 1136 bytes
=== the editor bundle must match a fresh build
wrote internal/slides/static/editor.0463180baf5aab9f.js (376416 bytes)
=== go: vet, gofmt, test, migration check
go vet ./...
go: downloading amadan.net/oficina/estilo.git v0.0.0-20260929070530-5b2ce835e773
go test ./...
?   	amadan.net/oficina/slides/cmd/slides	[no test files]
ok  	amadan.net/oficina/slides/internal/slides	11.675s
ok  	amadan.net/oficina/slides/internal/slides/core	2.696s
ok  	amadan.net/oficina/slides/internal/slides/deck	0.006s
ok  	amadan.net/oficina/slides/internal/slides/fonts	0.016s
?   	amadan.net/oficina/slides/internal/slides/icons	[no test files]
ok  	amadan.net/oficina/slides/internal/slides/layout	0.019s
ok  	amadan.net/oficina/slides/internal/slides/live	0.006s
ok  	amadan.net/oficina/slides/internal/slides/pdfcore	3.921s
ok  	amadan.net/oficina/slides/internal/slides/present	0.008s
ok  	amadan.net/oficina/slides/internal/slides/render	0.017s
ok  	amadan.net/oficina/slides/internal/slides/svg	0.016s
ok  	amadan.net/oficina/slides/internal/slidestest	40.253s
?   	amadan.net/oficina/slides/scripts/writetheme	[no test files]
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration check
rastrillo migration check: models and migrations agree
python3 scripts/credits.py --check
credits: checked
gate: ok
diff --git a/go.mod b/go.mod
index 4def82b..4e5fcf2 100644
--- a/go.mod
+++ b/go.mod
@@ -5,7 +5,7 @@ go 1.25.0
toolchain go1.26.5
require (
- amadan.net/oficina/estilo.git v0.0.0-20260924071126-894afdcb71a9
+ amadan.net/oficina/estilo.git v0.0.0-20260929070530-5b2ce835e773
amadan.net/oficina/home/connect v0.0.0-20260923190447-01166fcfc0a9
amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489
amadan.net/rastrillo/rastrillo v0.26.1-0.20260908075707-29e4491631bd
diff --git a/go.sum b/go.sum
index b214e74..7f17677 100644
--- a/go.sum
+++ b/go.sum
@@ -1,5 +1,7 @@
amadan.net/oficina/estilo.git v0.0.0-20260924071126-894afdcb71a9 h1:vHOkWeJ7mRwLjPbMihf0f7aqz4CLSe0/NseQsHcJUYQ=
amadan.net/oficina/estilo.git v0.0.0-20260924071126-894afdcb71a9/go.mod h1:4u0jNBtIdMLOsJyrScfqoEuYDJF7BBM3qM9YWbzt6aw=
+amadan.net/oficina/estilo.git v0.0.0-20260929070530-5b2ce835e773 h1:9DIAhG3TaGG+LE2+8LvU73ZEhfK+oNn2y2p4kFjAAi0=
+amadan.net/oficina/estilo.git v0.0.0-20260929070530-5b2ce835e773/go.mod h1:4u0jNBtIdMLOsJyrScfqoEuYDJF7BBM3qM9YWbzt6aw=
amadan.net/oficina/home/connect v0.0.0-20260923190447-01166fcfc0a9 h1:K/PaOVdQqRMwifPD6ipiwLeGR5nbFSxm9FxjrDJlZcg=
amadan.net/oficina/home/connect v0.0.0-20260923190447-01166fcfc0a9/go.mod h1:YroavXe43Wietec+po8mtSk4a9Bir2h31Q3iAf4MWxI=
amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489 h1:RPKtyry/71i06o8L+gjAaUyexbmG56kO1YPs601URAM=
diff --git a/internal/slides/app.go b/internal/slides/app.go
index 5fda220..3d618ab 100644
--- a/internal/slides/app.go
+++ b/internal/slides/app.go
@@ -7,6 +7,7 @@ import (
"amadan.net/oficina/estilo.git/brand"
"amadan.net/oficina/estilo.git/chrome"
+ "amadan.net/oficina/estilo.git/theme"
"amadan.net/oficina/home/connect"
"amadan.net/oficina/home/handoff"
"amadan.net/oficina/slides/internal/slides/core"
@@ -230,6 +231,8 @@ func New(d *db.DB, cfg Config) (*http.ServeMux, *app, error) {
// The suite's app icons (the bar's brand, the switcher's tiles),
// served from estilo rather than vendored.
mux.Handle("GET "+brand.Prefix, brand.Handler())
+ // Onest, Calma's typeface, served by estilo under its versioned prefix.
+ mux.Handle("GET "+theme.FontPrefix, theme.FontHandler())
mux.Handle("GET /static/", assets.Handler())
// The drive surface (api.go, spec §7), mounted HERE rather than in
// the chi router above, and this is the one deliberate exception in
diff --git a/internal/slides/credits/notices.json b/internal/slides/credits/notices.json
index ae11c96..c50457d 100644
--- a/internal/slides/credits/notices.json
+++ b/internal/slides/credits/notices.json
@@ -32,6 +32,17 @@
}
]
},
+ {
+ "Name": "Onest",
+ "Version": "Google Fonts v11",
+ "SourceURL": "https://github.com/googlefonts/onest",
+ "Notices": [
+ {
+ "Name": "OFL.txt",
+ "Text": "Copyright 2021 The Onest Project Authors (https://github.com/googlefonts/onest)\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttps://scripts.sil.org/OFL\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded, \nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\"Font Software\" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the\ncopyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n"
+ }
+ ]
+ },
{
"Name": "Rust standard library",
"Version": "1.98.0",
diff --git a/internal/slides/static/brand/apple-touch-icon.png b/internal/slides/static/brand/apple-touch-icon.png
index eed92dd..cd9c8a5 100644
Binary files a/internal/slides/static/brand/apple-touch-icon.png and b/internal/slides/static/brand/apple-touch-icon.png differ
diff --git a/internal/slides/static/brand/brand.css b/internal/slides/static/brand/brand.css
index 2e194c6..27e25ad 100644
--- a/internal/slides/static/brand/brand.css
+++ b/internal/slides/static/brand/brand.css
@@ -1,4 +1,5 @@
-/* Oficina brand artwork. Source: oficina/estilo brand/. */
+/* Oficina brand artwork. Source: oficina/estilo brand/. The icons carry
+ their own squircle and transparent corners, so nothing here rounds them. */
[estilo-brand] {
display: inline-flex;
align-items: center;
@@ -10,7 +11,6 @@
flex-shrink: 0;
inline-size: 1.75rem;
block-size: 1.75rem;
- border-radius: 21%;
vertical-align: middle;
}
[estilo-brand-icon="listing"] {
diff --git a/internal/slides/static/brand/icon-32.png b/internal/slides/static/brand/icon-32.png
index 58f126e..54fffd8 100644
Binary files a/internal/slides/static/brand/icon-32.png and b/internal/slides/static/brand/icon-32.png differ
diff --git a/internal/slides/static/brand/icon.svg b/internal/slides/static/brand/icon.svg
index ea6ead1..0fb0f9e 100644
--- a/internal/slides/static/brand/icon.svg
+++ b/internal/slides/static/brand/icon.svg
@@ -1,3 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024" role="img" aria-label="Slides"><title>Slides</title><rect x="0" y="0" width="1024" height="1024" rx="0" fill="#C45B16"/><g transform="translate(153.6 153.6) scale(29.866666666666664)" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 3h20" />
- <path d="M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3" />
- <path d="m7 21 5-5 5 5" /></g></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="Slides"><title>Slides</title><defs><clipPath id="s"><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z"/></clipPath><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#cb7227"/><stop offset="1" stop-color="#af5b03"/></linearGradient><filter id="h" x="-40%" y="-60%" width="180%" height="220%"><feGaussianBlur stdDeviation="5.5"/></filter></defs><g clip-path="url(#s)"><rect width="100" height="100" fill="url(#g)"/><g filter="url(#h)" opacity=".7"><rect x="4.00" y="39.2" width="0.73" height="16.7" fill="#fec6a5"/><rect x="5.60" y="37.1" width="1.25" height="18.3" fill="#f7b989"/><rect x="6.80" y="30.5" width="1.06" height="24.4" fill="#ffdec9"/><rect x="8.83" y="32.0" width="0.92" height="22.1" fill="#ffc79d"/><rect x="11.05" y="41.9" width="0.89" height="11.0" fill="#f8ab76"/><rect x="13.29" y="29.6" width="1.15" height="22.0" fill="#ffbf99"/><rect x="15.03" y="19.4" width="0.94" height="31.1" fill="#ffd0ad"/><rect x="17.27" y="26.9" width="0.90" height="22.1" fill="#ffd3b5"/><rect x="18.95" y="25.7" width="1.18" height="22.2" fill="#eab18a"/><rect x="20.22" y="16.6" width="0.87" height="30.4" fill="#fbb991"/><rect x="21.63" y="9.9" width="0.62" height="36.2" fill="#f9b178"/><rect x="23.67" y="20.5" width="1.29" height="24.3" fill="#f0bd9b"/><rect x="25.21" y="29.2" width="0.84" height="14.7" fill="#f1b585"/><rect x="26.54" y="26.1" width="1.05" height="17.1" fill="#ffbf91"/><rect x="28.30" y="17.1" width="0.82" height="25.3" fill="#fcc9a0"/><rect x="29.70" y="19.5" width="0.66" height="22.3" fill="#fecbad"/><rect x="31.22" y="28.8" width="0.92" height="12.5" fill="#f6b683"/><rect x="33.20" y="26.3" width="1.01" height="14.4" fill="#ffd1ad"/><rect x="34.55" y="14.8" width="0.89" height="25.8" fill="#ffbe99"/><rect x="35.70" y="8.4" width="1.30" height="32.0" fill="#fac5a7"/><rect x="36.97" y="10.7" width="0.93" height="29.7" fill="#ebb992"/><rect x="38.68" y="19.2" width="1.30" height="21.2" fill="#feb885"/><rect x="40.93" y="12.1" width="0.90" height="28.6" fill="#ffd5b4"/><rect x="42.26" y="5.8" width="1.22" height="35.2" fill="#ffd6bc"/><rect x="43.84" y="11.6" width="1.20" height="29.8" fill="#fedbc5"/><rect x="45.18" y="23.4" width="1.14" height="18.3" fill="#ffd7b9"/><rect x="47.02" y="28.3" width="0.89" height="14.0" fill="#fed1af"/><rect x="48.51" y="20.9" width="1.05" height="21.9" fill="#fecfab"/><rect x="49.83" y="18.2" width="1.07" height="25.0" fill="#ffdbc8"/><rect x="51.43" y="26.3" width="1.19" height="17.4" fill="#fed4b4"/><rect x="52.56" y="32.5" width="1.19" height="11.6" fill="#fed3b6"/><rect x="54.77" y="24.0" width="0.85" height="20.7" fill="#eab58f"/><rect x="56.66" y="11.9" width="1.29" height="33.2" fill="#f1ba9a"/><rect x="58.31" y="16.9" width="0.88" height="28.5" fill="#edb181"/><rect x="59.64" y="23.9" width="1.08" height="21.7" fill="#fdc69b"/><rect x="61.20" y="21.7" width="1.20" height="24.1" fill="#fecfae"/><rect x="62.30" y="14.9" width="0.78" height="30.9" fill="#fecea7"/><rect x="63.94" y="12.2" width="0.84" height="33.6" fill="#ffccac"/><rect x="65.73" y="25.5" width="0.75" height="20.3" fill="#f6bb8b"/><rect x="66.97" y="33.2" width="1.16" height="12.5" fill="#fec092"/><rect x="68.57" y="29.7" width="0.96" height="15.9" fill="#efba9b"/><rect x="69.87" y="22.2" width="0.76" height="23.4" fill="#fec396"/><rect x="71.46" y="22.3" width="1.03" height="23.1" fill="#ecbc95"/><rect x="73.22" y="31.9" width="0.84" height="13.3" fill="#f7ae7e"/><rect x="75.52" y="24.9" width="0.64" height="20.2" fill="#fee1ce"/><rect x="77.03" y="12.7" width="0.91" height="32.3" fill="#efbf9e"/><rect x="78.56" y="12.1" width="0.97" height="32.9" fill="#ffb183"/><rect x="80.59" y="23.3" width="1.30" height="21.8" fill="#fedfca"/><rect x="82.37" y="20.5" width="1.19" height="24.9" fill="#e5b692"/><rect x="83.58" y="13.9" width="0.64" height="31.8" fill="#f9b483"/><rect x="85.45" y="16.7" width="0.72" height="29.5" fill="#ffd2b5"/><rect x="87.10" y="31.1" width="1.17" height="15.6" fill="#febf8e"/><rect x="88.80" y="35.6" width="1.13" height="11.8" fill="#e9b190"/><rect x="90.54" y="26.5" width="1.28" height="21.8" fill="#fdbd8b"/><rect x="92.52" y="26.4" width="0.79" height="23.0" fill="#feceab"/><rect x="94.33" y="36.8" width="1.20" height="13.8" fill="#f7b182"/></g></g><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z" fill="none" stroke="#fff" stroke-opacity=".18" stroke-width="1"/><rect x="18" y="24" width="64" height="42" rx="5" fill="#fff"/><g fill="#924b00"><rect x="30" y="46" width="8" height="12" rx="2"/><rect x="44" y="38" width="8" height="20" rx="2"/><rect x="58" y="32" width="8" height="26" rx="2"/></g><rect x="47.5" y="66" width="5" height="9" fill="#fff"/><rect x="37" y="74" width="26" height="5" rx="2.5" fill="#fff"/></svg>
diff --git a/internal/slides/static/theme.css b/internal/slides/static/theme.css
index 5da4384..8ba18fc 100644
--- a/internal/slides/static/theme.css
+++ b/internal/slides/static/theme.css
@@ -1,169 +1,73 @@
-/* day — rastrillo's default theme: an everyday blue on white and grey.
- Structure lives in tokens.css; this file is colour, type and shape.
- rastrillo new writes it once as static/theme.css.
-
- The look: the ordinary, personable interface. A white page, a plain
- grey text scale, one friendly blue that means "this does something",
- and the conventional green/amber/red for status. Nothing here is
- trying to be memorable — day is the theme an app ships on while it
- works out what it wants to look like, and the one that never gets in
- the way of the content. Semantic status colours are functional and
- never the accent, so a pill can never be mistaken for a link.
+/* estilo — the Oficina suite's theme: Calma.
+
+ Calma replaced rastrillo's day on 2026-09-29, by Paul's decision after
+ six rounds of design directions (AGENTS.md, decisions table, row 8).
+ Until then estilo WAS day, byte for byte; it is now its own theme, and
+ theme_test.go gates it on its own terms: the same token set day
+ declares (so rastrillo's tokens.css finds every name it uses), every
+ contrast pair rastrillo gates, in both schemes — for this file AND for
+ every app's accent block (apps.go) — and a golden per app so no value
+ moves without the diff saying so.
+
+ The look: quiet, even and exact. A cool off-white page with white
+ cards, one grey text scale, soft 12px shapes with a long low shadow.
+ Colour belongs to the apps: every app's hue sits on one ring of equal
+ OKLCH lightness, so no app shouts over another, and the interface
+ tints to the app you are in (apps.go — --rst-accent and friends are
+ re-declared per app). This file's own accent is Oficina's, the suite's,
+ used where no app is in charge (sign-in, the team's home).
+
+ Status tones are day's, unchanged: they are functional, not brand, and
+ a pill must never be mistaken for a link.
── One block, both schemes ───────────────────────────────────────────
- Every token is declared once, as light-dark(<light>, <dark>), under a
- single :root that sets color-scheme: light dark. The browser picks the
- half that matches the resolved scheme, so there is no second copy of
- the palette to keep in sync and no way to author dark half-done. The
- two rules at the bottom are the whole toggle: setting color-scheme on
- :root[data-theme=…] re-resolves every light-dark() in the file at
- once, in both directions, which is why an explicit choice beats the OS
- without restating a single colour.
-
- Tokens with one value in both schemes — the font stack, the radii —
- are written plain, because light-dark(x, x) says nothing twice.
-
- light-dark() is a colour function: it may only stand where a <color>
- is expected. So a shadow token wraps its colour in it and writes the
- geometry once, outside the call — `0 8px 24px light-dark(a, b)`, never
- `light-dark(0 8px 24px a, …)`, which no browser would accept as a
- box-shadow.
-
- ── The shape axis ────────────────────────────────────────────────────
- Radius and shadow are the theme's now, not tokens.css's: a theme that
- can only change colour cannot change how an app feels. day is soft and
- unremarkable — 8px cards, 6px controls, shadows with a wide blur and
- little alpha, the depth of paper resting on paper.
-
- ── WCAG 2.2 AA, measured ─────────────────────────────────────────────
- Normal text needs 4.5:1; large text and UI component boundaries need
- 3:1. Every pair below was computed from these exact hex values, in
- both schemes. If you change a token, recompute its rows.
-
- LIGHT ratio requirement
- --rst-text on --rst-surface 16.91 4.5:1 text
- --rst-text on --rst-bg 16.91 4.5:1 text
- --rst-text on --rst-surface-2 15.77 4.5:1 text
- --rst-text on --rst-accent-soft 15.21 4.5:1 text
- --rst-text-muted on --rst-surface 7.56 4.5:1 text
- --rst-text-muted on --rst-bg 7.56 4.5:1 text
- --rst-text-muted on --rst-surface-2 7.05 4.5:1 text
- --rst-text-muted on --rst-accent-soft 6.80 4.5:1 text
- --rst-text-faint on --rst-surface 5.29 4.5:1 text
- --rst-text-faint on --rst-bg 5.29 4.5:1 text
- --rst-text-faint on --rst-surface-2 4.93 4.5:1 text
- --rst-text-faint on --rst-accent-soft 4.76 4.5:1 text
- --rst-accent on --rst-surface 5.28 4.5:1 text + focus ring
- --rst-accent on --rst-bg 5.28 4.5:1 text + focus ring
- --rst-accent on --rst-surface-2 4.93 4.5:1 text
- --rst-accent on --rst-accent-soft 4.75 4.5:1 text
- --rst-on-accent on --rst-accent 5.28 4.5:1 button label
- --rst-on-accent on --rst-accent-strong 7.18 4.5:1 button label, hover
- --rst-line-strong on --rst-surface 3.63 3:1 control border
- --rst-line-strong on --rst-bg 3.63 3:1 control border
- --rst-line-strong on --rst-surface-2 3.39 3:1 control border
- pill neutral fg on its own tint 9.02 4.5:1 text
- pill positive fg on its own tint 6.49 4.5:1 text
- pill warning fg on its own tint 6.15 4.5:1 text
- pill negative fg on its own tint 5.30 4.5:1 text
- --rst-on-accent on negative fg (fill) 6.47 4.5:1 danger button label
-
- DARK ratio requirement
- --rst-text on --rst-surface 13.74 4.5:1 text
- --rst-text on --rst-bg 15.32 4.5:1 text
- --rst-text on --rst-surface-2 14.63 4.5:1 text
- --rst-text on --rst-accent-soft 13.02 4.5:1 text
- --rst-text-muted on --rst-surface 7.56 4.5:1 text
- --rst-text-muted on --rst-bg 8.43 4.5:1 text
- --rst-text-muted on --rst-surface-2 8.05 4.5:1 text
- --rst-text-muted on --rst-accent-soft 7.16 4.5:1 text
- --rst-text-faint on --rst-surface 6.33 4.5:1 text
- --rst-text-faint on --rst-bg 7.06 4.5:1 text
- --rst-text-faint on --rst-surface-2 6.74 4.5:1 text
- --rst-text-faint on --rst-accent-soft 6.00 4.5:1 text
- --rst-accent on --rst-surface 6.95 4.5:1 text + focus ring
- --rst-accent on --rst-bg 7.75 4.5:1 text + focus ring
- --rst-accent on --rst-surface-2 7.40 4.5:1 text
- --rst-accent on --rst-accent-soft 6.59 4.5:1 text
- --rst-on-accent on --rst-accent 7.86 4.5:1 button label
- --rst-on-accent on --rst-accent-strong 10.29 4.5:1 button label, hover
- --rst-line-strong on --rst-surface 4.26 3:1 control border
- --rst-line-strong on --rst-bg 4.75 3:1 control border
- --rst-line-strong on --rst-surface-2 4.53 3:1 control border
- pill neutral fg on its own tint 8.44 4.5:1 text
- pill positive fg on its own tint 10.18 4.5:1 text
- pill warning fg on its own tint 9.62 4.5:1 text
- pill negative fg on its own tint 7.85 4.5:1 text
- --rst-on-accent on negative fg (fill) 8.99 4.5:1 danger button label
-
- The tightest pair in the set is --rst-accent on --rst-accent-soft in
- light, at 4.75:1 against a 4.5:1 floor. Put a token on a surface not
- listed above and you are guessing; recompute first.
-
- --rst-line is a hairline divider between rows, not a control border or
- a meaningful graphic, so 1.4.11's 3:1 does not apply to it. Control
- borders use --rst-line-strong, which does clear 3:1.
-
- --rst-header-rule is not in the table either, and deliberately so
- (design doc §6-v2.2): the page header's rule is decoration, not
- structure — the heading's size, weight and spacing carry the
- structure — so no contrast floor applies to it and it is not in
- ui/contrast_test.go's pair table. Do not argue it up to 3:1.
-
- Pagination chips are the one deliberate exception: they are bordered
- with --rst-line rather than --rst-line-strong, because a page strip
- ringed in hard outlines shouts louder than the list it belongs to.
- 1.4.11 is satisfied without that border — each chip's meaning is
- carried by its text label at 4.5:1 or better, and the current page
- adds a filled background, a heavier weight and aria-current on top.
-
- --rst-shadow-pop, --rst-shadow-knob, --rst-shadow-lift and
- --rst-overlay are not in the table: they paint a translucent shadow or
- scrim over whatever sits underneath, not text over a fixed
- background, so a contrast ratio does not apply. The scrim deepens in
- dark, matching --rst-shadow-pop's own jump: black reads lighter
- against a dark backdrop, so the overlay needs more alpha to still
- read as a dimming layer.
+ As day: every colour is light-dark(<light>, <dark>) under one :root
+ with color-scheme: light dark, and the two [data-theme] rules at the
+ bottom are the whole toggle.
+
+ ── WCAG 2.2 AA ───────────────────────────────────────────────────────
+ Every pair rastrillo's own gate checks is checked by
+ TestContrastMeetsWCAG, for this file and each app's accent, light and
+ dark, through rastrillo's ui.ContrastRatio. The tightest, at the time
+ of writing: faint text on an accent-tinted surface, 4.63:1 (Files,
+ dark); a control border on the sunk surface, 3.2:1 (light).
──────────────────────────────────────────────────────────────────── */
:root {
color-scheme: light dark;
- /* Type: the family only. Sizes and spacing are structural and stay in
- tokens.css. */
- --rst-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
+ /* Type: the family only. Sizes and spacing stay in tokens.css. Onest
+ where it is served (fonts.go), the system face where it is not. */
+ --rst-font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
- /* Shape: soft, ordinary, unremarkable. */
- --rst-radius: 8px;
- --rst-radius-sm: 6px;
+ /* Shape: soft and exact. */
+ --rst-radius: 12px;
+ --rst-radius-sm: 8px;
--rst-radius-pill: 999px;
- /* Surfaces and lines */
- --rst-bg: light-dark(#ffffff, #111418);
- --rst-surface: light-dark(#ffffff, #1a1f26);
- --rst-surface-2: light-dark(#f6f7f8, #15191f);
- --rst-line: light-dark(#e5e7eb, #2a3038);
- --rst-line-strong: light-dark(#7f8792, #79828e);
-
- /* The page header's rule, derived rather than authored: the accent
- folded into the line at 18%, so a theme that changes its accent
- gets a matching rule with no second value to keep in step. day's
- is barely there — a hairline you would call grey until you put it
- beside plain's. Decorative: it carries no contrast floor. */
+ /* Surfaces and lines: a cool off-white page, white cards, a sunk grey. */
+ --rst-bg: light-dark(#f5f6f8, #15171c);
+ --rst-surface: light-dark(#ffffff, #1c1f26);
+ --rst-surface-2: light-dark(#eceef2, #23262e);
+ --rst-line: light-dark(#e3e6eb, #2d313a);
+ --rst-line-strong: light-dark(#7f8591, #7a818e);
+
+ /* The page header's rule: the accent folded into the line, as day. */
--rst-header-rule: color-mix(in oklab, var(--rst-accent) 18%, var(--rst-line));
/* Text */
- --rst-text: light-dark(#1a1d21, #e8eaed);
- --rst-text-muted: light-dark(#4b5563, #a8b0ba);
- --rst-text-faint: light-dark(#656c78, #98a1ac);
-
- /* Accent */
- --rst-accent: light-dark(#2464e0, #7ba7ff);
- --rst-accent-strong: light-dark(#1a4fc0, #a3c0ff);
- --rst-accent-soft: light-dark(#eef3fe, #17233a);
- --rst-on-accent: light-dark(#ffffff, #0b1220);
-
- /* Status tones */
+ --rst-text: light-dark(#262a33, #eceef2);
+ --rst-text-muted: light-dark(#565c69, #b4bac6);
+ --rst-text-faint: light-dark(#626875, #8f96a3);
+
+ /* Accent: Oficina's, hue 262 on the ring (apps.go). Each app
+ re-declares these four. */
+ --rst-accent: light-dark(#2e5bb4, #87b1fd);
+ --rst-accent-strong: light-dark(#214a9b, #afcbfe);
+ --rst-accent-soft: light-dark(#e9f1ff, #1f2b42);
+ --rst-on-accent: light-dark(#ffffff, #111418);
+
+ /* Status tones: day's, unchanged. */
--rst-tone-neutral-fg: light-dark(#374151, #c3c9d1);
--rst-tone-neutral-bg: light-dark(#eef0f2, #262c34);
--rst-tone-positive-fg: light-dark(#166534, #6ee7a8);
@@ -173,11 +77,11 @@
--rst-tone-negative-fg: light-dark(#b91c1c, #f79aa0);
--rst-tone-negative-bg: light-dark(#fee2e2, #331819);
- /* Depth */
- --rst-shadow-pop: 0 8px 24px light-dark(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
- --rst-shadow-knob: 0 1px 2px rgba(0, 0, 0, 0.3);
- --rst-shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.08);
- --rst-overlay: light-dark(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
+ /* Depth: a long, low, cool shadow; paper lifted, not stacked. */
+ --rst-shadow-pop: 0 18px 44px -14px light-dark(rgba(20, 24, 33, 0.28), rgba(0, 0, 0, 0.6));
+ --rst-shadow-knob: 0 1px 2px rgba(20, 24, 33, 0.3);
+ --rst-shadow-lift: 0 1px 1px rgba(20, 24, 33, 0.04), 0 14px 36px -14px light-dark(rgba(20, 24, 33, 0.22), rgba(0, 0, 0, 0.55));
+ --rst-overlay: light-dark(rgba(20, 24, 33, 0.45), rgba(0, 0, 0, 0.6));
}
/* The whole toggle. Setting color-scheme re-resolves every light-dark()
@@ -185,3 +89,11 @@
restating a colour. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
+
+/* The accent for Slides: hue 56 on Calma's ring (estilo theme/apps.go). */
+:root {
+ --rst-accent: light-dark(#924b00, #eb9c62);
+ --rst-accent-strong: light-dark(#793e02, #f9bc91);
+ --rst-accent-soft: light-dark(#feece0, #3c2514);
+ --rst-on-accent: light-dark(#ffffff, #111418);
+}
diff --git a/internal/slides/templates/layout.html b/internal/slides/templates/layout.html
index 2b04a4f..384dd07 100644
--- a/internal/slides/templates/layout.html
+++ b/internal/slides/templates/layout.html
@@ -36,6 +36,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="{{asset "static/brand/icon-32.png"}}">
<link rel="icon" type="image/svg+xml" href="{{asset "static/brand/icon.svg"}}">
<link rel="apple-touch-icon" sizes="180x180" href="{{asset "static/brand/apple-touch-icon.png"}}">
+<link rel="stylesheet" href="/static/estilo/fonts/v1/fonts.css">
<link rel="stylesheet" href="{{asset "static/tokens.css"}}">
<link rel="stylesheet" href="{{asset "static/theme.css"}}">
<link rel="stylesheet" href="{{asset "static/brand/brand.css"}}">
diff --git a/internal/slidestest/vendored_test.go b/internal/slidestest/vendored_test.go
index 2fdf046..a591eea 100644
--- a/internal/slidestest/vendored_test.go
+++ b/internal/slidestest/vendored_test.go
@@ -24,7 +24,27 @@ const vendoredTheme = "day"
// record that the edit was on purpose, so the next reader (and the next
// upgrade) can tell it from drift.
var vendoredIsMine = map[string]bool{
- // "tokens.css": true,
+ // Calma with Slides' accent, from estilo (estilo AGENTS.md, decisions
+ // table, row 8) rather than rastrillo's day. Pinned to estilo instead,
+ // by TestThemeIsEstilosForSlides below.
+ "theme.css": true,
+}
+
+// TestThemeIsEstilosForSlides pins static/theme.css to the estilo this app
+// is built against. After an estilo upgrade, re-write it with
+// `go run ./scripts/writetheme` — never by hand.
+func TestThemeIsEstilosForSlides(t *testing.T) {
+ want, ok := theme.ForApp("slides")
+ if !ok {
+ t.Fatal("estilo's theme ring has no slides")
+ }
+ got, err := os.ReadFile(filepath.Join("..", "slides", "static", "theme.css"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if !bytes.Equal(got, want) {
+ t.Error("static/theme.css differs from estilo's theme for slides; run go run ./scripts/writetheme")
+ }
}
// The scaffold delivered these files once; they are app-owned from
diff --git a/scripts/__pycache__/credits.cpython-314.pyc b/scripts/__pycache__/credits.cpython-314.pyc
new file mode 100644
index 0000000..b3260ae
Binary files /dev/null and b/scripts/__pycache__/credits.cpython-314.pyc differ
diff --git a/scripts/credits.py b/scripts/credits.py
index f236a6f..ad816ae 100755
--- a/scripts/credits.py
+++ b/scripts/credits.py
@@ -51,7 +51,7 @@ def go_inventory():
tool = str(Path(temp) / 'notices')
host = json.loads(run(['go', 'env', '-json', 'GOHOSTOS', 'GOHOSTARCH']))
run(['go', 'build', '-o', tool, 'amadan.net/oficina/estilo.git/cmd/oficina-notices'], env=ENV | {'GOOS': host['GOHOSTOS'], 'GOARCH': host['GOHOSTARCH'], 'CGO_ENABLED': '0'})
- return json.loads(run([tool, '-package', './cmd/slides', '-lucide', '-exclude', EXCLUDE], env=ENV | {'GOOS': 'linux', 'GOARCH': 'arm64', 'CGO_ENABLED': '0', 'GOWORK': 'off'}))
+ return json.loads(run([tool, '-package', './cmd/slides', '-lucide', '-onest', '-exclude', EXCLUDE], env=ENV | {'GOOS': 'linux', 'GOARCH': 'arm64', 'CGO_ENABLED': '0', 'GOWORK': 'off'}))
class NoticeText(HTMLParser):
diff --git a/scripts/writetheme/main.go b/scripts/writetheme/main.go
new file mode 100644
index 0000000..489e108
--- /dev/null
+++ b/scripts/writetheme/main.go
@@ -0,0 +1,21 @@
+// Command writetheme re-writes internal/slides/static/theme.css from the
+// estilo this module pins: Calma, with Slides' accent. Run it from the
+// repository root after upgrading estilo; TestThemeIsEstilosForSlides
+// fails until you do.
+package main
+
+import (
+ "os"
+
+ "amadan.net/oficina/estilo.git/theme"
+)
+
+func main() {
+ css, ok := theme.ForApp("slides")
+ if !ok {
+ panic("estilo's theme ring has no slides")
+ }
+ if err := os.WriteFile("internal/slides/static/theme.css", css, 0o644); err != nil {
+ panic(err)
+ }
+}