@jsonresume/core 0.1.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/README.md +689 -0
- package/dist/resume-print.css +425 -0
- package/dist/tokens.css +139 -0
- package/package.json +66 -0
- package/src/badges/BadgeRowOutline.jsx +118 -0
- package/src/badges/BadgeRowOutline.stories.tsx +160 -0
- package/src/badges/index.jsx +5 -0
- package/src/callouts/Callout.jsx +80 -0
- package/src/callouts/Callout.stories.tsx +27 -0
- package/src/callouts/HighlightCard.jsx +114 -0
- package/src/callouts/HighlightCard.stories.tsx +27 -0
- package/src/callouts/InfoBox.jsx +82 -0
- package/src/callouts/InfoBox.stories.tsx +26 -0
- package/src/callouts/index.jsx +4 -0
- package/src/certifications/AwardCard.jsx +83 -0
- package/src/certifications/AwardCard.stories.tsx +32 -0
- package/src/certifications/CertificationBadge.jsx +85 -0
- package/src/certifications/CertificationBadge.stories.tsx +29 -0
- package/src/certifications/CertificationRow.jsx +150 -0
- package/src/certifications/CertificationRow.stories.tsx +64 -0
- package/src/certifications/HonorsList.jsx +87 -0
- package/src/certifications/HonorsList.stories.tsx +36 -0
- package/src/certifications/index.jsx +5 -0
- package/src/containers/AccentCalloutPanel.jsx +176 -0
- package/src/containers/AccentCalloutPanel.stories.tsx +105 -0
- package/src/containers/MutedPanel.jsx +125 -0
- package/src/containers/MutedPanel.stories.tsx +113 -0
- package/src/containers/RoleBlockFramed.jsx +191 -0
- package/src/containers/RoleBlockFramed.stories.tsx +230 -0
- package/src/containers/SoftCardOutline.jsx +161 -0
- package/src/containers/SoftCardOutline.stories.tsx +174 -0
- package/src/containers/index.jsx +9 -0
- package/src/data/KPIChipLine.jsx +158 -0
- package/src/data/KPIChipLine.stories.tsx +99 -0
- package/src/data/KeyValueInline.jsx +150 -0
- package/src/data/KeyValueInline.stories.tsx +136 -0
- package/src/data/MetricBar.jsx +93 -0
- package/src/data/MetricBar.stories.tsx +31 -0
- package/src/data/MetricBullet.jsx +129 -0
- package/src/data/MetricBullet.stories.tsx +99 -0
- package/src/data/MetricInline.jsx +60 -0
- package/src/data/MetricInline.stories.tsx +53 -0
- package/src/data/ProgressCircle.jsx +81 -0
- package/src/data/ProgressCircle.stories.tsx +102 -0
- package/src/data/StatCard.jsx +65 -0
- package/src/data/StatCard.stories.tsx +29 -0
- package/src/data/index.jsx +12 -0
- package/src/dates/DateBadge.jsx +73 -0
- package/src/dates/DateBadge.stories.tsx +30 -0
- package/src/dates/RelativeDate.jsx +121 -0
- package/src/dates/RelativeDate.stories.tsx +29 -0
- package/src/dates/index.jsx +3 -0
- package/src/experience/ExperienceCard.jsx +82 -0
- package/src/experience/ExperienceCard.stories.tsx +36 -0
- package/src/experience/ExperienceCompact.jsx +72 -0
- package/src/experience/ExperienceCompact.stories.tsx +53 -0
- package/src/experience/ExperienceGrid.jsx +65 -0
- package/src/experience/ExperienceGrid.stories.tsx +63 -0
- package/src/experience/ExperienceTimeline.jsx +24 -0
- package/src/experience/ExperienceTimeline.stories.tsx +63 -0
- package/src/experience/RoleHeaderCompact.jsx +99 -0
- package/src/experience/index.jsx +9 -0
- package/src/header/ContactRowLine.jsx +125 -0
- package/src/header/ContactRowLine.stories.tsx +65 -0
- package/src/header/CornerInitials.jsx +178 -0
- package/src/header/CornerInitials.stories.tsx +129 -0
- package/src/header/Footer.jsx +50 -0
- package/src/header/Footer.stories.tsx +25 -0
- package/src/header/HeaderCentered.jsx +51 -0
- package/src/header/HeaderCentered.stories.tsx +30 -0
- package/src/header/HeaderMinimal.jsx +50 -0
- package/src/header/HeaderMinimal.stories.tsx +29 -0
- package/src/header/HeaderSplit.jsx +65 -0
- package/src/header/HeaderSplit.stories.tsx +29 -0
- package/src/header/HeroNameBlock.jsx +71 -0
- package/src/header/HeroNameBlock.stories.tsx +37 -0
- package/src/header/NameStackElegant.jsx +104 -0
- package/src/header/NameStackElegant.stories.tsx +60 -0
- package/src/header/PageBreak.jsx +25 -0
- package/src/header/PageBreak.stories.tsx +22 -0
- package/src/header/SectionFlagTitle.jsx +87 -0
- package/src/header/SectionFlagTitle.stories.tsx +53 -0
- package/src/header/SectionRuleTitle.jsx +84 -0
- package/src/header/SectionRuleTitle.stories.tsx +52 -0
- package/src/header/index.jsx +18 -0
- package/src/helpers/calculations.js +428 -0
- package/src/index.js +253 -0
- package/src/languages/LanguageBar.jsx +90 -0
- package/src/languages/LanguageBar.stories.tsx +28 -0
- package/src/languages/LanguageGrid.jsx +118 -0
- package/src/languages/LanguageGrid.stories.tsx +33 -0
- package/src/languages/LanguageLevelBarLite.jsx +147 -0
- package/src/languages/LanguageLevelBarLite.stories.tsx +74 -0
- package/src/languages/ProficiencyScale.jsx +107 -0
- package/src/languages/ProficiencyScale.stories.tsx +30 -0
- package/src/languages/index.jsx +5 -0
- package/src/layouts/CardLayout.jsx +46 -0
- package/src/layouts/CardLayout.stories.tsx +272 -0
- package/src/layouts/FlexLayout.jsx +53 -0
- package/src/layouts/FlexLayout.stories.tsx +270 -0
- package/src/layouts/GridLayout.jsx +38 -0
- package/src/layouts/GridLayout.stories.tsx +183 -0
- package/src/layouts/SidebarLayout.jsx +63 -0
- package/src/layouts/SidebarLayout.stories.tsx +162 -0
- package/src/layouts/StackLayout.jsx +26 -0
- package/src/layouts/StackLayout.stories.tsx +192 -0
- package/src/layouts/TwoColumnMicroGrid.jsx +87 -0
- package/src/layouts/TwoColumnMicroGrid.stories.tsx +96 -0
- package/src/layouts/index.jsx +11 -0
- package/src/lists/AchievementListSpacious.jsx +81 -0
- package/src/lists/AchievementListSpacious.stories.tsx +49 -0
- package/src/lists/AchievementListTight.jsx +80 -0
- package/src/lists/AchievementListTight.stories.tsx +49 -0
- package/src/lists/BulletList.jsx +66 -0
- package/src/lists/BulletList.stories.tsx +38 -0
- package/src/lists/CheckList.jsx +94 -0
- package/src/lists/CheckList.stories.tsx +38 -0
- package/src/lists/CompactList.jsx +90 -0
- package/src/lists/CompactList.stories.tsx +34 -0
- package/src/lists/DefinitionKeyline.jsx +114 -0
- package/src/lists/DefinitionKeyline.stories.tsx +90 -0
- package/src/lists/HangingBulletList.jsx +82 -0
- package/src/lists/HangingBulletList.stories.tsx +50 -0
- package/src/lists/IconList.jsx +89 -0
- package/src/lists/IconList.stories.tsx +36 -0
- package/src/lists/ListDashCompact.jsx +69 -0
- package/src/lists/ListDashCompact.stories.tsx +60 -0
- package/src/lists/MiniDotLeaderList.jsx +69 -0
- package/src/lists/MiniDotLeaderList.stories.tsx +73 -0
- package/src/lists/NumberedList.jsx +74 -0
- package/src/lists/NumberedList.stories.tsx +39 -0
- package/src/lists/index.jsx +12 -0
- package/src/metadata/GreyLabelCaps.jsx +66 -0
- package/src/metadata/GreyLabelCaps.stories.tsx +40 -0
- package/src/metadata/InlineKicker.jsx +61 -0
- package/src/metadata/InlineKicker.stories.tsx +35 -0
- package/src/metadata/MetaRow.jsx +96 -0
- package/src/metadata/MetaRow.stories.tsx +38 -0
- package/src/metadata/SmallCapsHeading.jsx +75 -0
- package/src/metadata/SmallCapsHeading.stories.tsx +54 -0
- package/src/metadata/SubsectionLabel.jsx +92 -0
- package/src/metadata/SubsectionLabel.stories.tsx +40 -0
- package/src/metadata/index.jsx +10 -0
- package/src/primitives/AccentSidebarStripe.stories.tsx +65 -0
- package/src/primitives/AccentSidebarStripe.tsx +95 -0
- package/src/primitives/AccentTopRule.stories.tsx +102 -0
- package/src/primitives/AccentTopRule.tsx +103 -0
- package/src/primitives/Badge.jsx +125 -0
- package/src/primitives/Badge.stories.tsx +27 -0
- package/src/primitives/ContactInfo.jsx +133 -0
- package/src/primitives/ContactInfo.stories.tsx +30 -0
- package/src/primitives/DIVIDERS.md +333 -0
- package/src/primitives/DateRange.jsx +178 -0
- package/src/primitives/DateRange.stories.tsx +28 -0
- package/src/primitives/DottedDivider.stories.tsx +54 -0
- package/src/primitives/DottedDivider.tsx +102 -0
- package/src/primitives/InlineSeparatorPipe.jsx +64 -0
- package/src/primitives/InlineSeparatorPipe.stories.tsx +96 -0
- package/src/primitives/KeylineDivider.stories.tsx +48 -0
- package/src/primitives/KeylineDivider.tsx +80 -0
- package/src/primitives/Link.jsx +59 -0
- package/src/primitives/Link.stories.tsx +29 -0
- package/src/primitives/ListItem.jsx +127 -0
- package/src/primitives/ListItem.stories.tsx +27 -0
- package/src/primitives/RulesetStack.stories.tsx +85 -0
- package/src/primitives/RulesetStack.tsx +117 -0
- package/src/primitives/Section.jsx +37 -0
- package/src/primitives/Section.stories.tsx +28 -0
- package/src/primitives/SectionTitle.jsx +62 -0
- package/src/primitives/SectionTitle.stories.tsx +27 -0
- package/src/primitives/index.jsx +36 -0
- package/src/print/ColumnBreak.jsx +44 -0
- package/src/print/ColumnBreak.stories.tsx +22 -0
- package/src/print/KeepTogether.jsx +24 -0
- package/src/print/KeepTogether.stories.tsx +26 -0
- package/src/print/LetterheadBar.jsx +100 -0
- package/src/print/LetterheadBar.stories.tsx +141 -0
- package/src/print/PageFooterLine.jsx +93 -0
- package/src/print/PageFooterLine.stories.tsx +121 -0
- package/src/print/PageHeaderLine.jsx +59 -0
- package/src/print/PageHeaderLine.stories.tsx +108 -0
- package/src/print/PrintOnly.jsx +49 -0
- package/src/print/PrintOnly.stories.tsx +26 -0
- package/src/print/SoftShadowEmulation.jsx +88 -0
- package/src/print/SoftShadowEmulation.stories.tsx +214 -0
- package/src/print/index.jsx +8 -0
- package/src/profile/Avatar.jsx +66 -0
- package/src/profile/Avatar.stories.tsx +84 -0
- package/src/profile/ContactGrid.jsx +63 -0
- package/src/profile/ContactGrid.stories.tsx +33 -0
- package/src/profile/ProfileCard.jsx +73 -0
- package/src/profile/ProfileCard.stories.tsx +35 -0
- package/src/profile/SocialLinks.jsx +61 -0
- package/src/profile/SocialLinks.stories.tsx +33 -0
- package/src/profile/index.jsx +9 -0
- package/src/providers/ThemeProvider.jsx +56 -0
- package/src/providers/ThemeProvider.stories.tsx +149 -0
- package/src/publications/PortfolioGrid.jsx +122 -0
- package/src/publications/PortfolioGrid.stories.tsx +62 -0
- package/src/publications/ProjectCard.jsx +151 -0
- package/src/publications/ProjectCard.stories.tsx +36 -0
- package/src/publications/PublicationEntryPlain.jsx +127 -0
- package/src/publications/PublicationEntryPlain.stories.tsx +58 -0
- package/src/publications/PublicationItem.jsx +120 -0
- package/src/publications/PublicationItem.stories.tsx +32 -0
- package/src/publications/index.jsx +5 -0
- package/src/quotes/BlockQuote.jsx +55 -0
- package/src/quotes/BlockQuote.stories.tsx +33 -0
- package/src/quotes/PullQuote.jsx +70 -0
- package/src/quotes/PullQuote.stories.tsx +32 -0
- package/src/quotes/Testimonial.jsx +99 -0
- package/src/quotes/Testimonial.stories.tsx +36 -0
- package/src/quotes/index.jsx +4 -0
- package/src/skills/SkillBar.jsx +66 -0
- package/src/skills/SkillBar.stories.tsx +112 -0
- package/src/skills/SkillCategory.jsx +71 -0
- package/src/skills/SkillCategory.stories.tsx +197 -0
- package/src/skills/SkillCloud.jsx +53 -0
- package/src/skills/SkillCloud.stories.tsx +132 -0
- package/src/skills/SkillGroup.jsx +56 -0
- package/src/skills/SkillGroup.stories.tsx +162 -0
- package/src/skills/SkillPill.jsx +56 -0
- package/src/skills/SkillPill.stories.tsx +157 -0
- package/src/skills/SkillRating.jsx +60 -0
- package/src/skills/SkillRating.stories.tsx +115 -0
- package/src/skills/index.jsx +11 -0
- package/src/styles/tokens.css +139 -0
- package/src/tables/ComparisonTable.jsx +128 -0
- package/src/tables/ComparisonTable.stories.tsx +41 -0
- package/src/tables/DataTable.jsx +149 -0
- package/src/tables/DataTable.stories.tsx +64 -0
- package/src/tables/SkillMatrix.jsx +139 -0
- package/src/tables/SkillMatrix.stories.tsx +90 -0
- package/src/tables/index.jsx +4 -0
- package/src/tags/ToolTagRibbon.jsx +106 -0
- package/src/tags/ToolTagRibbon.stories.tsx +121 -0
- package/src/tags/index.jsx +5 -0
- package/src/timeline/TimelineInline.stories.tsx +83 -0
- package/src/timeline/TimelineInline.tsx +202 -0
- package/src/timeline/TimelineItem.jsx +106 -0
- package/src/timeline/TimelineItem.stories.tsx +64 -0
- package/src/timeline/TimelineRuleMinimal.stories.tsx +68 -0
- package/src/timeline/TimelineRuleMinimal.tsx +165 -0
- package/src/timeline/TimelineSection.jsx +21 -0
- package/src/timeline/TimelineSection.stories.tsx +44 -0
- package/src/timeline/index.jsx +9 -0
- package/src/tokens/index.js +164 -0
- package/src/typography/Heading.jsx +48 -0
- package/src/typography/Heading.stories.tsx +46 -0
- package/src/typography/HyphenationSafeParagraph.jsx +98 -0
- package/src/typography/HyphenationSafeParagraph.stories.tsx +151 -0
- package/src/typography/Label.jsx +38 -0
- package/src/typography/Label.stories.tsx +27 -0
- package/src/typography/QuoteStripe.jsx +78 -0
- package/src/typography/QuoteStripe.stories.tsx +63 -0
- package/src/typography/SectionIntroParagraph.jsx +62 -0
- package/src/typography/SectionIntroParagraph.stories.tsx +57 -0
- package/src/typography/Text.jsx +42 -0
- package/src/typography/Text.stories.tsx +35 -0
- package/src/typography/index.jsx +11 -0
- package/src/utils/Divider.jsx +32 -0
- package/src/utils/Divider.stories.tsx +24 -0
- package/src/utils/Flex.jsx +6 -0
- package/src/utils/Flex.stories.tsx +28 -0
- package/src/utils/Grid.jsx +6 -0
- package/src/utils/Grid.stories.tsx +28 -0
- package/src/utils/Spacer.jsx +18 -0
- package/src/utils/Spacer.stories.tsx +26 -0
- package/src/utils/index.jsx +9 -0
- package/src/utils/security.js +155 -0
- package/src/visuals/BackgroundPattern.jsx +65 -0
- package/src/visuals/BackgroundPattern.stories.tsx +27 -0
- package/src/visuals/BorderAccent.jsx +147 -0
- package/src/visuals/BorderAccent.stories.tsx +27 -0
- package/src/visuals/ColorBlock.jsx +60 -0
- package/src/visuals/ColorBlock.stories.tsx +27 -0
- package/src/visuals/DividerVariants.jsx +120 -0
- package/src/visuals/DividerVariants.stories.tsx +27 -0
- package/src/visuals/index.jsx +5 -0
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resume Print Styles
|
|
3
|
+
* Professional @page rules and print optimizations for PDF generation
|
|
4
|
+
*
|
|
5
|
+
* Features:
|
|
6
|
+
* - A4 and US Letter page sizes
|
|
7
|
+
* - Proper margins and spacing
|
|
8
|
+
* - Page break control (widows, orphans)
|
|
9
|
+
* - Hyphenation for long words
|
|
10
|
+
* - Header/footer areas
|
|
11
|
+
* - Color profile for print
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/* ========================================
|
|
15
|
+
Page Setup - A4 (default)
|
|
16
|
+
======================================== */
|
|
17
|
+
|
|
18
|
+
@page {
|
|
19
|
+
size: A4 portrait;
|
|
20
|
+
margin: 0.75in 0.75in 0.75in 0.75in; /* Top Right Bottom Left */
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Alternative: US Letter format */
|
|
24
|
+
@page :root[data-page-size="letter"] {
|
|
25
|
+
size: letter portrait;
|
|
26
|
+
margin: 1in 1in 1in 1in;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* First page - extra top margin for header */
|
|
30
|
+
@page :first {
|
|
31
|
+
margin-top: 0.5in;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Named pages for different sections */
|
|
35
|
+
@page resume-main {
|
|
36
|
+
size: A4 portrait;
|
|
37
|
+
margin: 0.75in;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@page resume-references {
|
|
41
|
+
size: A4 portrait;
|
|
42
|
+
margin: 1in;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* ========================================
|
|
46
|
+
Page Break Control
|
|
47
|
+
======================================== */
|
|
48
|
+
|
|
49
|
+
/* Prevent awkward page breaks */
|
|
50
|
+
.resume-section,
|
|
51
|
+
.resume-item,
|
|
52
|
+
.resume-education,
|
|
53
|
+
.resume-work,
|
|
54
|
+
.resume-project {
|
|
55
|
+
page-break-inside: avoid;
|
|
56
|
+
break-inside: avoid;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Keep section titles with content */
|
|
60
|
+
.resume-section-title {
|
|
61
|
+
page-break-after: avoid;
|
|
62
|
+
break-after: avoid;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Keep list items together */
|
|
66
|
+
.resume-highlights li,
|
|
67
|
+
.resume-item-content {
|
|
68
|
+
page-break-inside: avoid;
|
|
69
|
+
break-inside: avoid;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Widows and orphans - minimum 3 lines */
|
|
73
|
+
p,
|
|
74
|
+
li,
|
|
75
|
+
.resume-description {
|
|
76
|
+
widows: 3;
|
|
77
|
+
orphans: 3;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Allow breaks before sections (not inside) */
|
|
81
|
+
.resume-section {
|
|
82
|
+
page-break-before: auto;
|
|
83
|
+
page-break-after: auto;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Force page break if needed (add class manually) */
|
|
87
|
+
.page-break {
|
|
88
|
+
page-break-before: always;
|
|
89
|
+
break-before: page;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Avoid page break (add class manually) */
|
|
93
|
+
.no-page-break {
|
|
94
|
+
page-break-inside: avoid !important;
|
|
95
|
+
break-inside: avoid !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* ========================================
|
|
99
|
+
Typography & Hyphenation
|
|
100
|
+
======================================== */
|
|
101
|
+
|
|
102
|
+
/* Enable hyphenation for long words */
|
|
103
|
+
.resume-description,
|
|
104
|
+
.resume-summary,
|
|
105
|
+
.resume-highlights li,
|
|
106
|
+
p {
|
|
107
|
+
hyphens: auto;
|
|
108
|
+
-webkit-hyphens: auto;
|
|
109
|
+
-ms-hyphens: auto;
|
|
110
|
+
hyphenate-limit-chars: 10 5 3; /* word min, before, after */
|
|
111
|
+
hyphenate-limit-lines: 2;
|
|
112
|
+
hyphenate-limit-last: always;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Don't hyphenate headings, names, titles */
|
|
116
|
+
h1,
|
|
117
|
+
h2,
|
|
118
|
+
h3,
|
|
119
|
+
h4,
|
|
120
|
+
h5,
|
|
121
|
+
h6,
|
|
122
|
+
.resume-name,
|
|
123
|
+
.resume-section-title,
|
|
124
|
+
.resume-item-title {
|
|
125
|
+
hyphens: none;
|
|
126
|
+
-webkit-hyphens: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* ========================================
|
|
130
|
+
Color Management for Print
|
|
131
|
+
======================================== */
|
|
132
|
+
|
|
133
|
+
@media print {
|
|
134
|
+
/* Ensure proper color rendering for PDF */
|
|
135
|
+
* {
|
|
136
|
+
-webkit-print-color-adjust: exact;
|
|
137
|
+
print-color-adjust: exact;
|
|
138
|
+
color-adjust: exact;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Background colors/images - be careful with ink! */
|
|
142
|
+
.resume-badge,
|
|
143
|
+
.resume-tag {
|
|
144
|
+
-webkit-print-color-adjust: exact;
|
|
145
|
+
print-color-adjust: exact;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Optimize colors for print (slightly darker for better readability) */
|
|
149
|
+
body {
|
|
150
|
+
background: white;
|
|
151
|
+
color: #000;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Links - show URL in print */
|
|
155
|
+
a[href^="http"]:after {
|
|
156
|
+
content: " (" attr(href) ")";
|
|
157
|
+
font-size: 90%;
|
|
158
|
+
color: #666;
|
|
159
|
+
word-break: break-all;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Don't show URLs for internal links or mailto */
|
|
163
|
+
a[href^="#"]:after,
|
|
164
|
+
a[href^="mailto:"]:after,
|
|
165
|
+
a[href^="tel:"]:after {
|
|
166
|
+
content: "";
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Optional: Remove underlines from links in print */
|
|
170
|
+
a {
|
|
171
|
+
text-decoration: none;
|
|
172
|
+
color: inherit;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* ========================================
|
|
177
|
+
Hide Elements in Print
|
|
178
|
+
======================================== */
|
|
179
|
+
|
|
180
|
+
@media print {
|
|
181
|
+
/* Common elements to hide */
|
|
182
|
+
.no-print,
|
|
183
|
+
.print-hide,
|
|
184
|
+
[data-print="hide"],
|
|
185
|
+
nav,
|
|
186
|
+
.navigation,
|
|
187
|
+
.sidebar,
|
|
188
|
+
button,
|
|
189
|
+
.button,
|
|
190
|
+
.controls,
|
|
191
|
+
.form,
|
|
192
|
+
form,
|
|
193
|
+
input,
|
|
194
|
+
textarea,
|
|
195
|
+
select {
|
|
196
|
+
display: none !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Hide interactive elements */
|
|
200
|
+
.tooltip,
|
|
201
|
+
.dropdown,
|
|
202
|
+
.modal,
|
|
203
|
+
.popup {
|
|
204
|
+
display: none !important;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* ========================================
|
|
209
|
+
Show Print-Only Elements
|
|
210
|
+
======================================== */
|
|
211
|
+
|
|
212
|
+
/* Elements that only appear in print */
|
|
213
|
+
.print-only,
|
|
214
|
+
.show-print,
|
|
215
|
+
[data-print="show"] {
|
|
216
|
+
display: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@media print {
|
|
220
|
+
.print-only,
|
|
221
|
+
.show-print,
|
|
222
|
+
[data-print="show"] {
|
|
223
|
+
display: block !important;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.print-only-inline {
|
|
227
|
+
display: inline !important;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* ========================================
|
|
232
|
+
Spacing Optimizations
|
|
233
|
+
======================================== */
|
|
234
|
+
|
|
235
|
+
@media print {
|
|
236
|
+
/* Reduce spacing for print to fit more content */
|
|
237
|
+
.resume-section {
|
|
238
|
+
margin-bottom: 18px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.resume-item {
|
|
242
|
+
margin-bottom: 12px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* Adjust fonts for print */
|
|
246
|
+
body {
|
|
247
|
+
font-size: 11pt;
|
|
248
|
+
line-height: 1.4;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
h1 {
|
|
252
|
+
font-size: 24pt;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
h2 {
|
|
256
|
+
font-size: 14pt;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
h3 {
|
|
260
|
+
font-size: 12pt;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* Ensure consistent sizing */
|
|
264
|
+
* {
|
|
265
|
+
box-sizing: border-box;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* ========================================
|
|
270
|
+
Header & Footer Areas (Optional)
|
|
271
|
+
======================================== */
|
|
272
|
+
|
|
273
|
+
@page {
|
|
274
|
+
@top-center {
|
|
275
|
+
content: "";
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@bottom-right {
|
|
279
|
+
content: counter(page) " of " counter(pages);
|
|
280
|
+
font-size: 9pt;
|
|
281
|
+
color: #666;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* Remove page numbers on first page */
|
|
286
|
+
@page :first {
|
|
287
|
+
@bottom-right {
|
|
288
|
+
content: "";
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* ========================================
|
|
293
|
+
PDF Metadata (for better PDF output)
|
|
294
|
+
======================================== */
|
|
295
|
+
|
|
296
|
+
/*
|
|
297
|
+
* Some PDF generators respect these CSS properties
|
|
298
|
+
* Set via HTML meta tags as well for best compatibility
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
@media print {
|
|
302
|
+
html {
|
|
303
|
+
/* Optimize rendering */
|
|
304
|
+
-webkit-font-smoothing: antialiased;
|
|
305
|
+
-moz-osx-font-smoothing: grayscale;
|
|
306
|
+
text-rendering: optimizeLegibility;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* Ensure images render at full quality */
|
|
310
|
+
img {
|
|
311
|
+
image-rendering: -webkit-optimize-contrast;
|
|
312
|
+
image-rendering: crisp-edges;
|
|
313
|
+
max-width: 100%;
|
|
314
|
+
height: auto;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* ========================================
|
|
319
|
+
ATS-Friendly Print Styles
|
|
320
|
+
======================================== */
|
|
321
|
+
|
|
322
|
+
@media print {
|
|
323
|
+
/* Ensure semantic HTML is preserved */
|
|
324
|
+
/* ATS parsers prefer semantic tags */
|
|
325
|
+
|
|
326
|
+
/* Clear floats and absolute positioning for ATS */
|
|
327
|
+
.resume-item,
|
|
328
|
+
.resume-section {
|
|
329
|
+
position: static;
|
|
330
|
+
float: none;
|
|
331
|
+
clear: both;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* Tables can confuse ATS - ensure proper linearization */
|
|
335
|
+
table {
|
|
336
|
+
border-collapse: collapse;
|
|
337
|
+
width: 100%;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* Icons should have text alternatives */
|
|
341
|
+
.icon:before {
|
|
342
|
+
speak: none; /* Screen reader compatibility */
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* ========================================
|
|
347
|
+
Multi-Page Resume Support
|
|
348
|
+
======================================== */
|
|
349
|
+
|
|
350
|
+
/* Continuation indicators (optional) */
|
|
351
|
+
.resume-section:has(+ .resume-section) {
|
|
352
|
+
position: relative;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.resume-section:has(+ .resume-section):after {
|
|
356
|
+
content: "";
|
|
357
|
+
/* Add visual indicator if section continues to next page */
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* ========================================
|
|
361
|
+
Accessibility in Print
|
|
362
|
+
======================================== */
|
|
363
|
+
|
|
364
|
+
@media print {
|
|
365
|
+
/* Maintain accessible color contrast */
|
|
366
|
+
:root {
|
|
367
|
+
--print-text: #000;
|
|
368
|
+
--print-bg: #fff;
|
|
369
|
+
--print-accent: #333;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* Ensure sufficient contrast ratios (WCAG AA: 4.5:1) */
|
|
373
|
+
.resume-item-title {
|
|
374
|
+
color: var(--print-text);
|
|
375
|
+
font-weight: 600;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.resume-date,
|
|
379
|
+
.resume-meta {
|
|
380
|
+
color: #333; /* Sufficient contrast on white */
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* ========================================
|
|
385
|
+
Print Preview Simulation
|
|
386
|
+
======================================== */
|
|
387
|
+
|
|
388
|
+
/*
|
|
389
|
+
* Optional: Add a class to <html> to preview print styles
|
|
390
|
+
* Usage: <html class="print-preview">
|
|
391
|
+
*/
|
|
392
|
+
|
|
393
|
+
html.print-preview {
|
|
394
|
+
background: #f5f5f5;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
html.print-preview body {
|
|
398
|
+
max-width: 8.5in; /* US Letter width */
|
|
399
|
+
margin: 0 auto;
|
|
400
|
+
padding: 1in;
|
|
401
|
+
background: white;
|
|
402
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* ========================================
|
|
406
|
+
Browser-Specific Print Fixes
|
|
407
|
+
======================================== */
|
|
408
|
+
|
|
409
|
+
/* Chrome/Safari */
|
|
410
|
+
@media print and (-webkit-min-device-pixel-ratio: 0) {
|
|
411
|
+
body {
|
|
412
|
+
zoom: 1;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* Firefox */
|
|
417
|
+
@media print and (min--moz-device-pixel-ratio: 0) {
|
|
418
|
+
body {
|
|
419
|
+
transform: scale(1);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* ========================================
|
|
424
|
+
END OF PRINT STYLES
|
|
425
|
+
======================================== */
|
package/dist/tokens.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
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jsonresume/core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Framework-agnostic resume component core - design tokens, primitives, and validators",
|
|
5
|
+
"main": "./src/index.js",
|
|
6
|
+
"types": "./src/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./src/index.js",
|
|
9
|
+
"./tokens": "./src/tokens/index.js",
|
|
10
|
+
"./primitives": "./src/primitives/index.js",
|
|
11
|
+
"./styles": "./src/styles/tokens.css",
|
|
12
|
+
"./tokens.css": "./dist/tokens.css"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"src",
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "vitest run",
|
|
20
|
+
"test:watch": "vitest",
|
|
21
|
+
"lint": "eslint src || exit 0",
|
|
22
|
+
"typecheck": "tsc --noEmit",
|
|
23
|
+
"storybook": "storybook dev -p 6007"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@repo/eslint-config-custom": "workspace:^",
|
|
27
|
+
"@storybook/addon-docs": "8.6.14",
|
|
28
|
+
"@storybook/blocks": "8.6.14",
|
|
29
|
+
"@storybook/react": "8.6.14",
|
|
30
|
+
"@storybook/react-vite": "8.6.14",
|
|
31
|
+
"react": "^19.2.0",
|
|
32
|
+
"react-dom": "^19.2.0",
|
|
33
|
+
"storybook": "8.6.14",
|
|
34
|
+
"typescript": "^5.9.3",
|
|
35
|
+
"vite": "5.4.21",
|
|
36
|
+
"vitest": "^2"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
40
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"styled-components": "^6.1.19"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"resume",
|
|
47
|
+
"cv",
|
|
48
|
+
"json-resume",
|
|
49
|
+
"design-tokens",
|
|
50
|
+
"ats-friendly",
|
|
51
|
+
"components"
|
|
52
|
+
],
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "https://github.com/jsonresume/jsonresume.org",
|
|
56
|
+
"directory": "packages/resume-core"
|
|
57
|
+
},
|
|
58
|
+
"homepage": "https://github.com/jsonresume/jsonresume.org/tree/master/packages/resume-core",
|
|
59
|
+
"bugs": {
|
|
60
|
+
"url": "https://github.com/jsonresume/jsonresume.org/issues"
|
|
61
|
+
},
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
},
|
|
65
|
+
"license": "MIT"
|
|
66
|
+
}
|