WP-Performance / wp-performance-theme

Theme of WP Performance WebSite

Home Page:https://wp-performance.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Press Wind FSE

Minimal boilerplate theme for WordPress with Tailwind CSS and Vite JS for Full Site Editing.

Concept

This theme is build for work with gutenberg. It's thinked for use concept of pattern. A example of pattern is in patterns directory. The theme.json is used for the settings of theme. The fonts pass by the new WP font loader. Not by CSS or TailwindCSS.

PHP/HTML files

This theme is developed for use Full Site Editing.

Dependencies

Requirement

  • Node JS (16)
  • Npm ou yarn

Quick Start

In the root of press-wind theme

Install dependencies

yarn

In your wp-config.php file, add :

# for dev
define('WP_ENV', 'development');
# for production
define('WP_ENV', 'production');

With Vitejs, you have a dev server include. When you change a file, the browser reload the page.

Scripts

Launch dev mode

yarn dev

Build the assets

yarn build

Enqueue Scripts and Styles

The script and the style are automatically enqueued in theme. The "assets" code is in file : inc > assets.php

CSS writing style

You must use @apply method for create the CSS style It's better for reusability of your code and the readability.

Example :

.site-header {
  @apply flex my-4 lg:my-10 lg:items-center lg:flex-row flex-col;
}

But you can use the method by the class attribute, if you prefer. Be careful to keep maintainable project.

Disabled WP core functionality

In inc > disable.php, lots of feature are disabled. You can comment for not disable stuff for your project like you want.

Screenshot

https://github.com/WP-Performance/press-wind/blob/main/screenshot.png

About

Theme of WP Performance WebSite

https://wp-performance.com

License:MIT License


Languages

Language:CSS 46.1%Language:PHP 21.5%Language:JavaScript 15.5%Language:HTML 14.6%Language:Hack 2.4%