@presentation-md/export 1.10.1 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/layouts.js CHANGED
@@ -1719,14 +1719,51 @@ function paintSlideChrome(slide, ctx, data) {
1719
1719
  orange: "FF4D00",
1720
1720
  violet: "7A00FF",
1721
1721
  };
1722
- // Secondary blob hue per tone (HTML soft-blob / mix-blend stand-in).
1722
+ // Secondary + tertiary blob hues (HTML soft-blob / mix-blend stand-ins).
1723
1723
  const secondaryBlob = {
1724
1724
  lime: "FF00CC",
1725
- magenta: "00E5FF",
1726
- cyan: "C8FF00",
1725
+ magenta: "FF00CC",
1726
+ cyan: "00AAFF",
1727
1727
  orange: "7A00FF",
1728
1728
  violet: "FF4D00",
1729
1729
  };
1730
+ const tertiaryBlob = {
1731
+ lime: "00E5FF",
1732
+ magenta: "5500FF",
1733
+ cyan: "0055CC",
1734
+ orange: "FFEA00",
1735
+ violet: "CC00FF",
1736
+ };
1737
+ // Hard frame + offset shadow (wrapped-block border / 12px box-shadow).
1738
+ const frameInk = isHero || (tone && hueMap[tone]) ? "0A0A0A" : ctx.colors.accent;
1739
+ const shadow = 0.14;
1740
+ slide.addShape(ctx.shapeRoundRect, {
1741
+ x: ctx.width - shadow,
1742
+ y: shadow,
1743
+ w: shadow,
1744
+ h: ctx.height - shadow,
1745
+ fill: { color: frameInk },
1746
+ line: { color: frameInk, width: 0 },
1747
+ rectRadius: 0,
1748
+ });
1749
+ slide.addShape(ctx.shapeRoundRect, {
1750
+ x: shadow,
1751
+ y: ctx.height - shadow,
1752
+ w: ctx.width - shadow,
1753
+ h: shadow,
1754
+ fill: { color: frameInk },
1755
+ line: { color: frameInk, width: 0 },
1756
+ rectRadius: 0,
1757
+ });
1758
+ slide.addShape(ctx.shapeRoundRect, {
1759
+ x: 0.08,
1760
+ y: 0.08,
1761
+ w: ctx.width - 0.08 - shadow,
1762
+ h: ctx.height - 0.08 - shadow,
1763
+ fill: { color: ctx.colors.bg, transparency: 100 },
1764
+ line: { color: frameInk, width: 3.25 },
1765
+ rectRadius: 0,
1766
+ });
1730
1767
  if (isHero) {
1731
1768
  // Lime-field cover/closing + cyan/yellow soft blobs (wrapped-block ::before/::after).
1732
1769
  slide.background = { color: "C8FF00" };
@@ -1735,7 +1772,7 @@ function paintSlideChrome(slide, ctx, data) {
1735
1772
  y: -ctx.height * 0.18,
1736
1773
  w: ctx.width * 0.52,
1737
1774
  h: ctx.height * 0.58,
1738
- fill: { color: "00E5FF", transparency: 55 },
1775
+ fill: { color: "00E5FF", transparency: 50 },
1739
1776
  line: { color: "00E5FF", width: 0 },
1740
1777
  });
1741
1778
  slide.addShape(ctx.shapeOval, {
@@ -1743,39 +1780,57 @@ function paintSlideChrome(slide, ctx, data) {
1743
1780
  y: ctx.height * 0.52,
1744
1781
  w: ctx.width * 0.42,
1745
1782
  h: ctx.height * 0.55,
1746
- fill: { color: "FFEA00", transparency: 40 },
1783
+ fill: { color: "FFEA00", transparency: 35 },
1747
1784
  line: { color: "FFEA00", width: 0 },
1748
1785
  });
1786
+ // Mid-field accent blot (extra soft-blob density).
1787
+ slide.addShape(ctx.shapeOval, {
1788
+ x: ctx.width * 0.28,
1789
+ y: ctx.height * 0.08,
1790
+ w: ctx.width * 0.22,
1791
+ h: ctx.height * 0.28,
1792
+ fill: { color: "FFFFFF", transparency: 72 },
1793
+ line: { color: "FFFFFF", width: 0 },
1794
+ });
1749
1795
  return;
1750
1796
  }
1751
1797
  if (tone && hueMap[tone]) {
1752
1798
  slide.background = { color: hueMap[tone] };
1753
1799
  const blob = secondaryBlob[tone] ?? "FFFFFF";
1800
+ const tert = tertiaryBlob[tone] ?? "0A0A0A";
1754
1801
  slide.addShape(ctx.shapeOval, {
1755
- x: ctx.width * 0.58,
1756
- y: -ctx.height * 0.2,
1757
- w: ctx.width * 0.5,
1758
- h: ctx.height * 0.55,
1759
- fill: { color: blob, transparency: 62 },
1802
+ x: ctx.width * 0.52,
1803
+ y: -ctx.height * 0.22,
1804
+ w: ctx.width * 0.55,
1805
+ h: ctx.height * 0.58,
1806
+ fill: { color: blob, transparency: 55 },
1760
1807
  line: { color: blob, width: 0 },
1761
1808
  });
1762
1809
  slide.addShape(ctx.shapeOval, {
1763
- x: -ctx.width * 0.08,
1764
- y: ctx.height * 0.58,
1765
- w: ctx.width * 0.36,
1766
- h: ctx.height * 0.48,
1767
- fill: { color: "0A0A0A", transparency: 70 },
1768
- line: { color: "0A0A0A", width: 0 },
1810
+ x: tone === "cyan" || tone === "orange" ? -ctx.width * 0.05 : ctx.width * 0.58,
1811
+ y: ctx.height * 0.55,
1812
+ w: ctx.width * 0.4,
1813
+ h: ctx.height * 0.5,
1814
+ fill: { color: tert, transparency: 58 },
1815
+ line: { color: tert, width: 0 },
1769
1816
  });
1770
1817
  return;
1771
1818
  }
1772
- // Body: lime wash + magenta blot + cyan secondary (multi-hue energy).
1819
+ // Body: soft accent wash (::before) + hard corner square (::after) + cyan/magenta energy.
1820
+ slide.addShape(ctx.shapeOval, {
1821
+ x: ctx.width * 0.55,
1822
+ y: -ctx.height * 0.2,
1823
+ w: ctx.width * 0.55,
1824
+ h: ctx.height * 0.55,
1825
+ fill: { color: ctx.colors.accent, transparency: 82 },
1826
+ line: { color: ctx.colors.accent, width: 0 },
1827
+ });
1773
1828
  slide.addShape(ctx.shapeOval, {
1774
1829
  x: ctx.width - 2.2,
1775
1830
  y: -0.4,
1776
1831
  w: 2.8,
1777
1832
  h: 2.8,
1778
- fill: { color: ctx.colors.accent2, transparency: 35 },
1833
+ fill: { color: ctx.colors.accent2, transparency: 38 },
1779
1834
  line: { color: ctx.colors.accent2, width: 0 },
1780
1835
  });
