-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
PlaygroundEditorTheme.ts
118 lines (114 loc) · 4.77 KB
/
PlaygroundEditorTheme.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import type {EditorThemeClasses} from 'lexical';
import './PlaygroundEditorTheme.css';
const theme: EditorThemeClasses = {
autocomplete: 'PlaygroundEditorTheme__autocomplete',
blockCursor: 'PlaygroundEditorTheme__blockCursor',
characterLimit: 'PlaygroundEditorTheme__characterLimit',
code: 'PlaygroundEditorTheme__code',
codeHighlight: {
atrule: 'PlaygroundEditorTheme__tokenAttr',
attr: 'PlaygroundEditorTheme__tokenAttr',
boolean: 'PlaygroundEditorTheme__tokenProperty',
builtin: 'PlaygroundEditorTheme__tokenSelector',
cdata: 'PlaygroundEditorTheme__tokenComment',
char: 'PlaygroundEditorTheme__tokenSelector',
class: 'PlaygroundEditorTheme__tokenFunction',
'class-name': 'PlaygroundEditorTheme__tokenFunction',
comment: 'PlaygroundEditorTheme__tokenComment',
constant: 'PlaygroundEditorTheme__tokenProperty',
deleted: 'PlaygroundEditorTheme__tokenProperty',
doctype: 'PlaygroundEditorTheme__tokenComment',
entity: 'PlaygroundEditorTheme__tokenOperator',
function: 'PlaygroundEditorTheme__tokenFunction',
important: 'PlaygroundEditorTheme__tokenVariable',
inserted: 'PlaygroundEditorTheme__tokenSelector',
keyword: 'PlaygroundEditorTheme__tokenAttr',
namespace: 'PlaygroundEditorTheme__tokenVariable',
number: 'PlaygroundEditorTheme__tokenProperty',
operator: 'PlaygroundEditorTheme__tokenOperator',
prolog: 'PlaygroundEditorTheme__tokenComment',
property: 'PlaygroundEditorTheme__tokenProperty',
punctuation: 'PlaygroundEditorTheme__tokenPunctuation',
regex: 'PlaygroundEditorTheme__tokenVariable',
selector: 'PlaygroundEditorTheme__tokenSelector',
string: 'PlaygroundEditorTheme__tokenSelector',
symbol: 'PlaygroundEditorTheme__tokenProperty',
tag: 'PlaygroundEditorTheme__tokenProperty',
url: 'PlaygroundEditorTheme__tokenOperator',
variable: 'PlaygroundEditorTheme__tokenVariable',
},
embedBlock: {
base: 'PlaygroundEditorTheme__embedBlock',
focus: 'PlaygroundEditorTheme__embedBlockFocus',
},
hashtag: 'PlaygroundEditorTheme__hashtag',
heading: {
h1: 'PlaygroundEditorTheme__h1',
h2: 'PlaygroundEditorTheme__h2',
h3: 'PlaygroundEditorTheme__h3',
h4: 'PlaygroundEditorTheme__h4',
h5: 'PlaygroundEditorTheme__h5',
h6: 'PlaygroundEditorTheme__h6',
},
hr: 'PlaygroundEditorTheme__hr',
image: 'editor-image',
indent: 'PlaygroundEditorTheme__indent',
inlineImage: 'inline-editor-image',
layoutContainer: 'PlaygroundEditorTheme__layoutContainer',
layoutItem: 'PlaygroundEditorTheme__layoutItem',
link: 'PlaygroundEditorTheme__link',
list: {
checklist: 'PlaygroundEditorTheme__checklist',
listitem: 'PlaygroundEditorTheme__listItem',
listitemChecked: 'PlaygroundEditorTheme__listItemChecked',
listitemUnchecked: 'PlaygroundEditorTheme__listItemUnchecked',
nested: {
listitem: 'PlaygroundEditorTheme__nestedListItem',
},
olDepth: [
'PlaygroundEditorTheme__ol1',
'PlaygroundEditorTheme__ol2',
'PlaygroundEditorTheme__ol3',
'PlaygroundEditorTheme__ol4',
'PlaygroundEditorTheme__ol5',
],
ul: 'PlaygroundEditorTheme__ul',
},
ltr: 'PlaygroundEditorTheme__ltr',
mark: 'PlaygroundEditorTheme__mark',
markOverlap: 'PlaygroundEditorTheme__markOverlap',
paragraph: 'PlaygroundEditorTheme__paragraph',
quote: 'PlaygroundEditorTheme__quote',
rtl: 'PlaygroundEditorTheme__rtl',
specialText: 'PlaygroundEditorTheme__specialText',
table: 'PlaygroundEditorTheme__table',
tableCell: 'PlaygroundEditorTheme__tableCell',
tableCellActionButton: 'PlaygroundEditorTheme__tableCellActionButton',
tableCellActionButtonContainer:
'PlaygroundEditorTheme__tableCellActionButtonContainer',
tableCellHeader: 'PlaygroundEditorTheme__tableCellHeader',
tableCellResizer: 'PlaygroundEditorTheme__tableCellResizer',
tableCellSelected: 'PlaygroundEditorTheme__tableCellSelected',
tableRowStriping: 'PlaygroundEditorTheme__tableRowStriping',
tableScrollableWrapper: 'PlaygroundEditorTheme__tableScrollableWrapper',
tableSelected: 'PlaygroundEditorTheme__tableSelected',
tableSelection: 'PlaygroundEditorTheme__tableSelection',
text: {
bold: 'PlaygroundEditorTheme__textBold',
code: 'PlaygroundEditorTheme__textCode',
italic: 'PlaygroundEditorTheme__textItalic',
strikethrough: 'PlaygroundEditorTheme__textStrikethrough',
subscript: 'PlaygroundEditorTheme__textSubscript',
superscript: 'PlaygroundEditorTheme__textSuperscript',
underline: 'PlaygroundEditorTheme__textUnderline',
underlineStrikethrough: 'PlaygroundEditorTheme__textUnderlineStrikethrough',
},
};
export default theme;