Skip to content

Commit

Permalink
Adding Theme: Dawson (#7217)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Crist <[email protected]>
  • Loading branch information
pbking and Jason Crist authored Jul 31, 2023
1 parent 869c30f commit 6d2cfda
Show file tree
Hide file tree
Showing 53 changed files with 2,039 additions and 0 deletions.
Binary file added dawson/assets/fonts/commissioner_italic_300.otf
Binary file not shown.
Binary file added dawson/assets/fonts/commissioner_italic_700.otf
Binary file not shown.
Binary file added dawson/assets/fonts/commissioner_normal_300.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/commissioner_normal_700.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added dawson/assets/fonts/helvetica_italic_300.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/helvetica_italic_400.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/helvetica_italic_700.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/helvetica_normal_300.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/helvetica_normal_400.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/helvetica_normal_700.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/ibm-plex-mono_italic_300.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/ibm-plex-mono_italic_700.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/ibm-plex-mono_normal_300.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/ibm-plex-mono_normal_700.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/inter_italic_300.otf
Binary file not shown.
Binary file added dawson/assets/fonts/inter_italic_500.otf
Binary file not shown.
Binary file added dawson/assets/fonts/inter_normal_300.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/inter_normal_500.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/labrada_italic_300.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/labrada_italic_400.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/labrada_italic_500.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/labrada_normal_300.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/labrada_normal_400.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/labrada_normal_500.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/space-mono_italic_400.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/space-mono_italic_700.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/space-mono_normal_400.ttf
Binary file not shown.
Binary file added dawson/assets/fonts/space-mono_normal_700.ttf
Binary file not shown.
60 changes: 60 additions & 0 deletions dawson/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
/**
* Dawson functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Dawson
* @since Dawson 1.0
*/


if ( ! function_exists( 'dawson_support' ) ) :

/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Dawson 1.0
*
* @return void
*/
function dawson_support() {

// Enqueue editor styles.
add_editor_style( 'style.css' );

// Make theme available for translation.
load_theme_textdomain( 'dawson' );
}

endif;

add_action( 'after_setup_theme', 'dawson_support' );

if ( ! function_exists( 'dawson_styles' ) ) :

/**
* Enqueue styles.
*
* @since Dawson 1.0
*
* @return void
*/
function dawson_styles() {

// Register theme stylesheet.
wp_register_style(
'dawson-style',
get_stylesheet_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);

// Enqueue theme stylesheet.
wp_enqueue_style( 'dawson-style' );

}

endif;

add_action( 'wp_enqueue_scripts', 'dawson_styles' );
1 change: 1 addition & 0 deletions dawson/parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"dawson/footer" } /-->
15 changes: 15 additions & 0 deletions dawson/parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- wp:group {"style":{"spacing":{"blockGap":"0.2rem"}}} -->
<div class="wp-block-group"><!-- wp:site-title /-->

<!-- wp:site-tagline /--></div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"40px"} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:navigation {"overlayMenu":"never","layout":{"type":"flex","orientation":"vertical"}} /-->

<!-- wp:spacer {"height":"40px"} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
11 changes: 11 additions & 0 deletions dawson/parts/post-meta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- wp:group {"layout":{"type":"default"}} -->
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"flex"}} -->
<div class="wp-block-group"><!-- wp:post-author {"showAvatar":false,"fontSize":"small"} /-->

<!-- wp:post-date {"isLink":true,"fontSize":"small"} /-->

<!-- wp:post-terms {"term":"category","fontSize":"small"} /-->

<!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
15 changes: 15 additions & 0 deletions dawson/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

/**
* Title: Footer
* Slug: dawson/footer
* Inserter: no
*/
?>
<!-- wp:group {"align":"full","layout":{"type":"flex","justifyContent":"left","flexWrap":"wrap"}} -->
<div class="wp-block-group alignfull">
<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.7rem"}}} -->
<p style="font-size:0.7rem"><?php echo esc_html__( 'Designed with', 'dawson' ); ?> <a rel="nofollow" href="https://wordpress.org">WordPress</a> </p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
10 changes: 10 additions & 0 deletions dawson/patterns/hidden-no-results-content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
/**
* Title: Hidden No Results Content
* Slug: dawson/hidden-no-results-content
* Inserter: no
*/
?>
<!-- wp:paragraph -->
<p><?php echo esc_html_x( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'dawson' ); ?></p>
<!-- /wp:paragraph -->
32 changes: 32 additions & 0 deletions dawson/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
=== Dawson ===
Contributors: Automattic
Requires at least: 5.8
Tested up to: 5.9
Requires PHP: 5.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

