Skip to content

Commit 1d567d3

Browse files
authored
Merge pull request #164 from Wikia/FAN-2423
FAN-2423 | Add fandom 2.0 colors to design system
2 parents 221866f + 9bdc11c commit 1d567d3

File tree

11 files changed

+108
-59
lines changed

11 files changed

+108
-59
lines changed

app/templates/base-styles/colors.hbs

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
11
<h1>Colors</h1>
22
<p>
3-
The Fandom palette stems from three vertical colors — Games, Movies and TV — pulled forward from the Wikia brand.
3+
Lead and Secondary colors. A FANDOM rainbow, if you will.
44
</p>
55
<p>
66
To use one of below colors, instead of color's hex representation apply suitable SCSS variable.
77
It's recommended to use available color variables to keep consistency.
88
</p>
99

1010
<section>
11-
<h2 id="fandom-corporate-colors">Fandom Corporate Colors</h2>
11+
<h2 id="fandom-2-colors">Fandom 2.0</h2>
1212
<div class="colors-wrapper">
13-
{{color-box hex='#94d11f' name='Games' variable='$wds-color-games'}}
14-
{{color-box hex='#09d3bf' name='Movies' variable='$wds-color-movies'}}
15-
{{color-box hex='#00b7e0' name='TV' variable='$wds-color-tv'}}
16-
{{color-box hex='#39424d' name='Dark Blue Gray' variable='$wds-color-dark-blue-gray'}}
17-
{{color-box hex='#656e78' name='Slate Gray' variable='$wds-color-slate-gray'}}
18-
{{color-box hex='#c5ced9' name='Blue Gray' variable='$wds-color-blue-gray'}}
19-
{{color-box hex='#f6f6f6' name='Off-White 96%' variable='$wds-color-off-white'}}
20-
{{color-box hex='#00b7e0' name='Link' variable='$wds-color-link'}}
13+
{{color-box hex='#00d6d6' name='Aqua' variable='$wds-fandom-color-aqua'}}
14+
{{color-box hex='#1a1a1a' name='Black' variable='$wds-fandom-color-black'}}
15+
{{color-box hex='#ff6a64' name='Coral' variable='$wds-fandom-color-coral'}}
16+
{{color-box hex='#5f7a7b' name='Dark Gray' variable='$wds-fandom-color-dark-gray'}}
17+
{{color-box hex='#f2f5f5' name='Light Gray' variable='$wds-fandom-color-light-gray'}}
18+
{{color-box hex='#00acac' name='Link' variable='$wds-fandom-color-link'}}
19+
{{color-box hex='#008989' name='Link Hover' variable='$wds-fandom-color-link-hover'}}
20+
{{color-box hex='#dee7e5' name='Mid Light Gray' variable='$wds-fandom-color-mid-light-gray'}}
21+
{{color-box hex='#bed1cf' name='Middle Gray' variable='$wds-fandom-color-middle-gray'}}
22+
{{color-box hex='#5df2ae' name='Mint' variable='$wds-fandom-color-mint'}}
23+
{{color-box hex='#002a32' name='Navy' variable='$wds-fandom-color-navy'}}
24+
{{color-box hex='#006661' name='Pine' variable='$wds-fandom-color-pine'}}
25+
{{color-box hex='#833c58' name='Plum' variable='$wds-fandom-color-plum'}}
26+
{{color-box hex='#460084' name='Purple' variable='$wds-fandom-color-purple'}}
27+
{{color-box hex='#ee1a41' name='Red' variable='$wds-fandom-color-red'}}
28+
{{color-box hex='#eeecdc' name='Warm Gray' variable='$wds-fandom-color-warm-gray'}}
29+
{{color-box hex='#dfec24' name='Yellow' variable='$wds-fandom-color-yellow'}}
2130
</div>
2231
</section>
2332

@@ -35,19 +44,6 @@
3544
</div>
3645
</section>
3746

