Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[www] Update/consolidate palette, monogram and logo, favicons #3639

Merged
merged 34 commits into from
Jan 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
83baad5
#744c9e/116,76,158 -> #9966cc/102, 51, 153 (rebeccapurple)
fk Jan 21, 2018
3d4afcf
[WIP] Consolidate palette
fk Jan 21, 2018
8e843f3
Ditch B100 in favor of B200
fk Jan 21, 2018
b2cb4d0
Neutral diagram stripe color at least for now
fk Jan 21, 2018
14bf582
Fussing around with saturation
fk Jan 21, 2018
d106873
Adjustting hues (still WIP ;-))
fk Jan 21, 2018
9381c1a
Roll back all palette colors but brand/„B700“
fk Jan 21, 2018
6832415
Throw in chroma.js, output presets.B*, chroma.js palette at /colors
fk Jan 22, 2018
431d51a
Grab chroma-js from npm now that 1.3.6 is published
fk Jan 22, 2018
940c94a
Add redrawn monogram and logo (monogram + wordmark)
fk Jan 22, 2018
7c971ed
Update favicons
fk Jan 22, 2018
f45dd5c
Add hex2rgba, remove presets.shadowColor (matches presets.B500)
fk Jan 22, 2018
65bf43c
Inherit text color
fk Jan 22, 2018
3d8d0a3
Move colors from presets to colors
fk Jan 22, 2018
7e06ee4
Remove orange logo
fk Jan 22, 2018
96b08a5
Bump favicon.ico
fk Jan 22, 2018
22cd471
Optimize favicons, update Windows tile icons
fk Jan 22, 2018
25963a5
Update manifest theme/background_color
fk Jan 22, 2018
5dc8dfe
Remove some leftover anchors; invert logo for iOS, Windows tile
fk Jan 22, 2018
719b877
Add Windows tile browserconfig.xml
fk Jan 22, 2018
7c35e32
Oops
fk Jan 22, 2018
d6598f2
Remove chroma (…), back to descriptive color names
fk Jan 23, 2018
77ffe42
Make presets.calm pass WCAG AA
fk Jan 23, 2018
4bfd3dc
Fix icon colors
fk Jan 23, 2018
5b350d6
Remove presets.brandDark
fk Jan 23, 2018
4ba6e53
Add colors.gray
fk Jan 23, 2018
2507933
:D
fk Jan 23, 2018
29f3c50
Make presets.calm pass WCAG AA again
fk Jan 23, 2018
bd72939
rebeccapurple links in blog articles
fk Jan 23, 2018
210d8b4
Fix logo offset
fk Jan 23, 2018
f254dd3
Ditch colors.brand, add colors.ui, don’t litter colors in presets 🙄
fk Jan 23, 2018
e706743
Merge branch 'master' into topics/www-palette
fk Jan 23, 2018
a31518a
Merge branch 'master' into topics/www-palette
fk Jan 24, 2018
0cbd3c5
Update logo wordmark, optimize SVGs
fk Jan 24, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions www/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ module.exports = {
name: `GatsbyJS`,
short_name: `GatsbyJS`,
start_url: `/`,
background_color: `#f7f0eb`,
theme_color: `#5c2965`,
background_color: `#ffffff`,
theme_color: `#663399`,
display: `minimal-ui`,
icons: [
{
Expand Down
1 change: 1 addition & 0 deletions www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"gatsby-transformer-yaml": "^1.5.7",
"graphql-request": "^1.4.0",
"gray-percentage": "^2.0.0",
"hex2rgba": "^0.0.1",
"jsonp": "^0.2.1",
"limax": "^1.5.0",
"lodash": "^4.16.6",
Expand Down
6 changes: 3 additions & 3 deletions www/src/assets/blog.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions www/src/assets/community.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions www/src/assets/docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions www/src/assets/graphql.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions www/src/assets/react.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions www/src/assets/tutorial.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion www/src/assets/webpack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions www/src/components/blog-post-preview-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from "gatsby-link"
import Img from "gatsby-image"

import typography, { rhythm, scale } from "../utils/typography"
import presets from "../utils/presets"
import presets, { colors } from "../utils/presets"

class BlogPostPreviewItem extends React.Component {
render() {
Expand Down Expand Up @@ -40,7 +40,7 @@ class BlogPostPreviewItem extends React.Component {
css={{
display: `inline-block`,
fontFamily: typography.options.headerFontFamily.join(`,`),
color: presets.calm,
color: colors.gray.calm,
...scale(-2 / 5),
[presets.Mobile]: {
...scale(-1 / 5),
Expand All @@ -61,7 +61,7 @@ class BlogPostPreviewItem extends React.Component {
"&&": {
fontWeight: `normal`,
":hover": {
color: presets.brand,
color: colors.gatsby,
background: `transparent`,
},
},
Expand Down
8 changes: 4 additions & 4 deletions www/src/components/card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import presets from "../utils/presets"
import presets, { colors } from "../utils/presets"
import { rhythm, scale, options } from "../utils/typography"
import { vP, vPHd, vPVHd, vPVVHd } from "../components/gutters"

Expand All @@ -11,18 +11,18 @@ const Card = ({ children }) => (
[presets.Tablet]: {
flex: `0 0 50%`,
maxWidth: `50%`,
boxShadow: `0 1px 0 0 ${presets.veryLightPurple}`,
boxShadow: `0 1px 0 0 ${colors.ui.light}`,
"&:nth-child(5),&:nth-child(6)": {
boxShadow: `none`,
},
"&:nth-child(2n)": {
borderLeft: `1px solid ${presets.veryLightPurple}`,
borderLeft: `1px solid ${colors.ui.light}`,
},
},
[presets.Hd]: {
flex: `0 0 33.33333333%`,
maxWidth: `33.33333333%`,
borderLeft: `1px solid ${presets.veryLightPurple}`,
borderLeft: `1px solid ${colors.ui.light}`,
"&:nth-child(4)": {
boxShadow: `none`,
},
Expand Down
11 changes: 6 additions & 5 deletions www/src/components/cta-button.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Link from "gatsby-link"
import { rhythm, scale, options } from "../utils/typography"
import presets from "../utils/presets"
import presets, { colors } from "../utils/presets"
import hex2rgba from "hex2rgba"

import { css } from "glamor"

Expand All @@ -27,9 +28,9 @@ const CtaButton = ({ to, overrideCSS, children }) => (
},
// Increase specificity
"&&": {
border: `1px solid ${presets.brand}`,
border: `1px solid ${colors.gatsby}`,
boxShadow: `none`,
color: presets.brand,
color: colors.gatsby,
fontWeight: `normal`,
backgroundColor: `transparent`,
backgroundSize: `30px 30px`,
Expand All @@ -38,14 +39,14 @@ const CtaButton = ({ to, overrideCSS, children }) => (
}`,
":hover, &:focus": {
backgroundSize: `30px 30px`,
backgroundColor: presets.brand,
backgroundColor: colors.gatsby,
backgroundImage: `linear-gradient(45deg, rgba(0,0,0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0,0,0, 0.1) 50%, rgba(0,0,0, 0.1) 75%, transparent 75%, transparent)`,
color: `#fff`,
animation: `${stripeAnimation} 2.8s linear infinite`,
},
":focus": {
outline: 0,
boxShadow: `0 0 0 0.2rem rgba(${presets.shadowColor}, .25)`,
boxShadow: `0 0 0 0.2rem ${hex2rgba(colors.lilac, 0.25)}`,
},
":after": {
content: ``,
Expand Down
25 changes: 12 additions & 13 deletions www/src/components/diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import React from "react"
import { css } from "glamor"

import { rhythm, scale, options } from "../utils/typography"
import colors from "../utils/colors"
import presets from "../utils/presets"
import logo from "../gatsby-negative.svg"
import presets, { colors } from "../utils/presets"
import logo from "../monogram.svg"
import { GraphQLIcon, ReactJSIcon } from "../assets/logos"
import { vP, vPHd, vPVHd, vPVVHd } from "../components/gutters"
import FuturaParagraph from "../components/futura-paragraph"
import TechWithIcon from "../components/tech-with-icon"

const stripeColor = `249, 245, 255, 1`
const stripeColor = `255, 255, 255, 0.9`
const stripeSize = 15
const stripeAnimation = css.keyframes({
"0%": {
Expand All @@ -19,7 +18,7 @@ const stripeAnimation = css.keyframes({
"100%": { backgroundPosition: `0 0` },
})
const stripeBg = {
backgroundColor: presets.sidebar,
backgroundColor: colors.ui.whisper,
backgroundSize: `${rhythm(stripeSize)} ${rhythm(stripeSize)}`,
backgroundImage: `linear-gradient(45deg, rgba(${stripeColor}) 25%, transparent 25%, transparent 50%, rgba(${stripeColor}) 50%, rgba(${stripeColor}) 75%, transparent 75%, transparent)`,
animation: `${stripeAnimation} 14s linear infinite`,
Expand Down Expand Up @@ -48,7 +47,7 @@ const SegmentTitle = ({ children }) => (
className="Segment-title"
css={{
display: `inline`,
background: presets.accent,
background: colors.accent,
color: `#fff`,
borderRadius: presets.radius,
margin: `0 auto`,
Expand Down Expand Up @@ -77,7 +76,7 @@ const VerticalLine = () => (
<path
d="M10 40 L10 -10"
css={{
stroke: presets.brandLight,
stroke: colors.lilac,
strokeWidth: `3`,
strokeLinecap: `round`,
strokeDasharray: `0.5 10`,
Expand All @@ -88,14 +87,14 @@ const VerticalLine = () => (
)

const box = {
border: `1px solid ${colors.b[0]}`,
border: `1px solid ${colors.ui.light}`,
borderRadius: presets.radiusLg,
padding: `${rhythm(1)} ${rhythm(1)} 0`,
background: presets.sidebar,
background: colors.ui.whisper,
}

const borderAndBoxShadow = {
border: `1px solid ${presets.veryLightPurple}`,
border: `1px solid ${colors.ui.light}`,
background: `#fff`,
width: `100%`,
boxShadow: `0 5px 15px rgba(0,0,0,0.035)`,
Expand Down Expand Up @@ -148,7 +147,7 @@ const SourceItem = ({ children }) => (
const ItemTitle = ({ children }) => (
<h3
css={{
color: presets.brand,
color: colors.gatsby,
margin: 0,
fontStyle: `normal`,
...scale(0),
Expand All @@ -163,7 +162,7 @@ const ItemDescription = ({ children }) => (
css={{
lineHeight: 1.2,
display: `block`,
color: presets.brandLight,
color: colors.lilac,
[presets.Hd]: {
fontSize: scale(-1 / 5).fontSize,
},
Expand Down Expand Up @@ -213,7 +212,7 @@ const Gatsby = ({ children }) => (
</small>
<span
css={{
color: presets.brand,
color: colors.gatsby,
}}
>
<TechWithIcon icon={GraphQLIcon}>GraphQL</TechWithIcon>
Expand Down
Loading