add missing files

This commit is contained in:
Ben Dwyer 2021-02-12 13:29:42 +00:00
parent eb0d4cf435
commit ce71804b9d
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,2 @@
<?php
require_once get_template_directory() . '/inc/wpcom-colors-css-variables.php';

16
morden/inc/wpcom.php Normal file
View file

@ -0,0 +1,16 @@
<?php
/**
* WordPress.com-specific functions and definitions.
*
* This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
*
* @package Morden
*/
require_once get_template_directory() . '/inc/wpcom-colors-css-variables.php';
/**
* Bind JS handlers to instantly live-preview changes.
*/
function morden_wpcom_color_annotations_preview_js() {
wp_enqueue_script( 'morden_wpcom_color_annotations_preview', get_template_directory_uri() . '/inc/color-annotations-preview.js', array( 'customize-preview' ), wp_get_theme()->get( 'Version' ), true );
}
add_action( 'customize_preview_init', 'morden_wpcom_color_annotations_preview_js' );

View file

@ -0,0 +1,24 @@
@mixin global-variables() {
/* Colors */
--wp--preset--color--primary: #CD2220;
--wp--preset--color--primary-hover: #303030;
--wp--preset--color--secondary: #007AB7;
--wp--preset--color--secondary-hover: #303030;
--wp--preset--color--foreground: #303030;
--wp--preset--color--foreground-low-contrast: #757575;
--wp--preset--color--foreground-high-contrast: #101010;
--wp--preset--color--background: #ffffff;
--wp--preset--color--background-low-contrast: #E1DFDF;
--wp--preset--color--background-high-contrast: #F8F8F8;
--wp--preset--color--border: #C5C5C5;
--wp--preset--color--border-low-contrast: #A5A5A5;
--wp--preset--color--border-high-contrast: #020202;
--wp--preset--color--text-selection: #FDE2D4;
--wp--preset--color--alert-success: #4caf50;
--wp--preset--color--alert-info: #2196f3;
--wp--preset--color--alert-warning: #ffc107;
--wp--preset--color--alert-error: #CD2220;
--wp--preset--color--black: black;
--wp--preset--color--white: white;
}