blob: 667254eae89601a41c2ffe12c75620ea637eede5 (
plain)
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
|
@function textbox-shadow($color) {
@return 0 0 0 1px $color, 0 0 0 $textbox-shadow-size rgba($color, 0.3);
}
@mixin textbox-focus($color) {
--newtab-textbox-focus-color: #{$color};
--newtab-textbox-focus-boxshadow: #{textbox-shadow($color)};
}
// scss variables related to the theme.
$border-primary: 1px solid var(--newtab-border-primary-color);
$border-secondary: 1px solid var(--newtab-border-secondary-color);
$inner-box-shadow: 0 0 0 1px var(--newtab-inner-box-shadow-color);
$input-border: 1px solid var(--newtab-textbox-border);
$input-border-active: 1px solid var(--newtab-textbox-focus-color);
$input-error-border: 1px solid $red-60;
$input-error-boxshadow: textbox-shadow($red-60);
$shadow-primary: 0 0 0 5px var(--newtab-card-active-outline-color);
$shadow-secondary: 0 1px 4px 0 $grey-90-20;
// Default theme
body {
// General styles
--newtab-background-color: #{$grey-10};
--newtab-border-primary-color: #{$grey-40};
--newtab-border-secondary-color: #{$grey-30};
--newtab-button-primary-color: #{$blue-60};
--newtab-button-secondary-color: inherit;
--newtab-element-active-color: #{$grey-30-60};
--newtab-element-hover-color: #{$grey-20};
--newtab-icon-primary-color: #{$grey-90-80};
--newtab-icon-secondary-color: #{$grey-90-60};
--newtab-icon-tertiary-color: #{$grey-30};
--newtab-inner-box-shadow-color: #{$black-10};
--newtab-link-primary-color: #{$blue-60};
--newtab-link-secondary-color: #{$teal-70};
--newtab-text-conditional-color: #{$grey-60};
--newtab-text-primary-color: #{$grey-90};
--newtab-text-secondary-color: #{$grey-50};
--newtab-textbox-background-color: #{$white};
--newtab-textbox-border: #{$grey-90-20};
@include textbox-focus($blue-60); // sass-lint:disable-line mixins-before-declarations
// Context menu
--newtab-contextmenu-background-color: #{$grey-10};
--newtab-contextmenu-button-color: #{$white};
// Modal + overlay
--newtab-modal-color: #{$white};
--newtab-overlay-color: #{$grey-20-80};
// Sections
--newtab-section-header-text-color: #{$grey-50};
--newtab-section-navigation-text-color: #{$grey-50};
--newtab-section-active-contextmenu-color: #{$grey-90};
// Search
--newtab-search-border-color: transparent;
--newtab-search-dropdown-color: #{$white};
--newtab-search-dropdown-header-color: #{$grey-10};
--newtab-search-header-background-color: #{$grey-10-95};
--newtab-search-icon-color: #{$grey-90-40};
--newtab-search-wordmark-color: #{$firefox-wordmark-default-color};
// Top Sites
--newtab-topsites-background-color: #{$white};
--newtab-topsites-icon-shadow: inset #{$inner-box-shadow};
--newtab-topsites-label-color: inherit;
// Cards
--newtab-card-active-outline-color: #{$grey-30};
--newtab-card-background-color: #{$white};
--newtab-card-hairline-color: #{$black-10};
--newtab-card-placeholder-color: #{$grey-30};
--newtab-card-shadow: 0 1px 4px 0 #{$grey-90-10};
// Snippets
--newtab-snippets-background-color: #{$white};
--newtab-snippets-hairline-color: transparent;
// Trailhead
--trailhead-header-text-color: #{$trailhead-purple};
--trailhead-cards-background-color: #{$grey-20};
--trailhead-card-button-background-color: #{$grey-90-10};
--trailhead-card-button-background-hover-color: #{$grey-90-20};
--trailhead-card-button-background-active-color: #{$grey-90-30};
&[lwt-newtab-brighttext] {
// General styles
--newtab-background-color: #{$grey-80};
--newtab-border-primary-color: #{$grey-10-80};
--newtab-border-secondary-color: #{$grey-10-10};
--newtab-button-primary-color: #{$blue-60};
--newtab-button-secondary-color: #{$grey-70};
--newtab-element-active-color: #{$grey-10-20};
--newtab-element-hover-color: #{$grey-10-10};
--newtab-icon-primary-color: #{$grey-10-80};
--newtab-icon-secondary-color: #{$grey-10-40};
--newtab-icon-tertiary-color: #{$grey-10-40};
--newtab-inner-box-shadow-color: #{$grey-10-20};
--newtab-link-primary-color: #{$blue-40};
--newtab-link-secondary-color: #{$pocket-teal};
--newtab-text-conditional-color: #{$grey-10};
--newtab-text-primary-color: #{$grey-10};
--newtab-text-secondary-color: #{$grey-10-80};
--newtab-textbox-background-color: #{$grey-70};
--newtab-textbox-border: #{$grey-10-20};
@include textbox-focus($blue-40); // sass-lint:disable-line mixins-before-declarations
// Context menu
--newtab-contextmenu-background-color: #{$grey-60};
--newtab-contextmenu-button-color: #{$grey-80};
// Modal + overlay
--newtab-modal-color: #{$grey-80};
--newtab-overlay-color: #{$grey-90-80};
// Sections
--newtab-section-header-text-color: #{$grey-10-80};
--newtab-section-navigation-text-color: #{$grey-10-80};
--newtab-section-active-contextmenu-color: #{$white};
// Search
--newtab-search-border-color: #{$grey-10-20};
--newtab-search-dropdown-color: #{$grey-70};
--newtab-search-dropdown-header-color: #{$grey-60};
--newtab-search-header-background-color: #{$grey-80-95};
--newtab-search-icon-color: #{$grey-10-60};
--newtab-search-wordmark-color: #{$firefox-wordmark-darktheme-color};
// Top Sites
--newtab-topsites-background-color: #{$grey-70};
--newtab-topsites-icon-shadow: none;
--newtab-topsites-label-color: #{$grey-10-80};
// Cards
--newtab-card-active-outline-color: #{$grey-60};
--newtab-card-background-color: #{$grey-70};
--newtab-card-hairline-color: #{$grey-10-10};
--newtab-card-placeholder-color: #{$grey-60};
--newtab-card-shadow: 0 1px 8px 0 #{$grey-90-20};
// Snippets
--newtab-snippets-background-color: #{$grey-70};
--newtab-snippets-hairline-color: #{$white-10};
// Trailhead
--trailhead-header-text-color: #{$white-60};
--trailhead-cards-background-color: #{$grey-90-10};
--trailhead-card-button-background-color: #{$grey-90-30};
--trailhead-card-button-background-hover-color: #{$grey-90-50};
--trailhead-card-button-background-active-color: #{$grey-90-70};
}
}
|