Skip to content

Commit ce4625f

Browse files
authored
Callout UI Improved (#984)
<!-- Explain the changes introduced in your PR --> ## Pull Request approval You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel.
1 parent 8acdd07 commit ce4625f

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/components/mdx/Callout.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,27 @@ import {
55
LightBulbIcon,
66
ExclamationTriangleIcon
77
} from '@heroicons/react/24/outline';
8+
import { NotebookPen } from 'lucide-react';
89

910
const styles = {
1011
note: {
1112
container:
12-
'border-sky-500/20 bg-sky-50/50 dark:border-sky-500/30 dark:bg-sky-500/10',
13+
'border-sky-500/20 bg-sky-50/50 dark:border-[#002533] dark:bg-[#001118]',
1314
icon: 'text-sky-500',
1415

15-
body: 'text-sky-800 [--tw-prose-background:theme(colors.sky.50)] prose-a:text-sky-900 prose-code:text-sky-900 dark:text-slate-300 dark:prose-code:text-slate-300'
16+
body: 'text-sky-800 [--tw-prose-background:theme(colors.sky.50)] prose-a:text-sky-900 prose-code:text-sky-900 dark:text-[#85cfe9] dark:prose-code:text-[#85cfe9]'
1617
},
1718
info: {
1819
container:
19-
'dark:bg-slate-900 border-slate-300 dark:border-slate-200/20',
20-
icon: 'text-inherit',
21-
body: 'text-sky-800 [--tw-prose-background:theme(colors.sky.50)] prose-a:text-sky-900 prose-code:text-sky-900 dark:text-slate-300 dark:prose-code:text-slate-300'
20+
'border-sky-500/20 bg-sky-50/50 dark:border-[#002533] dark:bg-[#001118]',
21+
icon: 'text-sky-500',
22+
body: 'text-sky-800 [--tw-prose-background:theme(colors.sky.50)] prose-a:text-sky-900 prose-code:text-sky-900 dark:text-[#85cfe9] dark:prose-code:text-[#85cfe9]'
2223
},
2324
tip: {
2425
container:
25-
'border-sky-500/20 bg-sky-50/50 dark:border-sky-500/30 dark:bg-sky-500/10',
26+
'border-sky-500/20 bg-sky-50/50 dark:border-[#002533] dark:bg-[#001118]',
2627
icon: 'text-sky-500',
27-
body: 'text-sky-800 [--tw-prose-background:theme(colors.sky.50)] prose-a:text-sky-900 prose-code:text-sky-900 dark:text-slate-300 dark:prose-code:text-slate-300'
28+
body: 'text-sky-800 [--tw-prose-background:theme(colors.sky.50)] prose-a:text-sky-900 prose-code:text-sky-900 dark:text-[#85cfe9] dark:prose-code:text-[#85cfe9]'
2829
},
2930
warning: {
3031
container:
@@ -36,7 +37,7 @@ const styles = {
3637

3738
const icons = {
3839
note: (props: {className?: string}) => (
39-
<InformationCircleIcon className={props.className} />
40+
<NotebookPen className={props.className} />
4041
),
4142
info: (props: {className?: string}) => (
4243
<InformationCircleIcon className={props.className} />

src/components/mdx/CustomLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const CustomLink: React.FC<CustomLinkProps> = ({
2929
// Handling external links
3030
if (href.startsWith('http')) {
3131
return (
32-
<a href={href} target="_blank" rel="noopener noreferrer" {...rest} className='no-underline hover-underline'>
32+
<a href={href} target="_blank" rel="noopener noreferrer" {...rest} className='no-underline text-vermilion-07'>
3333
{children}
3434
</a>
3535
);

0 commit comments

Comments
 (0)