38-
<section>
39-
<h2 id="verticals-colors">Verticals Colors</h2>
40-
<div class="colors-wrapper">
41-
{{color-box hex='#ff5400' name='Comics' variable='$wds-color-comics'}}
42-
{{color-box hex='#94d11f' name='Games' variable='$wds-color-games'}}
43-
{{color-box hex='#ff7f26' name='Books' variable='$wds-color-books'}}
44-
{{color-box hex='#09d3bf' name='Movies' variable='$wds-color-movies'}}
45-
{{color-box hex='#ffd000' name='Lifestyle' variable='$wds-color-lifestyle'}}
46-
{{color-box hex='#c819ad' name='Music' variable='$wds-color-music'}}
47-
{{color-box hex='#00b7e0' name='TV' variable='$wds-color-tv'}}
48-
</div>
49-
</section>
50-
5147
<section>
5248
<h2 id="light-theme">Light Theme</h2>
5349
<div class="colors-wrapper">
@@ -79,10 +75,10 @@
7975
<section>
8076
<h2 id="alerts">Alerts</h2>
8177
<div class="colors-wrapper">
82-
{{color-box hex='#ed1c24' name='Alert/Delete' variable='$wds-color-alert'}}
83-
{{color-box hex='#f08a24' name='Warning/Reported' variable='$wds-color-warning'}}
84-
{{color-box hex='#5ba200' name='Success/Approve' variable='$wds-color-success'}}
85-
{{color-box hex='#1a5eb8' name='Message' variable='$wds-color-message'}}
78+
{{color-box hex='#d71035' name='Alert/Delete' variable='$wds-color-alert'}}
79+
{{color-box hex='#dfec24' name='Warning/Reported' variable='$wds-color-warning'}}
80+
{{color-box hex='#4cda9a' name='Success/Approve' variable='$wds-color-success'}}
81+
{{color-box hex='#460084' name='Message' variable='$wds-color-message'}}
8682
</div>
8783
</section>
8884

app/templates/base-styles/typography.hbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
<h2 id="font-family">Font Family</h2>
1616
<p>For highest browser compatibility we decided to follow direction described in <a href="https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/">Using System UI Fonts In Web Design: A Quick Practical Guide</a>. It provides a list of font-families for browsers to fallback. We listed font-families supported by major operating systems and finally we fall back to <code>sans-serif</code>. This way we can avoid web-font delivery process which would hit page performance.</p>
1717
<code><span class="format-code">$wds-font-family</span>: 'Helvetica Neue', Helvetica, Arial, sans-serif;</code>
18+
19+
</section>
20+
21+
<section>
22+
<h2 id='news-stories-font'>News and stories font family</h2>
23+
<p> News and Stories uses Rubik as it's primary font.</p>
24+
<code><span class="format-code">$wds-fandom-font-family</span>: Rubik, Helvetica, Arial, sans-serif;</code>
1825
</section>
1926

2027
<section>

dist/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scss/wds-variables/_colors.scss

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ $wds-color-music: #c819ad;
1919
$wds-color-tv: #00b7e0;
2020

2121
// ## Alerts
22-
$wds-color-alert: #ed1c24;
23-
$wds-color-message: #1a5eb8;
24-
$wds-color-success: #5ba200;
25-
$wds-color-warning: #f08a24;
22+
$wds-color-alert: #d71035;
23+
$wds-color-message: #460084;
24+
$wds-color-success: #4cda9a;
25+
$wds-color-warning: #dfec24;
2626

2727
// ## Fandom Corporate Colors
2828
$wds-color-link: #00b7e0;
@@ -58,6 +58,27 @@ $wds-color-night-sky: #262626;
5858
$wds-color-off-white: #f6f6f6;
5959
$wds-color-white: #fff;
6060

