- {query ? highlightQuery(tldrWithDot, query) : tldrWithDot}
+
diff --git a/src/lib/notion.ts b/src/lib/notion.ts
index c97c7e3..e952f89 100644
--- a/src/lib/notion.ts
+++ b/src/lib/notion.ts
@@ -50,3 +50,39 @@ export const searchWatchPage = cache((query: string) => {
},
})
})
+
+type Color =
+ | 'default'
+ | 'gray'
+ | 'brown'
+ | 'orange'
+ | 'yellow'
+ | 'green'
+ | 'blue'
+ | 'purple'
+ | 'pink'
+ | 'red'
+ | 'gray_background'
+ | 'brown_background'
+ | 'orange_background'
+ | 'yellow_background'
+ | 'green_background'
+ | 'blue_background'
+ | 'purple_background'
+ | 'pink_background'
+ | 'red_background'
+
+export type RichTextPart = {
+ type: 'text'
+ text: { content: string; link: null }
+ annotations: {
+ bold: boolean
+ italic: boolean
+ strikethrough: boolean
+ underline: boolean
+ code: boolean
+ color: Color
+ }
+ plain_text: string
+ href: string | null
+}
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 3b9b2d8..f2dc63d 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -54,6 +54,10 @@ export default {
DEFAULT: '#153040',
light: '#ECECEC',
},
+ code: {
+ DEFAULT: '#6e768166',
+ light: '#e4e4e4',
+ },
},
screens: {
sm: '640px',