File tree 3 files changed +12
-12
lines changed
packages/gitbook/src/components/DocumentView
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export const CodeBlockRenderer = forwardRef(function CodeBlockRenderer(
34
34
< div ref = { ref } className = { tcls ( 'group/codeblock grid grid-flow-col' , style ) } >
35
35
< div className = "flex items-center justify-start [grid-area:1/1] text-sm gap-2" >
36
36
{ title ? (
37
- < div className = "text-xs tracking-wide text-tint leading-none inline-flex items-center justify-center bg-tint rounded-t straight-corners:rounded-t-s px-3 py-2" >
37
+ < div className = "text-xs tracking-wide text-tint leading-none inline-flex items-center justify-center bg-tint-2 rounded-t straight-corners:rounded-t-s px-3 py-2" >
38
38
{ title }
39
39
</ div >
40
40
) : null }
@@ -45,7 +45,7 @@ export const CodeBlockRenderer = forwardRef(function CodeBlockRenderer(
45
45
/>
46
46
< pre
47
47
className = { tcls (
48
- '[grid-area:2/1] relative overflow-auto bg-tint theme-gradient:bg-tint-12/1 ring-tint-subtle hide-scroll' ,
48
+ '[grid-area:2/1] relative overflow-auto bg-tint-2 theme-gradient:bg-tint-12/1 ring-tint-subtle hide-scroll' ,
49
49
'rounded-md straight-corners:rounded-sm' ,
50
50
title && 'rounded-ss-none' ,
51
51
) }
Original file line number Diff line number Diff line change 1
1
: root {
2
2
--shiki-color-text : theme ('colors.tint.11' );
3
- --shiki-token-constant : # 0a6355 ;
4
- --shiki-token-string : # 8b6d32 ;
3
+ --shiki-token-constant : # 22863a ;
4
+ --shiki-token-string : theme ( 'colors.primary.12' ) ;
5
5
--shiki-token-comment : theme ('colors.teal.700/.64' );
6
- --shiki-token-keyword : theme ('colors.pomegranate.600 ' );
6
+ --shiki-token-keyword : theme ('colors.contrast-primary.1 ' );
7
7
--shiki-token-parameter : # 0a3069 ;
8
8
--shiki-token-function : # 8250df ;
9
- --shiki-token-string-expression : # 6a4906 ;
10
- --shiki-token-punctuation : theme ('colors.pomegranate.700/.92 ' );
9
+ --shiki-token-string-expression : theme ( 'colors.primary.9' ) ;
10
+ --shiki-token-punctuation : theme ('colors.contrast-primary.1 ' );
11
11
--shiki-token-link : theme ('colors.tint.12' );
12
12
--shiki-token-inserted : # 22863a ;
13
13
--shiki-token-deleted : # b31d28 ;
Original file line number Diff line number Diff line change 381
381
382
382
/* Code Sample */
383
383
.openapi-codesample {
384
- @apply border rounded bg-tint border-tint-subtle;
384
+ @apply border rounded bg-tint-2 border-tint-subtle;
385
385
}
386
386
387
387
.openapi-codesample-header {
424
424
} */
425
425
426
426
.openapi-path-title em {
427
- @apply not-italic text-primary font-medium;
427
+ @apply not-italic text-primary-subtle font-medium;
428
428
}
429
429
430
430
.openapi-path-separator {
437
437
438
438
/* Response Example */
439
439
.openapi-response-example {
440
- @apply border rounded bg-tint border-tint-subtle;
440
+ @apply border rounded bg-tint-2 border-tint-subtle;
441
441
}
442
442
443
443
.openapi-response-example-empty {
506
506
}
507
507
508
508
.openapi-tabs-tab {
509
- @apply hover:bg-primary-hover whitespace-nowrap font-mono font-normal tabular-nums hover:text-primary cursor-pointer transition-all relative text-[0.813rem ] text-tint px-1 border border-transparent rounded;
509
+ @apply hover:bg-primary-hover whitespace-nowrap font-mono font-normal tabular-nums hover:text-primary-subtle cursor-pointer transition-all relative text-[0.813rem ] text-tint px-1 border border-transparent rounded;
510
510
}
511
511
512
512
.openapi-tabs-tab [aria-selected = 'true' ] {
513
- @apply text-primary after:absolute after:-bottom-2 after:left-0 after:w-full after:h-px after:bg-primary-solid after:transition-all;
513
+ @apply text-primary-subtle after:absolute after:-bottom-2 after:left-0 after:w-full after:h-px after:bg-primary-solid after:transition-all;
514
514
}
515
515
516
516
.openapi-tabs-panel {
You can’t perform that action at this time.
0 commit comments