mp-design-system 0.8.0 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/build/{Inter-Bold.39130deb.woff → Inter-Bold.419e8c71.woff} +0 -0
- package/dist/build/{Inter-Bold.a2748096.woff2 → Inter-Bold.af5441a3.woff2} +0 -0
- package/dist/build/{Inter-Regular.27892b21.woff → Inter-Regular.ca6858d7.woff} +0 -0
- package/dist/build/{Inter-Regular.03253301.woff2 → Inter-Regular.ed77b881.woff2} +0 -0
- package/dist/build/{Inter-SemiBold.ba1d0d7d.woff → Inter-SemiBold.cc1168df.woff} +0 -0
- package/dist/build/{Inter-SemiBold.97a52f0e.woff2 → Inter-SemiBold.dd034768.woff2} +0 -0
- package/dist/build/concentric.05eaed9c.svg +1 -0
- package/dist/build/dots-pattern.3c9c2a26.svg +1 -0
- package/dist/build/js/app.js +2 -28
- package/dist/build/js/app.js.map +1 -1
- package/dist/build/scss/library.css +2 -2
- package/dist/build/scss/library.css.map +1 -1
- package/dist/build/scss/main.css +2 -2
- package/dist/build/scss/main.css.map +1 -1
- package/package.json +12 -13
- package/src/_includes/components/alert/alert.scss +1 -1
- package/src/_includes/components/button/button.config.js +6 -0
- package/src/_includes/components/button/button.scss +6 -2
- package/src/_includes/components/campaign/campaign.config.js +6 -0
- package/src/_includes/components/campaign/campaign.njk +5 -3
- package/src/_includes/components/input/input.njk +2 -2
- package/src/_includes/components/input/input.scss +13 -0
- package/src/_includes/components/meta-box/meta-box.scss +24 -0
- package/src/_includes/components/quote/quote.scss +6 -4
- package/src/_includes/components/tabs/tabs.scss +2 -2
- package/src/_includes/includes/system-footer.njk +13 -5
- package/src/_includes/library-navigation/brand-nav.njk +8 -16
- package/src/_includes/library-navigation/components-nav.njk +1 -1
- package/src/_includes/library-navigation/content-nav.njk +2 -1
- package/src/_redirects +8 -0
- package/src/assets/js/imports/gallery.js +6 -0
- package/src/assets/scss/components/lightbox.scss +1 -0
- package/src/assets/scss/library.scss +7 -4
- package/src/assets/scss/objects/grid.scss +3 -1
- package/src/assets/scss/objects/prose.scss +3 -3
- package/src/brand/{visual/colors.njk → colors.njk} +52 -34
- package/src/brand/downloads.njk +15 -5
- package/src/brand/{visual/images.md → images.md} +0 -0
- package/src/brand/index.njk +6 -15
- package/src/brand/{visual/logo.md → logo.md} +13 -6
- package/src/brand/{visual/typography.md → typography.md} +6 -1
- package/src/checklist.md +70 -0
- package/src/components/colour.njk +7 -7
- package/src/components/grid/index.njk +56 -14
- package/src/components/iconography.njk +15 -13
- package/src/components/installation.md +3 -3
- package/src/components/publishing-the-system.md +2 -0
- package/src/content/big-ideas.md +1 -1
- package/src/content/boilerplate.md +27 -0
- package/src/content/index.njk +1 -1
- package/src/content/our-voice/1-big-picture.md +1 -1
- package/src/content/our-voice/2-whats-most-important.md +1 -1
- package/src/content/our-voice/3-write-like-we-speak.md +1 -1
- package/src/content/our-voice/4-write-to-be-skimmed.md +1 -1
- package/src/content/our-voice/5-active-sentences.md +1 -1
- package/src/content/our-voice/6-add-energy.md +1 -1
- package/src/content/our-voice/7-small-surprises.md +1 -1
- package/src/content/our-voice/seven-steps.md +1 -1
- package/src/content/our-voice/which-techniques-when.md +1 -1
- package/src/content/real-life-examples/01-who-we-are-boilerplate.md +10 -6
- package/src/index.njk +12 -6
- package/src/patterns/form.njk +8 -0
- package/src/static/svg/logo-simple.svg +1 -0
- package/src/static/zip/MP_logo.zip +0 -0
- package/dist/build/concentric.797defa2.svg +0 -1
- package/dist/build/dots-pattern.7a77e237.svg +0 -1
- package/src/brand/identity/boilerplate.md +0 -23
- package/src/brand/identity/index.md +0 -14
- package/src/brand/identity/legal-information.md +0 -9
- package/src/brand/identity/strategy.md +0 -12
package/package.json
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "mp-design-system",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.6",
|
4
4
|
"description": "",
|
5
|
-
"main": "app.js",
|
6
5
|
"scripts": {
|
7
6
|
"dev": "npm-run-all --parallel bundle:*",
|
8
7
|
"bundle:eleventy": "eleventy --serve --quiet",
|
9
|
-
"bundle:parcel": "parcel src/assets/js/*.js src/assets/scss/*.scss -
|
8
|
+
"bundle:parcel": "parcel src/assets/js/*.js src/assets/scss/*.scss --dist-dir ./dist/build",
|
10
9
|
"build": "run-s prod:*",
|
11
10
|
"prod:eleventy": "eleventy",
|
12
|
-
"prod:parcel": "rimraf dist/build && parcel build src/assets/js/*.js src/assets/scss/*.scss -
|
11
|
+
"prod:parcel": "rimraf dist/build && parcel build src/assets/js/*.js src/assets/scss/*.scss --dist-dir ./dist/build",
|
13
12
|
"prepublishOnly": "rimraf dist && npm run prod:parcel"
|
14
13
|
},
|
15
14
|
"files": [
|
@@ -21,21 +20,21 @@
|
|
21
20
|
"license": "ISC",
|
22
21
|
"devDependencies": {
|
23
22
|
"@11ty/eleventy": "^0.12.1",
|
24
|
-
"@11ty/eleventy-plugin-syntaxhighlight": "^3.
|
23
|
+
"@11ty/eleventy-plugin-syntaxhighlight": "^3.2.2",
|
24
|
+
"@parcel/transformer-sass": "^2.4.0",
|
25
25
|
"dotenv": "^8.6.0",
|
26
|
-
"html-prettify": "^1.0.
|
27
|
-
"markdown-it": "^12.
|
28
|
-
"markdown-it-prism": "^2.
|
26
|
+
"html-prettify": "^1.0.6",
|
27
|
+
"markdown-it": "^12.3.2",
|
28
|
+
"markdown-it-prism": "^2.2.3",
|
29
29
|
"npm-run-all": "^4.1.5",
|
30
|
-
"parcel
|
30
|
+
"parcel": "^2.4.0",
|
31
31
|
"require-glob": "^3.2.0",
|
32
32
|
"rimraf": "^3.0.2",
|
33
|
-
"sass": "^1.
|
34
|
-
"slugify": "^1.6.
|
33
|
+
"sass": "^1.49.10",
|
34
|
+
"slugify": "^1.6.5"
|
35
35
|
},
|
36
36
|
"alias": {
|
37
37
|
"mp": "./node_modules/mp-design-system/src/assets/scss",
|
38
38
|
"comp": "./src/_includes/components"
|
39
|
-
}
|
40
|
-
"dependencies": {}
|
39
|
+
}
|
41
40
|
}
|
@@ -11,8 +11,7 @@
|
|
11
11
|
font-family: $font-stack;
|
12
12
|
}
|
13
13
|
|
14
|
-
|
15
|
-
.c-button {
|
14
|
+
%c-button {
|
16
15
|
// Reset
|
17
16
|
border-radius: 0;
|
18
17
|
background: transparent;
|
@@ -45,6 +44,11 @@
|
|
45
44
|
text-decoration: none;
|
46
45
|
color: color("white");
|
47
46
|
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.mp.c-button,
|
50
|
+
.c-button {
|
51
|
+
@extend %c-button;
|
48
52
|
|
49
53
|
&--wide {
|
50
54
|
width: 100%;
|
@@ -11,9 +11,11 @@
|
|
11
11
|
|
12
12
|
<aside class="{{ classNames }}">
|
13
13
|
<a href="" class="c-campaign__link">{{ params.title }}</a>
|
14
|
-
|
15
|
-
<
|
16
|
-
|
14
|
+
{% if params.image %}
|
15
|
+
<figure class="c-campaign__image">
|
16
|
+
<img src="{{ params.image.src }}" alt="{{ params.image.alt }}" />
|
17
|
+
</figure>
|
18
|
+
{% endif %}
|
17
19
|
<div class="c-campaign__content u-flow">
|
18
20
|
<h2 class="c-h c-h--step-2">{{ params.title }}</h2>
|
19
21
|
<div class="mp o-prose u-flow--prose">
|
@@ -1,9 +1,9 @@
|
|
1
1
|
{% inputWrapper params.error %}
|
2
|
-
<label class="{{ 'u-hidden' if params.hideLabel else 'c-label' }}
|
2
|
+
<label class="{{ 'u-hidden' if params.hideLabel else 'c-label' }}" for="{{ params.id }}">{{ params.label }}</label>
|
3
3
|
{% if params.button %}
|
4
4
|
<div class="u-flex u-border">
|
5
5
|
{% endif %}
|
6
|
-
<input type="{{ params.type or 'text' }}" class="c-input {{ 'c-input--with-button' if params.button }}" name="{{ params.name or params.id }}" placeholder="{{ params.placeholder }}" id="{{ params.id }}" {{ 'required' if params.required }} />
|
6
|
+
<input type="{{ params.type or 'text' }}" class="c-input {{ 'c-input--with-button' if params.button }}{{ params.classes }}" name="{{ params.name or params.id }}" placeholder="{{ params.placeholder }}" id="{{ params.id }}" {{ 'required' if params.required }} />
|
7
7
|
{% if params.button %}
|
8
8
|
<button type="button" class="mp c-button--white">Search</button>
|
9
9
|
{% endif %}
|
@@ -41,6 +41,19 @@
|
|
41
41
|
min-height: 10rem;;
|
42
42
|
}
|
43
43
|
|
44
|
+
&--file {
|
45
|
+
border: 0;
|
46
|
+
padding: 0;
|
47
|
+
cursor: pointer;
|
48
|
+
|
49
|
+
@at-root ::-webkit-file-upload-button {
|
50
|
+
@extend %c-button;
|
51
|
+
@extend .c-button--blue;
|
52
|
+
display: inline-flex;
|
53
|
+
@include margin-right('xs');
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
44
57
|
&-error {
|
45
58
|
--error-state: #{color('red')};
|
46
59
|
position: relative;
|
@@ -7,4 +7,28 @@
|
|
7
7
|
.u-wrap--fields {
|
8
8
|
@include padding-right(0)
|
9
9
|
}
|
10
|
+
|
11
|
+
@media only screen and (min-width: 35em) and (max-width: 54.95em) {
|
12
|
+
column-width: 18em;
|
13
|
+
display: grid;
|
14
|
+
grid-template-columns: 1fr 1fr;
|
15
|
+
grid-gap: 0 var(--gutter);
|
16
|
+
grid-template-rows: auto max-content auto;
|
17
|
+
|
18
|
+
h2 {
|
19
|
+
grid-column: 1/3;
|
20
|
+
}
|
21
|
+
|
22
|
+
li {
|
23
|
+
break-inside: avoid;
|
24
|
+
}
|
25
|
+
|
26
|
+
.u-grey-step-1 {
|
27
|
+
grid-row: 2/4;
|
28
|
+
}
|
29
|
+
|
30
|
+
.c-button {
|
31
|
+
align-self: start;
|
32
|
+
}
|
33
|
+
}
|
10
34
|
}
|
@@ -1,21 +1,23 @@
|
|
1
1
|
.c-quote {
|
2
2
|
color: color('petrol', 'step-1');
|
3
3
|
padding-top: 74px;
|
4
|
-
@include padding
|
4
|
+
@include padding('2xl', 0, 'l', 'xl');
|
5
5
|
position: relative;
|
6
6
|
|
7
7
|
&:before {
|
8
8
|
content: '“';
|
9
|
-
|
9
|
+
color: color('petrol', 'step-3');
|
10
10
|
position: absolute;
|
11
11
|
height: 57px;
|
12
12
|
width: 45px;
|
13
13
|
left: 0;
|
14
|
-
top: 0;
|
14
|
+
top: 0.1em;
|
15
|
+
font-family: "Arial", sans-serif;
|
15
16
|
font-size: 10em;
|
16
17
|
font-weight: 900;
|
17
18
|
line-height: 0.9;
|
18
|
-
margin-left: -0.
|
19
|
+
margin-left: -0.025em;
|
20
|
+
z-index: -1;
|
19
21
|
}
|
20
22
|
|
21
23
|
p {
|
@@ -37,7 +37,7 @@
|
|
37
37
|
overflow-x: auto;
|
38
38
|
|
39
39
|
&-list {
|
40
|
-
border-bottom: 4px solid color('
|
40
|
+
border-bottom: 4px solid color('utility-blue', 'step-3');
|
41
41
|
display: flex;
|
42
42
|
width: 100%;
|
43
43
|
min-width: min-content;
|
@@ -58,7 +58,7 @@
|
|
58
58
|
@include padding(0, 0 , 's-m');
|
59
59
|
@include margin-right('m');
|
60
60
|
display: block;
|
61
|
-
border-bottom: 4px solid color('
|
61
|
+
border-bottom: 4px solid color('utility-blue', 'step-3');
|
62
62
|
margin-bottom: -4px;
|
63
63
|
position: relative;
|
64
64
|
z-index: 1;
|
@@ -1,17 +1,25 @@
|
|
1
|
+
{% from "components/component/component.njk" import libraryLink %}
|
2
|
+
|
1
3
|
<footer class="mp c-footer" role="contentinfo">
|
2
4
|
<nav class="c-footer__primary u-wrap" aria-label="Footer">
|
3
|
-
<div class="
|
5
|
+
<div class="o-grid o-grid--8/3-switch o-grid--push">
|
6
|
+
<ol class="u-flow--xs u-margin-top-2xs">
|
7
|
+
<li><h3>Quick links</h3></li>
|
8
|
+
<li><a href="/brand/downloads">Popular downloads</a></li>
|
9
|
+
<li><a href="/checklist">Franklin checklist</a></li>
|
10
|
+
</ol>
|
11
|
+
<div class="mp o-prose u-flow--prose u-step--1">
|
4
12
|
|
5
13
|
{% markdown %}
|
6
14
|
### Get in touch
|
7
15
|
|
8
|
-
This system is maintained by the Design System Team.
|
9
|
-
|
10
|
-
Any feedback, questions or ideas are welcome, so please share your thoughts.
|
16
|
+
This system is maintained by the Design System Team. Any feedback, questions or ideas are welcome, so please share your thoughts.
|
11
17
|
|
12
|
-
|
18
|
+
For all enquiries please contact Will Wallace at Malvern Panalytical, via email or Teams.
|
13
19
|
{% endmarkdown %}
|
14
20
|
|
21
|
+
</div>
|
22
|
+
</div>
|
15
23
|
</nav>
|
16
24
|
<div class="c-footer__secondary">
|
17
25
|
<div class="u-wrap">
|
@@ -2,27 +2,21 @@
|
|
2
2
|
{%- from "components/icon/macro.njk" import icon -%}
|
3
3
|
|
4
4
|
<div class="u-flow">
|
5
|
-
<h3>
|
5
|
+
<h3>Brand & visual identity</h3>
|
6
6
|
<ul>
|
7
7
|
{{ libraryList('Overview', '/brand/', page.url) }}
|
8
|
-
{{ libraryList('Downloads', '/brand/downloads', page.url) }}
|
8
|
+
{{ libraryList('Downloads', '/brand/downloads/', page.url) }}
|
9
|
+
{{ libraryList('Logo', '/brand/logo/', page.url) }}
|
10
|
+
{{ libraryList('Colors', '/brand/colors/', page.url) }}
|
11
|
+
{{ libraryList('Typography', '/brand/typography/', page.url) }}
|
12
|
+
{{ libraryList('Images', '/brand/images/', page.url) }}
|
9
13
|
</ul>
|
10
|
-
<h3>Brand identity</h3>
|
14
|
+
{# <h3>Brand identity</h3>
|
11
15
|
<ul>
|
12
16
|
{{ libraryList('Our brand identity', '/brand/identity/', page.url) }}
|
13
17
|
{{ libraryList('Brand strategy', '/brand/identity/strategy/', page.url) }}
|
14
|
-
|
15
|
-
{{ libraryList('Legal information', '/brand/identity/legal-information/', page.url) }}
|
16
|
-
</ul>
|
18
|
+
</ul> #}
|
17
19
|
</div>
|
18
|
-
|
19
|
-
<div class="u-flow">
|
20
|
-
<h3>Visual identity</h3>
|
21
|
-
<ul>
|
22
|
-
{{ libraryList('The logo', '/brand/visual/logo', page.url) }}
|
23
|
-
{{ libraryList('Brand colors', '/brand/visual/colors/', page.url) }}
|
24
|
-
{{ libraryList('Typography', '/brand/visual/typography/', page.url) }}
|
25
|
-
{{ libraryList('Images', '/brand/visual/images/', page.url) }}
|
26
20
|
{# <li>
|
27
21
|
<a>Typography</a>
|
28
22
|
<ul>
|
@@ -56,8 +50,6 @@
|
|
56
50
|
<li>
|
57
51
|
<li><a>Sector messaging</a><li>
|
58
52
|
<li><a>Brand identity overviews</a><li> #}
|
59
|
-
</ul>
|
60
|
-
</div>
|
61
53
|
|
62
54
|
{# <div class="u-flow">
|
63
55
|
<h3><a href="/brand">Applications</a></h3>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<div class="u-flow">
|
15
15
|
<h3>Foundations</h3>
|
16
16
|
<ul class="c-library-accordion">
|
17
|
-
{{ libraryList('
|
17
|
+
{{ libraryList('Color', '/components/colour/', page.url) }}
|
18
18
|
{{ libraryList('Space', '/components/space/', page.url) }}
|
19
19
|
<li>
|
20
20
|
{{ libraryLink('Grid', '/components/grid/', page.url) }}
|
@@ -2,10 +2,11 @@
|
|
2
2
|
{%- from "components/icon/macro.njk" import icon -%}
|
3
3
|
|
4
4
|
<div class="u-flow">
|
5
|
-
<h3>
|
5
|
+
<h3>Tone of voice</h3>
|
6
6
|
<ul>
|
7
7
|
{{ libraryList('Our words matter', '/content/', page.url) }}
|
8
8
|
{{ libraryList('Elevator pitch', '/content/elevator-pitch/', page.url) }}
|
9
|
+
{{ libraryList('Boilerplate', '/content/boilerplate/', page.url) }}
|
9
10
|
{{ libraryList('Big ideas for a better world', '/content/big-ideas/', page.url) }}
|
10
11
|
</ul>
|
11
12
|
</div>
|
package/src/_redirects
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
/brand/identity/ /brand 301
|
2
|
+
/brand/identity/boilerplate /content/boilerplate 301
|
3
|
+
/brand/identity/strategy /brand 301
|
4
|
+
/brand/visual /brand 301
|
5
|
+
/brand/visual/colors /brand/colors 301
|
6
|
+
/brand/visual/images /brand/images 301
|
7
|
+
/brand/visual/logo /brand/logo 301
|
8
|
+
/brand/visual/typography /brand/typography 301
|
@@ -33,6 +33,12 @@ function Gallery() {
|
|
33
33
|
if(slide.classList.contains('c-gallery__video')) {
|
34
34
|
slide.remove();
|
35
35
|
}
|
36
|
+
if(!slide.classList.contains('c-gallery__video')) {
|
37
|
+
var slideImg = slide.querySelector('img');
|
38
|
+
if(slideImg.srcset != '') {
|
39
|
+
slideImg.removeAttribute('srcset');
|
40
|
+
}
|
41
|
+
}
|
36
42
|
slide.classList.add('c-lightbox__slide');
|
37
43
|
slide.classList.remove('c-gallery__slide');
|
38
44
|
});
|
@@ -131,12 +131,12 @@
|
|
131
131
|
&__logo {
|
132
132
|
display: flex;
|
133
133
|
align-items: center;
|
134
|
-
|
134
|
+
justify-content: center;
|
135
135
|
max-width: 15%;
|
136
136
|
min-width: 100px;
|
137
137
|
|
138
|
-
@media only screen and (min-width:
|
139
|
-
|
138
|
+
@media only screen and (min-width:650px) {
|
139
|
+
justify-content: flex-start;
|
140
140
|
}
|
141
141
|
|
142
142
|
&-name {
|
@@ -244,12 +244,15 @@
|
|
244
244
|
}
|
245
245
|
|
246
246
|
iframe {
|
247
|
-
position: absolute;
|
248
247
|
height: 100%;
|
249
248
|
width: 100%;
|
250
249
|
left: 0;
|
251
250
|
top: 0;
|
252
251
|
transition: all .3s cubic-bezier(0.22, 0.61, 0.36, 1);
|
252
|
+
|
253
|
+
@media only screen and (min-width: 600px) {
|
254
|
+
position: absolute;
|
255
|
+
}
|
253
256
|
}
|
254
257
|
}
|
255
258
|
|
@@ -185,13 +185,15 @@ $grid-gutter-width: 36;
|
|
185
185
|
flex-wrap: nowrap;
|
186
186
|
overflow-x: scroll;
|
187
187
|
scroll-snap-type: x mandatory;
|
188
|
+
scroll-padding: var(--gutter);
|
188
189
|
-webkit-overflow-scrolling: touch;
|
189
190
|
|
190
191
|
& > * {
|
191
192
|
flex: 0 0 auto;
|
192
193
|
max-width: 23em;
|
193
194
|
width: calc(85vw - var(--gutter)*2.333); // !important
|
194
|
-
scroll-snap-align:
|
195
|
+
scroll-snap-align: start;
|
196
|
+
scroll-snap-stop: always;
|
195
197
|
}
|
196
198
|
|
197
199
|
& > * + * {
|
@@ -130,15 +130,15 @@
|
|
130
130
|
|
131
131
|
@media (min-width: 35em) {
|
132
132
|
&:not(.o-prose--left-blockquote) blockquote {
|
133
|
-
padding-left
|
133
|
+
@include padding-left('3xl');
|
134
134
|
|
135
135
|
&:before {
|
136
|
-
left:
|
136
|
+
left: var(--space-xl);
|
137
137
|
}
|
138
138
|
}
|
139
139
|
|
140
140
|
&.o-prose--left-blockquote blockquote {
|
141
|
-
padding-right
|
141
|
+
@include padding-right('3xl');
|
142
142
|
}
|
143
143
|
}
|
144
144
|
|
@@ -13,7 +13,9 @@ status: 'In production'
|
|
13
13
|
<div class="u-flow--l">
|
14
14
|
|
15
15
|
{{ markdown({
|
16
|
-
content: "Our color palette is built around our primary color, MP Petrol. We’ve included just enough tints and shades to provide useful options for designers.
|
16
|
+
content: "Our color palette is built around our primary color, MP Petrol. We’ve included just enough tints and shades to provide useful options for designers.
|
17
|
+
|
18
|
+
Step 0 is the 'default' shade for each color."
|
17
19
|
}) }}
|
18
20
|
|
19
21
|
<div class="u-wrap--content">
|
@@ -27,7 +29,7 @@ status: 'In production'
|
|
27
29
|
|
28
30
|
{% set colors = [
|
29
31
|
{
|
30
|
-
name: '
|
32
|
+
name: 'MP Petrol',
|
31
33
|
key: 'Petrol',
|
32
34
|
steps: [
|
33
35
|
{
|
@@ -58,7 +60,7 @@ status: 'In production'
|
|
58
60
|
]
|
59
61
|
},
|
60
62
|
{
|
61
|
-
name: '
|
63
|
+
name: 'MP Blue',
|
62
64
|
key: 'Blue',
|
63
65
|
steps: [
|
64
66
|
{
|
@@ -89,7 +91,7 @@ status: 'In production'
|
|
89
91
|
]
|
90
92
|
},
|
91
93
|
{
|
92
|
-
name: '
|
94
|
+
name: 'MP Green',
|
93
95
|
key: 'Green',
|
94
96
|
steps: [
|
95
97
|
{
|
@@ -120,77 +122,88 @@ status: 'In production'
|
|
120
122
|
]
|
121
123
|
},
|
122
124
|
{
|
123
|
-
name: '
|
125
|
+
name: 'MP Rubine',
|
124
126
|
key: 'Red',
|
125
127
|
steps: [
|
126
128
|
{
|
127
129
|
name: 0,
|
128
130
|
hex: 'ce0058',
|
129
|
-
cmyk: '14
|
131
|
+
cmyk: '14.100.50.2'
|
130
132
|
}
|
131
133
|
]
|
132
134
|
},
|
133
135
|
{
|
134
|
-
name: '
|
135
|
-
key: '
|
136
|
+
name: 'MP Charcoal',
|
137
|
+
key: 'Grey',
|
136
138
|
steps: [
|
137
139
|
|
138
140
|
{
|
139
141
|
name: "-1",
|
140
|
-
hex: '
|
141
|
-
cmyk: '
|
142
|
+
hex: '252525',
|
143
|
+
cmyk: '00.00.00.95'
|
142
144
|
},
|
143
145
|
{
|
144
146
|
name: 0,
|
145
|
-
hex: '
|
146
|
-
cmyk: '
|
147
|
+
hex: '333333',
|
148
|
+
cmyk: '00.00.00.91'
|
147
149
|
},
|
148
150
|
{
|
149
151
|
name: 1,
|
150
|
-
hex: '
|
151
|
-
cmyk: '
|
152
|
+
hex: '6c6c6c',
|
153
|
+
cmyk: '00.00.00.70'
|
152
154
|
},
|
153
155
|
{
|
154
156
|
name: 2,
|
155
|
-
hex: '
|
156
|
-
cmyk: '
|
157
|
+
hex: 'cecece',
|
158
|
+
cmyk: '00.00.00.22'
|
157
159
|
},
|
158
160
|
{
|
159
161
|
name: 3,
|
160
|
-
hex: '
|
161
|
-
cmyk: '00.
|
162
|
+
hex: 'efefef',
|
163
|
+
cmyk: '00.00.00.08'
|
162
164
|
}
|
163
165
|
]
|
164
166
|
},
|
165
167
|
{
|
166
|
-
name: '
|
167
|
-
key: '
|
168
|
+
name: 'MP Utility Gold',
|
169
|
+
key: 'Utility-Orange',
|
168
170
|
steps: [
|
169
171
|
|
170
172
|
{
|
171
173
|
name: "-1",
|
172
|
-
hex: '
|
173
|
-
cmyk: '
|
174
|
+
hex: 'AE7809',
|
175
|
+
cmyk: '29.51.100.10'
|
174
176
|
},
|
175
177
|
{
|
176
178
|
name: 0,
|
177
|
-
hex: '
|
178
|
-
cmyk: '
|
179
|
+
hex: 'F2A60D',
|
180
|
+
cmyk: '04.38.100.00'
|
179
181
|
},
|
180
182
|
{
|
181
183
|
name: 1,
|
182
|
-
hex: '
|
183
|
-
cmyk: '
|
184
|
+
hex: 'F6BF51',
|
185
|
+
cmyk: '03.26.79.00'
|
184
186
|
},
|
185
187
|
{
|
186
188
|
name: 2,
|
187
|
-
hex: '
|
188
|
-
cmyk: '
|
189
|
+
hex: 'FCEAC5',
|
190
|
+
cmyk: '01.07.25.00'
|
189
191
|
},
|
190
192
|
{
|
191
193
|
name: 3,
|
192
|
-
hex: '
|
193
|
-
cmyk: '00.
|
194
|
+
hex: 'FEF8EC',
|
195
|
+
cmyk: '00.02.06.00'
|
196
|
+
}
|
197
|
+
]
|
198
|
+
},
|
199
|
+
{
|
200
|
+
name: 'MP Utility Blue',
|
201
|
+
key: 'Utility-Blue',
|
202
|
+
steps: [
|
203
|
+
{
|
204
|
+
name: 0,
|
205
|
+
hex: '006daf',
|
206
|
+
cmyk: '86.48.3.5'
|
194
207
|
}
|
195
208
|
]
|
196
209
|
}
|
@@ -225,22 +238,27 @@ status: 'In production'
|
|
225
238
|
{{ markdown({
|
226
239
|
content: "# When to use color
|
227
240
|
|
228
|
-
The color palette works best when it's used in a balanced way; too much of a strong color can make a design feel crowded or busy. Instead, try to keep your designs to mainly white backgrounds, with
|
241
|
+
The color palette works best when it's used in a balanced way; too much of a strong color can make a design feel crowded or busy. Instead, try to keep your designs to mainly white backgrounds, with Charcoal text, and splashes of color to highlight important elements.
|
229
242
|
|
230
|
-
**Petrol** is our primary color - it represents Malvern Panalytical's spirit and personality.
|
243
|
+
**Petrol** is our primary color - it represents Malvern Panalytical's spirit and personality. Petrol, together with **Blue**, are the colors you will use most often in your designs.
|
231
244
|
|
232
245
|
**Green** is reserved for _calls to action_ - the single most important action that we want a reader or viewer to take next. On a web page for example, this would be the \"buy now\" button.
|
233
246
|
|
234
247
|
**Rubine** is reserved for important notices or warnings. It's such an eye-catching color that it must be used sparingly.
|
235
248
|
|
249
|
+
**Charcoal** is mainly used for text, but can also be used for other elements.
|
250
|
+
|
236
251
|
**Utility Gold** is intended for notices which are less urgent than Rubine. It can also be used sparingly as an accent color, to contrast against Petrol and Blue.
|
237
252
|
|
238
|
-
**
|
253
|
+
For interactive designs we also have **Utility Blue**, which is used for hyperlinks. Note: Utility Blue is not generally intended for printed materials.
|
239
254
|
|
240
255
|
## Tints and shades
|
241
256
|
Each color is provided in _steps_. Step 0 is the \"default\" for each color. If you need a colored background, consider using step 2 or 3, as step 0 or 1 will often be too overpowering.
|
242
257
|
|
243
|
-
Using Petrol step 3 as a background color (instead of grey) can be a nice way to introduce a bit of our personality into a design.
|
258
|
+
Using Petrol step 3 as a background color (instead of grey) can be a nice way to introduce a bit of our personality into a design.
|
259
|
+
|
260
|
+
## Why so many blues?
|
261
|
+
Petrol and Blue are part of our brand, but neither is suitable for hyperlinks in web or software environments: Blue doesn't provide enough contrast for legibility, and we didn't want to overuse Petrol. We added Utility Blue to fill this gap."
|
244
262
|
}) }}
|
245
263
|
|
246
264
|
{{ alert({
|