@@ -3,6 +3,7 @@ import { wrapText } from '../utils';
33export const swiss = ( ctx , width , height , scale , data ) => {
44 const {
55 primaryColor,
6+ secondaryColor,
67 repoOwner,
78 repoName,
89 description,
@@ -12,7 +13,7 @@ export const swiss = (ctx, width, height, scale, data) => {
1213 supportUrl,
1314 } = data ;
1415 // SWISS GRID Style
15- ctx . fillStyle = '#f1f1f1' ; // Off-white background
16+ ctx . fillStyle = secondaryColor ; // Background base
1617 ctx . fillRect ( 0 , 0 , width , height ) ;
1718
1819 // Bold Asymmetry
@@ -24,7 +25,7 @@ export const swiss = (ctx, width, height, scale, data) => {
2425
2526 // Grid Lines
2627 ctx . strokeStyle = '#000' ;
27- ctx . lineWidth = 2 * scale ;
28+ ctx . lineWidth = 4 * scale ;
2829 ctx . beginPath ( ) ;
2930 ctx . moveTo ( col1 , 0 ) ;
3031 ctx . lineTo ( col1 , height ) ; // Vertical split
@@ -39,24 +40,24 @@ export const swiss = (ctx, width, height, scale, data) => {
3940 ctx . stroke ( ) ;
4041
4142 // Typography - Helvetica style (Arial/Inter fallback)
42- const fontStack = '"Helvetica Neue", "Arial", sans-serif' ;
43+ const fontStack = '"Inter", " Helvetica Neue", "Arial", sans-serif' ;
4344 const padding = 40 * scale ;
4445
4546 // 1. Top Right: Project Info
4647 ctx . fillStyle = '#000' ;
47- ctx . font = `bold ${ 30 * scale } px ${ fontStack } ` ;
48+ ctx . font = `bold ${ 32 * scale } px ${ fontStack } ` ;
4849 ctx . textAlign = 'left' ;
4950 ctx . fillText (
5051 repoOwner . toUpperCase ( ) ,
5152 col1 + padding ,
52- row1 - padding - 30 * scale ,
53+ row1 - padding - 35 * scale ,
5354 ) ;
5455
5556 // 2. Center Right: Description & Name
5657 // Repo Name huge
5758 ctx . fillStyle = '#000' ;
58- ctx . font = `900 ${ 100 * scale } px ${ fontStack } ` ;
59- ctx . fillText ( repoName , col1 + padding , row1 + 120 * scale ) ;
59+ ctx . font = `900 ${ 110 * scale } px ${ fontStack } ` ;
60+ ctx . fillText ( repoName , col1 + padding , row1 + 130 * scale ) ;
6061
6162 // Description
6263 ctx . font = `normal ${ 32 * scale } px ${ fontStack } ` ;
0 commit comments