Skip to content

Commit 4bf6683

Browse files
committed
consolidating colors in _variablesLM
1 parent 2eafd94 commit 4bf6683

File tree

12 files changed

+161
-127
lines changed

12 files changed

+161
-127
lines changed

src/app/styles/abstracts/_variablesLM.scss

Lines changed: 93 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -25,72 +25,91 @@ $background-color-weak: #d9d9d9;
2525
$contrasting-color: #161617;
2626
$contrasting-color-weak: #353536;
2727

28+
/////////////////////////////////////////////////////////////////////
29+
// ALL OF THE FOLLOWING COLORS SHOULD REFERENCE A COLOR FROM ABOVE //
30+
/////////////////////////////////////////////////////////////////////
31+
2832
/// @type Color
29-
/// all of these should point to one of the colors listed above
33+
34+
//general text color theme
3035
$dark-text: $contrasting-color;
3136
$light-text: $background-color;
32-
37+
//general icon color theme
3338
$icon-primary: $primary-color-strong;
3439
$icon-secondary: lighten($primary-color-strong, 50%);
3540
$icon-bg: $primary-color-weak;
36-
$tab-select-background: $primary-color;
37-
$tab-select-text: $light-text;
38-
$tab-dropdown-background: $background-color-weak;
3941

42+
//the first window that pops up that checks for react devtools being installed
4043
$loader-background: $background-color;
4144
$loader-text: $dark-text;
4245
$loader-checks-border: $primary-color-strong;
4346
$launch-button: $primary-color-strong;
4447
$launch-button-hover: $primary-color;
4548
$launch-button-text: $light-text;
4649

50+
//drop-down menu for selecting which tab Reactime is observing
51+
$tab-select-background: $primary-color;
52+
$tab-select-background-2: $primary-color;
53+
$tab-select-text: $light-text;
54+
$tab-dropdown-background: $background-color-weak;
55+
56+
//action tab (the main column on the left side)
4757
$action-tab-background: $background-color;
58+
$action-cont-border: $contrasting-color;
4859
//$action-clear-button: $primary-color; //currently being handled by mui theme.ts file
4960
//$action-clear-button-text: $background-color; //currently being handled by mui theme.ts file
5061
$route-bar: $primary-color-strong;
5162
$route-bar-text: $light-text;
52-
$indiv-action-input-bg: $background-color;
63+
$indiv-action-input-bg: $background-color-strong;
5364
$indiv-action-selected: $primary-color-strong;
5465
$indiv-action-selected-text: $light-text;
55-
$indiv-action-filler-text: $contrasting-color-weak;
66+
$indiv-action-filler-text: lighten($contrasting-color,60%);
5667
$indiv-action-custom-text: $dark-text;
68+
$indiv-action-border: $contrasting-color-weak;
5769
$indiv-action-time: $primary-color-weak;
5870
$indiv-action-time-text: $light-text;
71+
$time-button-height: 20px;
5972
$current: $contrasting-color-weak;
6073
$current-text: $light-text;
6174
$jump: $contrasting-color-weak;
6275
$jump-hover: $primary-color;
6376
$jump-text: $light-text;
6477

78+
//the State + Diff toggle
6579
$header-background: $background-color;
6680
$header-button-active: $primary-color;
6781
$header-button-active-text: $light-text;
6882
$header-button-inactive: $primary-color-weak;
6983
$header-button-inactive-text: $dark-text;
84+
$header-button-hover: lighten($header-button-inactive, 20%);
7085

86+
//the buttons/tabs controlling what is displayed in StateContainer (Map, Perfofrmance, History, Web Metrics, Tree)
7187
$navbar-background: $background-color; //this color only shows up in Diff mode when buttons don't fill the whole bar
7288
$navbar-selected: $primary-color-strong;
7389
$navbar-selected-text: $light-text;
7490
$navbar-unselected: $primary-color-weak;
7591
$navbar-unselected-text: $dark-text;
92+
$navbar-hover: darken($navbar-unselected,15%);
7693

7794
$state-background: $background-color-strong;
95+
$state-cont-border: $contrasting-color;
7896

7997
$map-options-dropdown: $primary-color;
8098
$map-options-label: $dark-text;
8199
$map-link: $contrasting-color;
82-
//root fill is currently a visx LinearGradient defined in ComponentMap.tsx
83-
$map-root-fill: $primary-color;
100+
// $map-root-fill: $primary-color; //root fill is currently a visx LinearGradient defined in ComponentMap.tsx
84101
$map-root-stroke: $primary-color;
85102
$map-root-text: $light-text;
86-
//parent fill is currently a visx LinearGradient defined in ComponentMap.tsx
87-
$map-parent-fill: $primary-color-strong;
103+
//$map-parent-fill: $primary-color-strong; //parent fill is currently a visx LinearGradient defined in ComponentMap.tsx
88104
$map-parent-stroke: darken($primary-color-strong, 20%);
89105
$map-parent-text: $light-text;
90106
$map-child-fill: $primary-color-weak;
91107
$map-child-stroke: lighten($primary-color, 50%);
92108
$map-child-text: $dark-text;
93109

