-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme-dark.scss
87 lines (70 loc) · 1.66 KB
/
theme-dark.scss
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
/*-- scss:defaults --*/
// Colors
$primary: #3478C5;
$secondary: #6c757d;
$success: #198754;
$info: #31BAE9;
$warning: #ffc107;
$danger: #dc3545;
$light: #f8f9fa;
$dark: #212529;
// Base document colors
$body-bg: #1a1a1a;
$body-color: #e9ecef;
$link-color: $info;
// Navigation
$navbar-bg: darken($body-bg, 5%);
$navbar-fg: $body-color;
$navbar-hl: $info;
$code-bg: darken($body-bg, 3%);
// Inline code
$code-color: #ff8a8a;
// Cards and callouts
$card-bg: darken($body-bg, 3%);
$card-border-color: rgba(255, 255, 255, 0.125);
// Tables
$table-bg: $body-bg;
$table-border-color: rgba(255, 255, 255, 0.125);
// Forms
$input-bg: darken($body-bg, 3%);
$input-border-color: rgba(255, 255, 255, 0.125);
$input-color: $body-color;
/*-- scss:rules --*/
// Custom rules
.card {
background-color: $card-bg;
border-color: $card-border-color;
}
.navbar {
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
// Make sure code blocks are readable
pre {
border: 1px solid rgba(255, 255, 255, 0.1);
}
// Adjust table styles for dark mode
table {
color: $body-color;
}
// Make blockquotes stand out
blockquote {
border-left: 4px solid $info;
background-color: darken($body-bg, 3%);
}
// Style for code output blocks
.cell-output {
background-color: darken($body-bg, 5%); // Slightly darker than body background
color: #d1d1d1; // Light grey text color
padding: 0.5em;
margin-top: 0.5em;
border: 1px solid rgba(255, 255, 255, 0.1);
}
// If you want to specifically target pre elements within output
.cell-output pre {
background-color: darken($body-bg, 5%);
color: #d1d1d1;
}
code {
background-color: darken($body-bg, 5%) !important;
color: #d1d1d1 !important;
}