-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Gutenboarding: Set design default fonts #40680
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
const availableDesigns: Readonly< AvailableDesigns > = { | ||
featured: [ | ||
{ | ||
title: 'Vesta', | ||
slug: 'vesta', | ||
template: 'mayland2', | ||
theme: 'mayland', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/mayland/mayland2/', | ||
fonts: { | ||
headings: 'Cabin', | ||
base: 'Raleway', | ||
}, | ||
categories: [ 'featured', 'portfolio' ], | ||
}, | ||
{ | ||
title: 'WIP Event Template', | ||
slug: 'rivington', | ||
template: 'rivington', | ||
theme: 'rivington', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/rivington/rivington/', | ||
fonts: { | ||
headings: 'Arvo', | ||
base: 'Montserrat', | ||
}, | ||
categories: [ 'event' ], | ||
}, | ||
{ | ||
title: 'Reynolds', | ||
slug: 'reynolds', | ||
template: 'rockfield2', | ||
theme: 'rockfield', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/rockfield/rockfield2/', | ||
fonts: { | ||
headings: 'Playfair Display', | ||
base: 'Fira Sans', | ||
}, | ||
categories: [ 'featured', 'portfolio' ], | ||
}, | ||
{ | ||
title: 'Easley', | ||
slug: 'easley', | ||
template: 'maywood', | ||
theme: 'maywood', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/maywood/maywood/', | ||
fonts: { | ||
headings: 'Space Mono', | ||
base: 'Roboto', | ||
}, | ||
categories: [ 'featured', 'portfolio' ], | ||
}, | ||
{ | ||
title: 'Camden', | ||
slug: 'Camden', | ||
template: 'maywood2', | ||
theme: 'maywood', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/maywood/maywood2/', | ||
fonts: { | ||
headings: 'Space Mono', | ||
base: 'Roboto', | ||
}, | ||
categories: [ 'featured', 'portfolio' ], | ||
}, | ||
{ | ||
title: 'Bowen', | ||
slug: 'bowen', | ||
template: 'bowen', | ||
theme: 'coutoire', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/coutoire/bowen/', | ||
fonts: { | ||
headings: 'Playfair Display', | ||
base: 'Fira Sans', | ||
}, | ||
categories: [ 'featured', 'blog' ], | ||
}, | ||
{ | ||
title: 'Edison', | ||
slug: 'edison', | ||
template: 'stratford2', | ||
theme: 'stratford', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/stratford/stratford2/', | ||
fonts: { | ||
headings: 'Chivo', | ||
base: 'Open Sans', | ||
}, | ||
categories: [ 'featured', 'blog' ], | ||
}, | ||
{ | ||
title: 'Cassel', | ||
slug: 'cassel', | ||
template: 'mayland', | ||
theme: 'mayland', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/mayland/mayland/', | ||
fonts: { | ||
headings: 'Playfair Display', | ||
base: 'Fira Sans', | ||
}, | ||
categories: [ 'featured', 'blog' ], | ||
}, | ||
{ | ||
title: 'Overton', | ||
slug: 'overton', | ||
template: 'alves', | ||
theme: 'alves', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/alves/alves/', | ||
fonts: { | ||
headings: 'Cabin', | ||
base: 'Raleway', | ||
}, | ||
categories: [ 'featured', 'business' ], | ||
}, | ||
{ | ||
title: 'Doyle', | ||
slug: 'doyle', | ||
template: 'alves2', | ||
theme: 'alves', | ||
src: 'https://public-api.wordpress.com/rest/v1/template/demo/alves/alves2/', | ||
fonts: { | ||
headings: 'Playfair Display', | ||
base: 'Fira Sans', | ||
}, | ||
categories: [ 'featured', 'business' ], | ||
}, | ||
], | ||
}; | ||
|
||
export default availableDesigns; | ||
interface AvailableDesigns { | ||
featured: Array< import('./stores/onboard/types').Design >; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,5 +49,8 @@ export const fontPairings = [ | |
}, | ||
] as const; | ||
|
||
export type FontPair = ValuesType< typeof fontPairings >; | ||
export type Font = FontPair[ keyof FontPair ]; | ||
export type Font = ValuesType< ValuesType< typeof fontPairings > >; | ||
export interface FontPair { | ||
headings: Font; | ||
base: Font; | ||
} | ||
Comment on lines
+52
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let known fonts appear in either position. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe these should be moved here? Then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️ ❤️ ❤️ ❤️