Skip to content

Commit

Permalink
Updated callout colors
Browse files Browse the repository at this point in the history
  • Loading branch information
zahidalidev committed Feb 14, 2025
1 parent b994786 commit 5f80cb5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/components/mdx/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,27 @@ import {
LightBulbIcon,
ExclamationTriangleIcon
} from '@heroicons/react/24/outline';
import { NotebookPen } from 'lucide-react';

const styles = {
note: {
container:
'border-sky-500/20 bg-sky-50/50 dark:border-sky-500/30 dark:bg-sky-500/10',
'border-sky-500/20 bg-sky-50/50 dark:border-[#002533] dark:bg-[#001118]',
icon: 'text-sky-500',

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'
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]'
},
info: {
container:
'dark:bg-slate-900 border-slate-300 dark:border-slate-200/20',
icon: 'text-inherit',
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'
'border-sky-500/20 bg-sky-50/50 dark:border-[#002533] dark:bg-[#001118]',
icon: 'text-sky-500',
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]'
},
tip: {
container:
'border-sky-500/20 bg-sky-50/50 dark:border-sky-500/30 dark:bg-sky-500/10',
'border-sky-500/20 bg-sky-50/50 dark:border-[#002533] dark:bg-[#001118]',
icon: 'text-sky-500',
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'
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]'
},
warning: {
container:
Expand All @@ -36,7 +37,7 @@ const styles = {

const icons = {
note: (props: {className?: string}) => (
<InformationCircleIcon className={props.className} />
<NotebookPen className={props.className} />
),
info: (props: {className?: string}) => (
<InformationCircleIcon className={props.className} />
Expand Down

0 comments on commit 5f80cb5

Please sign in to comment.