(theme: ThemeMode)
| 8 | * @returns Prism syntax highlighting theme object |
| 9 | */ |
| 10 | export const getClaudeSyntaxTheme = (theme: ThemeMode): any => { |
| 11 | const themes = { |
| 12 | dark: { |
| 13 | base: '#e3e8f0', |
| 14 | background: 'transparent', |
| 15 | comment: '#6b7280', |
| 16 | punctuation: '#9ca3af', |
| 17 | property: '#f59e0b', // Amber/Orange |
| 18 | tag: '#8b5cf6', // Violet |
| 19 | string: '#10b981', // Emerald Green |
| 20 | function: '#818cf8', // Indigo |
| 21 | keyword: '#c084fc', // Light Violet |
| 22 | variable: '#a78bfa', // Light Purple |
| 23 | operator: '#9ca3af', |
| 24 | }, |
| 25 | gray: { |
| 26 | base: '#e3e8f0', |
| 27 | background: 'transparent', |
| 28 | comment: '#71717a', |
| 29 | punctuation: '#a1a1aa', |
| 30 | property: '#fbbf24', // Yellow |
| 31 | tag: '#a78bfa', // Light Purple |
| 32 | string: '#34d399', // Green |
| 33 | function: '#93bbfc', // Light Blue |
| 34 | keyword: '#d8b4fe', // Light Purple |
| 35 | variable: '#c084fc', // Purple |
| 36 | operator: '#a1a1aa', |
| 37 | }, |
| 38 | light: { |
| 39 | base: '#1f2937', |
| 40 | background: 'transparent', |
| 41 | comment: '#9ca3af', |
| 42 | punctuation: '#6b7280', |
| 43 | property: '#dc2626', // Red |
| 44 | tag: '#7c3aed', // Purple |
| 45 | string: '#059669', // Green |
| 46 | function: '#2563eb', // Blue |
| 47 | keyword: '#9333ea', // Purple |
| 48 | variable: '#8b5cf6', // Violet |
| 49 | operator: '#6b7280', |
| 50 | }, |
| 51 | white: { |
| 52 | base: '#000000', |
| 53 | background: 'transparent', |
| 54 | comment: '#6b7280', |
| 55 | punctuation: '#374151', |
| 56 | property: '#dc2626', // Red |
| 57 | tag: '#5b21b6', // Deep Purple |
| 58 | string: '#047857', // Dark Green |
| 59 | function: '#1e40af', // Dark Blue |
| 60 | keyword: '#6b21a8', // Dark Purple |
| 61 | variable: '#6d28d9', // Dark Violet |
| 62 | operator: '#374151', |
| 63 | }, |
| 64 | custom: { |
| 65 | // Default to dark theme colors for custom |
| 66 | base: '#e3e8f0', |
| 67 | background: 'transparent', |
no outgoing calls
no test coverage detected