Skip to content

Commit bb6c7ab

Browse files
authored
Merge pull request numpy#209 from numpy/feature/48-colors
[WIP] Updates colors to only colors in the NumPy color palette
2 parents 9fae79d + 5065ac2 commit bb6c7ab

File tree

6 files changed

+71
-44
lines changed

6 files changed

+71
-44
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,14 @@ So you can use some random number instead of `TRAVIS_PULL_REQUEST` variable.
5454

5555
You also can run the docker image in daemon mode and then interact with the container and run the hugo server.
5656

57+
## User Experience (UX)
5758

59+
### NumPy Color Palette
5860

61+
#FFC553 Mustard
62+
#4DABCF Maximum Blue
63+
#4D77CF Han Blue
64+
#FFFFFF White
65+
#EEEEEE Isabelline
66+
#6C7A89 Aurometalsaurus
67+
#013243 Warm Black

static/css/section2.css

+16-14
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
align-items: baseline;
2323
justify-content: space-around;
2424
font-size: 14px;
25-
background-color: #f2f1ef;
25+
background-color: #EEEEEE;
2626
text-decoration: none !important;
2727
border-radius: 3px;
2828
padding: 8px 15px;
@@ -31,7 +31,7 @@
3131

3232
.section2-header-link-title {
3333
padding: 2px 5px 0 0;
34-
color: #333;
34+
color: #013243;
3535
}
3636

3737
section2-header-link i {
@@ -44,23 +44,24 @@ section2-header-link i {
4444
vertical-align: middle;
4545
-webkit-transform: perspective(1px) translateZ(0);
4646
transform: perspective(1px) translateZ(0);
47+
/* Black, with 0% opacity */
4748
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
4849
-webkit-transition-duration: 0.1s;
4950
transition-duration: 0.1s;
5051
}
5152
.hvr-icon-forward .hvr-icon {
52-
-webkit-transform: translateZ(0);
53-
transform: translateZ(0);
54-
-webkit-transition-duration: 0.1s;
55-
transition-duration: 0.1s;
56-
-webkit-transition-property: transform;
57-
transition-property: transform;
58-
-webkit-transition-timing-function: ease-out;
59-
transition-timing-function: ease-out;
53+
-webkit-transform: translateZ(0);
54+
transform: translateZ(0);
55+
-webkit-transition-duration: 0.1s;
56+
transition-duration: 0.1s;
57+
-webkit-transition-property: transform;
58+
transition-property: transform;
59+
-webkit-transition-timing-function: ease-out;
60+
transition-timing-function: ease-out;
6061
}
6162
.hvr-icon-forward:hover .hvr-icon, .hvr-icon-forward:focus .hvr-icon, .hvr-icon-forward:active .hvr-icon {
62-
-webkit-transform: translateX(4px);
63-
transform: translateX(4px);
63+
-webkit-transform: translateX(4px);
64+
transform: translateX(4px);
6465
}
6566

6667
.section2-box-container {
@@ -84,7 +85,7 @@ transform: translateX(4px);
8485
}
8586

8687
.section2-box-text > a {
87-
color: #0E73D8;
88+
color: #4D77CF;
8889
}
8990

9091
.section2-box-text {
@@ -93,7 +94,7 @@ transform: translateX(4px);
9394
}
9495

9596
.section2-box-content:hover > .section2-box-text, .section2-box-content:focus > .section2-box-text, .section2-box-content:active > .section2-box-text {
96-
color: dimgray;
97+
color: #6C7A89;
9798
}
9899

99100
@media only screen and (max-width: 1280px) {
@@ -137,6 +138,7 @@ transform: translateX(4px);
137138
vertical-align: middle;
138139
-webkit-transform: perspective(1px) translateZ(0);
139140
transform: perspective(1px) translateZ(0);
141+
/* Black, with 10% opacity */
140142
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
141143
position: relative;
142144
overflow: hidden;

static/css/section3.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030

3131
.section3 a {
32-
color: #333 !important;
32+
color: #013243 !important;
3333
}
3434

3535
.section3-box-title {
@@ -61,6 +61,7 @@
6161
vertical-align: middle;
6262
-webkit-transform: perspective(1px) translateZ(0);
6363
transform: perspective(1px) translateZ(0);
64+
/* Black, with 10% opacity */
6465
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
6566
position: relative;
6667
overflow: hidden;

static/css/shell.css

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.hero-right {
22
display: flex;
33
width: 100vw;
4+
/* Black, with 10% opacity */
45
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
56
}
67

@@ -10,7 +11,7 @@
1011
justify-content: center;
1112
width: 100vw;
1213
min-height: 455px;
13-
background-color: #f2f1ef;
14+
background-color: #EEEEEE;
1415
}
1516

1617
.numpy-shell-container {
@@ -74,10 +75,11 @@
7475
letter-spacing: 1.5px;
7576
font-weight: 500;
7677
color: black;
77-
background-color: #f2f1ef;
78+
background-color: #EEEEEE;
7879
border: none;
7980
border-radius: 25px;
8081
outline: none;
82+
/* Black, with 10% opacity */
8183
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
8284
cursor: pointer;
8385
}
@@ -115,9 +117,9 @@
115117
min-width: 500px;
116118
margin: 15px;
117119
padding: 0 17px;
118-
color: #fff;
120+
color: #FFFFFF;
119121
overflow: auto;
120-
background-color: #2e3131;
122+
background-color: #013243;
121123
font-family: 'Source Code Pro', monospace;
122124
}
123125

@@ -130,19 +132,20 @@
130132
}
131133

