forked from facebook/react-native-website
-
Notifications
You must be signed in to change notification settings - Fork 328
/
PrismTheme.js
126 lines (124 loc) · 2.09 KB
/
PrismTheme.js
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
119
120
121
122
123
124
125
126
/**
* Copyright (c) Meta Platforms, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const theme = {
plain: {
color: '#FFFFFF',
backgroundColor: '#282C34',
},
styles: [
{
types: ['property'],
style: {
color: '#2aa198',
},
},
{
types: ['attr-name', 'comment', 'prolog', 'doctype', 'cdata'],
style: {
color: '#93a1a1',
},
},
{
types: ['punctuation'],
style: {
color: '#657b83',
},
},
{
types: ['namespace'],
style: {
opacity: 0.7,
},
},
{
types: ['selector', 'char', 'builtin', 'url'],
style: {
color: '#2aa198',
},
},
{
types: ['entity'],
style: {
color: '#2aa198',
},
},
{
types: ['atrule', 'inserted'],
style: {
color: '#859900',
},
},
{
types: ['important', 'variable', 'deleted'],
style: {
color: '#cb4b16',
},
},
{
types: ['important', 'bold'],
style: {
fontWeight: 'bold',
},
},
{
types: ['italic'],
style: {
fontStyle: 'italic',
},
},
{
types: ['entity'],
style: {
cursor: 'help',
},
},
// react-native theme
{
types: ['attr-name', 'keyword'],
style: {
color: '#c5a5c5',
},
},
{
types: ['string', 'regex', 'attr-value'],
style: {
color: '#8dc891',
},
},
{
types: ['number', 'constant', 'symbol'],
style: {
color: '#5a9bcf',
},
},
{
types: ['boolean'],
style: {
color: '#ff8b50',
},
},
{
types: ['class-name'],
style: {
color: '#fac863',
},
},
{
types: ['function'],
style: {
color: '#79b6f2',
},
},
{
types: ['operator', 'tag'],
style: {
color: '#fc929e',
},
},
],
};
module.exports = theme;