constants.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { NoteTheme } from './types'
  2. export const CUSTOM_NOTE_NODE = 'custom-note'
  3. export const THEME_MAP: Record<string, { outer: string; title: string; bg: string; border: string }> = {
  4. [NoteTheme.blue]: {
  5. outer: 'border-util-colors-blue-blue-500',
  6. title: 'bg-util-colors-blue-blue-100',
  7. bg: 'bg-util-colors-blue-blue-50',
  8. border: 'border-util-colors-blue-blue-300',
  9. },
  10. [NoteTheme.cyan]: {
  11. outer: 'border-util-colors-cyan-cyan-500',
  12. title: 'bg-util-colors-cyan-cyan-100',
  13. bg: 'bg-util-colors-cyan-cyan-50',
  14. border: 'border-util-colors-cyan-cyan-300',
  15. },
  16. [NoteTheme.green]: {
  17. outer: 'border-util-colors-green-green-500',
  18. title: 'bg-util-colors-green-green-100',
  19. bg: 'bg-util-colors-green-green-50',
  20. border: 'border-util-colors-green-green-300',
  21. },
  22. [NoteTheme.yellow]: {
  23. outer: 'border-util-colors-yellow-yellow-500',
  24. title: 'bg-util-colors-yellow-yellow-100',
  25. bg: 'bg-util-colors-yellow-yellow-50',
  26. border: 'border-util-colors-yellow-yellow-300',
  27. },
  28. [NoteTheme.pink]: {
  29. outer: 'border-util-colors-pink-pink-500',
  30. title: 'bg-util-colors-pink-pink-100',
  31. bg: 'bg-util-colors-pink-pink-50',
  32. border: 'border-util-colors-pink-pink-300',
  33. },
  34. [NoteTheme.violet]: {
  35. outer: 'border-util-colors-violet-violet-500',
  36. title: 'bg-util-colors-violet-violet-100',
  37. bg: 'bg-util-colors-violet-violet-100',
  38. border: 'border-util-colors-violet-violet-300',
  39. },
  40. }