File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed
Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11<!doctype html>
2- < html lang ="en " class ="scroll-smooth bg-zinc-50 text-zinc-950 dark:bg-gray -900 dark:text-gray-300 ">
2+ < html lang ="en " class ="scroll-smooth bg-zinc-50 text-zinc-700 dark:bg-zinc -900 dark:text-zinc-400 ">
33 < head >
44 < meta charset ="UTF-8 " />
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { PropsWithChildren } from 'react'
33const Code = ( { children } : PropsWithChildren < InlineCodeProps > ) => (
44 < code
55 className = {
6- 'font-mono whitespace-nowrap bg-fuchsia-200/40 p-1 px-1 py-0.5 text-sm dark:bg-indigo-200/20 dark:text-zinc-200 '
6+ 'whitespace-nowrap bg-fuchsia-200/40 p-1 px-1 py-0.5 font-mono text-sm text-zinc-900 dark:bg-indigo-200/20 dark:text-zinc-300 '
77 }
88 >
99 { children }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const CodeBlock = ({
1717 return (
1818 < div
1919 className = {
20- 'mb-4 rounded-lg border border-zinc-300 bg-zinc-100 dark:border-zinc-700 dark:bg-slate-800 dark:text-zinc-300'
20+ 'mb-4 rounded-lg border border-zinc-300 bg-zinc-100 text-zinc-900 dark:border-zinc-700 dark:bg-slate-800 dark:text-zinc-300'
2121 }
2222 >
2323 < code
Original file line number Diff line number Diff line change 11import { ArrowRight } from 'lucide-react'
22import { PropsWithChildren } from 'react'
33import { NavLink } from 'react-router-dom'
4+ import { addWithSpace } from '../utils/addWithSpace'
45
56const Heading = ( {
67 size = 1 ,
@@ -10,7 +11,8 @@ const Heading = ({
1011 href = '' ,
1112 hrefType = 'documentation' ,
1213} : PropsWithChildren < TitleProps > ) => {
13- const defaultClasses = 'relative w-full' + ( className && ` ${ className } ` )
14+ const defaultClasses =
15+ 'relative w-full text-zinc-900 dark:text-zinc-300' + addWithSpace ( className )
1416 const anchor = id ? < a id = { id } className = { 'absolute -top-32' } /> : ''
1517 const link = href ? (
1618 < NavLink to = { href } className = "group flex gap-1 text-xs text-fuchsia-500 dark:text-cyan-500" >
@@ -24,7 +26,7 @@ const Heading = ({
2426 )
2527 if ( size === 1 ) {
2628 return (
27- < h1 className = { defaultClasses + ' py-2 text-3xl font-semibold' } >
29+ < h1 className = { defaultClasses + ' py-2 text-3xl font-semibold ' } >
2830 { children }
2931 { anchor }
3032 </ h1 >
Original file line number Diff line number Diff line change 11const DocsTableRow = ( { className, code } : DocsTableRowProps ) => {
22 return (
33 < div className = "flex flex-col gap-1 font-mono text-sm sm:flex-row sm:gap-4" >
4- < div className = "px-2 opacity-80 sm:w-80" > .{ className } </ div >
4+ < div className = "px-2 text-zinc-900 sm:w-80 dark:text-zinc-300 " > .{ className } </ div >
55 < div className = "flex-1 pl-8 pr-2 text-sky-700 sm:pl-2 dark:text-sky-300" > { code } ;</ div >
66 </ div >
77 )
You can’t perform that action at this time.
0 commit comments