@resumekit/schema 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -771,56 +771,183 @@ export type ResumeEdits = z.infer<typeof ResumeEditsSchema>;
771
771
  export declare const DOCUMENT_FONTS: {
772
772
  readonly helvetica: {
773
773
  readonly name: "Helvetica";
774
+ readonly category: "sans";
774
775
  readonly supplied: "TeX Gyre Heros";
775
776
  readonly stack: "'TeX Gyre Heros', 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif";
776
777
  };
777
778
  readonly arial: {
778
779
  readonly name: "Arial";
780
+ readonly category: "sans";
779
781
  readonly supplied: "Arimo";
780
782
  readonly stack: "Arimo, Arial, 'Helvetica Neue', Helvetica, 'Liberation Sans', sans-serif";
781
783
  };
782
784
  readonly calibri: {
783
785
  readonly name: "Calibri";
786
+ readonly category: "sans";
784
787
  readonly supplied: "Carlito";
785
788
  readonly stack: "Carlito, Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif";
786
789
  };
787
790
  readonly georgia: {
788
791
  readonly name: "Georgia";
792
+ readonly category: "serif";
789
793
  readonly supplied: "Gelasio";
790
794
  readonly stack: "Gelasio, Georgia, Cambria, 'Times New Roman', Times, serif";
791
795
  };
792
796
  readonly garamond: {
793
797
  readonly name: "Garamond";
798
+ readonly category: "serif";
794
799
  readonly supplied: "EB Garamond";
795
800
  readonly stack: "'EB Garamond', Garamond, Baskerville, 'Baskerville Old Face', 'Times New Roman', serif";
796
801
  };
797
802
  readonly times: {
798
803
  readonly name: "Times";
804
+ readonly category: "serif";
799
805
  readonly supplied: "Tinos";
800
806
  readonly stack: "Tinos, 'Times New Roman', Times, Georgia, serif";
801
807
  };
802
808
  readonly lato: {
803
809
  readonly name: "Lato";
810
+ readonly category: "sans";
804
811
  readonly supplied: "Lato";
805
812
  readonly stack: "Lato, 'Segoe UI', Candara, Optima, Calibri, sans-serif";
806
813
  };
807
814
  readonly condensed: {
808
815
  readonly name: "Roboto Condensed";
816
+ readonly category: "sans";
809
817
  readonly supplied: "Roboto Condensed";
810
818
  readonly stack: "'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue Condensed', 'Liberation Sans Narrow', sans-serif";
811
819
  };
812
820
  readonly ptserif: {
813
821
  readonly name: "PT Serif";
822
+ readonly category: "serif";
814
823
  readonly supplied: "PT Serif";
815
824
  readonly stack: "'PT Serif', Charter, Cambria, Georgia, 'Times New Roman', serif";
816
825
  };
817
826
  readonly bitter: {
818
827
  readonly name: "Bitter";
828
+ readonly category: "slab";
819
829
  readonly supplied: "Bitter";
820
830
  readonly stack: "Bitter, 'Roboto Slab', Rockwell, 'Courier New', Cambria, Georgia, serif";
821
831
  };
832
+ readonly inter: {
833
+ readonly name: "Inter";
834
+ readonly category: "sans";
835
+ readonly supplied: "Inter";
836
+ readonly stack: "Inter, 'Helvetica Neue', Arial, sans-serif";
837
+ };
838
+ readonly opensans: {
839
+ readonly name: "Open Sans";
840
+ readonly category: "sans";
841
+ readonly supplied: "Open Sans";
842
+ readonly stack: "'Open Sans', 'Segoe UI', Arial, sans-serif";
843
+ };
844
+ readonly montserrat: {
845
+ readonly name: "Montserrat";
846
+ readonly category: "sans";
847
+ readonly supplied: "Montserrat";
848
+ readonly stack: "Montserrat, 'Century Gothic', Arial, sans-serif";
849
+ };
850
+ readonly plexsans: {
851
+ readonly name: "IBM Plex Sans";
852
+ readonly category: "sans";
853
+ readonly supplied: "IBM Plex Sans";
854
+ readonly stack: "'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif";
855
+ };
856
+ readonly worksans: {
857
+ readonly name: "Work Sans";
858
+ readonly category: "sans";
859
+ readonly supplied: "Work Sans";
860
+ readonly stack: "'Work Sans', 'Helvetica Neue', Arial, sans-serif";
861
+ };
862
+ readonly nunitosans: {
863
+ readonly name: "Nunito Sans";
864
+ readonly category: "sans";
865
+ readonly supplied: "Nunito Sans";
866
+ readonly stack: "'Nunito Sans', 'Segoe UI', Arial, sans-serif";
867
+ };
868
+ readonly dmsans: {
869
+ readonly name: "DM Sans";
870
+ readonly category: "sans";
871
+ readonly supplied: "DM Sans";
872
+ readonly stack: "'DM Sans', 'Helvetica Neue', Arial, sans-serif";
873
+ };
874
+ readonly firasans: {
875
+ readonly name: "Fira Sans";
876
+ readonly category: "sans";
877
+ readonly supplied: "Fira Sans";
878
+ readonly stack: "'Fira Sans', 'Segoe UI', Arial, sans-serif";
879
+ };
880
+ readonly librefranklin: {
881
+ readonly name: "Libre Franklin";
882
+ readonly category: "sans";
883
+ readonly supplied: "Libre Franklin";
884
+ readonly stack: "'Libre Franklin', 'Franklin Gothic', Arial, sans-serif";
885
+ };
886
+ readonly notosans: {
887
+ readonly name: "Noto Sans";
888
+ readonly category: "sans";
889
+ readonly supplied: "Noto Sans";
890
+ readonly stack: "'Noto Sans', 'Segoe UI', Arial, sans-serif";
891
+ };
892
+ readonly lora: {
893
+ readonly name: "Lora";
894
+ readonly category: "serif";
895
+ readonly supplied: "Lora";
896
+ readonly stack: "Lora, Georgia, 'Times New Roman', serif";
897
+ };
898
+ readonly sourceserif: {
899
+ readonly name: "Source Serif";
900
+ readonly category: "serif";
901
+ readonly supplied: "Source Serif 4";
902
+ readonly stack: "'Source Serif 4', Georgia, 'Times New Roman', serif";
903
+ };
904
+ readonly plexserif: {
905
+ readonly name: "IBM Plex Serif";
906
+ readonly category: "serif";
907
+ readonly supplied: "IBM Plex Serif";
908
+ readonly stack: "'IBM Plex Serif', Georgia, 'Times New Roman', serif";
909
+ };
910
+ readonly spectral: {
911
+ readonly name: "Spectral";
912
+ readonly category: "serif";
913
+ readonly supplied: "Spectral";
914
+ readonly stack: "Spectral, Garamond, Georgia, serif";
915
+ };
916
+ readonly playfair: {
917
+ readonly name: "Playfair Display";
918
+ readonly category: "serif";
919
+ readonly supplied: "Playfair Display";
920
+ readonly stack: "'Playfair Display', Didot, Georgia, serif";
921
+ };
922
+ readonly roboto: {
923
+ readonly name: "Roboto";
924
+ readonly category: "sans";
925
+ readonly supplied: "Roboto";
926
+ readonly stack: "Roboto, 'Helvetica Neue', Arial, sans-serif";
927
+ };
928
+ readonly sourcesans: {
929
+ readonly name: "Source Sans";
930
+ readonly category: "sans";
931
+ readonly supplied: "Source Sans 3";
932
+ readonly stack: "'Source Sans 3', 'Segoe UI', Arial, sans-serif";
933
+ };
934
+ readonly raleway: {
935
+ readonly name: "Raleway";
936
+ readonly category: "sans";
937
+ readonly supplied: "Raleway";
938
+ readonly stack: "Raleway, 'Century Gothic', Arial, sans-serif";
939
+ };
940
+ readonly latinmodern: {
941
+ readonly name: "Latin Modern (LaTeX)";
942
+ readonly category: "serif";
943
+ readonly supplied: "Latin Modern Roman";
944
+ readonly stack: "'Latin Modern Roman', 'Computer Modern', 'Times New Roman', serif";
945
+ };
822
946
  };
