@jsonresume/jsonresume-theme-tokyo-modernist 1.0.4 → 1.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @jsonresume/jsonresume-theme-tokyo-modernist
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 304a130: Theme curation wave: full JSON Resume section coverage and SSR fixes.
8
+
9
+ - Add missing sections (Interests, Certificates, et al.) across 15+ themes so every registered theme renders all schema sections
10
+ - tokyo-modernist: inline styled-components (fixes webpack resolution SSR crash) — re-enabled in the registry
11
+ - tailwind: fix social-icon SSR crash, add 7 missing sections with missing-data guards — re-enabled in the registry
12
+ - Register previously orphaned desert-modern and elegant-pink themes with metadata
13
+ - @jsonresume/core@0.3.2
14
+
15
+ ## 1.0.5
16
+
17
+ ### Patch Changes
18
+
19
+ - 965cf57: use @jsonresume/core/ssr renderResumeDocument
20
+ - Updated dependencies [ff09f75]
21
+ - @jsonresume/core@0.3.1
22
+
3
23
  ## 1.0.4
4
24
 
5
25
  ### Patch Changes
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ :root{--resume-font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;--resume-font-serif: Cambria, Georgia, "Times New Roman", serif;--resume-font-mono: "Courier New", Courier, monospace;--resume-size-name: 36px;--resume-size-heading: 16px;--resume-size-subheading: 14px;--resume-size-body: 11px;--resume-size-small: 10px;--resume-weight-normal: 400;--resume-weight-medium: 500;--resume-weight-semibold: 600;--resume-weight-bold: 700;--resume-line-height-tight: 1.2;--resume-line-height-normal: 1.5;--resume-line-height-relaxed: 1.75;--resume-color-primary: #1a1a1a;--resume-color-secondary: #4a4a4a;--resume-color-accent: #2563eb;--resume-color-background: #ffffff;--resume-color-border: #e5e7eb;--resume-space-section: 24px;--resume-space-item: 16px;--resume-space-tight: 8px;--resume-space-margin: 48px;--resume-max-width: 660px;--resume-column-gap: 24px;--resume-radius-sm: 4px;--resume-radius-md: 8px;--resume-radius-lg: 12px;--resume-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--resume-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1)}[data-theme=modern]{--resume-color-primary: #0f172a;--resume-color-secondary: #475569;--resume-color-accent: #8b5cf6;--resume-font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif}[data-theme=classic]{--resume-color-primary: #000000;--resume-color-secondary: #333333;--resume-color-accent: #0066cc;--resume-font-sans: Georgia, "Times New Roman", serif}[data-theme=minimal]{--resume-color-primary: #18181b;--resume-color-secondary: #71717a;--resume-color-accent: #000000;--resume-space-section: 32px;--resume-space-item: 20px}[data-theme=high-contrast]{--resume-color-primary: #000000;--resume-color-secondary: #000000;--resume-color-accent: #0000ff;--resume-color-background: #ffffff;--resume-color-border: #000000}@media print{:root{--resume-space-section: 18px;--resume-space-item: 12px}@page{size:A4;margin:.5in}.resume-section{page-break-inside:avoid}.resume-item{break-inside:avoid}p,li{widows:3;orphans:3}.resume-description{hyphens:auto}.no-print{display:none!important}}[dir=rtl]{text-align:right}[dir=rtl] .resume-item{padding-left:0;padding-right:var(--resume-space-tight)}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { renderToString } from "react-dom/server";
2
+ import { renderToStaticMarkup } from "react-dom/server";
3
3
  import o, { useRef, useContext, useState, useMemo, useEffect, useDebugValue, createElement, createContext } from "react";
4
4
  var __assign = function() {
5
5
  __assign = Object.assign || function __assign2(t) {
@@ -41,38 +41,46 @@ var isPropValid = /* @__PURE__ */ memoize(
41
41
  function getDefaultExportFromCjs(x2) {
42
42
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
43
43
  }
44
- var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
45
- var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
46
- if (ret !== void 0) {
47
- return !!ret;
48
- }
49
- if (objA === objB) {
50
- return true;
51
- }
52
- if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
53
- return false;
54
- }
55
- var keysA = Object.keys(objA);
56
- var keysB = Object.keys(objB);
57
- if (keysA.length !== keysB.length) {
58
- return false;
59
- }
60
- var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
61
- for (var idx = 0; idx < keysA.length; idx++) {
62
- var key = keysA[idx];
63
- if (!bHasOwnProperty(key)) {
44
+ var shallowequal;
45
+ var hasRequiredShallowequal;
46
+ function requireShallowequal() {
47
+ if (hasRequiredShallowequal) return shallowequal;
48
+ hasRequiredShallowequal = 1;
49
+ shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
50
+ var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
51
+ if (ret !== void 0) {
52
+ return !!ret;
53
+ }
54
+ if (objA === objB) {
55
+ return true;
56
+ }
57
+ if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
64
58
  return false;
65
59
  }
66
- var valueA = objA[key];
67
- var valueB = objB[key];
68
- ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
69
- if (ret === false || ret === void 0 && valueA !== valueB) {
60
+ var keysA = Object.keys(objA);
61
+ var keysB = Object.keys(objB);
62
+ if (keysA.length !== keysB.length) {
70
63
  return false;
71
64
  }
72
- }
73
- return true;
74
- };
75
- const p = /* @__PURE__ */ getDefaultExportFromCjs(shallowequal);
65
+ var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
66
+ for (var idx = 0; idx < keysA.length; idx++) {
67
+ var key = keysA[idx];
68
+ if (!bHasOwnProperty(key)) {
69
+ return false;
70
+ }
71
+ var valueA = objA[key];
72
+ var valueB = objB[key];
73
+ ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
74
+ if (ret === false || ret === void 0 && valueA !== valueB) {
75
+ return false;
76
+ }
77
+ }
78
+ return true;
79
+ };
80
+ return shallowequal;
81
+ }
82
+ var shallowequalExports = requireShallowequal();
83
+ const p = /* @__PURE__ */ getDefaultExportFromCjs(shallowequalExports);
76
84
  var MS = "-ms-";
77
85
  var MOZ = "-moz-";
78
86
  var WEBKIT = "-webkit-";
@@ -1300,6 +1308,66 @@ var vt = /^\s*<\/[a-z]/i, gt = (function() {
1300
1308
  "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
1301
1309
  var wt = "__sc-".concat(f, "__");
1302
1310
  "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[wt] || (window[wt] = 0), 1 === window[wt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[wt] += 1);
1311
+ const CSS_RESET = "<style>*,*::before,*::after{box-sizing:border-box}html,body{margin:0;padding:0}body{-webkit-font-smoothing:antialiased}</style>";
1312
+ const TOKENS_CSS_HREF = "https://unpkg.com/@jsonresume/core/dist/tokens.css";
1313
+ const FONTS_PRECONNECT = '<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>';
1314
+ function isHref(value) {
1315
+ return /^(https?:)?\/\//.test(value) || value.trim().startsWith("<link");
1316
+ }
1317
+ function familyParam(family) {
1318
+ const [name, ...rest] = String(family).split(":");
1319
+ const encodedName = name.trim().replace(/\s+/g, "+");
1320
+ return rest.length ? `${encodedName}:${rest.join(":")}` : encodedName;
1321
+ }
1322
+ function googleFontsLinks(families) {
1323
+ if (!Array.isArray(families) || families.length === 0) return "";
1324
+ const passthrough = [];
1325
+ const names = [];
1326
+ for (const entry of families) {
1327
+ if (entry == null || entry === "") continue;
1328
+ if (isHref(entry)) passthrough.push(entry);
1329
+ else names.push(entry);
1330
+ }
1331
+ const links = passthrough.map(
1332
+ (href) => href.trim().startsWith("<link") ? href : `<link href="${href}" rel="stylesheet">`
1333
+ );
1334
+ if (names.length > 0) {
1335
+ const query = names.map(familyParam).join("&family=");
1336
+ links.unshift(
1337
+ `<link href="https://fonts.googleapis.com/css2?family=${query}&display=swap" rel="stylesheet">`
1338
+ );
1339
+ }
1340
+ if (links.length === 0) return "";
1341
+ return FONTS_PRECONNECT + links.join("");
1342
+ }
1343
+ function renderResumeDocument(element, options = {}) {
1344
+ const {
1345
+ fonts,
1346
+ title,
1347
+ lang = "en",
1348
+ dir = "ltr",
1349
+ reset = false,
1350
+ head = "",
1351
+ headAfterStyles = "",
1352
+ includeTokensCss = true,
1353
+ bodyClass
1354
+ } = options;
1355
+ const sheet = new gt();
1356
+ let html;
1357
+ let styleTags;
1358
+ try {
1359
+ html = renderToStaticMarkup(sheet.collectStyles(element));
1360
+ styleTags = sheet.getStyleTags();
1361
+ } finally {
1362
+ sheet.seal();
1363
+ }
1364
+ const fontLinks = googleFontsLinks(fonts);
1365
+ const tokensLink = includeTokensCss ? `<link rel="stylesheet" href="${TOKENS_CSS_HREF}">` : "";
1366
+ const resetTag = reset ? CSS_RESET : "";
1367
+ const titleTag = title ? `<title>${title}</title>` : "";
1368
+ const bodyAttr = bodyClass ? ` class="${bodyClass}"` : "";
1369
+ return `<!DOCTYPE html><html lang="${lang}" dir="${dir}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">` + fontLinks + tokensLink + resetTag + head + styleTags + headAfterStyles + titleTag + `</head><body${bodyAttr}>${html}</body></html>`;
1370
+ }
1303
1371
  createContext({
1304
1372
  theme: "professional",
1305
1373
  setTheme: () => {
@@ -1459,6 +1527,7 @@ function formatDateRange({
1459
1527
  };
1460
1528
  const formatDate = (dateStr) => {
1461
1529
  if (!dateStr) return getPresentLabel();
1530
+ const isDateOnlyIso = typeof dateStr === "string" && /^\d{4}(-\d{2}){0,2}$/.test(dateStr);
1462
1531
  const date = typeof dateStr === "string" ? new Date(dateStr) : dateStr;
1463
1532
  if (isNaN(date.getTime())) return dateStr;
1464
1533
  const monthFormats = {
@@ -1470,6 +1539,9 @@ function formatDateRange({
1470
1539
  ...monthFormats[format],
1471
1540
  year: "numeric"
1472
1541
  };
1542
+ if (isDateOnlyIso) {
1543
+ options.timeZone = "UTC";
1544
+ }
1473
1545
  if (numberingSystem) {
1474
1546
  options.numberingSystem = numberingSystem;
1475
1547
  }
@@ -1477,7 +1549,9 @@ function formatDateRange({
1477
1549
  return formatter.format(date);
1478
1550
  };
1479
1551
  const start = formatDate(startDate);
1480
- if (endDate === void 0) return start;
1552
+ if (endDate === void 0) {
1553
+ return start;
1554
+ }
1481
1555
  const end = formatDate(endDate);
1482
1556
  return `${start} - ${end}`;
1483
1557
  }
@@ -1562,7 +1636,6 @@ function safeUrl(url) {
1562
1636
  const trimmed = url.trim();
1563
1637
  const dangerousProtocols = /^(javascript|data|vbscript|file|about):/i;
1564
1638
  if (dangerousProtocols.test(trimmed)) {
1565
- console.warn(`[Security] Blocked dangerous URL: ${trimmed.slice(0, 50)}`);
1566
1639
  return null;
1567
1640
  }
1568
1641
  const safeProtocols = /^(https?|mailto|tel|sms|ftp):/i;
@@ -1578,7 +1651,6 @@ function safeUrl(url) {
1578
1651
  if (/^[a-z0-9][a-z0-9.-]+\.[a-z]{2,}$/i.test(trimmed)) {
1579
1652
  return `https://${trimmed}`;
1580
1653
  }
1581
- console.warn(`[Security] Uncertain URL safety: ${trimmed.slice(0, 50)}`);
1582
1654
  return trimmed;
1583
1655
  }
1584
1656
  const ContactContainer = dt.div`
@@ -6061,19 +6133,19 @@ const Name = dt.h1`
6061
6133
  font-variation-settings: 'wght' 800;
6062
6134
  `;
6063
6135
  const Label = dt.div`
6064
- font-size: 20px;
6136
+ font-size: 14px;
6065
6137
  color: #6b7280;
6066
6138
  margin-bottom: 24px;
6067
6139
  font-weight: 500;
6068
6140
  letter-spacing: 0.5px;
6069
6141
  text-transform: uppercase;
6070
- font-size: 14px;
6071
6142
  `;
6072
6143
  const StyledContactInfo = dt(ContactInfo)`
6073
6144
  font-size: 15px;
6074
6145
  display: flex;
6075
6146
  gap: 24px;
6076
6147
  flex-wrap: wrap;
6148
+ justify-content: flex-start;
6077
6149
 
6078
6150
  a {
6079
6151
  font-size: 15px;
@@ -6293,13 +6365,12 @@ const SkillCategory = dt.div`
6293
6365
  }
6294
6366
  `;
6295
6367
  const SkillName = dt.h4`
6296
- font-size: 16px;
6368
+ font-size: 14px;
6297
6369
  font-weight: 700;
6298
6370
  color: #1a1d23;
6299
6371
  margin: 0 0 12px 0;
6300
6372
  text-transform: uppercase;
6301
6373
  letter-spacing: 0.3px;
6302
- font-size: 14px;
6303
6374
  `;
6304
6375
  const SkillTags = dt.div`
6305
6376
  font-size: 14px;
@@ -6319,6 +6390,7 @@ function Resume({ resume }) {
6319
6390
  projects = [],
6320
6391
  volunteer = [],
6321
6392
  awards = [],
6393
+ certificates = [],
6322
6394
  publications = [],
6323
6395
  languages = [],
6324
6396
  interests = [],
@@ -6405,6 +6477,17 @@ function Resume({ resume }) {
6405
6477
  award.summary && /* @__PURE__ */ jsx(WorkSummary, { children: award.summary })
6406
6478
  ] }, index))
6407
6479
  ] }),
6480
+ certificates?.length > 0 && /* @__PURE__ */ jsxs(Section, { children: [
6481
+ /* @__PURE__ */ jsx(StyledSectionTitle, { children: "Certificates" }),
6482
+ certificates.map((cert, index) => /* @__PURE__ */ jsxs(EducationItem, { children: [
6483
+ /* @__PURE__ */ jsx(Institution, { children: cert.name }),
6484
+ cert.issuer && /* @__PURE__ */ jsxs(Degree, { children: [
6485
+ "Issued by ",
6486
+ cert.issuer
6487
+ ] }),
6488
+ cert.date && /* @__PURE__ */ jsx(EducationDate, { children: cert.date })
6489
+ ] }, index))
6490
+ ] }),
6408
6491
  publications?.length > 0 && /* @__PURE__ */ jsxs(Section, { children: [
6409
6492
  /* @__PURE__ */ jsx(StyledSectionTitle, { children: "Publications" }),
6410
6493
  publications.map((pub, index) => /* @__PURE__ */ jsxs(EducationItem, { children: [
@@ -6441,17 +6524,11 @@ function Resume({ resume }) {
6441
6524
  ] });
6442
6525
  }
6443
6526
  const render = (resume) => {
6444
- const sheet = new gt();
6445
- const html = renderToString(sheet.collectStyles(/* @__PURE__ */ jsx(Resume, { resume })));
6446
- const styles = sheet.getStyleTags();
6447
- return `<!DOCTYPE html><head>
6448
- <title>${resume.basics.name} - Resume</title>
6449
- <meta charset="utf-8">
6450
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
6451
- <link rel="preconnect" href="https://fonts.googleapis.com">
6452
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6453
- <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap" rel="stylesheet">
6454
- <style>
6527
+ return renderResumeDocument(/* @__PURE__ */ jsx(Resume, { resume }), {
6528
+ fonts: [
6529
+ "https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap"
6530
+ ],
6531
+ head: `<style>
6455
6532
  html {
6456
6533
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
6457
6534
  background: #fafbfc;
@@ -6521,8 +6598,12 @@ const render = (resume) => {
6521
6598
  background: white;
6522
6599
  }
6523
6600
  }
6524
- </style>
6525
- ${styles}</head><body>${html}</body></html>`;
6601
+ </style>`,
6602
+ lang: "en",
6603
+ dir: "ltr",
6604
+ title: `${resume.basics.name} - Resume`,
6605
+ includeTokensCss: false
6606
+ });
6526
6607
  };
6527
6608
  export {
6528
6609
  Resume,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@jsonresume/jsonresume-theme-tokyo-modernist",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "license": "MIT",
@@ -18,8 +18,11 @@
18
18
  ],
19
19
  "devDependencies": {
20
20
  "@vitejs/plugin-react": "^4.3.4",
21
- "vite": "^5.4.21",
22
- "@repo/eslint-config-custom": "^0.0.0"
21
+ "vite": "^6.4.3",
22
+ "vitest": "^3.2.6",
23
+ "@repo/eslint-config-custom": "^0.0.0",
24
+ "@jsonresume/sample-data": "0.2.1",
25
+ "@jsonresume/theme-kit": "1.0.2"
23
26
  },
24
27
  "peerDependencies": {
25
28
  "react": "^18.0.0 || ^19.0.0",
@@ -30,7 +33,7 @@
30
33
  "prismjs": "^1.29.0",
31
34
  "react-icons": "^5.0.1",
32
35
  "styled-components": "^6.1.19",
33
- "@jsonresume/core": "^0.3.0"
36
+ "@jsonresume/core": "^0.3.2"
34
37
  },
35
38
  "exports": {
36
39
  ".": {
@@ -44,6 +47,8 @@
44
47
  },
45
48
  "scripts": {
46
49
  "lint": "eslint src || exit 0",
47
- "build": "vite build"
50
+ "build": "vite build",
51
+ "test": "vitest run",
52
+ "test:watch": "vitest"
48
53
  }
49
54
  }
package/src/index.jsx CHANGED
@@ -1,19 +1,12 @@
1
- import { renderToString } from 'react-dom/server';
2
- import { ServerStyleSheet } from 'styled-components';
1
+ import { renderResumeDocument } from '@jsonresume/core/ssr';
3
2
  import Resume from './ui/Resume';
4
3
 
5
4
  export const render = (resume) => {
6
- const sheet = new ServerStyleSheet();
7
- const html = renderToString(sheet.collectStyles(<Resume resume={resume} />));
8
- const styles = sheet.getStyleTags();
9
- return `<!DOCTYPE html><head>
10
- <title>${resume.basics.name} - Resume</title>
11
- <meta charset="utf-8">
12
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
13
- <link rel="preconnect" href="https://fonts.googleapis.com">
14
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
15
- <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap" rel="stylesheet">
16
- <style>
5
+ return renderResumeDocument(<Resume resume={resume} />, {
6
+ fonts: [
7
+ 'https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap',
8
+ ],
9
+ head: `<style>
17
10
  html {
18
11
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
19
12
  background: #fafbfc;
@@ -83,8 +76,12 @@ export const render = (resume) => {
83
76
  background: white;
84
77
  }
85
78
  }
86
- </style>
87
- ${styles}</head><body>${html}</body></html>`;
79
+ </style>`,
80
+ lang: 'en',
81
+ dir: 'ltr',
82
+ title: `${resume.basics.name} - Resume`,
83
+ includeTokensCss: false,
84
+ });
88
85
  };
89
86
 
90
87
  export { Resume };
package/src/ui/Resume.jsx CHANGED
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { Section, DateRange } from '@jsonresume/core';
3
2
  import {
4
3
  Layout,
@@ -24,13 +23,7 @@ import {
24
23
  SkillName,
25
24
  SkillTags,
26
25
  ProjectItem,
27
- } from './styles';
28
-
29
- // Tokyo Modernist Theme - Minimal futurism with typographic focus
30
- // Built on 8pt grid system with geometric precision
31
- // Outfit variable-width geometric sans from Google Fonts
32
- // Deep magenta accent (#c71585) with subtle gray subheaders
33
- // Strong headings, clean geometry, restrained asymmetry
26
+ } from './styles.jsx';
34
27
 
35
28
  function Resume({ resume }) {
36
29
  const {
@@ -41,6 +34,7 @@ function Resume({ resume }) {
41
34
  projects = [],
42
35
  volunteer = [],
43
36
  awards = [],
37
+ certificates = [],
44
38
  publications = [],
45
39
  languages = [],
46
40
  interests = [],
@@ -184,6 +178,19 @@ function Resume({ resume }) {
184
178
  </Section>
185
179
  )}
186
180
 
181
+ {certificates?.length > 0 && (
182
+ <Section>
183
+ <StyledSectionTitle>Certificates</StyledSectionTitle>
184
+ {certificates.map((cert, index) => (
185
+ <EducationItem key={index}>
186
+ <Institution>{cert.name}</Institution>
187
+ {cert.issuer && <Degree>Issued by {cert.issuer}</Degree>}
188
+ {cert.date && <EducationDate>{cert.date}</EducationDate>}
189
+ </EducationItem>
190
+ ))}
191
+ </Section>
192
+ )}
193
+
187
194
  {publications?.length > 0 && (
188
195
  <Section>
189
196
  <StyledSectionTitle>Publications</StyledSectionTitle>
@@ -1,6 +1,17 @@
1
1
  import styled from 'styled-components';
2
2
  import { SectionTitle, ContactInfo } from '@jsonresume/core';
3
3
 
4
+ // Tokyo Modernist Theme - Minimal futurism with typographic focus
5
+ // Built on 8pt grid system with geometric precision
6
+ // Outfit variable-width geometric sans from Google Fonts
7
+ // Deep magenta accent (#c71585) with subtle gray subheaders
8
+ // Strong headings, clean geometry, restrained asymmetry
9
+ //
10
+ // NOTE: this file must keep the .jsx extension. styled-components defined in
11
+ // a plain .js module lose webpack's ESM interop in the registry production
12
+ // build and crash with "Cannot read properties of undefined (reading
13
+ // 'withConfig')" — see CLAUDE.md "Theme SSR gotcha".
14
+
4
15
  export const Layout = styled.div`
5
16
  max-width: 840px;
6
17
  margin: 0 auto;
@@ -53,13 +64,12 @@ export const Name = styled.h1`
53
64
  `;
54
65
 
55
66
  export const Label = styled.div`
56
- font-size: 20px;
67
+ font-size: 14px;
57
68
  color: #6b7280;
58
69
  margin-bottom: 24px;
59
70
  font-weight: 500;
60
71
  letter-spacing: 0.5px;
61
72
  text-transform: uppercase;
62
- font-size: 14px;
63
73
  `;
64
74
 
65
75
  export const StyledContactInfo = styled(ContactInfo)`
@@ -67,6 +77,7 @@ export const StyledContactInfo = styled(ContactInfo)`
67
77
  display: flex;
68
78
  gap: 24px;
69
79
  flex-wrap: wrap;
80
+ justify-content: flex-start;
70
81
 
71
82
  a {
72
83
  font-size: 15px;
@@ -302,13 +313,12 @@ export const SkillCategory = styled.div`
302
313
  `;
303
314
 
304
315
  export const SkillName = styled.h4`
305
- font-size: 16px;
316
+ font-size: 14px;
306
317
  font-weight: 700;
307
318
  color: #1a1d23;
308
319
  margin: 0 0 12px 0;
309
320
  text-transform: uppercase;
310
321
  letter-spacing: 0.3px;
311
- font-size: 14px;
312
322
  `;
313
323
 
314
324
  export const SkillTags = styled.div`
@@ -0,0 +1,18 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { runThemeRenderQa } from '@jsonresume/theme-kit/qa';
3
+ import { completeResume } from '@jsonresume/sample-data';
4
+ import { render } from '../src/index.jsx';
5
+
6
+ describe('Tokyo Modernist Theme', () => {
7
+ it('passes the shared theme render QA gate', async () => {
8
+ await runThemeRenderQa({ render, name: 'tokyo-modernist', expect });
9
+ });
10
+
11
+ it('renders expected fields from the standard fixture', () => {
12
+ const html = render(completeResume);
13
+
14
+ expect(html.length).toBeGreaterThan(0);
15
+ expect(html).toContain('Jane Developer');
16
+ expect(html).toContain('jane.developer@example.com');
17
+ });
18
+ });
package/dist/style.css DELETED
@@ -1,139 +0,0 @@
1
- /**
2
- * Resume Core Design Tokens
3
- * Framework-agnostic CSS variables for theming
4
- * Based on 2025 resume best practices and ATS compatibility research
5
- */
6
-
7
- :root {
8
- /* Typography - ATS-friendly fonts */
9
- --resume-font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
10
- --resume-font-serif: Cambria, Georgia, "Times New Roman", serif;
11
- --resume-font-mono: "Courier New", Courier, monospace;
12
-
13
- /* Font Sizes - Optimal readability */
14
- --resume-size-name: 36px; /* Large, prominent name */
15
- --resume-size-heading: 16px; /* Section titles */
16
- --resume-size-subheading: 14px; /* Job titles, degrees */
17
- --resume-size-body: 11px; /* Body text, descriptions */
18
- --resume-size-small: 10px; /* Dates, locations, metadata */
19
-
20
- /* Font Weights */
21
- --resume-weight-normal: 400;
22
- --resume-weight-medium: 500;
23
- --resume-weight-semibold: 600;
24
- --resume-weight-bold: 700;
25
-
26
- /* Line Heights */
27
- --resume-line-height-tight: 1.2;
28
- --resume-line-height-normal: 1.5;
29
- --resume-line-height-relaxed: 1.75;
30
-
31
- /* Colors - Professional Theme (default) */
32
- --resume-color-primary: #1a1a1a;
33
- --resume-color-secondary: #4a4a4a;
34
- --resume-color-accent: #2563eb;
35
- --resume-color-background: #ffffff;
36
- --resume-color-border: #e5e7eb;
37
-
38
- /* Spacing - Consistent rhythm */
39
- --resume-space-section: 24px; /* Between major sections */
40
- --resume-space-item: 16px; /* Between list items */
41
- --resume-space-tight: 8px; /* Within items */
42
- --resume-space-margin: 48px; /* Page margins */
43
-
44
- /* Layout - Optimal line length */
45
- --resume-max-width: 660px; /* ~80 chars at body size */
46
- --resume-column-gap: 24px;
47
-
48
- /* Border Radius */
49
- --resume-radius-sm: 4px;
50
- --resume-radius-md: 8px;
51
- --resume-radius-lg: 12px;
52
-
53
- /* Shadows - Subtle depth */
54
- --resume-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
55
- --resume-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
56
- }
57
-
58
- /* Modern Theme Variant */
59
- [data-theme="modern"] {
60
- --resume-color-primary: #0f172a;
61
- --resume-color-secondary: #475569;
62
- --resume-color-accent: #8b5cf6;
63
- --resume-font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
64
- }
65
-
66
- /* Classic Theme Variant */
67
- [data-theme="classic"] {
68
- --resume-color-primary: #000000;
69
- --resume-color-secondary: #333333;
70
- --resume-color-accent: #0066cc;
71
- --resume-font-sans: Georgia, "Times New Roman", serif;
72
- }
73
-
74
- /* Minimal Theme Variant */
75
- [data-theme="minimal"] {
76
- --resume-color-primary: #18181b;
77
- --resume-color-secondary: #71717a;
78
- --resume-color-accent: #000000;
79
- --resume-space-section: 32px;
80
- --resume-space-item: 20px;
81
- }
82
-
83
- /* High Contrast Variant (Accessibility) */
84
- [data-theme="high-contrast"] {
85
- --resume-color-primary: #000000;
86
- --resume-color-secondary: #000000;
87
- --resume-color-accent: #0000ff;
88
- --resume-color-background: #ffffff;
89
- --resume-color-border: #000000;
90
- }
91
-
92
- /* Print Styles - ATS-Friendly PDF Export */
93
- @media print {
94
- :root {
95
- /* Optimize for print */
96
- --resume-space-section: 18px;
97
- --resume-space-item: 12px;
98
- }
99
-
100
- @page {
101
- size: A4;
102
- margin: 0.5in;
103
- }
104
-
105
- /* Prevent awkward breaks */
106
- .resume-section {
107
- page-break-inside: avoid;
108
- }
109
-
110
- .resume-item {
111
- break-inside: avoid;
112
- }
113
-
114
- /* Widows and orphans control */
115
- p, li {
116
- widows: 3;
117
- orphans: 3;
118
- }
119
-
120
- /* Hyphenation for long words */
121
- .resume-description {
122
- hyphens: auto;
123
- }
124
-
125
- /* Hide interactive elements */
126
- .no-print {
127
- display: none !important;
128
- }
129
- }
130
-
131
- /* RTL Support */
132
- [dir="rtl"] {
133
- text-align: right;
134
- }
135
-
136
- [dir="rtl"] .resume-item {
137
- padding-left: 0;
138
- padding-right: var(--resume-space-tight);
139
- }