Skip to content

Commit a129102

Browse files
author
Adam Plesnik
committed
Tune text colors
1 parent dca916a commit a129102

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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" />

src/components/Code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { PropsWithChildren } from 'react'
33
const 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}

src/components/CodeBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/components/Heading.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ArrowRight } from 'lucide-react'
22
import { PropsWithChildren } from 'react'
33
import { NavLink } from 'react-router-dom'
4+
import { addWithSpace } from '../utils/addWithSpace'
45

56
const 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>

src/docs/DocsTableRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const 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
)

0 commit comments

Comments
 (0)