110+
$performance-subtab-border: 1px;
111+
$performance-subtab-text: $contrasting-color;
112+
$performance-subtab-hover: $background-color-weak;
94113
$performance-options-dropdown: $primary-color-strong;
95114
$performance-options-label: $dark-text;
96115
$performance-save-series-button: $primary-color;
@@ -114,6 +133,7 @@ $tree-background: $background-color;
114133
// $tree-number: $secondary-color;
115134
// $tree-other: $secondary-color;
116135

136+
//control bar for time travel
117137
$travel-background: $background-color;
118138
$travel-top-border: lighten($contrasting-color, 50%);
119139
$play-button: $primary-strong-gradient;
@@ -129,13 +149,13 @@ $speed-dropdown-expanded: lighten($primary-color-strong, 20%);
129149
$speed-dropdown-expanded-hover: $primary-color;
130150
$speed-dropdown-expanded-text: $light-text;
131151

152+
//the buttons at the very bottom of the screen (locked, download, upload, tutorial, reconnect)
132153
$function-bar-background: $background-color;
133154
//outline color currently handled in mui theme.ts file
134155
$function-bar-button-outlines: $primary-color;
135156
$function-bar-text: $primary-color-strong;
136157
$function-bar-text-hover: $primary-color;
137158
$function-bar-text-highlight: $primary-color-strong;
138-
//icons
139159
$function-bar-icons: $primary-color-strong;
140160

141161
//colors for pop-up window that opens when clicking the reconnect button
@@ -144,42 +164,49 @@ $pop-up-window-text: $dark-text;
144164
$reconnect-button: $primary-color-strong;
145165
$reconnect-button-text: $light-text;
146166

147-
/// @type Color
167+
168+
/// @type Font Size
169+
$button-text-size: 16px;
170+
171+
172+
173+
174+
175+
///// @type Color
148176
/// fiery-rose changed from ff6569 to F00008 globally to improve contrast
149-
$fiery-rose: #fd0011;
150-
$blue-brand: #00ffbf;
177+
// $fiery-rose: #fd0011;
178+
// $blue-brand: #00ffbf;
151179