823
947
  export type DocumentFontId = keyof typeof DOCUMENT_FONTS;
948
+ /** How a picker groups the typefaces, in the order it shows them. */
949
+ export declare const FONT_CATEGORIES: readonly ["sans", "serif", "slab"];
950
+ export type FontCategory = (typeof FONT_CATEGORIES)[number];
824
951
  export declare const DocumentFontIdSchema: z.ZodEnum<{
825
952
  helvetica: "helvetica";
826
953
  arial: "arial";
@@ -832,6 +959,25 @@ export declare const DocumentFontIdSchema: z.ZodEnum<{
832
959
  condensed: "condensed";
833
960
  ptserif: "ptserif";
834
961
  bitter: "bitter";
962
+ inter: "inter";
963
+ opensans: "opensans";
964
+ montserrat: "montserrat";
965
+ plexsans: "plexsans";
966
+ worksans: "worksans";
967
+ nunitosans: "nunitosans";
968
+ dmsans: "dmsans";
969
+ firasans: "firasans";
970
+ librefranklin: "librefranklin";
971
+ notosans: "notosans";
972
+ lora: "lora";
973
+ sourceserif: "sourceserif";
974
+ plexserif: "plexserif";
975
+ spectral: "spectral";
976
+ playfair: "playfair";
977
+ roboto: "roboto";
978
+ sourcesans: "sourcesans";
979
+ raleway: "raleway";
980
+ latinmodern: "latinmodern";
835
981
  }>;
836
982
  /**
837
983
  * Inks a document (or one line of it) may be set in.
@@ -1050,6 +1196,20 @@ export declare const SCALE_MIN = 0.85;
1050
1196
  export declare const SCALE_MAX = 1.2;
1051
1197
  export declare const SCALE_STEP = 0.05;
1052
1198
  export declare const SCALE_DEFAULT = 1;
1199
+ /**
1200
+ * Sizes for one role of the document — the name, the section headings, the body
1201
+ * text — as a multiplier on what the template (and the overall scale) already
1202
+ * set for that role. Bounded and stepped like the scale, so there is still no
1203
+ * free numeric size; absent means the template's own size for the role.
1204
+ */
1205
+ export declare const ROLE_SIZE_MIN = 0.8;
1206
+ export declare const ROLE_SIZE_MAX = 1.3;
1207
+ export declare const ROLE_SIZE_STEP = 0.05;
1208
+ export declare const ROLE_SIZE_DEFAULT = 1;
1209
+ export declare const DOCUMENT_ROLES: readonly ["name", "heading", "body"];
1210
+ export type DocumentRole = (typeof DOCUMENT_ROLES)[number];
1211
+ /** Round a role size onto its step, within its bounds. */
1212
+ export declare function normalizeRoleSize(value: number): number;
1053
1213
  /** Round to the nearest representable scale, clamped to the bounds. */
1054
1214
  export declare function normalizeScale(value: number): number;
1055
1215
  /**
@@ -1158,6 +1318,25 @@ export declare const DocumentStyleSchema: z.ZodObject<{
1158
1318
  condensed: "condensed";
1159
1319
  ptserif: "ptserif";
1160
1320
  bitter: "bitter";
1321
+ inter: "inter";
1322
+ opensans: "opensans";
1323
+ montserrat: "montserrat";
1324
+ plexsans: "plexsans";
1325
+ worksans: "worksans";
1326
+ nunitosans: "nunitosans";
1327
+ dmsans: "dmsans";
1328
+ firasans: "firasans";
1329
+ librefranklin: "librefranklin";
1330
+ notosans: "notosans";
1331
+ lora: "lora";
1332
+ sourceserif: "sourceserif";
1333
+ plexserif: "plexserif";
1334
+ spectral: "spectral";
1335
+ playfair: "playfair";
1336
+ roboto: "roboto";
1337
+ sourcesans: "sourcesans";
1338
+ raleway: "raleway";
1339
+ latinmodern: "latinmodern";
1161
1340
  }>;
1162
1341
  ink: z.ZodEnum<{
1163
1342
  cobalt: "cobalt";
@@ -1217,6 +1396,25 @@ export declare const DocumentStyleSchema: z.ZodObject<{
1217
1396
  condensed: "condensed";
1218
1397
  ptserif: "ptserif";
1219
1398
  bitter: "bitter";
1399
+ inter: "inter";
1400
+ opensans: "opensans";
1401
+ montserrat: "montserrat";
1402
+ plexsans: "plexsans";
1403
+ worksans: "worksans";
1404
+ nunitosans: "nunitosans";
1405
+ dmsans: "dmsans";
1406
+ firasans: "firasans";
1407
+ librefranklin: "librefranklin";
1408
+ notosans: "notosans";
1409
+ lora: "lora";
1410
+ sourceserif: "sourceserif";
1411
+ plexserif: "plexserif";
1412
+ spectral: "spectral";
1413
+ playfair: "playfair";
1414
+ roboto: "roboto";
1415
+ sourcesans: "sourcesans";
1416
+ raleway: "raleway";
1417
+ latinmodern: "latinmodern";
1220
1418
  }>>;
1221
1419
  headingCase: z.ZodOptional<z.ZodEnum<{
1222
1420
  normal: "normal";
@@ -1227,6 +1425,9 @@ export declare const DocumentStyleSchema: z.ZodObject<{
1227
1425
  bold: "bold";
1228
1426
  regular: "regular";
1229
1427
  }>>;
1428
+ nameSize: z.ZodOptional<z.ZodNumber>;
1429
+ headingSize: z.ZodOptional<z.ZodNumber>;
1430
+ bodySize: z.ZodOptional<z.ZodNumber>;
1230
1431
  }, z.core.$strip>;
1231
1432
  export type DocumentStyle = z.infer<typeof DocumentStyleSchema>;
1232
1433
  /** How one line is set, over and above the document's own style. */
@@ -1394,12 +1595,106 @@ export declare const THEMES: {
1394
1595
  readonly density: "normal";
1395
1596
  };
1396
1597
  };
