@@ -71,6 +71,7 @@ type DocumentPalette = {
7171 ctaBackground : string ;
7272 ctaBorder : string ;
7373 ctaText : string ;
74+ attribution : string ;
7475} ;
7576
7677type RenderContext = {
@@ -107,6 +108,7 @@ function documentPalette(options: DcExportOptions): DocumentPalette {
107108 ctaBackground : "oklch(91.44% 0.064 90.52)" ,
108109 ctaBorder : "oklch(96.28% 0.022 90.84)" ,
109110 ctaText : "oklch(13.77% 0.018 87.82)" ,
111+ attribution : "#787878" ,
110112 } ;
111113 }
112114
@@ -130,6 +132,7 @@ function documentPalette(options: DcExportOptions): DocumentPalette {
130132 ctaBackground : "oklch(93.5% 0.044 88.16)" ,
131133 ctaBorder : "oklch(70.74% 0.08 82.27)" ,
132134 ctaText : "oklch(26.32% 0.03 80.84)" ,
135+ attribution : "#c9c1b5" ,
133136 } ;
134137}
135138
@@ -223,57 +226,57 @@ const darkCalloutStyles: Record<
223226> = {
224227 tip : {
225228 label : "TIP" ,
226- background : "oklch(11.88 % 0.018 142.78)" ,
227- border : "oklch(76.13 % 0.153 142.04)" ,
228- text : "oklch(91.89 % 0.026 143.2)" ,
229+ background : "oklch(11.52 % 0.012 142.78)" ,
230+ border : "oklch(62.6 % 0.082 142.04)" ,
231+ text : "oklch(90.44 % 0.018 143.2)" ,
229232 } ,
230233 warning : {
231234 label : "주의" ,
232- background : "oklch(12.26 % 0.018 58.76)" ,
233- border : "oklch(78.46 % 0.145 69.41)" ,
234- text : "oklch(92.96 % 0.03 76.33)" ,
235+ background : "oklch(11.9 % 0.012 58.76)" ,
236+ border : "oklch(64.8 % 0.078 69.41)" ,
237+ text : "oklch(91.32 % 0.02 76.33)" ,
235238 } ,
236239 reference : {
237240 label : "REF" ,
238- background : "oklch(11.62 % 0.021 245.9)" ,
239- border : "oklch(72.52 % 0.142 232.16)" ,
240- text : "oklch(91.87 % 0.029 233.82)" ,
241+ background : "oklch(11.28 % 0.014 245.9)" ,
242+ border : "oklch(60.74 % 0.082 232.16)" ,
243+ text : "oklch(90.58 % 0.02 233.82)" ,
241244 } ,
242245 emphasis : {
243246 label : "POINT" ,
244- background : "oklch(12.04 % 0.022 302.17)" ,
245- border : "oklch(73.79 % 0.151 303.45)" ,
246- text : "oklch(93.04 % 0.029 303.2)" ,
247+ background : "oklch(11.68 % 0.015 302.17)" ,
248+ border : "oklch(61.88 % 0.086 303.45)" ,
249+ text : "oklch(91.78 % 0.02 303.2)" ,
247250 } ,
248251 success : {
249252 label : "성공" ,
250- background : "oklch(11.76 % 0.02 154.8)" ,
251- border : "oklch(76.71 % 0.151 154.54)" ,
252- text : "oklch(92.34 % 0.029 154.17)" ,
253+ background : "oklch(11.42 % 0.013 154.8)" ,
254+ border : "oklch(62.88 % 0.084 154.54)" ,
255+ text : "oklch(91 % 0.02 154.17)" ,
253256 } ,
254257 failure : {
255258 label : "실패" ,
256- background : "oklch(12.02 % 0.021 24.58)" ,
257- border : "oklch(75.02 % 0.17 24.82)" ,
258- text : "oklch(93.14 % 0.03 24.92)" ,
259+ background : "oklch(11.66 % 0.014 24.58)" ,
260+ border : "oklch(62.2 % 0.09 24.82)" ,
261+ text : "oklch(91.88 % 0.02 24.92)" ,
259262 } ,
260263 experiment : {
261264 label : "실험" ,
262- background : "oklch(11.48 % 0.022 264.32)" ,
263- border : "oklch(73.44 % 0.145 264.2)" ,
264- text : "oklch(92.52 % 0.031 264.14)" ,
265+ background : "oklch(11.16 % 0.014 264.32)" ,
266+ border : "oklch(61.26 % 0.084 264.2)" ,
267+ text : "oklch(91.16 % 0.021 264.14)" ,
265268 } ,
266269 conclusion : {
267270 label : "결론" ,
268- background : "oklch(12.18 % 0.018 91.22)" ,
269- border : "oklch(80.18 % 0.126 91.43)" ,
270- text : "oklch(93.56 % 0.027 91.42)" ,
271+ background : "oklch(11.84 % 0.012 91.22)" ,
272+ border : "oklch(66.4 % 0.074 91.43)" ,
273+ text : "oklch(92.08 % 0.018 91.42)" ,
271274 } ,
272275 rebuttal : {
273276 label : "반박" ,
274- background : "oklch(12.11 % 0.023 330.24)" ,
275- border : "oklch(75.91 % 0.154 330.36)" ,
276- text : "oklch(93.11 % 0.031 330.24)" ,
277+ background : "oklch(11.76 % 0.015 330.24)" ,
278+ border : "oklch(62.42 % 0.088 330.36)" ,
279+ text : "oklch(91.82 % 0.021 330.24)" ,
277280 } ,
278281} ;
279282
@@ -482,28 +485,25 @@ function compactInheritedProseStyles(html: string, options: DcExportOptions): st
482485function renderAttributionFooter ( options : DcExportOptions ) : string {
483486 const palette = documentPalette ( options ) ;
484487 const isDarkDocument = normalizeDocumentTheme ( options . documentTheme ) === "darkEditorial" ;
485- const mutedColor = isDarkDocument ? "#9a9a9a" : "#d2cbc0" ;
486- const linkOpacity = isDarkDocument ? 0.42 : 0.22 ;
488+ const linkOpacity = isDarkDocument ? 0.34 : 0.18 ;
487489 const tableStyle = joinStyle ( {
488- width : "100%" ,
489490 margin : "20px 0 0" ,
490491 "border-collapse" : "collapse" ,
491- "background-color" : palette . articleBackground ,
492492 } ) ;
493493 const cellStyle = joinStyle ( {
494494 padding : "8px 0 0" ,
495495 "text-align" : "right" ,
496- color : mutedColor ,
496+ color : palette . attribution ,
497497 "font-size" : "12px" ,
498498 "line-height" : 1.4 ,
499499 } ) ;
500500 const linkStyle = joinStyle ( {
501- color : mutedColor ,
501+ color : palette . attribution ,
502502 opacity : linkOpacity ,
503503 "text-decoration" : "none" ,
504504 } ) ;
505505
506- return `<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor=" ${ palette . fallbackBackground } " style="${ tableStyle } "><tbody><tr><td align="right" style="${ cellStyle } "><a href="${ attributionHref } " target="_blank" rel="noopener noreferrer" style="${ linkStyle } ">${ attributionText } </a></td></tr></tbody></table>` ;
506+ return `<table width="100%" style="${ tableStyle } "><tbody><tr><td align="right" style="${ cellStyle } "><a href="${ attributionHref } " target="_blank" rel="noopener noreferrer" style="${ linkStyle } ">${ attributionText } </a></td></tr></tbody></table>` ;
507507}
508508
509509function renderDcTableBlock ( {
0 commit comments