152-
/// @type Color
153-
$blue-color-gradient: linear-gradient(145deg, #69e5ff, #58c1e2);
154-
$red-color-gradient: linear-gradient(145deg, #f92f35, #f00008);
155-
$grey-color-gradient: linear-gradient(145deg, #5c6068, #4d5157);
180+
///// @type Color
181+
// $blue-color-gradient: linear-gradient(145deg, #69e5ff, #58c1e2);
182+
// $red-color-gradient: linear-gradient(145deg, #f92f35, #f00008);
183+
// $grey-color-gradient: linear-gradient(145deg, #5c6068, #4d5157);
156184

157-
/// @type Color:
158-
$box-shadow-blue: inset 5px 5px 10px #53b6d5, inset -5px -5px 10px #71f6ff;
159-
$box-shadow-red: inset 5px 5px 10px #ff0004, inset -5px -5px 10px #f9393f;
185+
///// @type Color:
186+
// $box-shadow-blue: inset 5px 5px 10px #53b6d5, inset -5px -5px 10px #71f6ff;
187+
// $box-shadow-red: inset 5px 5px 10px #ff0004, inset -5px -5px 10px #f9393f;
160188

161-
// /// @type Color
162-
// $text-color: #e7e7e7;
163-
/// @type Color
164-
$text-color: #5b004f;
189+
190+
///// @type Color
191+
// $text-color: #5b004f;
165192

166193
// /// @type Color
167194
// $brand-color: #29292e !default; //29292e
168195
// $brand-color-highlight: #303036 !default;
169-
/// @type Color
170-
$brand-color: #8f8fd3 !default; //29292e
171-
$brand-color-highlight: rgb(44, 44, 77) !default;
196+
///// @type Color
197+
// $brand-color: #8f8fd3 !default; //29292e
198+
// $brand-color-highlight: rgb(44, 44, 77) !default;
172199

173200
// /// @type Color
174201
// $background-color: #333333 !default;
175202
// $dark-background-color: #191818 !default; // #191818
176203
// $medium-background-color: #51565e !default; //51565e
177204
// $light-background-color: #585d65 !default; //585d65
178-
/// @type Color
179-
$background-color: #0d0dea !default;
180-
$dark-background-color: #e7e7f0 !default; // #191818
181-
$medium-background-color: #d7d7e0 !default; //51565e
182-
$light-background-color: #c6c6cf !default; //585d65
205+
///// @type Color
206+
// $background-color: #0d0dea !default;
207+
// $dark-background-color: #e7e7f0 !default; // #191818
208+
// $medium-background-color: #d7d7e0 !default; //51565e
209+
// $light-background-color: #c6c6cf !default; //585d65
183210

184211
// /// @type Color
185212
// $link-color: #fdf0d5 !default;
@@ -192,17 +219,17 @@ $light-background-color: #c6c6cf !default; //585d65
192219
// $root-fill: #fdf0d5;
193220
// $root-stroke: #1f2021;
194221
// $root-text: #fdf0d5;
195-
/// @type Color
196-
$link-color: #161719 !default;
197-
$child-fill: #a0c1d6;
198-
$child-stroke: #003049;
199-
$child-text: #1f2021;
200-
$parent-fill: #780000;
201-
$parent-stroke: #c1121f;
202-
$parent-text: #fdf0d5;
203-
$root-fill: #fdf0d5;
204-
$root-stroke: #1f2021;
205-
$root-text: #fdf0d5;
222+
///// @type Color
223+
// $link-color: #161719 !default;
224+
// $child-fill: #a0c1d6;
225+
// $child-stroke: #003049;
226+
// $child-text: #1f2021;
227+
// $parent-fill: #780000;
228+
// $parent-stroke: #c1121f;
229+
// $parent-text: #fdf0d5;
230+
// $root-fill: #fdf0d5;
231+
// $root-stroke: #1f2021;
232+
// $root-text: #fdf0d5;
206233

207234
//HOW TO DEFINE GRADIENTS
208235

@@ -224,36 +251,35 @@ $root-text: #fdf0d5;
224251
// // Add any other styles you need
225252
// }
226253

227-
/// Light grey
228-
/// @type Color
229-
$light-grey-one: #474c55 !default;
254+
//// Light grey
255+
// /// @type Color
256+
// $light-grey-one: #474c55 !default;
230257

231-
/// @type Color
232-
$light-grey-two: #5f6369 !default;
233-
$light-grey-three: #65686e !default;
234-
$light-grey-four: #4c4c4d !default;
258+
// /// @type Color
259+
// $light-grey-two: #5f6369 !default;
260+
// $light-grey-three: #65686e !default;
261+
// $light-grey-four: #4c4c4d !default;
235262

236-
/// @type Color
237-
$navbar-color: #44484e !default;
263+
// /// @type Color
264+
// $navbar-color: #44484e !default;
238265

239-
/// @type Color
240-
$head-color: #242529 !default;
266+
// /// @type Color
267+
// $head-color: #242529 !default;
241268

242-
/// @type Color
243-
$border-color: #292929 !default;
269+
// /// @type Color
270+
// $border-color: #292929 !default;
244271

245-
/// @type Color
246-
$border-slider: #57c5f7 !default;
272+
// /// @type Color
273+
// $border-slider: #57c5f7 !default;
247274

248-
/// @type Color
249-
$border-rc: #373737 !default;
250-
$background-rc-color: #e9e9e9 !default;
275+
// /// @type Color
276+
// $border-rc: #373737 !default;
277+
// $background-rc-color: #e9e9e9 !default;
278+
279+
// /// @type Color
280+
// $highlight-color: rgba(224, 224, 224, 0.5) !default;
251281

252-
/// @type Color
253-
$highlight-color: rgba(224, 224, 224, 0.5) !default;
254282

255-
/// @type Font Size
256-
$button-text-size: 16px;
257283

258284
//https://coolors.co/780000-c1121f-f6d5bf-fdf0d5-003049-669bbc-a0c1d6
259285
//colors used in the performance tab bar graphs

src/app/styles/base/_base.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ body {
3737

3838
.action-container {
3939
border-style: solid;
40-
border-color: $border-color;
40+
border-color: $action-cont-border;
4141
border-width: 0px;
4242
}
4343

4444
.state-container {
4545
border-style: solid;
46-
border-color: $border-color;
46+
border-color: $state-cont-border;
4747
border-width: 0px;
4848
}
4949

src/app/styles/base/_typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
body {
2-
color: $text-color;
2+
color: $contrasting-color;
33
font: normal 16px $text-font-stack;
44
}

0 commit comments

Comments
 (0)