Skip to content
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

Feature/wordpress 6.6 #33

Merged
merged 51 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0baff86
Start of css rework
brettsmason Jul 15, 2024
5255244
Update theme.json options
brettsmason Aug 1, 2024
a3a5654
Bump required WordPress version to 6.6
brettsmason Aug 1, 2024
717bd7b
Try adding block alignment defaults
brettsmason Aug 1, 2024
8ce3b73
Fix 2xl media query
brettsmason Aug 2, 2024
8b7d370
Update variables based on new setup
brettsmason Aug 2, 2024
d2959bf
Update variables
brettsmason Aug 5, 2024
9fe0826
Fix variables
brettsmason Aug 6, 2024
caaec56
Implement default block aligns
brettsmason Aug 6, 2024
a9fcf04
Fix align filters
brettsmason Aug 6, 2024
168a9ff
Remove shadow presets
brettsmason Aug 6, 2024
c9e1617
Rough scaffolding around richtext formats
brettsmason Aug 6, 2024
0cf025d
Use primary, secondary etc for fonts
brettsmason Aug 6, 2024
a244d81
Merge branch 'feature/navigation-styling' into feature/wordpress-6.6
brettsmason Aug 6, 2024
906e5c1
Implement attributes for submenu behaviour
brettsmason Aug 7, 2024
6112ef7
Update icons
brettsmason Aug 7, 2024
3969918
Update navigation render
brettsmason Aug 7, 2024
f0e5f2f
Progress with navigation styling
brettsmason Aug 7, 2024
a139078
Variable updates
brettsmason Aug 7, 2024
ed179f6
Add start of playground blueprint
brettsmason Aug 7, 2024
63bd0ca
Update URLs
brettsmason Aug 7, 2024
f51e27a
Add playground demo link
brettsmason Aug 7, 2024
ccdb4d4
Use feature branch for testing
brettsmason Aug 7, 2024
1e65a57
Improvements for navigation classes
brettsmason Aug 7, 2024
204492c
Start from the beginning with styling
brettsmason Aug 7, 2024
e07845a
Final work on navigation css for now
brettsmason Aug 8, 2024
d0210ff
Assume the always option means a full screen modal
brettsmason Aug 8, 2024
5853872
Remove old megamenu reference
brettsmason Aug 8, 2024
5c10cbf
Remove old hook reference
brettsmason Aug 8, 2024
2e9f6db
Remove Alpine
brettsmason Aug 8, 2024
dce1633
Better default header and footer
brettsmason Aug 8, 2024
e6c8f20
css improvements
brettsmason Aug 8, 2024
5e64c7b
spacing/typography/colour updates
brettsmason Aug 8, 2024
5ec57f6
Better default 404
brettsmason Aug 8, 2024
3630684
Clean up all default templates
brettsmason Aug 8, 2024
9509475
Fix colours
brettsmason Aug 8, 2024
4150bdd
Make sure full width works in template
brettsmason Aug 8, 2024
ae05c87
Hopefully fix navigation
brettsmason Aug 9, 2024
b63e41c
Add primative colours
brettsmason Aug 9, 2024
2085d24
Favour third-party rather than vendor for css
brettsmason Aug 9, 2024
05ee5f1
Rework form styles to be more modular
brettsmason Aug 9, 2024
b1f2c5d
Remove example pattern
brettsmason Aug 9, 2024
b8f74b7
Remove example block
brettsmason Aug 9, 2024
b7ca12a
Add Gravity Forms class
brettsmason Aug 9, 2024
08d6b6b
WIP: Add base Gravity Forms block styles
brettsmason Aug 9, 2024
3b675ba
Icon utility function
brettsmason Aug 12, 2024
b9a260c
Button mixins
brettsmason Aug 12, 2024
4beb218
Button default styles
brettsmason Aug 12, 2024
464ce1e
Update variables to agreed names
brettsmason Aug 12, 2024
c7e434e
Update variables
brettsmason Aug 12, 2024
bf9a3d5
Update playground links
brettsmason Aug 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .playground/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
},
"steps": [
{
"step": "installTheme",
"themeZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=eighteen73/pulsar&branch=main"
},
"options": {
"activate": true
}
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=eighteen73/pulsar-blocks&branch=main"
}
},
{
"step": "runPHP",
"code": "<?php require '/wordpress/wp-load.php'; $wpdb->query('delete from wp_posts');"
},
{
"step": "login",
"username": "admin",
"password": "password"
}
]
}
57 changes: 8 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,23 @@
# Pulsar

<p>
<strong>WordPress starter theme for a modern development workflow</strong>
<strong>WordPress starter block theme for a modern development workflow</strong>
</p>

## Demo

The theme demo is hosted on WordPress Playground, which is a system that runs WordPress directly in your browser. You can fully test the theme as if you were running it on your own site.

[Playground Demo](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/eighteen73/pulsar/.playground/blueprint.json)

## Requirements

Make sure all dependencies have been installed before moving on:

