jsonresume-theme-data-driven 0.1.0 → 0.2.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.
package/dist/style.css ADDED
@@ -0,0 +1,139 @@
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
+ }
package/package.json CHANGED
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "name": "jsonresume-theme-data-driven",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Data-driven analytical theme with sky blue accent - built with @resume/core",
5
5
  "type": "module",
6
- "main": "./src/index.jsx",
6
+ "main": "./dist/index.js",
7
7
  "exports": {
8
- ".": "./src/index.jsx"
8
+ ".": {
9
+ "import": "./src/index.jsx",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./dist": {
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
15
+ }
9
16
  },
10
17
  "keywords": [
11
18
  "jsonresume",
@@ -21,15 +28,18 @@
21
28
  "react": "^19.2.0",
22
29
  "react-dom": "^19.2.0",
23
30
  "styled-components": "^6.1.19",
24
- "@resume/core": "0.1.0"
31
+ "@jsonresume/core": "0.1.0"
25
32
  },
26
33
  "devDependencies": {
34
+ "@vitejs/plugin-react": "^4.3.4",
35
+ "vite": "^5.4.21",
27
36
  "vitest": "^1.6.0"
28
37
  },
29
38
  "peerDependencies": {
30
39
  "styled-components": "^6"
31
40
  },
32
41
  "scripts": {
42
+ "build": "vite build",
33
43
  "test": "vitest run",
34
44
  "test:watch": "vitest"
35
45
  }
package/src/index.jsx CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * JSON Resume Data-Driven Theme
3
3
  * Analytical design with metrics-focused layout and sky blue accent
4
- * Built with @resume/core primitives and React SSR
4
+ * Built with @jsonresume/core primitives and React SSR
5
5
  */
6
6
 
7
7
  import { renderToString } from 'react-dom/server';
package/src/ui/Resume.jsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import styled, { createGlobalStyle } from 'styled-components';
2
- import { formatDateRange } from '@resume/core';
2
+ import { formatDateRange } from '@jsonresume/core';
3
3
 
4
4
  const GlobalStyle = createGlobalStyle`
5
5
  * {
@@ -258,6 +258,10 @@ function Resume({ resume }) {
258
258
  projects = [],
259
259
  volunteer = [],
260
260
  awards = [],
261
+ certificates = [],
262
+ publications = [],
263
+ languages = [],
264
+ references = [],
261
265
  } = resume;
262
266
 
263
267
  return (
@@ -554,6 +558,83 @@ function Resume({ resume }) {
554
558
  ))}
555
559
  </Section>
556
560
  )}
561
+
562
+ {/* Certificates */}
563
+ {certificates.length > 0 && (
564
+ <Section>
565
+ <SectionTitle>Certifications</SectionTitle>
566
+ {certificates.map((cert, i) => (
567
+ <Item key={i}>
568
+ <ItemHeader>
569
+ <ItemTitle>{cert.name}</ItemTitle>
570
+ </ItemHeader>
571
+ {cert.issuer && <ItemSubtitle>{cert.issuer}</ItemSubtitle>}
572
+ {cert.date && (
573
+ <ItemMeta>
574
+ <span>{cert.date}</span>
575
+ </ItemMeta>
576
+ )}
577
+ </Item>
578
+ ))}
579
+ </Section>
580
+ )}
581
+
582
+ {/* Publications */}
583
+ {publications.length > 0 && (
584
+ <Section>
585
+ <SectionTitle>Publications</SectionTitle>
586
+ {publications.map((pub, i) => (
587
+ <Item key={i}>
588
+ <ItemHeader>
589
+ <ItemTitle>{pub.name}</ItemTitle>
590
+ </ItemHeader>
591
+ {pub.publisher && <ItemSubtitle>{pub.publisher}</ItemSubtitle>}
592
+ {pub.releaseDate && (
593
+ <ItemMeta>
594
+ <span>{pub.releaseDate}</span>
595
+ </ItemMeta>
596
+ )}
597
+ {pub.summary && (
598
+ <Description
599
+ dangerouslySetInnerHTML={{
600
+ __html: boldNumbers(pub.summary),
601
+ }}
602
+ />
603
+ )}
604
+ </Item>
605
+ ))}
606
+ </Section>
607
+ )}
608
+
609
+ {/* Languages */}
610
+ {languages.length > 0 && (
611
+ <Section>
612
+ <SectionTitle>Languages</SectionTitle>
613
+ <BadgeList>
614
+ {languages.map((lang, i) => (
615
+ <Badge key={i}>
616
+ {lang.language}
617
+ {lang.fluency && ` — ${lang.fluency}`}
618
+ </Badge>
619
+ ))}
620
+ </BadgeList>
621
+ </Section>
622
+ )}
623
+
624
+ {/* References */}
625
+ {references.length > 0 && (
626
+ <Section>
627
+ <SectionTitle>References</SectionTitle>
628
+ {references.map((ref, i) => (
629
+ <Item key={i}>
630
+ <ItemHeader>
631
+ <ItemTitle>{ref.name}</ItemTitle>
632
+ </ItemHeader>
633
+ {ref.reference && <Description>{ref.reference}</Description>}
634
+ </Item>
635
+ ))}
636
+ </Section>
637
+ )}
557
638
  </Container>
558
639
  </>
559
640
  );
package/vite.config.js ADDED
@@ -0,0 +1,33 @@
1
+ import { defineConfig } from 'vite';
2
+ import react from '@vitejs/plugin-react';
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ build: {
7
+ ssr: true,
8
+ target: 'node18',
9
+ outDir: './dist',
10
+ emptyOutDir: true,
11
+ minify: false,
12
+ lib: {
13
+ entry: './src/index.jsx',
14
+ formats: ['es'],
15
+ fileName: 'index',
16
+ },
17
+ rollupOptions: {
18
+ external: ['react', 'react-dom', 'react-dom/server', 'react/jsx-runtime'],
19
+ output: {
20
+ exports: 'named',
21
+ },
22
+ },
23
+ },
24
+ ssr: {
25
+ // Force bundle these packages instead of externalizing
26
+ noExternal: [
27
+ 'styled-components',
28
+ '@emotion/is-prop-valid',
29
+ 'stylis',
30
+ 'shallowequal',
31
+ ],
32
+ },
33
+ });