diff --git a/.changeset/poor-mugs-glow.md b/.changeset/poor-mugs-glow.md new file mode 100644 index 000000000..2c584c317 --- /dev/null +++ b/.changeset/poor-mugs-glow.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +New highlight colors diff --git a/packages/gitbook/src/components/DocumentView/Text.tsx b/packages/gitbook/src/components/DocumentView/Text.tsx index 8cf9341e3..7ad145cef 100644 --- a/packages/gitbook/src/components/DocumentView/Text.tsx +++ b/packages/gitbook/src/components/DocumentView/Text.tsx @@ -130,10 +130,10 @@ const textColorToStyle: { [color in DocumentMarkColor['data']['text']]: ClassVal const backgroundColorToStyle: { [color in DocumentMarkColor['data']['background']]: ClassValue } = { default: [], - blue: ['bg-blue-200', 'dark:bg-blue-900'], - red: ['bg-red-200', 'dark:bg-red-900'], - green: ['bg-green-200', 'dark:bg-green-900'], - yellow: ['bg-yellow-100', 'dark:bg-yellow-900'], - purple: ['bg-purple-200', 'dark:bg-purple-900'], - orange: ['bg-orange-200', 'dark:bg-orange-900'], + blue: ['bg-mark-blue'], + red: ['bg-mark-red'], + green: ['bg-mark-green'], + yellow: ['bg-mark-yellow'], + purple: ['bg-mark-purple'], + orange: ['bg-mark-orange'], }; diff --git a/packages/gitbook/tailwind.config.ts b/packages/gitbook/tailwind.config.ts index f5b97f417..aafa391e4 100644 --- a/packages/gitbook/tailwind.config.ts +++ b/packages/gitbook/tailwind.config.ts @@ -104,6 +104,14 @@ const config: Config = { pomegranate: generateShades('#f25b3a'), periwinkle: generateShades('#acc6ee'), }, + backgroundColor: { + 'mark-blue': '#89C6DA4D', + 'mark-purple': '#DAD4FF4D', + 'mark-orange': '#FFDCBC4D', + 'mark-red': '#FFCCCB4D', + 'mark-yellow': '#FFF0854D', + 'mark-green': '#91EABF4D', + }, animation: { present: 'present .5s ease-out both', },