1598
+ readonly minimal: {
1599
+ readonly name: "Minimal";
1600
+ readonly description: "Quiet, light headings";
1601
+ readonly style: {
1602
+ readonly font: "inter";
1603
+ readonly ink: "charcoal";
1604
+ readonly accent: "grey";
1605
+ readonly density: "roomy";
1606
+ readonly headingWeight: "regular";
1607
+ };
1608
+ };
1609
+ readonly corporate: {
1610
+ readonly name: "Corporate";
1611
+ readonly description: "Clean and businesslike";
1612
+ readonly style: {
1613
+ readonly font: "opensans";
1614
+ readonly ink: "slate";
1615
+ readonly accent: "cobalt";
1616
+ readonly density: "normal";
1617
+ readonly headingCase: "upper";
1618
+ };
1619
+ };
1620
+ readonly tech: {
1621
+ readonly name: "Tech";
1622
+ readonly description: "Precise and compact";
1623
+ readonly style: {
1624
+ readonly font: "plexsans";
1625
+ readonly ink: "charcoal";
1626
+ readonly accent: "teal";
1627
+ readonly density: "tight";
1628
+ readonly headingFont: "plexserif";
1629
+ };
1630
+ };
1631
+ readonly boardroom: {
1632
+ readonly name: "Boardroom";
1633
+ readonly description: "Stately small capitals";
1634
+ readonly style: {
1635
+ readonly font: "garamond";
1636
+ readonly ink: "ink";
1637
+ readonly accent: "navy";
1638
+ readonly density: "normal";
1639
+ readonly headingCase: "smallcaps";
1640
+ };
1641
+ };
1642
+ readonly editorial: {
1643
+ readonly name: "Editorial";
1644
+ readonly description: "Warm magazine serif";
1645
+ readonly style: {
1646
+ readonly font: "lora";
1647
+ readonly ink: "brown";
1648
+ readonly accent: "rust";
1649
+ readonly density: "normal";
1650
+ readonly headingFont: "montserrat";
1651
+ readonly headingCase: "upper";
1652
+ };
1653
+ };
1654
+ readonly creative: {
1655
+ readonly name: "Creative";
1656
+ readonly description: "Expressive display headings";
1657
+ readonly style: {
1658
+ readonly font: "worksans";
1659
+ readonly ink: "charcoal";
1660
+ readonly accent: "plum";
1661
+ readonly density: "roomy";
1662
+ readonly headingFont: "playfair";
1663
+ };
1664
+ };
1665
+ readonly fresh: {
1666
+ readonly name: "Fresh";
1667
+ readonly description: "Friendly and airy";
1668
+ readonly style: {
1669
+ readonly font: "nunitosans";
1670
+ readonly ink: "slate";
1671
+ readonly accent: "forest";
1672
+ readonly density: "roomy";
1673
+ readonly leading: "relaxed";
1674
+ };
1675
+ };
1676
+ readonly latex: {
1677
+ readonly name: "LaTeX";
1678
+ readonly description: "The look of a typeset paper";
1679
+ readonly style: {
1680
+ readonly font: "latinmodern";
1681
+ readonly ink: "ink";
1682
+ readonly accent: "ink";
1683
+ readonly density: "normal";
1684
+ readonly headingCase: "smallcaps";
1685
+ };
1686
+ };
1397
1687
  };
1688
+ /**
1689
+ * What a theme speaks to. Applying one clears all of these before setting its
1690
+ * own, so a heading case one theme chose does not leak into the next.
1691
+ */
1692
+ export declare const THEME_KEYS: readonly ["font", "ink", "accent", "density", "headingFont", "headingCase", "headingWeight", "tracking", "leading"];
1398
1693
  export type ThemeId = keyof typeof THEMES;
1399
1694
  /**
1400
1695
  * Apply a theme, preserving what the theme does not speak to.
1401
1696
  *
1402
- * The size scale survives: it is how a candidate fits their resume on one page,
1697
+ * The size scale and the role sizes survive: they are how a candidate fits their resume on one page,
1403
1698
  * which is a decision about THEIR document rather than about its styling, and
1404
1699
  * silently resetting it would undo work a theme has no opinion about.
1405
1700
  */
@@ -1577,6 +1872,25 @@ export declare const ResumePresentationSchema: z.ZodObject<{
1577
1872
  condensed: "condensed";
1578
1873
  ptserif: "ptserif";
1579
1874
  bitter: "bitter";
1875
+ inter: "inter";
1876
+ opensans: "opensans";
1877
+ montserrat: "montserrat";
1878
+ plexsans: "plexsans";
1879
+ worksans: "worksans";
1880
+ nunitosans: "nunitosans";
1881
+ dmsans: "dmsans";
1882
+ firasans: "firasans";
1883
+ librefranklin: "librefranklin";
1884
+ notosans: "notosans";
1885
+ lora: "lora";
1886
+ sourceserif: "sourceserif";
1887
+ plexserif: "plexserif";
1888
+ spectral: "spectral";
1889
+ playfair: "playfair";
1890
+ roboto: "roboto";
1891
+ sourcesans: "sourcesans";
1892
+ raleway: "raleway";
1893
+ latinmodern: "latinmodern";
1580
1894
  }>;
