-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathlight-pastel.js
More file actions
659 lines (617 loc) · 14.3 KB
/
light-pastel.js
File metadata and controls
659 lines (617 loc) · 14.3 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
/**
* Light Pastel Theme - "Serenity Bloom"
* Soft, deep pastels with warm undertones for a calm, refined look.
* Gentle contrast that stays readable and inviting.
*/
import { rgba } from 'polished';
const colors = {
// Primary palette - soft yet deep
BRAND: '#d16c6c', // Dusty coral - warm but calm
TEXT: '#2b2f3a', // Deep charcoal with a violet hint
TEXT_MUTED: '#6e7380', // Muted slate
TEXT_LINK: '#3f7cac', // Steel blue
BACKGROUND: '#fdfaf7', // Warm ivory
// Core colors
WHITE: '#ffffff',
BLACK: '#17181f',
SLATE: '#1f2530',
// Soft pastels with depth
GREEN: '#3c9d7c', // Soft emerald
YELLOW: '#d2a13f', // Golden ochre
RED: '#c75b63', // Rosewood red
PURPLE: '#7a70b5', // Dusty periwinkle
BLUE: '#3a7cc4', // Muted azure
PINK: '#c57a92', // Dusty rose
ORANGE: '#dd8a52', // Muted amber
TEAL: '#3a8f98', // Steel teal
// Warm grayscale with soft contrast
GRAY_1: '#f7f4ef', // Near white with warmth
GRAY_2: '#f0ebe4', // Light greige
GRAY_3: '#e2dbd1', // Soft stone
GRAY_4: '#d3cabc', // Gentle taupe
GRAY_5: '#b8b0a3', // Mid greige
GRAY_6: '#8d8577', // Warm smoke
GRAY_7: '#6f675b', // Earthy brown-gray
GRAY_8: '#574f45', // Deep stone
GRAY_9: '#3f382f', // Charcoal brown
GRAY_10: '#29231d', // Deepest warm charcoal
// CodeMirror syntax - soft contrast with clarity
CODEMIRROR_TOKENS: {
DEFINITION: '#3c9d7c', // Soft emerald
PROPERTY: '#3a7cc4', // Muted azure
STRING: '#c75b63', // Rosewood
NUMBER: '#2d8fa1', // Dusty teal
ATOM: '#7a70b5', // Dusty periwinkle
VARIABLE: '#3f7cac', // Steel blue
KEYWORD: '#c57a92', // Dusty rose
COMMENT: '#9a9488', // Warm muted gray
OPERATOR: '#7c7a73', // Soft graphite
TAG: '#3a7cc4', // Muted azure
TAG_BRACKET: '#9a9488' // Warm muted gray
}
};
export const palette = {};
palette.intent = {
INFO: colors.BLUE,
SUCCESS: colors.GREEN,
WARNING: colors.ORANGE,
DANGER: colors.RED
};
const lightPastelTheme = {
mode: 'light',
brand: colors.BRAND,
text: colors.TEXT,
textLink: colors.TEXT_LINK,
draftColor: '#cc7b1b',
bg: colors.BACKGROUND,
primary: {
solid: colors.BRAND,
text: colors.BRAND,
strong: colors.BRAND,
subtle: colors.BRAND
},
accents: {
primary: colors.BRAND
},
background: {
base: colors.BACKGROUND,
mantle: colors.GRAY_1,
crust: colors.GRAY_2,
surface0: colors.GRAY_3,
surface1: colors.GRAY_4,
surface2: colors.GRAY_5
},
status: {
info: {
background: rgba(palette.intent.INFO, 0.15),
text: palette.intent.INFO,
border: palette.intent.INFO
},
success: {
background: rgba(palette.intent.SUCCESS, 0.15),
text: palette.intent.SUCCESS,
border: palette.intent.SUCCESS
},
warning: {
background: rgba(palette.intent.WARNING, 0.15),
text: palette.intent.WARNING,
border: palette.intent.WARNING
},
danger: {
background: rgba(palette.intent.DANGER, 0.15),
text: palette.intent.DANGER,
border: palette.intent.DANGER
}
},
overlay: {
overlay2: colors.GRAY_6,
overlay1: '#c0c0c0',
overlay0: '#d0d0d0'
},
font: {
size: {
xxs: '0.563rem',
xs: '0.6875rem',
sm: '0.75rem',
base: '0.8125rem',
md: '0.875rem',
lg: '1rem',
xl: '1.125rem'
}
},
shadow: {
sm: '0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05)',
md: '0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06)',
lg: '0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05)'
},
border: {
radius: {
sm: '4px',
base: '6px',
md: '8px',
lg: '10px',
xl: '12px'
},
border2: colors.GRAY_4,
border1: colors.GRAY_3,
border0: colors.GRAY_2
},
colors: {
text: {
white: colors.WHITE,
green: colors.GREEN,
danger: colors.RED,
warning: colors.ORANGE,
muted: colors.TEXT_MUTED,
purple: colors.PURPLE,
yellow: colors.YELLOW,
subtext2: colors.GRAY_7,
subtext1: colors.TEXT_MUTED,
subtext0: colors.GRAY_6
},
bg: {
danger: colors.RED
},
accent: colors.BRAND
},
input: {
bg: colors.WHITE,
border: colors.GRAY_4,
focusBorder: colors.BRAND,
placeholder: {
color: colors.GRAY_6,
opacity: 0.8
}
},
sidebar: {
color: colors.TEXT,
muted: colors.TEXT_MUTED,
bg: colors.GRAY_1,
dragbar: {
border: colors.GRAY_4,
activeBorder: colors.BRAND
},
collection: {
item: {
bg: colors.GRAY_2,
hoverBg: rgba(colors.GRAY_3, 0.5),
focusBorder: colors.BRAND,
indentBorder: colors.GRAY_3,
active: {
indentBorder: colors.GRAY_3
},
example: {
iconColor: colors.GRAY_7
}
}
},
dropdownIcon: {
color: colors.GRAY_7
}
},
dropdown: {
color: colors.TEXT,
iconColor: colors.GRAY_7,
bg: colors.GRAY_1,
hoverBg: colors.GRAY_2,
shadow: 'rgba(0, 0, 0, 0.15) 0px 6px 16px -2px, rgba(0, 0, 0, 0.1) 0px 3px 8px -3px',
border: 'none',
separator: colors.GRAY_3,
selectedColor: colors.BRAND,
mutedText: colors.GRAY_6
},
workspace: {
accent: colors.BRAND,
border: colors.GRAY_3,
button: {
bg: colors.GRAY_3
}
},
request: {
methods: {
get: '#3c9d7c', // Soft emerald - success
post: '#7a70b5', // Dusty periwinkle - creation
put: '#dd8a52', // Muted amber - update
delete: '#c75b63', // Rosewood red - deletion
patch: '#3a8f98', // Steel teal - modification
options: '#2d8fa1', // Dusty teal - metadata
head: '#3a7cc4' // Muted azure - lightweight
},
grpc: '#7a70b5', // Dusty periwinkle
ws: '#c57a92', // Dusty rose
gql: '#7a70b5' // Dusty periwinkle
},
requestTabPanel: {
url: {
bg: 'transparent',
icon: colors.GRAY_7,
iconDanger: colors.RED,
border: `solid 1px ${colors.GRAY_4}`
},
dragbar: {
border: colors.GRAY_3,
activeBorder: colors.BRAND
},
responseStatus: colors.TEXT_MUTED,
responseOk: colors.GREEN,
responseError: colors.RED,
responsePending: colors.BLUE,
responseOverlayBg: 'rgba(254, 251, 255, 0.7)',
card: {
bg: colors.WHITE,
border: colors.GRAY_3,
hr: colors.GRAY_3
},
graphqlDocsExplorer: {
bg: colors.WHITE,
color: colors.TEXT
}
},
notifications: {
bg: colors.WHITE,
list: {
bg: colors.GRAY_2,
borderRight: 'transparent',
borderBottom: colors.GRAY_4,
hoverBg: colors.GRAY_3,
active: {
border: colors.BRAND,
bg: colors.GRAY_3,
hoverBg: colors.GRAY_3
}
}
},
modal: {
title: {
color: colors.TEXT,
bg: colors.GRAY_1
},
body: {
color: colors.TEXT,
bg: colors.WHITE
},
input: {
bg: colors.WHITE,
border: colors.GRAY_4,
focusBorder: colors.BRAND
},
backdrop: {
opacity: 0.35
}
},
button: {
secondary: {
color: colors.TEXT,
bg: colors.GRAY_2,
border: colors.GRAY_4,
hoverBorder: colors.GRAY_6
},
close: {
color: colors.TEXT,
bg: colors.WHITE,
border: colors.WHITE,
hoverBorder: ''
},
disabled: {
color: colors.GRAY_6,
bg: colors.GRAY_2,
border: colors.GRAY_3
},
danger: {
color: colors.WHITE,
bg: colors.RED,
border: colors.RED
}
},
button2: {
color: {
primary: {
bg: colors.BRAND,
text: colors.WHITE,
border: colors.BRAND
},
light: {
bg: rgba(colors.BRAND, 0.08),
text: colors.BRAND,
border: rgba(colors.BRAND, 0.06)
},
secondary: {
bg: colors.GRAY_3,
text: colors.TEXT,
border: colors.GRAY_4
},
success: {
bg: colors.GREEN,
text: colors.WHITE,
border: colors.GREEN
},
warning: {
bg: colors.ORANGE,
text: colors.WHITE,
border: colors.ORANGE
},
danger: {
bg: colors.RED,
text: colors.WHITE,
border: colors.RED
}
}
},
tabs: {
marginRight: '1.2rem',
active: {
fontWeight: 400,
color: colors.TEXT,
border: colors.BRAND
},
secondary: {
active: {
bg: colors.GRAY_2,
color: colors.TEXT
},
inactive: {
bg: colors.GRAY_2,
color: colors.TEXT_MUTED
}
}
},
requestTabs: {
color: colors.TEXT,
bg: colors.GRAY_1,
bottomBorder: colors.GRAY_3,
icon: {
color: colors.GRAY_6,
hoverColor: colors.TEXT,
hoverBg: colors.GRAY_3
},
example: {
iconColor: colors.GRAY_7
}
},
codemirror: {
bg: colors.BACKGROUND,
border: colors.WHITE,
placeholder: {
color: colors.GRAY_6,
opacity: 0.75
},
gutter: {
bg: colors.BACKGROUND
},
variable: {
valid: colors.GREEN,
invalid: colors.RED,
prompt: colors.BLUE
},
tokens: {
definition: colors.CODEMIRROR_TOKENS.DEFINITION,
property: colors.CODEMIRROR_TOKENS.PROPERTY,
string: colors.CODEMIRROR_TOKENS.STRING,
number: colors.CODEMIRROR_TOKENS.NUMBER,
atom: colors.CODEMIRROR_TOKENS.ATOM,
variable: colors.CODEMIRROR_TOKENS.VARIABLE,
keyword: colors.CODEMIRROR_TOKENS.KEYWORD,
comment: colors.CODEMIRROR_TOKENS.COMMENT,
operator: colors.CODEMIRROR_TOKENS.OPERATOR,
tag: colors.CODEMIRROR_TOKENS.TAG,
tagBracket: colors.CODEMIRROR_TOKENS.TAG_BRACKET
},
searchLineHighlightCurrent: `${colors.BRAND}12`,
searchMatch: '#e5c27a',
searchMatchActive: '#d7b35f'
},
table: {
border: colors.GRAY_3,
thead: {
color: colors.TEXT_MUTED
},
striped: colors.GRAY_1,
input: {
color: colors.TEXT
}
},
plainGrid: {
hoverBg: colors.GRAY_2
},
scrollbar: {
color: colors.GRAY_5
},
dragAndDrop: {
border: colors.BRAND,
borderStyle: '2px dashed',
hoverBg: `${colors.BRAND}08`,
transition: 'all 0.15s ease'
},
infoTip: {
bg: colors.WHITE,
border: colors.GRAY_4,
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.12)'
},
statusBar: {
border: colors.GRAY_3,
color: colors.TEXT_MUTED
},
console: {
bg: colors.GRAY_1,
headerBg: colors.GRAY_1,
contentBg: colors.BACKGROUND,
border: colors.GRAY_3,
titleColor: colors.TEXT,
countColor: colors.TEXT_MUTED,
buttonColor: colors.TEXT,
buttonHoverBg: colors.GRAY_2,
buttonHoverColor: colors.TEXT,
messageColor: colors.TEXT,
timestampColor: colors.TEXT_MUTED,
emptyColor: colors.TEXT_MUTED,
logHoverBg: colors.GRAY_1,
resizeHandleHover: colors.BRAND,
resizeHandleActive: colors.BRAND,
dropdownBg: colors.BACKGROUND,
dropdownHeaderBg: colors.GRAY_1,
optionHoverBg: colors.GRAY_1,
optionLabelColor: colors.TEXT,
optionCountColor: colors.TEXT_MUTED,
checkboxColor: colors.BRAND,
scrollbarTrack: colors.GRAY_1,
scrollbarThumb: colors.GRAY_4,
scrollbarThumbHover: colors.GRAY_5
},
grpc: {
tabNav: {
container: {
bg: colors.GRAY_1
},
button: {
active: {
bg: colors.WHITE,
color: colors.TEXT
},
inactive: {
bg: 'transparent',
color: colors.TEXT_MUTED
}
}
},
importPaths: {
header: {
text: colors.TEXT_MUTED,
button: {
color: colors.TEXT_MUTED,
hoverColor: colors.TEXT
}
},
error: {
bg: 'transparent',
text: '#c75b63',
link: {
color: '#c75b63',
hoverColor: '#d98b8f'
}
},
item: {
bg: 'transparent',
hoverBg: colors.GRAY_2,
text: colors.TEXT,
icon: colors.TEXT_MUTED,
checkbox: {
color: colors.TEXT
},
invalid: {
opacity: 0.6,
text: '#c75b63'
}
},
empty: {
text: colors.TEXT_MUTED
},
button: {
bg: colors.GRAY_2,
color: colors.TEXT,
border: colors.GRAY_4,
hoverBorder: colors.GRAY_6
}
},
protoFiles: {
header: {
text: colors.TEXT_MUTED,
button: {
color: colors.TEXT_MUTED,
hoverColor: colors.TEXT
}
},
error: {
bg: 'transparent',
text: '#c75b63',
link: {
color: '#c75b63',
hoverColor: '#d98b8f'
}
},
item: {
bg: 'transparent',
hoverBg: colors.GRAY_2,
selected: {
bg: `${colors.BRAND}18`,
border: colors.BRAND
},
text: colors.TEXT,
secondaryText: colors.TEXT_MUTED,
icon: colors.TEXT_MUTED,
invalid: {
opacity: 0.6,
text: '#c75b63'
}
},
empty: {
text: colors.TEXT_MUTED
},
button: {
bg: colors.GRAY_2,
color: colors.TEXT,
border: colors.GRAY_4,
hoverBorder: colors.GRAY_6
}
}
},
deprecationWarning: {
bg: '#fef3c7',
border: '#fcd34d',
icon: '#d97706',
text: colors.TEXT
},
examples: {
buttonBg: `${colors.BRAND}15`,
buttonColor: colors.BRAND,
buttonText: colors.WHITE,
buttonIconColor: colors.TEXT,
border: colors.GRAY_3,
urlBar: {
border: colors.GRAY_3,
bg: colors.GRAY_1
},
table: {
thead: {
bg: colors.GRAY_1,
color: colors.TEXT
}
},
checkbox: {
color: colors.WHITE
}
},
app: {
collection: {
toolbar: {
environmentSelector: {
bg: colors.WHITE,
border: colors.GRAY_4,
icon: colors.BRAND,
text: colors.TEXT,
caret: colors.GRAY_6,
separator: colors.GRAY_4,
hoverBg: colors.WHITE,
hoverBorder: colors.GRAY_5,
noEnvironment: {
text: colors.TEXT_MUTED,
bg: colors.WHITE,
border: colors.GRAY_4,
hoverBg: colors.WHITE,
hoverBorder: colors.GRAY_5
}
},
sandboxMode: {
safeMode: {
bg: `${colors.GREEN}18`,
color: colors.GREEN
},
developerMode: {
bg: `${colors.ORANGE}18`,
color: colors.ORANGE
}
}
}
}
}
};
export default lightPastelTheme;