diff --git a/apps/landing/src/app/(detail)/docs/layout.tsx b/apps/landing/src/app/(detail)/docs/layout.tsx index b0e7499e..f685f0dd 100644 --- a/apps/landing/src/app/(detail)/docs/layout.tsx +++ b/apps/landing/src/app/(detail)/docs/layout.tsx @@ -16,7 +16,13 @@ export default function DetailLayout({ - + {children} diff --git a/apps/landing/src/app/markdown.css b/apps/landing/src/app/markdown.css index 85b2bdf9..76722b3e 100644 --- a/apps/landing/src/app/markdown.css +++ b/apps/landing/src/app/markdown.css @@ -4,6 +4,30 @@ table { border-collapse: collapse; border-spacing: 0; border: 1px solid var(--text); + color: var(--text, #2F2F2F); + + /* Desktop/bodyReg */ + font-family: Pretendard; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: 150%; /* 24px */ + letter-spacing: -0.48px; +} + +code { + font-family: D2Coding; + font-size: 13px; + font-style: normal; + font-weight: 700; + line-height: 1.5; + letter-spacing: -0.03em; +} + +@media (min-width: 1280px) { + code { + font-size: 15px; + } } th, td { diff --git a/apps/landing/src/mdx-components.tsx b/apps/landing/src/mdx-components.tsx index 04e1fc0e..a3000658 100644 --- a/apps/landing/src/mdx-components.tsx +++ b/apps/landing/src/mdx-components.tsx @@ -1,3 +1,4 @@ +import { Text } from '@devup-ui/react' import type { MDXComponents } from 'mdx/types' import { Code } from './components/Code' @@ -17,6 +18,34 @@ const _components = { ) }, + h1({ children }: { children: React.ReactNode }) { + return ( + + {children} + + ) + }, + h2({ children }: { children: React.ReactNode }) { + return ( + + {children} + + ) + }, + h3({ children }: { children: React.ReactNode }) { + return ( + + {children} + + ) + }, + p({ children }: { children: React.ReactNode }) { + return ( + + {children} + + ) + }, } export function useMDXComponents(components: MDXComponents): MDXComponents {