What is a base theme?
What is a base theme?
What is a base theme?
What is a base theme?
Why?
Why?
Why?
Why?
_s
_s
_s
_s
_s
_s
_s
What I Changed
require 'compass'
http_path = "/"
css_dir = "/"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "js"
output_style = :expanded
# or :nested or :compact or :compressed
relative_assets = true
environment = :development
#environment = :production
output_style = (environment == :development) ? :expanded : :compressed
relative_assets = true
sass_options = (environment == :development) ? {:debug_info => true} : {}
sourcemap = true
line_comments = true
What I Changed
What I Changed
/* Setting base font size as 10 for easy maths */
$base-font-size: 10px; /* The font size set on the root html element */
$base-line-height: 24px; /* The base line height */
/* Font stacks */
$times: Times, "Times New Roman", Georgia, serif;
$arial: Arial, Helvetica, sans-serif;
$courier: "Courier New", monospace, sans-serif;
/* Font stack variables */
$font: $arial; /* The font family set on the html element. */
$font-code: $courier;
$font-pre: $courier;
$serif: $times;
$sans-serif: $arial;
$monospace: $courier;
/* Font weights */
$light: 200;
$regular: 400;
$bold: 700;
$black: 900;
What I Changed
What I Changed
What I Changed
What I Changed
**/.sass-cache
**/.sass-cache/*
.sass-cache
.sass-cache/*
.DS_Store
_/img/.DS_Store
# ignore Editor files
*.sublime-project
*.sublime-workspace
*.komodoproject
2019 Version
2019 Version
# General Structure ## Code ## Cover ## Embeds ## Gallery ## Group ## Image ## Latest Posts ## List ## More ## Pullquote ## Quote ## Separator ## Table ## Video # Additional Theme Styles ## Color Palette
2019 Version
2019 Version
2019 Version
2019 Version
2019 Version
2019 Version
2019 Version
2019 Version
2019 Version
2019 Version
/* Add core block visual style support */
add_theme_support( 'wp-block-styles' );
/* Add full and wide align images */
add_theme_support( 'align-wide' );
/* Add responsive embed support */
add_theme_support( 'responsive-embeds' );
2019 Version
add_theme_support( 'editor-color-palette', array(
array(
'name' => __( 'Raspberry', 'beth2' ),
'slug' => 'raspberry',
'color' => '#ca0164',
),
array(
'name' => __( 'Dark Gray', 'beth2' ),
'slug' => 'dark-gray',
'color' => '#444',
),
) );
2019 Version
.has-raspberry-color {
color: #CA0164;
}
.has-raspberry-background-color {
background-color: #CA0164;
}
.has-dark-gray-color {
color: #444;
}
.has-dark-gray-background-color {
background-color: #444;
}
2019 Version
add_theme_support( 'editor-font-sizes', array(
array(
'name' => __( 'Small', 'beth2' ),
'size' => 12,
'slug' => 'small'
),
array(
'name' => __( 'Normal', 'beth2' ),
'size' => 16,
'slug' => 'normal'
),
array(
'name' => __( 'Large', 'beth2' ),
'size' => 36,
'slug' => 'large'
),
array(
'name' => __( 'Huge', 'beth2' ),
'size' => 50,
'slug' => 'huge'
)
) );
2019 Version
.has-huge-font-size {
font-size: 5rem;
}
.has-large-font-size {
font-size: 3.6rem;
}
.has-regular-font-size {
font-size: 1.6rem;
}
.has-small-font-size {
font-size: 1.2rem;
}
2019 Version
/* Disable custom colors */
add_theme_support( 'disable-custom-colors' );
/* Disable custom font sizes */
add_theme_support('disable-custom-font-sizes');
2019 Version
Planned Changes
Planned Changes
add_editor_style( 'style-editor.css' );
Planned Changes
Planned Changes
Data from NPM Trends.
Planned Changes
Planned Changes
wp.domReady( () => {
wp.blocks.unregisterBlockStyle( 'core/button', 'default' );
wp.blocks.unregisterBlockStyle( 'core/button', 'outline' );
wp.blocks.unregisterBlockStyle( 'core/button', 'squared' );
wp.blocks.registerBlockStyle( 'core/button', {
name: 'cta',
label: 'Call to Action',
isDefault: true,
} );
wp.blocks.registerBlockStyle( 'core/button', {
name: 'sign-up',
label: 'Sign Up',
} );
wp.blocks.registerBlockStyle( 'core/button', {
name: 'see-more-link',
label: 'See More Link',
} );
} );