| 1 |
/* |
| 2 |
* theme/_default.scss - Default Color Theme |
| 3 |
* Categorical Colors Adapted from d3: |
| 4 |
* https://github.com/mbostock/d3/wiki/Ordinal-Scales#categorical-colors |
| 5 |
*/ |
| 6 |
|
| 7 |
// Fonts |
| 8 |
.epoch { |
| 9 |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 10 |
font-size: 12pt; |
| 11 |
} |
| 12 |
|
| 13 |
// Axes and Ticks |
| 14 |
.epoch { |
| 15 |
.axis path, .axis line { |
| 16 |
fill: transparent; |
| 17 |
stroke: #000; |
| 18 |
} |
| 19 |
|
| 20 |
.axis .tick text { |
| 21 |
font-size: 9pt; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
// Line Charts |
| 26 |
.epoch .line { |
| 27 |
fill: transparent; |
| 28 |
stroke-width: 2px; |
| 29 |
} |
| 30 |
|
| 31 |
.epoch.sparklines .line { |
| 32 |
stroke-width: 1px; |
| 33 |
} |
| 34 |
|
| 35 |
|
| 36 |
// Area Charts |
| 37 |
.epoch .area { |
| 38 |
stroke: transparent; |
| 39 |
} |
| 40 |
|
| 41 |
// Pie Charts |
| 42 |
.epoch { |
| 43 |
.arc.pie { |
| 44 |
stroke: #fff; |
| 45 |
stroke-width: 1.5px; |
| 46 |
} |
| 47 |
|
| 48 |
.arc.pie text { |
| 49 |
stroke: transparent; |
| 50 |
fill: white; |
| 51 |
font-size: 9pt; |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
// Gauge Charts |
| 56 |
.epoch .gauge-labels { |
| 57 |
.value { |
| 58 |
text-anchor: middle; |
| 59 |
font-size: 140%; |
| 60 |
fill: #666; |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
.epoch.gauge-tiny { |
| 65 |
width: 120px; height: 90px; |
| 66 |
|
| 67 |
.gauge-labels { |
| 68 |
.value { font-size: 80%; } |
| 69 |
} |
| 70 |
|
| 71 |
.gauge { |
| 72 |
.arc.outer { |
| 73 |
stroke-width: 2px; |
| 74 |
} |
| 75 |
} |
| 76 |
} |
| 77 |
|
| 78 |
.epoch.gauge-small { |
| 79 |
width: 180px; height: 135px; |
| 80 |
|
| 81 |
.gauge-labels { |
| 82 |
.value { font-size: 120%; } |
| 83 |
} |
| 84 |
|
| 85 |
.gauge { |
| 86 |
.arc.outer { |
| 87 |
stroke-width: 3px; |
| 88 |
} |
| 89 |
} |
| 90 |
} |
| 91 |
|
| 92 |
.epoch.gauge-medium { |
| 93 |
width: 240px; height: 180px; |
| 94 |
|
| 95 |
.gauge { |
| 96 |
.arc.outer { |
| 97 |
stroke-width: 3px; |
| 98 |
} |
| 99 |
} |
| 100 |
} |
| 101 |
|
| 102 |
.epoch.gauge-large { |
| 103 |
width: 320px; height: 240px; |
| 104 |
.gauge-labels { |
| 105 |
.value { font-size: 180%; } |
| 106 |
} |
| 107 |
} |
| 108 |
|
| 109 |
.epoch .gauge { |
| 110 |
.arc.outer { |
| 111 |
stroke-width: 4px; |
| 112 |
stroke: #666; |
| 113 |
} |
| 114 |
.arc.inner { |
| 115 |
stroke-width: 1px; |
| 116 |
stroke: #555; |
| 117 |
} |
| 118 |
.tick { |
| 119 |
stroke-width: 1px; |
| 120 |
stroke: #555; |
| 121 |
} |
| 122 |
|
| 123 |
.needle { |
| 124 |
fill: orange; |
| 125 |
} |
| 126 |
|
| 127 |
.needle-base { |
| 128 |
fill: #666; |
| 129 |
} |
| 130 |
} |
| 131 |
|
| 132 |
// Categorical Colors |
| 133 |
$category10: |
| 134 |
#1f77b4, #ff7f0e, #2ca02c, #d62728, #9467bd, |
| 135 |
#8c564b, #e377c2, #7f7f7f, #bcbd22, #17becf; |
| 136 |
|
| 137 |
.epoch, .epoch.category10 { |
| 138 |
@include epoch-category-colors($category10, 10); |
| 139 |
} |
| 140 |
|
| 141 |
$category20: |
| 142 |
#1f77b4, #aec7e8, #ff7f0e, #ffbb78, #2ca02c, |
| 143 |
#98df8a, #d62728, #ff9896, #9467bd, #c5b0d5, |
| 144 |
#8c564b, #c49c94, #e377c2, #f7b6d2, #7f7f7f, |
| 145 |
#c7c7c7, #bcbd22, #dbdb8d, #17becf, #9edae5; |
| 146 |
|
| 147 |
.epoch.category20 { |
| 148 |
@include epoch-category-colors($category20, 20); |
| 149 |
} |
| 150 |
|
| 151 |
$category20b: |
| 152 |
#393b79, #5254a3, #6b6ecf, #9c9ede, #637939, |
| 153 |
#8ca252, #b5cf6b, #cedb9c, #8c6d31, #bd9e39, |
| 154 |
#e7ba52, #e7cb94, #843c39, #ad494a, #d6616b, |
| 155 |
#e7969c, #7b4173, #a55194, #ce6dbd, #de9ed6; |
| 156 |
|
| 157 |
.epoch.category20b { |
| 158 |
@include epoch-category-colors($category20b, 20); |
| 159 |
} |
| 160 |
|
| 161 |
$category20c: |
| 162 |
#3182bd, #6baed6, #9ecae1, #c6dbef, |
| 163 |
#e6550d, #fd8d3c, #fdae6b, #fdd0a2, |
| 164 |
#31a354, #74c476, #a1d99b, #c7e9c0, |
| 165 |
#756bb1, #9e9ac8, #bcbddc, #dadaeb, |
| 166 |
#636363, #969696, #bdbdbd, #d9d9d9; |
| 167 |
|
| 168 |
.epoch.category20c { |
| 169 |
@include epoch-category-colors($category20c, 20); |
| 170 |
} |
| 171 |
|
| 172 |
|
| 173 |
/* |
| 174 |
* Heatmap Colors |
| 175 |
* |
| 176 |
* The heatmap real-time graph uses color blending to choose the color for which to render each bucket. |
| 177 |
* Basic d3 categorical colors do not work well in this instance because the colors in the sequence |
| 178 |
* vary wildly in precieved luminosity. |
| 179 |
* |
| 180 |
* Below we define small subsets that should work well together because they are of similar luminosities. |
| 181 |
* Note: darker colors work better since we use opacity to denote "height" or "intensity" for each bucket |
| 182 |
* after picking a mix color. |
| 183 |
*/ |
| 184 |
$heatmap5: |
| 185 |
#1f77b4, #2ca02c, #d62728, #8c564b, #7f7f7f; |
| 186 |
|
| 187 |
.epoch, .epoch.heatmap5 { |
| 188 |
@include epoch-heatmap-colors($heatmap5, 5); |
| 189 |
} |