== Description ==

Dawson is a WordPress portfolio theme specifically tailored for photography. With a two column layout, the theme is ideal for those looking to build a portfolio website. Additionally, Dawson offers five distinct style variations, providing a wide range of aesthetic options to choose from.

== Changelog ==

= 1.0.0 =
* Initial release

== Copyright ==

Dawson WordPress Theme, (C) 2023 Automattic
Dawson is distributed under the terms of the GNU GPL.
Dawson is based on Dana (), (C) Automattic, [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Binary file added dawson/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions dawson/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
Theme Name: Dawson
Theme URI:
Author: Automattic
Author URI: https://automattic.com
Description: Dawson is a WordPress portfolio theme specifically tailored for photography. With a two column layout, the theme is ideal for those looking to build a portfolio website. Additionally, Dawson offers five distinct style variations, providing a wide range of aesthetic options to choose from.
Requires at least: 5.8
Tested up to: 5.9
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template:
Text Domain: dawson
Tags: photography, portfolio, grid-layout, one-column, two-columns, three-columns, wide-blocks, block-patterns, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, style-variations, theme-options, threaded-comments, translation-ready, portfolio, photography
*/

/*
* Control the hover stylings of outline block style.
* Unnecessary once block styles are configurable via theme.json
* https://github.com/WordPress/gutenberg/issues/42794
*/
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
background-color: var(--wp--preset--color--secondary);
color: var(--wp--preset--color--background);
border-color: var(--wp--preset--color--secondary);
}


/*
* Link styles
* https://github.com/WordPress/gutenberg/issues/42319
*/
a {
text-decoration-thickness: .0625em !important;
text-underline-offset: .15em;
}
137 changes: 137 additions & 0 deletions dawson/styles/coconut.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"settings": {
"color": {
"palette": [
{
"color": "#ffffff",
"name": "Primary",
"slug": "primary"
},
{
"color": "#ffffff",
"name": "Secondary",
"slug": "secondary"
},
{
"color": "#ffffff",
"name": "Foreground",
"slug": "foreground"
},
{
"color": "#90562c",
"name": "Background",
"slug": "background"
},
{
"color": "#7e4923",
"name": "Tertiary",
"slug": "tertiary"
}
]
}
},
"styles": {
"blocks": {
"core/button": {
"border": {
"bottom": {
"style": "none",
"width": "0px"
},
"left": {
"style": "none",
"width": "0px"
},
"radius": "2px",
"right": {
"style": "none",
"width": "0px"
},
"top": {
"style": "none",
"width": "0px"
}
},
"color": {
"background": "var:preset|color|primary",
"text": "var:preset|color|background"
},
"spacing": {
"padding": {
"bottom": "var:preset|spacing|30",
"left": "var:preset|spacing|40",
"right": "var:preset|spacing|40",
"top": "var:preset|spacing|30"
}
},
"typography": {
"fontSize": "0.8rem",
"fontStyle": "normal",
"fontWeight": "400",
"letterSpacing": "0.06rem",
"textTransform": "uppercase"
}
},
"core/navigation": {
"typography": {
"fontSize": "var:preset|font-size|medium",
"fontStyle": "normal",
"fontWeight": "300",
"lineHeight": 0.3,
"textTransform": "lowercase"
}
},
"core/paragraph": {
"typography": {
"textTransform": "lowercase"
}
},
"core/post-content": {
"typography": {
"textTransform": "lowercase"
}
},
"core/post-navigation-link": {
"typography": {
"fontSize": "var:preset|font-size|medium",
"textTransform": "lowercase"
}
},
"core/query-pagination": {
"typography": {
"textTransform": "lowercase"
}
},
"core/site-tagline": {
"typography": {
"fontSize": "var:preset|font-size|medium",
"fontStyle": "normal",
"fontWeight": "300"
}
},
"core/site-title": {
"typography": {
"fontSize": "var:preset|font-size|medium",
"fontStyle": "normal",
"fontWeight": "500",
"letterSpacing": "0.2rem",
"textTransform": "uppercase"
}
}
},
"elements": {
"heading": {
"typography": {
"textTransform": "lowercase"
}
}
},
"typography": {
"fontFamily": "var:preset|font-family|labrada",
"fontSize": "var:preset|font-size|small"
}
},
"title": "Coconut 2",
"version": 2,
"$schema": "https://schemas.wp.org/trunk/theme.json"
}
Loading

0 comments on commit 6d2cfda

Please sign in to comment.