61+
/////////////////////////
62+
// # Fandom 2.0 Colors
63+
// ## Color Names
64+
$wds-fandom-color-aqua: #00d6d6;
65+
$wds-fandom-color-black: #1a1a1a;
66+
$wds-fandom-color-coral: #ff6a64;
67+
$wds-fandom-color-dark-gray: #5f7a7b;
68+
$wds-fandom-color-light-gray: #f2f5f5;
69+
$wds-fandom-color-link: #00acac;
70+
$wds-fandom-color-link-hover: #008989;
71+
$wds-fandom-color-mid-light-gray: #dee7e5;
72+
$wds-fandom-color-middle-gray: #bed1cf;
73+
$wds-fandom-color-mint: #5df2ae;
74+
$wds-fandom-color-navy: #002a32;
75+
$wds-fandom-color-pine: #006661;
76+
$wds-fandom-color-plum: #833c58;
77+
$wds-fandom-color-purple: #460084;
78+
$wds-fandom-color-red: #ee1a41;
79+
$wds-fandom-color-warm-gray: #eeecdc;
80+
$wds-fandom-color-yellow: #dfec24;
81+
6182
// ## Light Theme
6283
$wds-color-light-c1: $wds-color-white;
6384
$wds-color-light-c2: $wds-color-off-white;

dist/scss/wds-variables/_typography.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Font family - see https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/
22
$wds-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
33

4+
$wds-fandom-font-family: Rubik, Helvetica, Arial, sans-serif;
5+
46
// Line height
57
$wds-line-height: 1.5em;
68

docs/assets/design-system.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/design-system.js

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/wds.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99

1010

11-
<meta name="design-system/config/environment" content="%7B%22modulePrefix%22%3A%22design-system%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22/%22%2C%22locationType%22%3A%22hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22design-system%22%2C%22version%22%3A%228.3.0+416400a0%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
11+
<meta name="design-system/config/environment" content="%7B%22modulePrefix%22%3A%22design-system%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22/%22%2C%22locationType%22%3A%22hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22design-system%22%2C%22version%22%3A%228.3.0+59dd20fc%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
1212

1313
<link rel="stylesheet" href="/assets/vendor.css">
1414
<link rel="stylesheet" href="/assets/design-system.css">

style-guide/styles/wds-variables/_colors.scss

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ $wds-color-music: #c819ad;
1919
$wds-color-tv: #00b7e0;
2020

2121
// ## Alerts
22-
$wds-color-alert: #ed1c24;
23-
$wds-color-message: #1a5eb8;
24-
$wds-color-success: #5ba200;
25-
$wds-color-warning: #f08a24;
22+
$wds-color-alert: #d71035;
23+
$wds-color-message: #460084;
24+
$wds-color-success: #4cda9a;
25+
$wds-color-warning: #dfec24;
2626

2727
// ## Fandom Corporate Colors
2828
$wds-color-link: #00b7e0;
@@ -58,6 +58,27 @@ $wds-color-night-sky: #262626;
5858
$wds-color-off-white: #f6f6f6;
5959
$wds-color-white: #fff;
6060

61+
/////////////////////////
62+
// # Fandom 2.0 Colors
63+
// ## Color Names
64+
$wds-fandom-color-aqua: #00d6d6;
65+
$wds-fandom-color-black: #1a1a1a;
66+
$wds-fandom-color-coral: #ff6a64;
67+
$wds-fandom-color-dark-gray: #5f7a7b;
68+
$wds-fandom-color-light-gray: #f2f5f5;
69+
$wds-fandom-color-link: #00acac;
70+
$wds-fandom-color-link-hover: #008989;
71+
$wds-fandom-color-mid-light-gray: #dee7e5;
72+
$wds-fandom-color-middle-gray: #bed1cf;
73+
$wds-fandom-color-mint: #5df2ae;
74+
$wds-fandom-color-navy: #002a32;
75+
$wds-fandom-color-pine: #006661;
76+
$wds-fandom-color-plum: #833c58;
77+
$wds-fandom-color-purple: #460084;
78+
$wds-fandom-color-red: #ee1a41;
79+
$wds-fandom-color-warm-gray: #eeecdc;
80+
$wds-fandom-color-yellow: #dfec24;
81+
6182
// ## Light Theme
6283
$wds-color-light-c1: $wds-color-white;
6384
$wds-color-light-c2: $wds-color-off-white;

0 commit comments

Comments
 (0)