- [WordPress](https://wordpress.org/) >= 5.9
- [WordPress](https://wordpress.org/) >= 6.6
- [PHP](https://secure.php.net/manual/en/install.php) >= 7.4.0
- [Node.js](http://nodejs.org/) >= 16

## Theme structure

```sh
themes/your-theme-name/ # → Root of your theme
├── blocks/ # → Custom blocks
├── config/ # → Theme configuration files
│ ├── bindings.php # → Theme container bindings
│ ├── block-patterns.php # → Custom block patterns
│ ├── block-styles.php # → Custom block styles
│ ├── blocks.php # → All enabled blocks
│ └── browsersync.json # → Developer-specific configuration for BrowserSync (if wanted)
├── includes/ # → Theme functions and classes
│ └── classes/ # → Theme classes (autoloaded)
│ ├── Contracts/ # → Interfaces and Traits
│ ├── Editor/ # → Editor specific classes
│ ├── Blocks.php # → Registration of custom blocks
│ ├── Patterns.php # → Block pattern management
│ ├── Styles.php # → Block styles management
│ └── Tools/ # → Various tools used throughout the theme
│ └── Svg.php # → Allows manipulating SVGs and inlining them
│ ├── Enqueue.php # → Theme assets
│ └── Setup.php # → Theme setup
│ └── template-tags/ # → Theme template tags
│ ├── autoload.php # → Theme autoloader
│ ├── compat.php # → Theme compatibility
│ └── theme.php # → Theme mini container
├── dist/ # → Built theme assets (never edit)
├── parts/ # → Theme partial template files
├── patterns/ # → Theme block pattern template files
├── node_modules/ # → Node.js packages (never edit)
├── src/ # → Theme assets and templates
│ ├── css/ # → Theme stylesheets
│ ├── fonts/ # → Theme fonts
│ ├── img/ # → Theme images
│ ├── js/ # → Theme javascript
│ ├── svg/ # → Theme SVGs
├── templates/ # → Theme custom template files
├── functions.php # → Theme bootloader
├── package.json # → Node.js dependencies and scripts
├── screenshot.png # → Theme screenshot for WP admin
├── style.css # → Theme meta information
```

## Theme setup

Edit `app/Setup.php` to enable or disable theme features, setup navigation menus, post thumbnail sizes, and sidebars.

## Theme development

- Run `npm install` from the theme directory to install dependencies
Expand Down
Binary file added assets/fonts/inter/InterVariable-Italic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/InterVariable.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions assets/svg/navigation-submenu-all.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/svg/navigation-submenu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions config/bindings.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
Pulsar\Editor\Patterns::class,
Pulsar\Editor\TemplateParts::class,
Pulsar\Editor\Render\Navigation::class,
Pulsar\ThirdParty\GravityForms::class,
];
2 changes: 1 addition & 1 deletion config/theme-json/base.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2
"version": 3
}
2 changes: 1 addition & 1 deletion config/theme-json/customTemplates.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"version": 3,
"customTemplates": []
}
10 changes: 10 additions & 0 deletions config/theme-json/settings.background.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"background": {
"backgroundImage": false,
"backgroundSize": false
}
}
}
23 changes: 3 additions & 20 deletions config/theme-json/settings.blocks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"version": 3,
"settings": {
"blocks": {
"core/button": {
Expand All @@ -10,7 +10,7 @@
},
"core/column": {
"spacing": {
"units": ["%"]
"units": ["%", "px", "vw"]
}
},
"core/group": {
Expand All @@ -20,24 +20,7 @@
},
"core/heading": {
"color": {
"text": true,
"palette": [
{
"name": "Primary",
"slug": "primary",
"color": "var(--wp--custom--color--primary)"
},
{
"name": "Secondary",
"slug": "secondary",
"color": "var(--wp--custom--color--secondary)"
},
{
"name": "Tertiary",
"slug": "tertiary",
"color": "var(--wp--custom--color--tertiary)"
}
]
"text": true
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions config/theme-json/settings.border.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"border": {
"color": false,
"radius": false,
"style": false,
"width": false
}
}
}
19 changes: 12 additions & 7 deletions config/theme-json/settings.color.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"version": 3,
"settings": {
"color": {
"background": false,
Expand All @@ -17,17 +17,22 @@
{
"name": "Primary",
"slug": "primary",
"color": "var(--wp--custom--color--primary)"
"color": "var:custom|color|primary|500"
},
{
"name": "Secondary",
"slug": "secondary",
"color": "var(--wp--custom--color--secondary)"
"color": "var:custom|color|secondary|500"
},
{
"name": "Tertiary",
"slug": "tertiary",
"color": "var(--wp--custom--color--tertiary)"
{
"name": "Neutral: 0",
"slug": "neutral-0",
"color": "var:custom|color|neutral|0"
},
{
"name": "Neutral: 1000",
"slug": "neutral-1000",
"color": "var:custom|color|neutral|1000"
}
],
"text": false
Expand Down
Loading