1781
1836
  slide.addShape(ctx.shapeOval, {
@@ -1786,23 +1841,65 @@ function paintSlideChrome(slide, ctx, data) {
1786
1841
  fill: { color: "00E5FF", transparency: 55 },
1787
1842
  line: { color: "00E5FF", width: 0 },
1788
1843
  });
1789
- slide.addShape(ctx.shapeOval, {
1790
- x: ctx.width * 0.35,
1791
- y: ctx.height * 0.7,
1792
- w: 1.6,
1793
- h: 1.6,
1794
- fill: { color: ctx.colors.accent, transparency: 72 },
1844
+ // Hard corner accent (wrapped-block ::after square).
1845
+ slide.addShape(ctx.shapeRoundRect, {
1846
+ x: ctx.width - 1.35,
1847
+ y: -0.15,
1848
+ w: 1.25,
1849
+ h: 1.25,
1850
+ fill: { color: ctx.colors.accent },
1795
1851
  line: { color: ctx.colors.accent, width: 0 },
1852
+ rectRadius: 0,
1796
1853
  });
1797
1854
  }
1798
1855
  if (theme === "risograph-zine") {
1799
- // Overprint multiply stand-ins — translucent coral + blue washes (mix-blend ≈ layered ovals).
1856
+ // Hard kraft frame + coral offset shadow (riso-print border/box-shadow).
1857
+ const shadow = 0.1;
1858
+ slide.addShape(ctx.shapeRoundRect, {
1859
+ x: ctx.width - shadow,
1860
+ y: shadow,
1861
+ w: shadow,
1862
+ h: ctx.height - shadow,
1863
+ fill: { color: ctx.colors.accent, transparency: 40 },
1864
+ line: { color: ctx.colors.accent, width: 0 },
1865
+ rectRadius: 0,
1866
+ });
1867
+ slide.addShape(ctx.shapeRoundRect, {
1868
+ x: shadow,
1869
+ y: ctx.height - shadow,
1870
+ w: ctx.width - shadow,
1871
+ h: shadow,
1872
+ fill: { color: ctx.colors.accent, transparency: 40 },
1873
+ line: { color: ctx.colors.accent, width: 0 },
1874
+ rectRadius: 0,
1875
+ });
1876
+ slide.addShape(ctx.shapeRoundRect, {
1877
+ x: 0.08,
1878
+ y: 0.08,
1879
+ w: ctx.width - 0.08 - shadow,
1880
+ h: ctx.height - 0.08 - shadow,
1881
+ fill: { color: ctx.colors.bg, transparency: 100 },
1882
+ line: { color: ctx.colors.text, width: 2 },
1883
+ rectRadius: 0,
1884
+ });
1885
+ // Overprint multiply stand-ins — layered coral + blue washes (mix-blend ≈ ovals).
1886
+ const coralT = isHero ? 70 : 76;
1887
+ const blueT = isHero ? 68 : 74;
1800
1888
  slide.addShape(ctx.shapeOval, {
1801
1889
  x: ctx.width * 0.48,
1802
1890
  y: -ctx.height * 0.12,
1803
1891
  w: ctx.width * 0.58,
1804
1892
  h: ctx.height * 0.58,
1805
- fill: { color: ctx.colors.accent, transparency: 78 },
1893
+ fill: { color: ctx.colors.accent, transparency: coralT },
1894
+ line: { color: ctx.colors.accent, width: 0 },
1895
+ });
1896
+ // Misregistration duplicate — slightly offset coral plate.
1897
+ slide.addShape(ctx.shapeOval, {
1898
+ x: ctx.width * 0.52,
1899
+ y: -ctx.height * 0.08,
1900
+ w: ctx.width * 0.52,
1901
+ h: ctx.height * 0.52,
1902
+ fill: { color: ctx.colors.accent, transparency: isHero ? 78 : 85 },
1806
1903
  line: { color: ctx.colors.accent, width: 0 },
1807
1904
  });
1808
1905
  slide.addShape(ctx.shapeOval, {
@@ -1810,29 +1907,66 @@ function paintSlideChrome(slide, ctx, data) {
1810
1907
  y: ctx.height * 0.48,
1811
1908
  w: ctx.width * 0.48,
1812
1909
  h: ctx.height * 0.55,
1813
- fill: { color: ctx.colors.accent2, transparency: 76 },
1910
+ fill: { color: ctx.colors.accent2, transparency: blueT },
1911
+ line: { color: ctx.colors.accent2, width: 0 },
1912
+ });
1913
+ // Blue misregistration offset.
1914
+ slide.addShape(ctx.shapeOval, {
1915
+ x: -ctx.width * 0.12,
1916
+ y: ctx.height * 0.52,
1917
+ w: ctx.width * 0.44,
1918
+ h: ctx.height * 0.5,
1919
+ fill: { color: ctx.colors.accent2, transparency: isHero ? 80 : 88 },
1814
1920
  line: { color: ctx.colors.accent2, width: 0 },
1815
1921
  });
1816
1922
  if (isHero) {
1817
- // Extra misregistration blot on cover/closing.
1923
+ // Extra misregistration blot + ink speckles on cover/closing.
1818
1924
  slide.addShape(ctx.shapeOval, {
1819
1925
  x: ctx.width * 0.72,
1820
1926
  y: ctx.height * 0.62,
1821
1927
  w: 1.8,
1822
1928
  h: 1.8,
1823
- fill: { color: ctx.colors.accent, transparency: 70 },
1929
+ fill: { color: ctx.colors.accent, transparency: 68 },
1824
1930
  line: { color: ctx.colors.accent, width: 0 },
1825
1931
  });
1932
+ const speckles = [
1933
+ { x: 0.35, y: 0.45 },
1934
+ { x: 1.1, y: 1.2 },
1935
+ { x: ctx.width * 0.4, y: 0.9 },
1936
+ { x: ctx.width * 0.65, y: ctx.height * 0.35 },
1937
+ { x: ctx.width * 0.85, y: ctx.height * 0.55 },
1938
+ { x: ctx.width * 0.3, y: ctx.height * 0.7 },
1939
+ ];
1940
+ for (const s of speckles) {
1941
+ slide.addShape(ctx.shapeOval, {
1942
+ x: s.x,
1943
+ y: s.y,
1944
+ w: 0.08,
1945
+ h: 0.08,
1946
+ fill: { color: ctx.colors.text, transparency: 55 },
1947
+ line: { color: ctx.colors.text, width: 0 },
1948
+ });
1949
+ }
1826
1950
  }
1827
1951
  }
1828
1952
  if (theme === "candy-pop") {
1829
- // Soft pink + blue blobs (candy-blob radial washes).
1953
+ // Hard candy frame (candy-blob 3px border).
1954
+ slide.addShape(ctx.shapeRoundRect, {
1955
+ x: 0.1,
1956
+ y: 0.1,
1957
+ w: ctx.width - 0.2,
1958
+ h: ctx.height - 0.2,
1959
+ fill: { color: ctx.colors.bg, transparency: 100 },
1960
+ line: { color: ctx.colors.text, width: 2.75 },
1961
+ rectRadius: 0.08,
1962
+ });
1963
+ // Soft pink + blue radial washes.
1830
1964
  slide.addShape(ctx.shapeOval, {
1831
1965
  x: -ctx.width * 0.08,
1832
1966
  y: -ctx.height * 0.15,
1833
1967
  w: ctx.width * 0.48,
1834
1968
  h: ctx.height * 0.55,
1835
- fill: { color: ctx.colors.accent, transparency: 72 },
1969
+ fill: { color: ctx.colors.accent, transparency: 70 },
1836
1970
  line: { color: ctx.colors.accent, width: 0 },
1837
1971
  });
1838
1972
  slide.addShape(ctx.shapeOval, {
@@ -1840,9 +1974,39 @@ function paintSlideChrome(slide, ctx, data) {
1840
1974
  y: ctx.height * 0.45,
1841
1975
  w: ctx.width * 0.5,
1842
1976
  h: ctx.height * 0.55,
1843
- fill: { color: ctx.colors.accent2, transparency: 68 },
1977
+ fill: { color: ctx.colors.accent2, transparency: 65 },
1844
1978
  line: { color: ctx.colors.accent2, width: 0 },
1845
1979
  });
1980
+ // Outlined blue ornament circle (candy-blob ::after).
1981
+ slide.addShape(ctx.shapeOval, {
1982
+ x: ctx.width - 2.35,
1983
+ y: 0.35,
1984
+ w: 1.7,
1985
+ h: 1.7,
1986
+ fill: { color: ctx.colors.accent2, transparency: 45 },
1987
+ line: { color: ctx.colors.text, width: 2.5 },
1988
+ });
1989
+ // Butter accent blot.
1990
+ slide.addShape(ctx.shapeOval, {
1991
+ x: ctx.width * 0.42,
1992
+ y: ctx.height * 0.62,
1993
+ w: 1.1,
1994
+ h: 1.1,
1995
+ fill: { color: "FFE566", transparency: 55 },
1996
+ line: { color: "FFE566", width: 0 },
1997
+ });
1998
+ if (!isHero) {
1999
+ // Pink drop-shadow stand-in (0 18px box-shadow) on body slides.
2000
+ slide.addShape(ctx.shapeRoundRect, {
2001
+ x: 0.15,
2002
+ y: ctx.height - 0.22,
2003
+ w: ctx.width - 0.3,
2004
+ h: 0.14,
2005
+ fill: { color: ctx.colors.accent, transparency: 55 },
2006
+ line: { color: ctx.colors.accent, width: 0 },
2007
+ rectRadius: 0,
2008
+ });
2009
+ }
1846
2010
  if (isHero) {
1847
2011
  // Yellow ticker-strip stand-in (gallery marquee bar + static ticker text).
1848
2012
  const ticker = candyMarqueeText({
@@ -1856,7 +2020,7 @@ function paintSlideChrome(slide, ctx, data) {
1856
2020
  w: ctx.width,
1857
2021
  h: 0.55,
1858
2022
  fill: { color: "FFE566" },
1859
- line: { color: ctx.colors.text, width: 1.5 },
2023
+ line: { color: ctx.colors.text, width: 2 },
1860
2024
  rectRadius: 0,
1861
2025
  });
1862
2026
  slide.addText(ticker, {
@@ -2828,6 +2992,865 @@ function paintSlideChrome(slide, ctx, data) {
2828
2992
  });
2829
2993
  }
2830
2994
  }
2995
+ if (theme === "coral") {
2996
+ // Hatch frame + coral left wash (coral-hatch).
2997
+ slide.addShape(ctx.shapeRoundRect, {
2998
+ x: 0.1,
2999
+ y: 0.1,
3000
+ w: ctx.width - 0.2,
3001
+ h: ctx.height - 0.2,
3002
+ fill: { color: ctx.colors.bg, transparency: 100 },
3003
+ line: { color: ctx.colors.text, width: 2.5 },
3004
+ rectRadius: 0,
3005
+ });
3006
+ slide.addShape(ctx.shapeRoundRect, {
3007
+ x: 0,
3008
+ y: 0,
3009
+ w: ctx.width * 0.42,
3010
+ h: ctx.height,
3011
+ fill: { color: ctx.colors.accent, transparency: 82 },
3012
+ line: { color: ctx.colors.accent, width: 0 },
3013
+ rectRadius: 0,
3014
+ });
3015
+ // Diagonal hatch stand-ins (thin ink stripes).
3016
+ for (let i = 0; i < 14; i++) {
3017
+ slide.addShape(ctx.shapeRoundRect, {
3018
+ x: -0.4 + i * 1.05,
3019
+ y: 0,
3020
+ w: 0.05,
3021
+ h: ctx.height,
3022
+ fill: { color: ctx.colors.text, transparency: 88 },
3023
+ line: { color: ctx.colors.text, width: 0 },
3024
+ rectRadius: 0,
3025
+ });
3026
+ }
3027
+ }
3028
+ if (theme === "peoples-platform") {
3029
+ // Cobalt top bar + amber footer stub + hard frame (peoples-platform-poster).
3030
+ slide.addShape(ctx.shapeRoundRect, {
3031
+ x: 0.08,
3032
+ y: 0.08,
3033
+ w: ctx.width - 0.16,
3034
+ h: ctx.height - 0.16,
3035
+ fill: { color: ctx.colors.bg, transparency: 100 },
3036
+ line: { color: ctx.colors.text, width: 3.5 },
3037
+ rectRadius: 0,
3038
+ });
3039
+ slide.addShape(ctx.shapeRoundRect, {
3040
+ x: 0,
3041
+ y: 0,
3042
+ w: ctx.width,
3043
+ h: 0.18,
3044
+ fill: { color: ctx.colors.accent },
3045
+ line: { color: ctx.colors.accent, width: 0 },
3046
+ rectRadius: 0,
3047
+ });
3048
+ slide.addShape(ctx.shapeRoundRect, {
3049
+ x: ctx.width * 0.72,
3050
+ y: ctx.height - 0.16,
3051
+ w: ctx.width * 0.28,
3052
+ h: 0.16,
3053
+ fill: { color: ctx.colors.accent2 },
3054
+ line: { color: ctx.colors.accent2, width: 0 },
3055
+ rectRadius: 0,
3056
+ });
3057
+ }
3058
+ if (theme === "raw-grid") {
3059
+ // Blush/sage bands + cross rules + hard frame (raw-grid-brutal).
3060
+ slide.addShape(ctx.shapeRoundRect, {
3061
+ x: 0,
3062
+ y: 0,
3063
+ w: ctx.width,
3064
+ h: ctx.height * 0.28,
3065
+ fill: { color: "F2D4CF" },
3066
+ line: { color: "F2D4CF", width: 0 },
3067
+ rectRadius: 0,
3068
+ });
3069
+ slide.addShape(ctx.shapeRoundRect, {
3070
+ x: 0,
3071
+ y: 0,
3072
+ w: ctx.width * 0.22,
3073
+ h: ctx.height,
3074
+ fill: { color: "E5EDD6" },
3075
+ line: { color: "E5EDD6", width: 0 },
3076
+ rectRadius: 0,
3077
+ });
3078
+ // Re-cover the intersection so blush stays on top-left square.
3079
+ slide.addShape(ctx.shapeRoundRect, {
3080
+ x: 0,
3081
+ y: 0,
3082
+ w: ctx.width * 0.22,
3083
+ h: ctx.height * 0.28,
3084
+ fill: { color: "F2D4CF" },
3085
+ line: { color: "F2D4CF", width: 0 },
3086
+ rectRadius: 0,
3087
+ });
3088
+ slide.addShape(ctx.shapeRoundRect, {
3089
+ x: 0,
3090
+ y: ctx.height * 0.28,
3091
+ w: ctx.width,
3092
+ h: 0.035,
3093
+ fill: { color: "0A0A0A" },
3094
+ line: { color: "0A0A0A", width: 0 },
3095
+ rectRadius: 0,
3096
+ });
3097
+ slide.addShape(ctx.shapeRoundRect, {
3098
+ x: ctx.width * 0.22,
3099
+ y: 0,
3100
+ w: 0.035,
3101
+ h: ctx.height,
3102
+ fill: { color: "0A0A0A" },
3103
+ line: { color: "0A0A0A", width: 0 },
3104
+ rectRadius: 0,
3105
+ });
3106
+ slide.addShape(ctx.shapeRoundRect, {
3107
+ x: 0.08,
3108
+ y: 0.08,
3109
+ w: ctx.width - 0.16,
3110
+ h: ctx.height - 0.16,
3111
+ fill: { color: ctx.colors.bg, transparency: 100 },
3112
+ line: { color: "0A0A0A", width: 2.5 },
3113
+ rectRadius: 0,
3114
+ });
3115
+ }
3116
+ if (theme === "retro-zine" && isHero) {
3117
+ // Offset green plate + cream card (retro-zine-riso).
3118
+ slide.addShape(ctx.shapeRoundRect, {
3119
+ x: ctx.width * 0.68,
3120
+ y: ctx.height * 0.18,
3121
+ w: ctx.width * 0.26,
3122
+ h: ctx.height * 0.34,
3123
+ fill: { color: ctx.colors.accent },
3124
+ line: { color: ctx.colors.accent, width: 0 },
3125
+ rectRadius: 0,
3126
+ });
3127
+ slide.addShape(ctx.shapeRoundRect, {
3128
+ x: ctx.width * 0.66,
3129
+ y: ctx.height * 0.16,
3130
+ w: ctx.width * 0.26,
3131
+ h: ctx.height * 0.34,
3132
+ fill: { color: ctx.colors.cardBg },
3133
+ line: { color: ctx.colors.text, width: 1.5 },
3134
+ rectRadius: 0,
3135
+ });
3136
+ slide.addShape(ctx.shapeRoundRect, {
3137
+ x: 0.1,
3138
+ y: 0.1,
3139
+ w: ctx.width - 0.2,
3140
+ h: ctx.height - 0.2,
3141
+ fill: { color: ctx.colors.bg, transparency: 100 },
3142
+ line: { color: ctx.colors.text, width: 2.5 },
3143
+ rectRadius: 0,
3144
+ });
3145
+ }
3146
+ if (theme === "sakura-chroma") {
3147
+ // Hard frame always; chroma strip + stamp orbs on heroes (sakura-chroma-cassette).
3148
+ slide.addShape(ctx.shapeRoundRect, {
3149
+ x: 0.08,
3150
+ y: 0.08,
3151
+ w: ctx.width - 0.16,
3152
+ h: ctx.height - 0.16,
3153
+ fill: { color: ctx.colors.bg, transparency: 100 },
3154
+ line: { color: ctx.colors.text, width: 2 },
3155
+ rectRadius: 0.06,
3156
+ });
3157
+ if (isHero) {
3158
+ const chroma = ["E5392A", "E54489", "F09131", "3D9F47", "3F8BC4", "F0BC2A"];
3159
+ const stripW = ctx.width * 0.48;
3160
+ const band = stripW / chroma.length;
3161
+ for (let i = 0; i < chroma.length; i++) {
3162
+ slide.addShape(ctx.shapeRoundRect, {
3163
+ x: i * band,
3164
+ y: 0,
3165
+ w: band,
3166
+ h: ctx.height * 0.12,
3167
+ fill: { color: chroma[i] },
3168
+ line: { color: chroma[i], width: 0 },
3169
+ rectRadius: 0,
3170
+ });
3171
+ }
3172
+ const stamps = [
3173
+ { x: ctx.width - 1.85, y: 0.55, color: "E54489" },
3174
+ { x: ctx.width - 1.35, y: 0.72, color: "F09131" },
3175
+ { x: ctx.width - 1.6, y: 1.15, color: "3F8BC4" },
3176
+ { x: ctx.width - 1.95, y: 1.05, color: "3D9F47" },
3177
+ ];
3178
+ for (const s of stamps) {
3179
+ slide.addShape(ctx.shapeOval, {
3180
+ x: s.x,
3181
+ y: s.y,
3182
+ w: 0.42,
3183
+ h: 0.42,
3184
+ fill: { color: s.color },
3185
+ line: { color: s.color, width: 0 },
3186
+ });
3187
+ }
3188
+ slide.addShape(ctx.shapeRoundRect, {
3189
+ x: 0.55,
3190
+ y: ctx.height - 0.85,
3191
+ w: 0.7,
3192
+ h: 0.28,
3193
+ fill: { color: ctx.colors.accent },
3194
+ line: { color: ctx.colors.text, width: 1.5 },
3195
+ rectRadius: 0.02,
3196
+ });
3197
+ }
3198
+ }
3199
+ if (theme === "daisy-days") {
3200
+ // Soft pastel dots + hard frame; daisy + pill on heroes (daisy-days-pastel).
3201
+ slide.addShape(ctx.shapeRoundRect, {
3202
+ x: 0.1,
3203
+ y: 0.1,
3204
+ w: ctx.width - 0.2,
3205
+ h: ctx.height - 0.2,
3206
+ fill: { color: ctx.colors.bg, transparency: 100 },
3207
+ line: { color: "2D2D2D", width: 2.5 },
3208
+ rectRadius: 0.28,
3209
+ });
3210
+ const dots = [
3211
+ { x: ctx.width * 0.1, y: ctx.height * 0.14, color: "FDE68A", s: 0.28 },
3212
+ { x: ctx.width * 0.86, y: ctx.height * 0.18, color: "F7C8D4", s: 0.36 },
3213
+ { x: ctx.width * 0.76, y: ctx.height * 0.78, color: "7ECDC0", s: 0.32 },
3214
+ { x: ctx.width * 0.14, y: ctx.height * 0.74, color: "D4A5E8", s: 0.24 },
3215
+ ];
3216
+ for (const d of dots) {
3217
+ slide.addShape(ctx.shapeOval, {
3218
+ x: d.x,
3219
+ y: d.y,
3220
+ w: d.s,
3221
+ h: d.s,
3222
+ fill: { color: d.color },
3223
+ line: { color: d.color, width: 0 },
3224
+ });
3225
+ }
3226
+ if (isHero) {
3227
+ slide.addShape(ctx.shapeOval, {
3228
+ x: ctx.width - 1.55,
3229
+ y: 0.55,
3230
+ w: 0.7,
3231
+ h: 0.7,
3232
+ fill: { color: "FDE68A" },
3233
+ line: { color: "2D2D2D", width: 2 },
3234
+ });
3235
+ slide.addShape(ctx.shapeRoundRect, {
3236
+ x: 0.55,
3237
+ y: ctx.height - 0.95,
3238
+ w: 0.95,
3239
+ h: 0.36,
3240
+ fill: { color: "A8D8F0" },
3241
+ line: { color: "2D2D2D", width: 2 },
3242
+ rectRadius: 0.18,
3243
+ });
3244
+ }
3245
+ }
3246
+ if (theme === "block-frame") {
3247
+ // Hard neobrutalist frame; pastel offset blocks on heroes (block-frame-brutal).
3248
+ slide.addShape(ctx.shapeRoundRect, {
3249
+ x: 0.1,
3250
+ y: 0.1,
3251
+ w: ctx.width - 0.2,
3252
+ h: ctx.height - 0.2,
3253
+ fill: { color: ctx.colors.bg, transparency: 100 },
3254
+ line: { color: "000000", width: 3.5 },
3255
+ rectRadius: 0,
3256
+ });
3257
+ if (isHero) {
3258
+ slide.addShape(ctx.shapeRoundRect, {
3259
+ x: ctx.width * 0.72,
3260
+ y: ctx.height * 0.12,
3261
+ w: ctx.width * 0.28,
3262
+ h: ctx.height * 0.18,
3263
+ fill: { color: ctx.colors.accent },
3264
+ line: { color: "000000", width: 2.5 },
3265
+ rectRadius: 0,
3266
+ });
3267
+ slide.addShape(ctx.shapeRoundRect, {
3268
+ x: ctx.width * 0.06,
3269
+ y: ctx.height * 0.68,
3270
+ w: ctx.width * 0.16,
3271
+ h: ctx.height * 0.22,
3272
+ fill: { color: "C0F7FE" },
3273
+ line: { color: "000000", width: 2.5 },
3274
+ rectRadius: 0,
3275
+ });
3276
+ }
3277
+ }
3278
+ if (theme === "editorial-tri-tone") {
3279
+ // Butter split field + burgundy wash + hard frame (tri-tone-blocks).
3280
+ slide.addShape(ctx.shapeRoundRect, {
3281
+ x: ctx.width * 0.55,
3282
+ y: 0,
3283
+ w: ctx.width * 0.45,
3284
+ h: ctx.height,
3285
+ fill: { color: ctx.colors.bg2 },
3286
+ line: { color: ctx.colors.bg2, width: 0 },
3287
+ rectRadius: 0,
3288
+ });
3289
+ slide.addShape(ctx.shapeRoundRect, {
3290
+ x: ctx.width * 0.72,
3291
+ y: 0,
3292
+ w: ctx.width * 0.28,
3293
+ h: ctx.height,
3294
+ fill: { color: ctx.colors.text, transparency: 88 },
3295
+ line: { color: ctx.colors.text, width: 0 },
3296
+ rectRadius: 0,
3297
+ });
3298
+ slide.addShape(ctx.shapeRoundRect, {
3299
+ x: 0.1,
3300
+ y: 0.1,
3301
+ w: ctx.width - 0.2,
3302
+ h: ctx.height - 0.2,
3303
+ fill: { color: ctx.colors.bg, transparency: 100 },
3304
+ line: { color: ctx.colors.text, width: 2.5 },
3305
+ rectRadius: 0,
3306
+ });
3307
+ }
3308
+ if (theme === "broadside") {
3309
+ // Fire-orange left rail + corner block (broadside-fire).
3310
+ slide.addShape(ctx.shapeRoundRect, {
3311
+ x: 0,
3312
+ y: 0,
3313
+ w: 0.12,
3314
+ h: ctx.height,
3315
+ fill: { color: ctx.colors.accent },
3316
+ line: { color: ctx.colors.accent, width: 0 },
3317
+ rectRadius: 0,
3318
+ });
3319
+ slide.addShape(ctx.shapeRoundRect, {
3320
+ x: ctx.width - 1.55,
3321
+ y: ctx.height - 1.55,
3322
+ w: 1.7,
3323
+ h: 1.7,
3324
+ fill: { color: ctx.colors.accent },
3325
+ line: { color: ctx.colors.accent, width: 0 },
3326
+ rectRadius: 0,
3327
+ });
3328
+ }
3329
+ if (theme === "pink-script") {
3330
+ // Soft pink wash + inset frame + accent hairline (pink-script-afterhours).
3331
+ slide.addShape(ctx.shapeOval, {
3332
+ x: ctx.width * 0.55,
3333
+ y: -ctx.height * 0.2,
3334
+ w: ctx.width * 0.55,
3335
+ h: ctx.height * 0.55,
3336
+ fill: { color: ctx.colors.accent, transparency: 78 },
3337
+ line: { color: ctx.colors.accent, width: 0 },
3338
+ });
3339
+ slide.addShape(ctx.shapeRoundRect, {
3340
+ x: 0.35,
3341
+ y: 0.35,
3342
+ w: ctx.width - 0.7,
3343
+ h: ctx.height - 0.7,
3344
+ fill: { color: ctx.colors.bg, transparency: 100 },
3345
+ line: { color: "F5EDF1", width: 1 },
3346
+ rectRadius: 0,
3347
+ });
3348
+ slide.addShape(ctx.shapeRoundRect, {
3349
+ x: ctx.width - 2.0,
3350
+ y: ctx.height - 0.85,
3351
+ w: 1.35,
3352
+ h: 0.04,
3353
+ fill: { color: ctx.colors.accent },
3354
+ line: { color: ctx.colors.accent, width: 0 },
3355
+ rectRadius: 0,
3356
+ });
3357
+ }
3358
+ if (theme === "retro-windows") {
3359
+ // Win95 title bar + window buttons + beveled frame (retro-windows-chrome).
3360
+ slide.addShape(ctx.shapeRoundRect, {
3361
+ x: 0.08,
3362
+ y: 0.08,
3363
+ w: ctx.width - 0.16,
3364
+ h: ctx.height - 0.16,
3365
+ fill: { color: ctx.colors.bg, transparency: 100 },
3366
+ line: { color: "000000", width: 2 },
3367
+ rectRadius: 0,
3368
+ });
3369
+ slide.addShape(ctx.shapeRoundRect, {
3370
+ x: 0.12,
3371
+ y: 0.12,
3372
+ w: ctx.width - 0.24,
3373
+ h: 0.32,
3374
+ fill: { color: "000080" },
3375
+ line: { color: "000080", width: 0 },
3376
+ rectRadius: 0,
3377
+ });
3378
+ const winBtns = [ctx.width - 1.15, ctx.width - 0.85, ctx.width - 0.55];
3379
+ for (const x of winBtns) {
3380
+ slide.addShape(ctx.shapeRoundRect, {
3381
+ x,
3382
+ y: 0.18,
3383
+ w: 0.22,
3384
+ h: 0.18,
3385
+ fill: { color: "C0C0C0" },
3386
+ line: { color: "FFFFFF", width: 1 },
3387
+ rectRadius: 0,
3388
+ });
3389
+ }
3390
+ }
3391
+ if (theme === "pin-and-paper") {
3392
+ // Legal-pad rules + red margin + pin (pin-paper-pad).
3393
+ for (let i = 1; i < 14; i++) {
3394
+ slide.addShape(ctx.shapeRoundRect, {
3395
+ x: 0,
3396
+ y: (ctx.height / 14) * i,
3397
+ w: ctx.width,
3398
+ h: 0.012,
3399
+ fill: { color: "1F3A8A", transparency: 82 },
3400
+ line: { color: "1F3A8A", width: 0 },
3401
+ rectRadius: 0,
3402
+ });
3403
+ }
3404
+ slide.addShape(ctx.shapeRoundRect, {
3405
+ x: 0.95,
3406
+ y: 0,
3407
+ w: 0.03,
3408
+ h: ctx.height,
3409
+ fill: { color: ctx.colors.accent, transparency: 35 },
3410
+ line: { color: ctx.colors.accent, width: 0 },
3411
+ rectRadius: 0,
3412
+ });
3413
+ slide.addShape(ctx.shapeOval, {
3414
+ x: ctx.width - 1.15,
3415
+ y: 0.55,
3416
+ w: 0.28,
3417
+ h: 0.28,
3418
+ fill: { color: "666666" },
3419
+ line: { color: "222222", width: 1 },
3420
+ });
3421
+ }
3422
+ if (theme === "emerald-editorial") {
3423
+ // Double inset frame + top/bottom masthead rules (emerald-editorial-masthead).
3424
+ slide.addShape(ctx.shapeRoundRect, {
3425
+ x: 0.22,
3426
+ y: 0.22,
3427
+ w: ctx.width - 0.44,
3428
+ h: ctx.height - 0.44,
3429
+ fill: { color: ctx.colors.bg, transparency: 100 },
3430
+ line: { color: ctx.colors.text, width: 1.5 },
3431
+ rectRadius: 0,
3432
+ });
3433
+ slide.addShape(ctx.shapeRoundRect, {
3434
+ x: ctx.width * 0.12,
3435
+ y: ctx.height * 0.14,
3436
+ w: ctx.width * 0.76,
3437
+ h: 0.035,
3438
+ fill: { color: ctx.colors.text },
3439
+ line: { color: ctx.colors.text, width: 0 },
3440
+ rectRadius: 0,
3441
+ });
3442
+ slide.addShape(ctx.shapeRoundRect, {
3443
+ x: ctx.width * 0.12,
3444
+ y: ctx.height * 0.86,
3445
+ w: ctx.width * 0.76,
3446
+ h: 0.035,
3447
+ fill: { color: ctx.colors.text },
3448
+ line: { color: ctx.colors.text, width: 0 },
3449
+ rectRadius: 0,
3450
+ });
3451
+ }
3452
+ if (theme === "notebook-tabs") {
3453
+ // Pastel side tabs + binder holes (notebook-tabs-page).
3454
+ const tabs = ["98D4BB", "C7B8EA", "F4B8C5", "A8D8EA", "FFE6A7"];
3455
+ const tabH = (ctx.height * 0.72) / tabs.length;
3456
+ for (let i = 0; i < tabs.length; i++) {
3457
+ slide.addShape(ctx.shapeRoundRect, {
3458
+ x: ctx.width - 0.22,
3459
+ y: ctx.height * 0.14 + i * tabH,
3460
+ w: 0.22,
3461
+ h: tabH - 0.06,
3462
+ fill: { color: tabs[i] },
3463
+ line: { color: tabs[i], width: 0 },
3464
+ rectRadius: 0.06,
3465
+ });
3466
+ }
3467
+ for (let i = 0; i < 4; i++) {
3468
+ slide.addShape(ctx.shapeOval, {
3469
+ x: 0.35,
3470
+ y: 0.45 + i * 0.7,
3471
+ w: 0.14,
3472
+ h: 0.14,
3473
+ fill: { color: "D0CCC4" },
3474
+ line: { color: "D0CCC4", width: 0 },
3475
+ });
3476
+ }
3477
+ }
3478
+ if (theme === "long-table") {
3479
+ // Speckled supper club + outline pill + hairline (long-table-supper).
3480
+ for (let i = 0; i < 8; i++) {
3481
+ for (let j = 0; j < 5; j++) {
3482
+ slide.addShape(ctx.shapeOval, {
3483
+ x: 0.4 + i * 1.55,
3484
+ y: 0.5 + j * 1.15,
3485
+ w: 0.06,
3486
+ h: 0.06,
3487
+ fill: { color: ctx.colors.accent, transparency: 78 },
3488
+ line: { color: ctx.colors.accent, width: 0 },
3489
+ });
3490
+ }
3491
+ }
3492
+ slide.addShape(ctx.shapeRoundRect, {
3493
+ x: ctx.width - 1.85,
3494
+ y: 0.55,
3495
+ w: 1.15,
3496
+ h: 0.4,
3497
+ fill: { color: ctx.colors.bg, transparency: 100 },
3498
+ line: { color: ctx.colors.accent, width: 1.5 },
3499
+ rectRadius: 0.2,
3500
+ });
3501
+ slide.addShape(ctx.shapeRoundRect, {
3502
+ x: 0.55,
3503
+ y: ctx.height - 0.75,
3504
+ w: 0.7,
3505
+ h: 0.025,
3506
+ fill: { color: ctx.colors.accent },
3507
+ line: { color: ctx.colors.accent, width: 0 },
3508
+ rectRadius: 0,
3509
+ });
3510
+ }
3511
+ if (theme === "paper-ink") {
3512
+ // Crimson top rule + quiet bottom hairline (paper-ink-literary).
3513
+ slide.addShape(ctx.shapeRoundRect, {
3514
+ x: ctx.margin,
3515
+ y: 0.65,
3516
+ w: ctx.width - ctx.margin * 2,
3517
+ h: 0.03,
3518
+ fill: { color: ctx.colors.accent },
3519
+ line: { color: ctx.colors.accent, width: 0 },
3520
+ rectRadius: 0,
3521
+ });
3522
+ slide.addShape(ctx.shapeRoundRect, {
3523
+ x: ctx.margin,
3524
+ y: ctx.height - 0.7,
3525
+ w: ctx.width - ctx.margin * 2,
3526
+ h: 0.015,
3527
+ fill: { color: ctx.colors.text, transparency: 55 },
3528
+ line: { color: ctx.colors.text, width: 0 },
3529
+ rectRadius: 0,
3530
+ });
3531
+ }
3532
+ if (theme === "vintage-editorial" && isHero) {
3533
+ // Geometric ring + ink/accent dots (vintage-editorial-geo).
3534
+ slide.addShape(ctx.shapeOval, {
3535
+ x: ctx.width - 2.35,
3536
+ y: 0.55,
3537
+ w: 1.55,
3538
+ h: 1.55,
3539
+ fill: { color: ctx.colors.bg, transparency: 100 },
3540
+ line: { color: ctx.colors.text, width: 1.5 },
3541
+ });
3542
+ slide.addShape(ctx.shapeOval, {
3543
+ x: ctx.width - 1.7,
3544
+ y: 1.2,
3545
+ w: 0.18,
3546
+ h: 0.18,
3547
+ fill: { color: ctx.colors.text },
3548
+ line: { color: ctx.colors.text, width: 0 },
3549
+ });
3550
+ slide.addShape(ctx.shapeOval, {
3551
+ x: ctx.width - 1.15,
3552
+ y: 1.7,
3553
+ w: 0.18,
3554
+ h: 0.18,
3555
+ fill: { color: ctx.colors.accent },
3556
+ line: { color: ctx.colors.accent, width: 0 },
3557
+ });
3558
+ }
3559
+ if (theme === "studio") {
3560
+ // Acid hairline rails (studio-acid).
3561
+ slide.addShape(ctx.shapeRoundRect, {
3562
+ x: 0,
3563
+ y: 0,
3564
+ w: ctx.width,
3565
+ h: 0.02,
3566
+ fill: { color: ctx.colors.border },
3567
+ line: { color: ctx.colors.border, width: 0 },
3568
+ rectRadius: 0,
3569
+ });
3570
+ slide.addShape(ctx.shapeRoundRect, {
3571
+ x: 0,
3572
+ y: ctx.height - 0.02,
3573
+ w: ctx.width,
3574
+ h: 0.02,
3575
+ fill: { color: ctx.colors.border },
3576
+ line: { color: ctx.colors.border, width: 0 },
3577
+ rectRadius: 0,
3578
+ });
3579
+ }
3580
+ if (theme === "grove") {
3581
+ // Quiet top hairline + coral stub (grove-monograph).
3582
+ slide.addShape(ctx.shapeRoundRect, {
3583
+ x: ctx.width * 0.05,
3584
+ y: ctx.height * 0.06,
3585
+ w: ctx.width * 0.9,
3586
+ h: 0.015,
3587
+ fill: { color: "D4CFBF", transparency: 70 },
3588
+ line: { color: "D4CFBF", width: 0 },
3589
+ rectRadius: 0,
3590
+ });
3591
+ slide.addShape(ctx.shapeRoundRect, {
3592
+ x: ctx.width * 0.05,
3593
+ y: ctx.height * 0.9,
3594
+ w: 0.45,
3595
+ h: 0.03,
3596
+ fill: { color: ctx.colors.accent },
3597
+ line: { color: ctx.colors.accent, width: 0 },
3598
+ rectRadius: 0,
3599
+ });
3600
+ }
3601
+ if (theme === "stencil-tablet" && isHero) {
3602
+ // Earth tablet blocks (stencil-tablet-earth).
3603
+ slide.addShape(ctx.shapeRoundRect, {
3604
+ x: 0.1,
3605
+ y: 0.1,
3606
+ w: ctx.width - 0.2,
3607
+ h: ctx.height - 0.2,
3608
+ fill: { color: ctx.colors.bg, transparency: 100 },
3609
+ line: { color: "000000", width: 2 },
3610
+ rectRadius: 0,
3611
+ });
3612
+ slide.addShape(ctx.shapeRoundRect, {
3613
+ x: ctx.width * 0.77,
3614
+ y: ctx.height * 0.1,
3615
+ w: ctx.width * 0.18,
3616
+ h: ctx.height * 0.22,
3617
+ fill: { color: ctx.colors.accent },
3618
+ line: { color: "000000", width: 1.5 },
3619
+ rectRadius: 0.22,
3620
+ });
3621
+ slide.addShape(ctx.shapeRoundRect, {
3622
+ x: ctx.width * 0.05,
3623
+ y: ctx.height * 0.72,
3624
+ w: ctx.width * 0.14,
3625
+ h: ctx.height * 0.18,
3626
+ fill: { color: ctx.colors.accent2 },
3627
+ line: { color: "000000", width: 1.5 },
3628
+ rectRadius: 0.2,
3629
+ });
3630
+ }
3631
+ if (theme === "cartesian") {
3632
+ // Draft axes + concentric rings (cartesian-draft).
3633
+ slide.addShape(ctx.shapeRoundRect, {
3634
+ x: ctx.width * 0.06,
3635
+ y: ctx.height * 0.1,
3636
+ w: ctx.width * 0.88,
3637
+ h: 0.015,
3638
+ fill: { color: ctx.colors.border, transparency: 35 },
3639
+ line: { color: ctx.colors.border, width: 0 },
3640
+ rectRadius: 0,
3641
+ });
3642
+ slide.addShape(ctx.shapeRoundRect, {
3643
+ x: ctx.width * 0.06,
3644
+ y: ctx.height * 0.1,
3645
+ w: 0.015,
3646
+ h: ctx.height * 0.8,
3647
+ fill: { color: ctx.colors.border, transparency: 35 },
3648
+ line: { color: ctx.colors.border, width: 0 },
3649
+ rectRadius: 0,
3650
+ });
3651
+ slide.addShape(ctx.shapeOval, {
3652
+ x: ctx.width * 0.78,
3653
+ y: ctx.height * 0.08,
3654
+ w: 1.4,
3655
+ h: 1.4,
3656
+ fill: { color: ctx.colors.bg, transparency: 100 },
3657
+ line: { color: "B8B0A4", width: 1 },
3658
+ });
3659
+ slide.addShape(ctx.shapeOval, {
3660
+ x: ctx.width * 0.74,
3661
+ y: ctx.height * 0.04,
3662
+ w: 2.0,
3663
+ h: 2.0,
3664
+ fill: { color: ctx.colors.bg, transparency: 100 },
3665
+ line: { color: "B8B0A4", width: 0.75 },
3666
+ });
3667
+ }
3668
+ if (theme === "monochrome") {
3669
+ // Ledger hairlines (monochrome-ledger).
3670
+ slide.addShape(ctx.shapeRoundRect, {
3671
+ x: ctx.width * 0.06,
3672
+ y: ctx.height * 0.08,
3673
+ w: ctx.width * 0.88,
3674
+ h: 0.015,
3675
+ fill: { color: ctx.colors.text, transparency: 75 },
3676
+ line: { color: ctx.colors.text, width: 0 },
3677
+ rectRadius: 0,
3678
+ });
3679
+ slide.addShape(ctx.shapeRoundRect, {
3680
+ x: ctx.width * 0.06,
3681
+ y: ctx.height * 0.9,
3682
+ w: 0.35,
3683
+ h: 0.015,
3684
+ fill: { color: ctx.colors.text },
3685
+ line: { color: ctx.colors.text, width: 0 },
3686
+ rectRadius: 0,
3687
+ });
3688
+ }
3689
+ if (theme === "blue-professional") {
3690
+ // Soft blue wash band + accent stub (blue-professional-clean).
3691
+ slide.addShape(ctx.shapeRoundRect, {
3692
+ x: 0,
3693
+ y: 0,
3694
+ w: ctx.width,
3695
+ h: ctx.height * 0.18,
3696
+ fill: { color: ctx.colors.accent, transparency: 92 },
3697
+ line: { color: ctx.colors.accent, width: 0 },
3698
+ rectRadius: 0,
3699
+ });
3700
+ slide.addShape(ctx.shapeRoundRect, {
3701
+ x: 0.55,
3702
+ y: 0.5,
3703
+ w: 0.6,
3704
+ h: 0.05,
3705
+ fill: { color: ctx.colors.accent },
3706
+ line: { color: ctx.colors.accent, width: 0 },
3707
+ rectRadius: 0.02,
3708
+ });
3709
+ }
3710
+ if (theme === "broadsheet") {
3711
+ // Newsprint masthead bar + bottom rule (newsprint-masthead).
3712
+ slide.addShape(ctx.shapeRoundRect, {
3713
+ x: 0,
3714
+ y: 0,
3715
+ w: ctx.width,
3716
+ h: 0.42,
3717
+ fill: { color: ctx.colors.text },
3718
+ line: { color: ctx.colors.text, width: 0 },
3719
+ rectRadius: 0,
3720
+ });
3721
+ slide.addShape(ctx.shapeRoundRect, {
3722
+ x: ctx.margin,
3723
+ y: ctx.height - 0.7,
3724
+ w: ctx.width - ctx.margin * 2,
3725
+ h: 0.03,
3726
+ fill: { color: ctx.colors.text },
3727
+ line: { color: ctx.colors.text, width: 0 },
3728
+ rectRadius: 0,
3729
+ });
3730
+ }
3731
+ if (theme === "editorial-forest") {
3732
+ // Forest rule + blush orb (editorial-forest-paper).
3733
+ slide.addShape(ctx.shapeRoundRect, {
3734
+ x: ctx.margin,
3735
+ y: 0.55,
3736
+ w: ctx.width - ctx.margin * 2,
3737
+ h: 0.025,
3738
+ fill: { color: ctx.colors.accent },
3739
+ line: { color: ctx.colors.accent, width: 0 },
3740
+ rectRadius: 0,
3741
+ });
3742
+ slide.addShape(ctx.shapeOval, {
3743
+ x: ctx.width - 1.65,
3744
+ y: ctx.height - 1.55,
3745
+ w: 0.95,
3746
+ h: 0.95,
3747
+ fill: { color: ctx.colors.accent2, transparency: 35 },
3748
+ line: { color: ctx.colors.accent2, width: 0 },
3749
+ });
3750
+ }
3751
+ if (theme === "signal") {
3752
+ // Briefing hairline + outline square (signal-briefing).
3753
+ slide.addShape(ctx.shapeRoundRect, {
3754
+ x: ctx.margin,
3755
+ y: 0.55,
3756
+ w: ctx.width - ctx.margin * 2,
3757
+ h: 0.015,
3758
+ fill: { color: ctx.colors.accent },
3759
+ line: { color: ctx.colors.accent, width: 0 },
3760
+ rectRadius: 0,
3761
+ });
3762
+ slide.addShape(ctx.shapeRoundRect, {
3763
+ x: ctx.width - 1.35,
3764
+ y: ctx.height - 1.35,
3765
+ w: 0.65,
3766
+ h: 0.65,
3767
+ fill: { color: ctx.colors.bg, transparency: 100 },
3768
+ line: { color: ctx.colors.accent2, width: 1.25 },
3769
+ rectRadius: 0,
3770
+ });
3771
+ }
3772
+ if (theme === "pastel-dreamy") {
3773
+ // Soft cloud ovals (pastel-cloud).
3774
+ slide.addShape(ctx.shapeOval, {
3775
+ x: -ctx.width * 0.05,
3776
+ y: -ctx.height * 0.1,
3777
+ w: ctx.width * 0.45,
3778
+ h: ctx.height * 0.45,
3779
+ fill: { color: ctx.colors.accent2, transparency: 78 },
3780
+ line: { color: ctx.colors.accent2, width: 0 },
3781
+ });
3782
+ slide.addShape(ctx.shapeOval, {
3783
+ x: ctx.width * 0.55,
3784
+ y: ctx.height * 0.05,
3785
+ w: ctx.width * 0.4,
3786
+ h: ctx.height * 0.4,
3787
+ fill: { color: ctx.colors.accent, transparency: 82 },
3788
+ line: { color: ctx.colors.accent, width: 0 },
3789
+ });
3790
+ }
3791
+ if (theme === "vellum") {
3792
+ // Soft colorfield wash (vellum-colorfield).
3793
+ slide.addShape(ctx.shapeOval, {
3794
+ x: ctx.width * 0.15,
3795
+ y: ctx.height * 0.05,
3796
+ w: ctx.width * 0.7,
3797
+ h: ctx.height * 0.7,
3798
+ fill: { color: ctx.colors.bg2, transparency: 45 },
3799
+ line: { color: ctx.colors.bg2, width: 0 },
3800
+ });
3801
+ }
3802
+ if (theme === "editorial-serif") {
3803
+ // Accent rule + deco ring (editorial-rule).
3804
+ slide.addShape(ctx.shapeRoundRect, {
3805
+ x: ctx.margin,
3806
+ y: 0.55,
3807
+ w: ctx.width - ctx.margin * 2,
3808
+ h: 0.05,
3809
+ fill: { color: ctx.colors.accent },
3810
+ line: { color: ctx.colors.accent, width: 0 },
3811
+ rectRadius: 0,
3812
+ });
3813
+ slide.addShape(ctx.shapeOval, {
3814
+ x: ctx.width - 1.45,
3815
+ y: 0.75,
3816
+ w: 0.7,
3817
+ h: 0.7,
3818
+ fill: { color: ctx.colors.bg, transparency: 100 },
3819
+ line: { color: ctx.colors.accent, width: 1.5 },
3820
+ });
3821
+ }
3822
+ if (theme === "playful") {
3823
+ // Soft accent blot (soft-bento).
3824
+ slide.addShape(ctx.shapeOval, {
3825
+ x: ctx.width * 0.75,
3826
+ y: -ctx.height * 0.05,
3827
+ w: ctx.width * 0.35,
3828
+ h: ctx.height * 0.35,
3829
+ fill: { color: ctx.colors.accent2, transparency: 72 },
3830
+ line: { color: ctx.colors.accent2, width: 0 },
3831
+ });
3832
+ slide.addShape(ctx.shapeRoundRect, {
3833
+ x: ctx.width - 2.0,
3834
+ y: ctx.height - 2.0,
3835
+ w: 1.4,
3836
+ h: 1.4,
3837
+ fill: { color: ctx.colors.accent, transparency: 82 },
3838
+ line: { color: ctx.colors.accent, width: 0 },
3839
+ rectRadius: 0.28,
3840
+ });
3841
+ }
3842
+ if (theme === "corporate") {
3843
+ // Clean accent stub (clean-light).
3844
+ slide.addShape(ctx.shapeRoundRect, {
3845
+ x: 0.55,
3846
+ y: 0.55,
3847
+ w: 0.08,
3848
+ h: 0.95,
3849
+ fill: { color: ctx.colors.accent },
3850
+ line: { color: ctx.colors.accent, width: 0 },
3851
+ rectRadius: 0.04,
3852
+ });
3853
+ }
2831
3854
  }
2832
3855
  export function renderSlide(slide, ctx, data) {
2833
3856
  paintSlideChrome(slide, ctx, data);