132134
.CodeMirror pre {
133-
color: #fff!important;
135+
color: #FFFFFF !important;
134136
}
135137

136138
.CodeMirror-cursor {
137-
color: #fff!important;
138-
border-left: 1px solid white!important;
139+
color: #FFFFFF !important;
140+
border-left: 1px solid white !important;
139141
}
140142

141143
#demo-code.fake-shell {
142144
display: flex;
143145
justify-content: center;
144146
align-items: center;
145-
background: rgba(46,49,49, 0.5)
147+
/* #013243, with 50% opacity */
148+
background: rgba(1,50,67, 0.5)
146149
}
147150

148151
#demo-button-run {
@@ -153,10 +156,11 @@
153156
letter-spacing: 1.5px;
154157
font-weight: 500;
155158
color: black;
156-
background-color: #f2f1ef;
159+
background-color: #EEEEEE;
157160
border: none;
158161
border-radius: 25px;
159162
outline: none;
163+
/* Black, with 10% opacity */
160164
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
161165
cursor: pointer;
162166
position: absolute;

static/css/styles.css

+25-15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/* NumPy Color Palette */
2+
/* #FFC553 Mustard */
3+
/* #4DABCF Maximum Blue */
4+
/* #4D77CF Han Blue */
5+
/* #FFFFFF White */
6+
/* #EEEEEE Isabelline */
7+
/* #6C7A89 Aurometalsaurus */
8+
/* #013243 Warm Black */
9+
110
body {
211
font-family: 'Lato', sans-serif;
312
}
@@ -68,17 +77,18 @@ em {
6877
text-transform: uppercase;
6978
letter-spacing: 1.5px;
7079
font-weight: 500;
71-
color:#fff;
80+
color:#FFFFFF;
7281
background-color: #013243;
7382
border: none;
7483
border-radius: 25px;
7584
outline: none;
85+
/* Black, with 10% opacity */
7686
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
7787
cursor: pointer;
7888
}
7989

8090
#navbar-item {
81-
color: #2e3131;
91+
color: #013243;
8292
text-decoration: none;
8393
}
8494

@@ -221,10 +231,10 @@ p {
221231

222232
.sign-up-image {
223233
z-index: 2;
224-
color: #2e3131;
234+
color: #013243;
225235
padding: 9px 10px 10px 10px;
226-
border-right: 1px solid #ececec;
227-
background-color: #ececec;
236+
border-right: 1px solid #EEEEEE;
237+
background-color: #EEEEEE;
228238
border-radius: 5px 0 0 5px;
229239
}
230240

@@ -236,7 +246,7 @@ p {
236246
height: 35px;
237247
padding-left: 5px;
238248
font-size: 14px;
239-
color: #2e3131;
249+
color: #013243;
240250
}
241251

242252
.submission-instructions {
@@ -254,7 +264,7 @@ p {
254264
.thank-you {
255265
display: none;
256266
height: 75px;
257-
color: #ececec;
267+
color: #EEEEEE;
258268
align-items: center;
259269
}
260270

@@ -267,19 +277,19 @@ p {
267277
}
268278

269279
figcaption {
270-
text-align: center;
280+
text-align: center;
271281
}
272282

273283
.csfigcaption {
274-
text-align: center;
284+
text-align: center;
275285
}
276286

277287
.fig-center {
278-
text-align: center;
279-
display: block;
280-
margin-left: auto;
281-
margin-right: auto;
282-
width: 80%;
288+
text-align: center;
289+
display: block;
290+
margin-left: auto;
291+
margin-right: auto;
292+
width: 80%;
283293
}
284294

285295
blockquote {
@@ -288,7 +298,7 @@ blockquote {
288298

289299
blockquote p {
290300
padding: 15px;
291-
background: #eee;
301+
background: #EEEEEE;
292302
border-radius: 5px;
293303
}
294304

static/css/tabs.css

+6-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
text-transform: uppercase;
3737
letter-spacing: 1.5px;
3838
font-weight: 500;
39-
color: #757575;
39+
color: #6C7A89;
4040
}
4141

4242
#tabs-content > li {
@@ -62,6 +62,7 @@
6262
}
6363

6464
.grid-container > div {
65+
/* White, with 80% opacity */
6566
background-color: rgba(255, 255, 255, 0.8);
6667
text-align: middle;
6768
}
@@ -84,8 +85,8 @@
8485
}
8586

8687
.image-grid > div {
87-
background-color: #eee;
88-
border: 2px solid #fff;
88+
background-color: #EEEEEE;
89+
border: 2px solid #FFFFFF;
8990
border-radius: 10px;
9091
padding: 10px;
9192
}
@@ -101,7 +102,7 @@ td > a {
101102
}
102103

103104
tr.highlight-th {
104-
border-top: 1px solid #ececec;
105+
border-top: 1px solid #EEEEEE;
105106
font-size: 0.8rem;
106107
}
107108

@@ -133,7 +134,7 @@ td.full-center-text {
133134
td.lastrow-center-text {
134135
text-align: center;
135136
line-height: 35%;
136-
border-bottom: 1px solid #ececec;
137+
border-bottom: 1px solid #EEEEEE;
137138
}
138139

139140
/* Array Libraries */

0 commit comments

Comments
 (0)