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

Add option to create a banner css themes with a filter #18

Merged
merged 6 commits into from
Mar 23, 2018

Conversation

walbo
Copy link
Collaborator

@walbo walbo commented Mar 22, 2018

Makes it possible to add new banner themes without touching a line of CSS.

Ex. on adding a pink theme

function themes( array $themes ) : array {
	$themes['pink'] = [
		'label'           => 'Pink',
		'backgroundColor' => '#f0a',
		'color'           => '#000',
	];

	return $themes;
}
add_filter( 'hogan/module/banner/themes', __NAMESPACE__ . '\themes' );

Also updated the frontend build system to use Heisenberg

@walbo walbo added the blocker Something blocks this label Mar 22, 2018
@walbo walbo removed the blocker Something blocks this label Mar 23, 2018
@walbo walbo requested a review from trinef March 23, 2018 09:36
@trinef trinef merged commit efaff54 into master Mar 23, 2018
@trinef trinef deleted the feature/themes branch March 23, 2018 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants