themes-wordpress/seedlet
Kjell Reigstad e77e1d78d0
Merge pull request #2774 from Automattic/update/remove-extra-group-wrapper-from-seedlet-blocks
Seedlet Blocks: Remove extra group wrapper around template parts.
2020-11-05 10:09:21 -05:00
..
assets Merge pull request #2774 from Automattic/update/remove-extra-group-wrapper-from-seedlet-blocks 2020-11-05 10:09:21 -05:00
classes Rebase trunk. 2020-10-26 11:22:24 -04:00
inc Display dark mode notice when default palette is active. 2020-11-04 13:40:45 +00:00
languages remove rej file 2020-11-04 14:01:11 +00:00
template-parts Merge pull request #2494 from Automattic/fix/issue-2413 2020-11-04 12:04:06 +01:00
404.php Seedlet: fix landmark roles (#2395) 2020-08-27 10:45:39 -04:00
archive.php Refactor customizer class and add ability to toggle excerpts. 2020-10-22 14:22:30 -04:00
comments.php Replace with esc translation. (#2430) 2020-09-03 10:13:02 -04:00
footer.php Seedlet: fix landmark roles (#2395) 2020-08-27 10:45:39 -04:00
functions.php implement the jetpack author bio 2020-10-27 12:59:32 +00:00
header.php Spearhead: Add support for site logo 2020-10-29 15:18:27 +00:00
image.php Seedlet: fix landmark roles (#2395) 2020-08-27 10:45:39 -04:00
index.php Refactor customizer class and add ability to toggle excerpts. 2020-10-22 14:22:30 -04:00
LICENSE Adding 1.0 seedlet theme. 2020-06-10 12:58:55 -04:00
package-lock.json Separate the seedlet menu CSS into a different file 2020-10-07 16:37:04 +01:00
package.json update Seedlet version number 2020-10-16 12:28:48 +01:00
page.php Seedlet: fix landmark roles (#2395) 2020-08-27 10:45:39 -04:00
postcss.config.js Seedlet: Fix layout grid margins (#2219) 2020-07-07 12:04:08 -04:00
README.md Add an acknowledgement for the CSS Vars ponyfill 2020-10-05 11:23:59 +01:00
readme.txt Bump version to 1.1.2 2020-11-04 14:49:41 -05:00
screenshot.png Seedlet: Optimize the screenshot 2020-07-24 02:11:15 +02:00
search.php Use correct template tags for navigation + pagination. 2020-10-14 10:23:00 -04:00
single.php Use correct template tags for navigation + pagination. 2020-10-14 10:23:00 -04:00
style-rtl.css Merge pull request #2774 from Automattic/update/remove-extra-group-wrapper-from-seedlet-blocks 2020-11-05 10:09:21 -05:00
style.css Merge pull request #2774 from Automattic/update/remove-extra-group-wrapper-from-seedlet-blocks 2020-11-05 10:09:21 -05:00
style.css.map Ensure children of template parts are properly sized. 2020-11-05 09:22:24 -05:00

Seedlet

Seedlet is simple, text-driven WordPress theme.

Along with being an excellent standalone theme, Seedlet is designed to be a parent-theme that allows folks to quickly create Gutenberg-ready child-themes for WordPress. [Instructions for how to make child themes are coming soon]

Development

To make changes to the styles, node.js is recommended:

  1. npm i to install the required development dependencies
  2. npm start to start the development server
  3. Make changes in assets/sass

Technical Overview

Principles

When you reduce a theme design down to a set of systematic design decisions, you end up with something called a Style Guide. The Seedlet system works by taking the rules of a Style Guide and expressing them through carefully placed variables or design tokens that influence the appearance of a WordPress site.

This unifies the design decisions needed to style the aesthetic appearance of Gutenberg Blocks, the theme Header + Footer areas, WooCommerce, Jetpack and more. It also syncs styles between the editor and the frontend so that you dont need to hand-write CSS for both. This greatly speeds up the Gutenberg theme development process and reduces the amount of manual styling that typically goes into developing a theme.

Controls

The theme is built to offer the following controls:

  • Fonts - Font-family, size, weight, and line-height rules.
  • Colors - Primary, secondary, background, foreground and border colors.
  • Spacing - A default 8px vertical rhythm between all blocks and major components. It also includes utility spacing classes for negative margins.
  • Responsive Logic - Built-in responsive behavior across Blocks and Components.

Structure

The system itself lives in the /assets/sass directory as a collection of Sass partials broken up by scope and hierarchy. The partials get compiled down to singular CSS files that live in the main Seedlet directory and cascade downward like so:

Frontend

  • /assets/css/variables.css
  • /style.css

Editor

  • /assets/css/variables-editor.css
  • /style-editor.css

In each view, the variables are loaded first and then the stylesheet is loaded which applies the variables.

License

GNU General Public License v2 or later.

URI: LICENSE

Acknowledgments

CSS vars ponyfill: https://github.com/jhildenbiddle/css-vars-ponyfill