theme.ts (2254B)
1 const editorTheme = { 2 ltr: "ltr", 3 rtl: "rtl", 4 placeholder: "editor-placeholder", 5 paragraph: "editor-paragraph", 6 quote: "editor-quote", 7 heading: { 8 h1: "editor-heading-h1", 9 h2: "editor-heading-h2", 10 h3: "editor-heading-h3", 11 h4: "editor-heading-h4", 12 h5: "editor-heading-h5" 13 }, 14 list: { 15 nested: { 16 listitem: "editor-nested-listitem" 17 }, 18 ol: "editor-list-ol", 19 ul: "editor-list-ul", 20 listitem: "editor-listitem" 21 }, 22 image: "editor-image", 23 link: "editor-link", 24 text: { 25 bold: "editor-text-bold", 26 italic: "editor-text-italic", 27 overflowed: "editor-text-overflowed", 28 hashtag: "editor-text-hashtag", 29 underline: "editor-text-underline", 30 strikethrough: "editor-text-strikethrough", 31 underlineStrikethrough: "editor-text-underlineStrikethrough", 32 code: "editor-text-code" 33 }, 34 code: "editor-code", 35 codeHighlight: { 36 atrule: "editor-tokenAttr", 37 attr: "editor-tokenAttr", 38 boolean: "editor-tokenProperty", 39 builtin: "editor-tokenSelector", 40 cdata: "editor-tokenComment", 41 char: "editor-tokenSelector", 42 class: "editor-tokenFunction", 43 "class-name": "editor-tokenFunction", 44 comment: "editor-tokenComment", 45 constant: "editor-tokenProperty", 46 deleted: "editor-tokenProperty", 47 doctype: "editor-tokenComment", 48 entity: "editor-tokenOperator", 49 function: "editor-tokenFunction", 50 important: "editor-tokenVariable", 51 inserted: "editor-tokenSelector", 52 keyword: "editor-tokenAttr", 53 namespace: "editor-tokenVariable", 54 number: "editor-tokenProperty", 55 operator: "editor-tokenOperator", 56 prolog: "editor-tokenComment", 57 property: "editor-tokenProperty", 58 punctuation: "editor-tokenPunctuation", 59 regex: "editor-tokenVariable", 60 selector: "editor-tokenSelector", 61 string: "editor-tokenSelector", 62 symbol: "editor-tokenProperty", 63 tag: "editor-tokenProperty", 64 url: "editor-tokenOperator", 65 variable: "editor-tokenVariable" 66 } 67 }; 68 69 export default editorTheme;