Kjell Reigstad 0bff9da405 Opt in to line custom-line-height (#2266) 5 år sedan
..
assets 8b0e4eb7fc Merge branch 'master' into try/seedlet/jetpack-global-styles 5 år sedan
classes b4a6d7563d Bundle editor variables with editor styles, load custom color variables separately. 5 år sedan
inc 55051ac7b0 Merge pull request #2196 from Automattic/try/seedlet/hide-homepage-title-option 5 år sedan
languages 322b096b1c Escape and translate aria labels. (#2193) 5 år sedan
template-parts 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
404.php 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
LICENSE 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
README.md fab2f37752 Update Seedlet readme. (#2181) 5 år sedan
archive.php 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
comments.php 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
footer.php 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
functions.php 0bff9da405 Opt in to line custom-line-height (#2266) 5 år sedan
header.php 322b096b1c Escape and translate aria labels. (#2193) 5 år sedan
image.php 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
index.php 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
package-lock.json f55efa498b Seedlet: CSS Variables fallback support for IE11 (#2177) 5 år sedan
package.json b4a6d7563d Bundle editor variables with editor styles, load custom color variables separately. 5 år sedan
page.php 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
postcss.config.js 283b23fd16 Seedlet: Fix layout grid margins (#2219) 5 år sedan
readme.txt 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
screenshot.png 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
search.php 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
single.php 66fe602d0c Adding 1.0 seedlet theme. 5 år sedan
style-rtl.css 8b0e4eb7fc Merge branch 'master' into try/seedlet/jetpack-global-styles 5 år sedan
style.css 8b0e4eb7fc Merge branch 'master' into try/seedlet/jetpack-global-styles 5 år sedan

README.md

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 don’t 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