1581
1895
  ink: z.ZodEnum<{
1582
1896
  cobalt: "cobalt";
@@ -1636,6 +1950,25 @@ export declare const ResumePresentationSchema: z.ZodObject<{
1636
1950
  condensed: "condensed";
1637
1951
  ptserif: "ptserif";
1638
1952
  bitter: "bitter";
1953
+ inter: "inter";
1954
+ opensans: "opensans";
1955
+ montserrat: "montserrat";
1956
+ plexsans: "plexsans";
1957
+ worksans: "worksans";
1958
+ nunitosans: "nunitosans";
1959
+ dmsans: "dmsans";
1960
+ firasans: "firasans";
1961
+ librefranklin: "librefranklin";
1962
+ notosans: "notosans";
1963
+ lora: "lora";
1964
+ sourceserif: "sourceserif";
1965
+ plexserif: "plexserif";
1966
+ spectral: "spectral";
1967
+ playfair: "playfair";
1968
+ roboto: "roboto";
1969
+ sourcesans: "sourcesans";
1970
+ raleway: "raleway";
1971
+ latinmodern: "latinmodern";
1639
1972
  }>>;
1640
1973
  headingCase: z.ZodOptional<z.ZodEnum<{
1641
1974
  normal: "normal";
@@ -1646,6 +1979,9 @@ export declare const ResumePresentationSchema: z.ZodObject<{
1646
1979
  bold: "bold";
1647
1980
  regular: "regular";
1648
1981
  }>>;
1982
+ nameSize: z.ZodOptional<z.ZodNumber>;
1983
+ headingSize: z.ZodOptional<z.ZodNumber>;
1984
+ bodySize: z.ZodOptional<z.ZodNumber>;
1649
1985
  }, z.core.$strip>>;
1650
1986
  formats: z.ZodOptional<z.ZodArray<z.ZodObject<{
1651
1987
  path: z.ZodString;
@@ -1818,6 +2154,25 @@ export declare const PutPresentationRequestSchema: z.ZodObject<{
1818
2154
  condensed: "condensed";
1819
2155
  ptserif: "ptserif";
1820
2156
  bitter: "bitter";
2157
+ inter: "inter";
2158
+ opensans: "opensans";
2159
+ montserrat: "montserrat";
2160
+ plexsans: "plexsans";
2161
+ worksans: "worksans";
2162
+ nunitosans: "nunitosans";
2163
+ dmsans: "dmsans";
2164
+ firasans: "firasans";
2165
+ librefranklin: "librefranklin";
2166
+ notosans: "notosans";
2167
+ lora: "lora";
2168
+ sourceserif: "sourceserif";
2169
+ plexserif: "plexserif";
2170
+ spectral: "spectral";
2171
+ playfair: "playfair";
2172
+ roboto: "roboto";
2173
+ sourcesans: "sourcesans";
2174
+ raleway: "raleway";
2175
+ latinmodern: "latinmodern";
1821
2176
  }>;
1822
2177
  ink: z.ZodEnum<{
1823
2178
  cobalt: "cobalt";
@@ -1877,6 +2232,25 @@ export declare const PutPresentationRequestSchema: z.ZodObject<{
1877
2232
  condensed: "condensed";
1878
2233
  ptserif: "ptserif";
1879
2234
  bitter: "bitter";
2235
+ inter: "inter";
2236
+ opensans: "opensans";
2237
+ montserrat: "montserrat";
2238
+ plexsans: "plexsans";
2239
+ worksans: "worksans";
2240
+ nunitosans: "nunitosans";
2241
+ dmsans: "dmsans";
2242
+ firasans: "firasans";
2243
+ librefranklin: "librefranklin";
2244
+ notosans: "notosans";
2245
+ lora: "lora";
2246
+ sourceserif: "sourceserif";
2247
+ plexserif: "plexserif";
2248
+ spectral: "spectral";
2249
+ playfair: "playfair";
2250
+ roboto: "roboto";
2251
+ sourcesans: "sourcesans";
2252
+ raleway: "raleway";
2253
+ latinmodern: "latinmodern";
1880
2254
  }>>;
1881
2255
  headingCase: z.ZodOptional<z.ZodEnum<{
1882
2256
  normal: "normal";
@@ -1887,6 +2261,9 @@ export declare const PutPresentationRequestSchema: z.ZodObject<{
1887
2261
  bold: "bold";
1888
2262
  regular: "regular";
1889
2263
  }>>;
2264
+ nameSize: z.ZodOptional<z.ZodNumber>;
2265
+ headingSize: z.ZodOptional<z.ZodNumber>;
2266
+ bodySize: z.ZodOptional<z.ZodNumber>;
1890
2267
  }, z.core.$strip>>;
1891
2268
  formats: z.ZodOptional<z.ZodArray<z.ZodObject<{
1892
2269
  path: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,aAAa,CAAC;AAGrB;;;;;;;;;GASG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,EASjC,UAAU,GAAE,WAAgB,EAgB5B,QAAQ,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC9C,WAAW,CAkDb;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,WAAW,EACrB,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GACzB,WAAW,CA0Bb;AA6BD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,iBAAiB,GACzB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAerB"}
package/dist/template.js CHANGED
@@ -925,31 +925,37 @@ export const ResumeEditsSchema = z
925
925
  export const DOCUMENT_FONTS = {
926
926
  helvetica: {
927
927
  name: 'Helvetica',
928
+ category: 'sans',
928
929
  supplied: 'TeX Gyre Heros',
929
930
  stack: "'TeX Gyre Heros', 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif",
930
931
  },
931
932
  arial: {
932
933
  name: 'Arial',
934
+ category: 'sans',
933
935
  supplied: 'Arimo',
934
936
  stack: "Arimo, Arial, 'Helvetica Neue', Helvetica, 'Liberation Sans', sans-serif",
935
937
  },
936
938
  calibri: {
937
939
  name: 'Calibri',
940
+ category: 'sans',
938
941
  supplied: 'Carlito',
939
942
  stack: "Carlito, Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif",
940
943
  },
941
944
  georgia: {
942
945
  name: 'Georgia',
946
+ category: 'serif',
943
947
  supplied: 'Gelasio',
944
948
  stack: "Gelasio, Georgia, Cambria, 'Times New Roman', Times, serif",
945
949
  },
946
950
  garamond: {
947
951
  name: 'Garamond',
952
+ category: 'serif',
948
953
  supplied: 'EB Garamond',
949
954
  stack: "'EB Garamond', Garamond, Baskerville, 'Baskerville Old Face', 'Times New Roman', serif",
950
955
  },
951
956
  times: {
952
957
  name: 'Times',
958
+ category: 'serif',
953
959
  supplied: 'Tinos',
954
960
  stack: "Tinos, 'Times New Roman', Times, Georgia, serif",
955
961
  },
@@ -969,25 +975,151 @@ export const DOCUMENT_FONTS = {
969
975
  */
970
976
  lato: {
971
977
  name: 'Lato',
978
+ category: 'sans',
972
979
  supplied: 'Lato',
973
980
  stack: "Lato, 'Segoe UI', Candara, Optima, Calibri, sans-serif",
974
981
  },
975
982
  condensed: {
976
983
  name: 'Roboto Condensed',
984
+ category: 'sans',
977
985
  supplied: 'Roboto Condensed',
978
986
  stack: "'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue Condensed', 'Liberation Sans Narrow', sans-serif",
979
987
  },
980
988
  ptserif: {
981
989
  name: 'PT Serif',
990
+ category: 'serif',
982
991
  supplied: 'PT Serif',
983
992
  stack: "'PT Serif', Charter, Cambria, Georgia, 'Times New Roman', serif",
984
993
  },
985
994
  bitter: {
986
995
  name: 'Bitter',
996
+ category: 'slab',
987
997
  supplied: 'Bitter',
988
998
  stack: "Bitter, 'Roboto Slab', Rockwell, 'Courier New', Cambria, Georgia, serif",
989
999
  },
1000
+ /*
1001
+ * The wider catalog. Popular open faces, so a candidate can find the one they
1002
+ * have in mind rather than the nearest of ten. Each is supplied in the same
1003
+ * four styles, and each stack degrades to its own register.
1004
+ */
1005
+ inter: {
1006
+ name: 'Inter',
1007
+ category: 'sans',
1008
+ supplied: 'Inter',
1009
+ stack: "Inter, 'Helvetica Neue', Arial, sans-serif",
1010
+ },
1011
+ opensans: {
1012
+ name: 'Open Sans',
1013
+ category: 'sans',
1014
+ supplied: 'Open Sans',
1015
+ stack: "'Open Sans', 'Segoe UI', Arial, sans-serif",
1016
+ },
1017
+ montserrat: {
1018
+ name: 'Montserrat',
1019
+ category: 'sans',
1020
+ supplied: 'Montserrat',
1021
+ stack: "Montserrat, 'Century Gothic', Arial, sans-serif",
1022
+ },
1023
+ plexsans: {
1024
+ name: 'IBM Plex Sans',
1025
+ category: 'sans',
1026
+ supplied: 'IBM Plex Sans',
1027
+ stack: "'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif",
1028
+ },
1029
+ worksans: {
1030
+ name: 'Work Sans',
1031
+ category: 'sans',
1032
+ supplied: 'Work Sans',
1033
+ stack: "'Work Sans', 'Helvetica Neue', Arial, sans-serif",
1034
+ },
1035
+ nunitosans: {
1036
+ name: 'Nunito Sans',
1037
+ category: 'sans',
1038
+ supplied: 'Nunito Sans',
1039
+ stack: "'Nunito Sans', 'Segoe UI', Arial, sans-serif",
1040
+ },
1041
+ dmsans: {
1042
+ name: 'DM Sans',
1043
+ category: 'sans',
1044
+ supplied: 'DM Sans',
1045
+ stack: "'DM Sans', 'Helvetica Neue', Arial, sans-serif",
1046
+ },
1047
+ firasans: {
1048
+ name: 'Fira Sans',
1049
+ category: 'sans',
1050
+ supplied: 'Fira Sans',
1051
+ stack: "'Fira Sans', 'Segoe UI', Arial, sans-serif",
1052
+ },
1053
+ librefranklin: {
1054
+ name: 'Libre Franklin',
1055
+ category: 'sans',
1056
+ supplied: 'Libre Franklin',
1057
+ stack: "'Libre Franklin', 'Franklin Gothic', Arial, sans-serif",
1058
+ },
1059
+ notosans: {
1060
+ name: 'Noto Sans',
1061
+ category: 'sans',
1062
+ supplied: 'Noto Sans',
1063
+ stack: "'Noto Sans', 'Segoe UI', Arial, sans-serif",
1064
+ },
1065
+ lora: {
1066
+ name: 'Lora',
1067
+ category: 'serif',
1068
+ supplied: 'Lora',
1069
+ stack: "Lora, Georgia, 'Times New Roman', serif",
1070
+ },
1071
+ sourceserif: {
1072
+ name: 'Source Serif',
1073
+ category: 'serif',
1074
+ supplied: 'Source Serif 4',
1075
+ stack: "'Source Serif 4', Georgia, 'Times New Roman', serif",
1076
+ },
1077
+ plexserif: {
1078
+ name: 'IBM Plex Serif',
1079
+ category: 'serif',
1080
+ supplied: 'IBM Plex Serif',
1081
+ stack: "'IBM Plex Serif', Georgia, 'Times New Roman', serif",
1082
+ },
1083
+ spectral: {
1084
+ name: 'Spectral',
1085
+ category: 'serif',
1086
+ supplied: 'Spectral',
1087
+ stack: 'Spectral, Garamond, Georgia, serif',
1088
+ },
1089
+ playfair: {
1090
+ name: 'Playfair Display',
1091
+ category: 'serif',
1092
+ supplied: 'Playfair Display',
1093
+ stack: "'Playfair Display', Didot, Georgia, serif",
1094
+ },
1095
+ /* Template faces that are also worth picking: already shipped for a design. */
1096
+ roboto: {
1097
+ name: 'Roboto',
1098
+ category: 'sans',
1099
+ supplied: 'Roboto',
1100
+ stack: "Roboto, 'Helvetica Neue', Arial, sans-serif",
1101
+ },
1102
+ sourcesans: {
1103
+ name: 'Source Sans',
1104
+ category: 'sans',
1105
+ supplied: 'Source Sans 3',
1106
+ stack: "'Source Sans 3', 'Segoe UI', Arial, sans-serif",
1107
+ },
1108
+ raleway: {
1109
+ name: 'Raleway',
1110
+ category: 'sans',
1111
+ supplied: 'Raleway',
1112
+ stack: "Raleway, 'Century Gothic', Arial, sans-serif",
1113
+ },
1114
+ latinmodern: {
1115
+ name: 'Latin Modern (LaTeX)',
1116
+ category: 'serif',
1117
+ supplied: 'Latin Modern Roman',
1118
+ stack: "'Latin Modern Roman', 'Computer Modern', 'Times New Roman', serif",
1119
+ },
990
1120
  };
1121
+ /** How a picker groups the typefaces, in the order it shows them. */
1122
+ export const FONT_CATEGORIES = ['sans', 'serif', 'slab'];
991
1123
  export const DocumentFontIdSchema = z.enum(Object.keys(DOCUMENT_FONTS));
992
1124
  /**
993
1125
  * Inks a document (or one line of it) may be set in.
@@ -1161,6 +1293,24 @@ export const SCALE_MIN = 0.85;
1161
1293
  export const SCALE_MAX = 1.2;
1162
1294
  export const SCALE_STEP = 0.05;
1163
1295
  export const SCALE_DEFAULT = 1;
1296
+ /**
1297
+ * Sizes for one role of the document — the name, the section headings, the body
1298
+ * text — as a multiplier on what the template (and the overall scale) already
1299
+ * set for that role. Bounded and stepped like the scale, so there is still no
1300
+ * free numeric size; absent means the template's own size for the role.
1301
+ */
1302
+ export const ROLE_SIZE_MIN = 0.8;
1303
+ export const ROLE_SIZE_MAX = 1.3;
1304
+ export const ROLE_SIZE_STEP = 0.05;
1305
+ export const ROLE_SIZE_DEFAULT = 1;
1306
+ export const DOCUMENT_ROLES = ['name', 'heading', 'body'];
1307
+ /** Round a role size onto its step, within its bounds. */
1308
+ export function normalizeRoleSize(value) {
1309
+ const stepped = Math.round(value / ROLE_SIZE_STEP) * ROLE_SIZE_STEP;
1310
+ const clamped = Math.min(ROLE_SIZE_MAX, Math.max(ROLE_SIZE_MIN, stepped));
1311
+ return Number(clamped.toFixed(2));
1312
+ }
1313
+ const RoleSizeSchema = z.number().min(ROLE_SIZE_MIN).max(ROLE_SIZE_MAX);
1164
1314
  /** Round to the nearest representable scale, clamped to the bounds. */
1165
1315
  export function normalizeScale(value) {
1166
1316
  const stepped = Math.round(value / SCALE_STEP) * SCALE_STEP;
@@ -1254,6 +1404,12 @@ export const DocumentStyleSchema = z.object({
1254
1404
  headingCase: HeadingCaseIdSchema.optional(),
1255
1405
  /** How heavy section headings are — see {@link HEADING_WEIGHTS}. */
1256
1406
  headingWeight: HeadingWeightIdSchema.optional(),
1407
+ /** The name's size, over the template's — see {@link ROLE_SIZE_MIN}. */
1408
+ nameSize: RoleSizeSchema.optional(),
1409
+ /** The section headings' size, over the template's. */
1410
+ headingSize: RoleSizeSchema.optional(),
1411
+ /** The body text's size, over the template's. */
1412
+ bodySize: RoleSizeSchema.optional(),
1257
1413
  });
1258
1414
  /** How one line is set, over and above the document's own style. */
1259
1415
  export const FieldAlignSchema = z.enum(['left', 'center', 'right']);
@@ -1343,12 +1499,7 @@ export const THEMES = {
1343
1499
  classic: {
1344
1500
  name: 'Classic',
1345
1501
  description: 'Serif and restrained',
1346
- style: {
1347
- font: 'times',
1348
- ink: 'ink',
1349
- accent: 'ink',
1350
- density: 'normal',
1351
- },
1502
+ style: { font: 'times', ink: 'ink', accent: 'ink', density: 'normal' },
1352
1503
  },
1353
1504
  modern: {
1354
1505
  name: 'Modern',
@@ -1363,33 +1514,130 @@ export const THEMES = {
1363
1514
  compact: {
1364
1515
  name: 'Compact',
1365
1516
  description: 'Tight, fits more',
1517
+ style: { font: 'arial', ink: 'ink', accent: 'grey', density: 'tight' },
1518
+ },
1519
+ academic: {
1520
+ name: 'Academic',
1521
+ description: 'Formal and sober',
1522
+ style: { font: 'georgia', ink: 'ink', accent: 'maroon', density: 'normal' },
1523
+ },
1524
+ minimal: {
1525
+ name: 'Minimal',
1526
+ description: 'Quiet, light headings',
1366
1527
  style: {
1367
- font: 'arial',
1368
- ink: 'ink',
1528
+ font: 'inter',
1529
+ ink: 'charcoal',
1369
1530
  accent: 'grey',
1531
+ density: 'roomy',
1532
+ headingWeight: 'regular',
1533
+ },
1534
+ },
1535
+ corporate: {
1536
+ name: 'Corporate',
1537
+ description: 'Clean and businesslike',
1538
+ style: {
1539
+ font: 'opensans',
1540
+ ink: 'slate',
1541
+ accent: 'cobalt',
1542
+ density: 'normal',
1543
+ headingCase: 'upper',
1544
+ },
1545
+ },
1546
+ tech: {
1547
+ name: 'Tech',
1548
+ description: 'Precise and compact',
1549
+ style: {
1550
+ font: 'plexsans',
1551
+ ink: 'charcoal',
1552
+ accent: 'teal',
1370
1553
  density: 'tight',
1554
+ headingFont: 'plexserif',
1371
1555
  },
1372
1556
  },
1373
- academic: {
1374
- name: 'Academic',
1375
- description: 'Formal and sober',
1557
+ boardroom: {
1558
+ name: 'Boardroom',
1559
+ description: 'Stately small capitals',
1560
+ style: {
1561
+ font: 'garamond',
1562
+ ink: 'ink',
1563
+ accent: 'navy',
1564
+ density: 'normal',
1565
+ headingCase: 'smallcaps',
1566
+ },
1567
+ },
1568
+ editorial: {
1569
+ name: 'Editorial',
1570
+ description: 'Warm magazine serif',
1571
+ style: {
1572
+ font: 'lora',
1573
+ ink: 'brown',
1574
+ accent: 'rust',
1575
+ density: 'normal',
1576
+ headingFont: 'montserrat',
1577
+ headingCase: 'upper',
1578
+ },
1579
+ },
1580
+ creative: {
1581
+ name: 'Creative',
1582
+ description: 'Expressive display headings',
1583
+ style: {
1584
+ font: 'worksans',
1585
+ ink: 'charcoal',
1586
+ accent: 'plum',
1587
+ density: 'roomy',
1588
+ headingFont: 'playfair',
1589
+ },
1590
+ },
1591
+ fresh: {
1592
+ name: 'Fresh',
1593
+ description: 'Friendly and airy',
1376
1594
  style: {
1377
- font: 'georgia',
1595
+ font: 'nunitosans',
1596
+ ink: 'slate',
1597
+ accent: 'forest',
1598
+ density: 'roomy',
1599
+ leading: 'relaxed',
1600
+ },
1601
+ },
1602
+ latex: {
1603
+ name: 'LaTeX',
1604
+ description: 'The look of a typeset paper',
1605
+ style: {
1606
+ font: 'latinmodern',
1378
1607
  ink: 'ink',
1379
- accent: 'maroon',
1608
+ accent: 'ink',
1380
1609
  density: 'normal',
1610
+ headingCase: 'smallcaps',
1381
1611
  },
1382
1612
  },
1383
1613
  };
1614
+ /**
1615
+ * What a theme speaks to. Applying one clears all of these before setting its
1616
+ * own, so a heading case one theme chose does not leak into the next.
1617
+ */
1618
+ export const THEME_KEYS = [
1619
+ 'font',
1620
+ 'ink',
1621
+ 'accent',
1622
+ 'density',
1623
+ 'headingFont',
1624
+ 'headingCase',
1625
+ 'headingWeight',
1626
+ 'tracking',
1627
+ 'leading',
1628
+ ];
1384
1629
  /**
1385
1630
  * Apply a theme, preserving what the theme does not speak to.
1386
1631
  *
1387
- * The size scale survives: it is how a candidate fits their resume on one page,
1632
+ * The size scale and the role sizes survive: they are how a candidate fits their resume on one page,
1388
1633
  * which is a decision about THEIR document rather than about its styling, and
1389
1634
  * silently resetting it would undo work a theme has no opinion about.
1390
1635
  */
1391
1636
  export function applyTheme(style, id) {
1392
- return { ...style, ...THEMES[id].style };
1637
+ const kept = { ...style };
1638
+ for (const key of THEME_KEYS)
1639
+ delete kept[key];
1640
+ return { ...kept, ...THEMES[id].style };
1393
1641
  }
1394
1642
  /** Extra space above one named section. */
1395
1643
  export const SectionSpacingSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resumekit/schema",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Zod schemas for a structured resume, the resumekit template catalog, and the presentation overlay a candidate's edits are recorded in.",
5
5
  "keywords": [
6
6
  "resume",
package/src/template.ts CHANGED
@@ -1053,35 +1053,41 @@ export type ResumeEdits = z.infer<typeof ResumeEditsSchema>;
1053
1053
  export const DOCUMENT_FONTS = {
1054
1054
  helvetica: {
1055
1055
  name: 'Helvetica',
1056
+ category: 'sans',
1056
1057
  supplied: 'TeX Gyre Heros',
1057
1058
  stack:
1058
1059
  "'TeX Gyre Heros', 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif",
1059
1060
  },
1060
1061
  arial: {
1061
1062
  name: 'Arial',
1063
+ category: 'sans',
1062
1064
  supplied: 'Arimo',
1063
1065
  stack:
1064
1066
  "Arimo, Arial, 'Helvetica Neue', Helvetica, 'Liberation Sans', sans-serif",
1065
1067
  },
1066
1068
  calibri: {
1067
1069
  name: 'Calibri',
1070
+ category: 'sans',
1068
1071
  supplied: 'Carlito',
1069
1072
  stack:
1070
1073
  "Carlito, Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif",
1071
1074
  },
1072
1075
  georgia: {
1073
1076
  name: 'Georgia',
1077
+ category: 'serif',
1074
1078
  supplied: 'Gelasio',
1075
1079
  stack: "Gelasio, Georgia, Cambria, 'Times New Roman', Times, serif",
1076
1080
  },
1077
1081
  garamond: {
1078
1082
  name: 'Garamond',
1083
+ category: 'serif',
1079
1084
  supplied: 'EB Garamond',
1080
1085
  stack:
1081
1086
  "'EB Garamond', Garamond, Baskerville, 'Baskerville Old Face', 'Times New Roman', serif",
1082
1087
  },
1083
1088
  times: {
1084
1089
  name: 'Times',
1090
+ category: 'serif',
1085
1091
  supplied: 'Tinos',
1086
1092
  stack: "Tinos, 'Times New Roman', Times, Georgia, serif",
1087
1093
  },
@@ -1101,29 +1107,157 @@ export const DOCUMENT_FONTS = {
1101
1107
  */
1102
1108
  lato: {
1103
1109
  name: 'Lato',
1110
+ category: 'sans',
1104
1111
  supplied: 'Lato',
1105
1112
  stack: "Lato, 'Segoe UI', Candara, Optima, Calibri, sans-serif",
1106
1113
  },
1107
1114
  condensed: {
1108
1115
  name: 'Roboto Condensed',
1116
+ category: 'sans',
1109
1117
  supplied: 'Roboto Condensed',
1110
1118
  stack:
1111
1119
  "'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue Condensed', 'Liberation Sans Narrow', sans-serif",
1112
1120
  },
1113
1121
  ptserif: {
1114
1122
  name: 'PT Serif',
1123
+ category: 'serif',
1115
1124
  supplied: 'PT Serif',
1116
1125
  stack: "'PT Serif', Charter, Cambria, Georgia, 'Times New Roman', serif",
1117
1126
  },
1118
1127
  bitter: {
1119
1128
  name: 'Bitter',
1129
+ category: 'slab',
1120
1130
  supplied: 'Bitter',
1121
1131
  stack:
1122
1132
  "Bitter, 'Roboto Slab', Rockwell, 'Courier New', Cambria, Georgia, serif",
1123
1133
  },
1134
+ /*
1135
+ * The wider catalog. Popular open faces, so a candidate can find the one they
1136
+ * have in mind rather than the nearest of ten. Each is supplied in the same
1137
+ * four styles, and each stack degrades to its own register.
1138
+ */
1139
+ inter: {
1140
+ name: 'Inter',
1141
+ category: 'sans',
1142
+ supplied: 'Inter',
1143
+ stack: "Inter, 'Helvetica Neue', Arial, sans-serif",
1144
+ },
1145
+ opensans: {
1146
+ name: 'Open Sans',
1147
+ category: 'sans',
1148
+ supplied: 'Open Sans',
1149
+ stack: "'Open Sans', 'Segoe UI', Arial, sans-serif",
1150
+ },
1151
+ montserrat: {
1152
+ name: 'Montserrat',
1153
+ category: 'sans',
1154
+ supplied: 'Montserrat',
1155
+ stack: "Montserrat, 'Century Gothic', Arial, sans-serif",
1156
+ },
1157
+ plexsans: {
1158
+ name: 'IBM Plex Sans',
1159
+ category: 'sans',
1160
+ supplied: 'IBM Plex Sans',
1161
+ stack: "'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif",
1162
+ },
1163
+ worksans: {
1164
+ name: 'Work Sans',
1165
+ category: 'sans',
1166
+ supplied: 'Work Sans',
1167
+ stack: "'Work Sans', 'Helvetica Neue', Arial, sans-serif",
1168
+ },
1169
+ nunitosans: {
1170
+ name: 'Nunito Sans',
1171
+ category: 'sans',
1172
+ supplied: 'Nunito Sans',
1173
+ stack: "'Nunito Sans', 'Segoe UI', Arial, sans-serif",
1174
+ },
1175
+ dmsans: {
1176
+ name: 'DM Sans',
1177
+ category: 'sans',
1178
+ supplied: 'DM Sans',
1179
+ stack: "'DM Sans', 'Helvetica Neue', Arial, sans-serif",
1180
+ },
1181
+ firasans: {
1182
+ name: 'Fira Sans',
1183
+ category: 'sans',
1184
+ supplied: 'Fira Sans',
1185
+ stack: "'Fira Sans', 'Segoe UI', Arial, sans-serif",
1186
+ },
1187
+ librefranklin: {
1188
+ name: 'Libre Franklin',
1189
+ category: 'sans',
1190
+ supplied: 'Libre Franklin',
1191
+ stack: "'Libre Franklin', 'Franklin Gothic', Arial, sans-serif",
1192
+ },
1193
+ notosans: {
1194
+ name: 'Noto Sans',
1195
+ category: 'sans',
1196
+ supplied: 'Noto Sans',
1197
+ stack: "'Noto Sans', 'Segoe UI', Arial, sans-serif",
1198
+ },
1199
+ lora: {
1200
+ name: 'Lora',
1201
+ category: 'serif',
1202
+ supplied: 'Lora',
1203
+ stack: "Lora, Georgia, 'Times New Roman', serif",
1204
+ },
1205
+ sourceserif: {
1206
+ name: 'Source Serif',
1207
+ category: 'serif',
1208
+ supplied: 'Source Serif 4',
1209
+ stack: "'Source Serif 4', Georgia, 'Times New Roman', serif",
1210
+ },
1211
+ plexserif: {
1212
+ name: 'IBM Plex Serif',
1213
+ category: 'serif',
1214
+ supplied: 'IBM Plex Serif',
1215
+ stack: "'IBM Plex Serif', Georgia, 'Times New Roman', serif",
1216
+ },
1217
+ spectral: {
1218
+ name: 'Spectral',
1219
+ category: 'serif',
1220
+ supplied: 'Spectral',
1221
+ stack: 'Spectral, Garamond, Georgia, serif',
1222
+ },
1223
+ playfair: {
1224
+ name: 'Playfair Display',
1225
+ category: 'serif',
1226
+ supplied: 'Playfair Display',
1227
+ stack: "'Playfair Display', Didot, Georgia, serif",
1228
+ },
1229
+ /* Template faces that are also worth picking: already shipped for a design. */
1230
+ roboto: {
1231
+ name: 'Roboto',
1232
+ category: 'sans',
1233
+ supplied: 'Roboto',
1234
+ stack: "Roboto, 'Helvetica Neue', Arial, sans-serif",
1235
+ },
1236
+ sourcesans: {
1237
+ name: 'Source Sans',
1238
+ category: 'sans',
1239
+ supplied: 'Source Sans 3',
1240
+ stack: "'Source Sans 3', 'Segoe UI', Arial, sans-serif",
1241
+ },
1242
+ raleway: {
1243
+ name: 'Raleway',
1244
+ category: 'sans',
1245
+ supplied: 'Raleway',
1246
+ stack: "Raleway, 'Century Gothic', Arial, sans-serif",
1247
+ },
1248
+ latinmodern: {
1249
+ name: 'Latin Modern (LaTeX)',
1250
+ category: 'serif',
1251
+ supplied: 'Latin Modern Roman',
1252
+ stack: "'Latin Modern Roman', 'Computer Modern', 'Times New Roman', serif",
1253
+ },
1124
1254
  } as const;
1125
1255
 
1126
1256
  export type DocumentFontId = keyof typeof DOCUMENT_FONTS;
1257
+
1258
+ /** How a picker groups the typefaces, in the order it shows them. */
1259
+ export const FONT_CATEGORIES = ['sans', 'serif', 'slab'] as const;
1260
+ export type FontCategory = (typeof FONT_CATEGORIES)[number];
1127
1261
  export const DocumentFontIdSchema = z.enum(
1128
1262
  Object.keys(DOCUMENT_FONTS) as [DocumentFontId, ...DocumentFontId[]],
1129
1263
  );
@@ -1332,6 +1466,28 @@ export const SCALE_MAX = 1.2;
1332
1466
  export const SCALE_STEP = 0.05;
1333
1467
  export const SCALE_DEFAULT = 1;
1334
1468
 
1469
+ /**
1470
+ * Sizes for one role of the document — the name, the section headings, the body
1471
+ * text — as a multiplier on what the template (and the overall scale) already
1472
+ * set for that role. Bounded and stepped like the scale, so there is still no
1473
+ * free numeric size; absent means the template's own size for the role.
1474
+ */
1475
+ export const ROLE_SIZE_MIN = 0.8;
1476
+ export const ROLE_SIZE_MAX = 1.3;
1477
+ export const ROLE_SIZE_STEP = 0.05;
1478
+ export const ROLE_SIZE_DEFAULT = 1;
1479
+ export const DOCUMENT_ROLES = ['name', 'heading', 'body'] as const;
1480
+ export type DocumentRole = (typeof DOCUMENT_ROLES)[number];
1481
+
1482
+ /** Round a role size onto its step, within its bounds. */
1483
+ export function normalizeRoleSize(value: number): number {
1484
+ const stepped = Math.round(value / ROLE_SIZE_STEP) * ROLE_SIZE_STEP;
1485
+ const clamped = Math.min(ROLE_SIZE_MAX, Math.max(ROLE_SIZE_MIN, stepped));
1486
+ return Number(clamped.toFixed(2));
1487
+ }
1488
+
1489
+ const RoleSizeSchema = z.number().min(ROLE_SIZE_MIN).max(ROLE_SIZE_MAX);
1490
+
1335
1491
  /** Round to the nearest representable scale, clamped to the bounds. */
1336
1492
  export function normalizeScale(value: number): number {
1337
1493
  const stepped = Math.round(value / SCALE_STEP) * SCALE_STEP;
@@ -1442,6 +1598,12 @@ export const DocumentStyleSchema = z.object({
1442
1598
  headingCase: HeadingCaseIdSchema.optional(),
1443
1599
  /** How heavy section headings are — see {@link HEADING_WEIGHTS}. */
1444
1600
  headingWeight: HeadingWeightIdSchema.optional(),
1601
+ /** The name's size, over the template's — see {@link ROLE_SIZE_MIN}. */
1602
+ nameSize: RoleSizeSchema.optional(),
1603
+ /** The section headings' size, over the template's. */
1604
+ headingSize: RoleSizeSchema.optional(),
1605
+ /** The body text's size, over the template's. */
1606
+ bodySize: RoleSizeSchema.optional(),
1445
1607
  });
1446
1608
  export type DocumentStyle = z.infer<typeof DocumentStyleSchema>;
1447
1609
 
@@ -1550,12 +1712,7 @@ export const THEMES = {
1550
1712
  classic: {
1551
1713
  name: 'Classic',
1552
1714
  description: 'Serif and restrained',
1553
- style: {
1554
- font: 'times',
1555
- ink: 'ink',
1556
- accent: 'ink',
1557
- density: 'normal',
1558
- },
1715
+ style: { font: 'times', ink: 'ink', accent: 'ink', density: 'normal' },
1559
1716
  },
1560
1717
  modern: {
1561
1718
  name: 'Modern',
@@ -1570,21 +1727,100 @@ export const THEMES = {
1570
1727
  compact: {
1571
1728
  name: 'Compact',
1572
1729
  description: 'Tight, fits more',
1730
+ style: { font: 'arial', ink: 'ink', accent: 'grey', density: 'tight' },
1731
+ },
1732
+ academic: {
1733
+ name: 'Academic',
1734
+ description: 'Formal and sober',
1735
+ style: { font: 'georgia', ink: 'ink', accent: 'maroon', density: 'normal' },
1736
+ },
1737
+ minimal: {
1738
+ name: 'Minimal',
1739
+ description: 'Quiet, light headings',
1573
1740
  style: {
1574
- font: 'arial',
1575
- ink: 'ink',
1741
+ font: 'inter',
1742
+ ink: 'charcoal',
1576
1743
  accent: 'grey',
1744
+ density: 'roomy',
1745
+ headingWeight: 'regular',
1746
+ },
1747
+ },
1748
+ corporate: {
1749
+ name: 'Corporate',
1750
+ description: 'Clean and businesslike',
1751
+ style: {
1752
+ font: 'opensans',
1753
+ ink: 'slate',
1754
+ accent: 'cobalt',
1755
+ density: 'normal',
1756
+ headingCase: 'upper',
1757
+ },
1758
+ },
1759
+ tech: {
1760
+ name: 'Tech',
1761
+ description: 'Precise and compact',
1762
+ style: {
1763
+ font: 'plexsans',
1764
+ ink: 'charcoal',
1765
+ accent: 'teal',
1577
1766
  density: 'tight',
1767
+ headingFont: 'plexserif',
1578
1768
  },
1579
1769
  },
1580
- academic: {
1581
- name: 'Academic',
1582
- description: 'Formal and sober',
1770
+ boardroom: {
1771
+ name: 'Boardroom',
1772
+ description: 'Stately small capitals',
1773
+ style: {
1774
+ font: 'garamond',
1775
+ ink: 'ink',
1776
+ accent: 'navy',
1777
+ density: 'normal',
1778
+ headingCase: 'smallcaps',
1779
+ },
1780
+ },
1781
+ editorial: {
1782
+ name: 'Editorial',
1783
+ description: 'Warm magazine serif',
1583
1784
  style: {
1584
- font: 'georgia',
1785
+ font: 'lora',
1786
+ ink: 'brown',
1787
+ accent: 'rust',
1788
+ density: 'normal',
1789
+ headingFont: 'montserrat',
1790
+ headingCase: 'upper',
1791
+ },
1792
+ },
1793
+ creative: {
1794
+ name: 'Creative',
1795
+ description: 'Expressive display headings',
1796
+ style: {
1797
+ font: 'worksans',
1798
+ ink: 'charcoal',
1799
+ accent: 'plum',
1800
+ density: 'roomy',
1801
+ headingFont: 'playfair',
1802
+ },
1803
+ },
1804
+ fresh: {
1805
+ name: 'Fresh',
1806
+ description: 'Friendly and airy',
1807
+ style: {
1808
+ font: 'nunitosans',
1809
+ ink: 'slate',
1810
+ accent: 'forest',
1811
+ density: 'roomy',
1812
+ leading: 'relaxed',
1813
+ },
1814
+ },
1815
+ latex: {
1816
+ name: 'LaTeX',
1817
+ description: 'The look of a typeset paper',
1818
+ style: {
1819
+ font: 'latinmodern',
1585
1820
  ink: 'ink',
1586
- accent: 'maroon',
1821
+ accent: 'ink',
1587
1822
  density: 'normal',
1823
+ headingCase: 'smallcaps',
1588
1824
  },
1589
1825
  },
1590
1826
  } as const satisfies Record<
@@ -1598,21 +1834,44 @@ export const THEMES = {
1598
1834
  ink: InkId;
1599
1835
  accent: InkId;
1600
1836
  density: DensityId;
1837
+ headingFont?: DocumentFontId;
1838
+ headingCase?: HeadingCaseId;
1839
+ headingWeight?: HeadingWeightId;
1840
+ tracking?: LetterSpacingId;
1841
+ leading?: LineHeightId;
1601
1842
  };
1602
1843
  }
1603
1844
  >;
1604
1845
 
1846
+ /**
1847
+ * What a theme speaks to. Applying one clears all of these before setting its
1848
+ * own, so a heading case one theme chose does not leak into the next.
1849
+ */
1850
+ export const THEME_KEYS = [
1851
+ 'font',
1852
+ 'ink',
1853
+ 'accent',
1854
+ 'density',
1855
+ 'headingFont',
1856
+ 'headingCase',
1857
+ 'headingWeight',
1858
+ 'tracking',
1859
+ 'leading',
1860
+ ] as const satisfies readonly (keyof DocumentStyle)[];
1861
+
1605
1862
  export type ThemeId = keyof typeof THEMES;
1606
1863
 
1607
1864
  /**
1608
1865
  * Apply a theme, preserving what the theme does not speak to.
1609
1866
  *
1610
- * The size scale survives: it is how a candidate fits their resume on one page,
1867
+ * The size scale and the role sizes survive: they are how a candidate fits their resume on one page,
1611
1868
  * which is a decision about THEIR document rather than about its styling, and
1612
1869
  * silently resetting it would undo work a theme has no opinion about.
1613
1870
  */
1614
1871
  export function applyTheme(style: DocumentStyle, id: ThemeId): DocumentStyle {
1615
- return { ...style, ...THEMES[id].style };
1872
+ const kept: Record<string, unknown> = { ...style };
1873
+ for (const key of THEME_KEYS) delete kept[key];
1874
+ return { ...kept, ...THEMES[id].style } as DocumentStyle;
1616
1875
  }
1617
1876
 
1618
1877
  /** Extra space above one named section. */