Skip to content

Commit cd31e65

Browse files
committed
initial wip theme
1 parent 6fa2d35 commit cd31e65

5 files changed

Lines changed: 170 additions & 9 deletions

File tree

‎src/skins/vector/css/_common.scss‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ html {
2323
}
2424

2525
body {
26-
/* Open Sans lacks combining diacritics, so these will fall through
27-
to the next font. Helevetica's diacritics however do not combine
28-
nicely with Open Sans (on OSX, at least) and result in a huge
29-
horizontal mess. Arial empirically gets it right, hence prioritising
30-
Arial here. */
31-
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
26+
font-family: $font-family;
3227
font-size: 15px;
3328
background-color: $primary-bg-color;
3429
color: $primary-fg-color;
@@ -73,7 +68,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
7368

7469
/* Required by Firefox */
7570
textarea {
76-
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
71+
font-family: $font-family;
7772
}
7873

7974
/* Prevent ugly dotted highlight around selected elements in Firefox */
@@ -211,7 +206,7 @@ textarea {
211206
border: solid 1px $accent-color;
212207
font-weight: 600;
213208
font-size: 14px;
214-
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
209+
font-family: $font-family;
215210
margin-left: 0px;
216211
margin-right: 8px;
217212
padding-left: 1.5em;
@@ -304,7 +299,8 @@ textarea {
304299
}
305300

306301
.changelog_text {
307-
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
302+
// why on earth is this needed? and with the wrong namespacing? >:(
303+
font-family: $font-family;
308304
}
309305

310306
.mx_Beta {

‎src/skins/vector/css/themes/_base.scss‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Open Sans lacks combining diacritics, so these will fall through
2+
to the next font. Helevetica's diacritics however do not combine
3+
nicely with Open Sans (on OSX, at least) and result in a huge
4+
horizontal mess. Arial empirically gets it right, hence prioritising
5+
Arial here. */
6+
$font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
17

28
// typical text (dark-on-white in light skin)
39
$primary-fg-color: #454545;
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
@font-face {
2+
font-family:PostGrotesk-Medium;
3+
src:url(../fonts/PostGrotesk-Medium.eot);
4+
src:url(../fonts/PostGrotesk-Medium.eot?#iefix) format("embedded-opentype"),url(../fonts/PostGrotesk-Medium.woff) format("woff"),url(../fonts/PostGrotesk-Medium.svg#PostGrotesk-Medium) format("svg");
5+
font-weight: 400;
6+
font-style: normal;
7+
}
8+
9+
@font-face {
10+
font-family:PostGrotesk-Book;
11+
src:url(../fonts/PostGrotesk-Book.eot);
12+
src:url(../fonts/PostGrotesk-Book.eot?#iefix) format("embedded-opentype"),url(../fonts/PostGrotesk-Book.woff) format("woff"),url(../fonts/PostGrotesk-Book.svg#PostGrotesk-Book) format("svg");
13+
font-weight: 400;
14+
font-style: normal;
15+
}
16+
17+
// We deliberately prioritise Arial over Helvetica here due to diacritic problems (see _base.scss)
18+
// N.B. that the status.im website uses:
19+
// font-family:PostGrotesk-Book,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
20+
// ...but can't be bothered to work out how the apple fonts & segoe interact, so keepingn it simple for now.
21+
22+
$font-family: PostGrotesk-Book, Arial, Helvetica, Sans-Serif;
23+
24+
// typical text (dark-on-white in light skin)
25+
$primary-fg-color: #70808D;
26+
$primary-bg-color: #EEF2F5;
27+
28+
// ***** Status theme specifics ******
29+
$header-color: #49555F;
30+
$header-font-family: PostGrotesk-Medium, Arial, Helvetica, Sans-Serif;
31+
32+
h1,h2,h3,h4,h5 {
33+
color: $header-color;
34+
font-family: $header-font-family;
35+
font-weight: 400 ! important;
36+
}
37+
38+
// used for dialog box text
39+
$light-fg-color: #747474;
40+
41+
// used for focusing form controls
42+
$focus-bg-color: #dddddd;
43+
44+
// button UI (white-on-green in light skin)
45+
$accent-fg-color: #ffffff;
46+
$accent-color: #76CFA6;
47+
48+
$selection-fg-color: $primary-bg-color;
49+
50+
$focus-brightness: 125%;
51+
52+
// red warning colour
53+
$warning-color: #ff0064;
54+
$mention-user-pill-bg-color: #ff0064;
55+
$other-user-pill-bg-color: rgba(0, 0, 0, 0.1);
56+
57+
$group-alert-color: #774f7e;
58+
59+
$preview-bar-bg-color: #f7f7f7;
60+
61+
// left-panel style muted accent color
62+
$secondary-accent-color: #eaf5f0;
63+
64+
// used by RoomDirectory permissions
65+
$plinth-bg-color: $secondary-accent-color;
66+
67+
// used by RoomDropTarget
68+
$droptarget-bg-color: rgba(255,255,255,0.5);
69+
70+
// used by AddressSelector
71+
$selected-color: #eaf5f0;
72+
73+
// selected for hoverover & selected event tiles
74+
$event-selected-color: #f7f7f7;
75+
76+
// used for the hairline dividers in RoomView
77+
$primary-hairline-color: #e5e5e5;
78+
79+
// used for the border of input text fields
80+
$input-border-color: #f0f0f0;
81+
82+
// apart from login forms, which have stronger border
83+
$strong-input-border-color: #c7c7c7;
84+
85+
// used for UserSettings EditableText
86+
$input-underline-color: rgba(151, 151, 151, 0.5);
87+
$input-fg-color: rgba(74, 74, 74, 0.9);
88+
89+
// context menus
90+
$menu-border-color: rgba(187, 187, 187, 0.5);
91+
$menu-bg-color: #f6f6f6;
92+
93+
$avatar-initial-color: #ffffff;
94+
95+
$h3-color: #3d3b39;
96+
97+
$dialog-background-bg-color: #e9e9e9;
98+
$lightbox-background-bg-color: #000;
99+
100+
$greyed-fg-color: #888;
101+
102+
$neutral-badge-color: #dbdbdb;
103+
104+
$preview-widget-bar-color: #ddd;
105+
$preview-widget-fg-color: $greyed-fg-color;
106+
107+
$blockquote-bar-color: #ddd;
108+
$blockquote-fg-color: #777;
109+
110+
$settings-grey-fg-color: #a2a2a2;
111+
112+
$voip-decline-color: #f48080;
113+
$voip-accept-color: #80f480;
114+
115+
$rte-bg-color: #e9e9e9;
116+
$rte-code-bg-color: rgba(0, 0, 0, 0.04);
117+
$rte-room-pill-color: #aaa;
118+
119+
// ********************
120+
121+
$roomtile-name-color: rgba(69, 69, 69, 0.8);
122+
$roomtile-selected-bg-color: rgba(255, 255, 255, 0.8);
123+
$roomtile-focused-bg-color: rgba(255, 255, 255, 0.9);
124+
125+
$roomsublist-label-fg-color: $h3-color;
126+
$roomsublist-label-bg-color: #d3efe1;
127+
128+
// ********************
129+
130+
// event tile lifecycle
131+
$event-encrypting-color: #abddbc;
132+
$event-sending-color: #ddd;
133+
$event-notsent-color: #f44;
134+
135+
// event redaction
136+
$event-redacted-img: url('../../img/redacted.jpg');
137+
138+
// event timestamp
139+
$event-timestamp-color: #acacac;
140+
141+
$edit-button-url: "../../img/icon_context_message.svg";
142+
$copy-button-url: "../../img/icon_copy_message.svg";
143+
144+
// e2e
145+
$e2e-verified-color: #76cfa5; // N.B. *NOT* the same as $accent-color
146+
$e2e-unverified-color: #e8bf37;
147+
$e2e-warning-color: #ba6363;
148+
149+
/*** ImageView ***/
150+
$lightbox-bg-color: #454545;
151+
$lightbox-fg-color: #ffffff;
152+
$lightbox-border-color: #ffffff;
153+
154+
// unused?
155+
$progressbar-color: #000;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@import "_base.scss";
2+
@import "_status.scss";
3+
@import "../_components.scss";

‎webpack.config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
// CSS themes
2121
"theme-light": "./src/skins/vector/css/themes/light.scss",
2222
"theme-dark": "./src/skins/vector/css/themes/dark.scss",
23+
"theme-status": "./src/skins/vector/css/themes/status.scss",
2324
},
2425
module: {
2526
preLoaders: [

0 commit comments

Comments
 (0)