__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { handleVariablesFor } from 'customizer-sync-helpers/dist/simplified'
export const listenToVariables = () => {
handleVariablesFor({
colorPalette: (value) =>
Object.keys(value).reduce(
(acc, key) => [
...acc,
{
variable: value[key].variable
? value[key].variable
: `theme-palette-color-${key.replace('color', '')}`,
type: `color:${key}`,
},
],
[]
),
fontColor: {
selector: ':root',
variable: 'theme-text-color',
type: 'color',
},
linkColor: [
{
selector: ':root',
variable: 'theme-link-initial-color',
type: 'color:default',
},
{
selector: ':root',
variable: 'theme-link-hover-color',
type: 'color:hover',
},
],
formTextColor: [
{
selector: ':root',
variable: 'theme-form-text-initial-color',
type: 'color:default',
},
{
selector: ':root',
variable: 'theme-form-text-focus-color',
type: 'color:focus',
},
],
formBorderColor: [
{
selector: ':root',
variable: 'theme-form-field-border-initial-color',
type: 'color:default',
},
{
selector: ':root',
variable: 'theme-form-field-border-focus-color',
type: 'color:focus',
},
],
formBackgroundColor: [
{
selector: ':root',
variable: 'theme-form-field-background-initial-color',
type: 'color:default',
},
{
selector: ':root',
variable: 'theme-form-field-background-focus-color',
type: 'color:focus',
},
],
border_color: {
selector: ':root',
variable: 'theme-border-color',
type: 'color',
},
headingColor: {
selector: ':root',
variable: 'theme-headings-color',
type: 'color',
},
heading_1_color: {
selector: ':root',
variable: 'theme-heading-1-color',
type: 'color',
},
heading_2_color: {
selector: ':root',
variable: 'theme-heading-2-color',
type: 'color',
},
heading_3_color: {
selector: ':root',
variable: 'theme-heading-3-color',
type: 'color',
},
heading_4_color: {
selector: ':root',
variable: 'theme-heading-4-color',
type: 'color',
},
heading_5_color: {
selector: ':root',
variable: 'theme-heading-5-color',
type: 'color',
},
heading_6_color: {
selector: ':root',
variable: 'theme-heading-6-color',
type: 'color',
},
buttonTextColor: [
{
selector: ':root',
variable: 'theme-button-text-initial-color',
type: 'color:default',
},
{
selector: ':root',
variable: 'theme-button-text-hover-color',
type: 'color:hover',
},
],
buttonColor: [
{
selector: ':root',
variable: 'theme-button-background-initial-color',
type: 'color:default',
},
{
selector: ':root',
variable: 'theme-button-background-hover-color',
type: 'color:hover',
},
],
global_quantity_color: [
{
selector: ':root',
variable: 'quantity-initial-color',
type: 'color:default',
},
{
selector: ':root',
variable: 'quantity-hover-color',
type: 'color:hover',
},
],
global_quantity_arrows: [
{
selector: ':root',
variable: 'quantity-arrows-initial-color',
type: 'color:default',
},
{
selector: ':root',
variable: 'quantity-arrows-initial-color',
type: 'color:default_type_2',
},
{
selector: ':root',
variable: 'quantity-arrows-hover-color',
type: 'color:hover',
},
],
})
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| components | Folder | 0750 |
|
|
| controls | Folder | 0750 |
|
|
| options | Folder | 0750 |
|
|
| panels-builder | Folder | 0750 |
|
|
| sync | Folder | 0750 |
|
|
| controls.js | File | 5.52 KB | 0640 |
|
| customizer-color-scheme.js | File | 710 B | 0640 |
|
| customizer-variables.js | File | 3.35 KB | 0640 |
|
| experimental-section.js | File | 176 B | 0640 |
|
| initWidgets.js | File | 0 B | 0640 |
|
| panels-builder.js | File | 1.24 KB | 0640 |
|
| preview-events.js | File | 1.14 KB | 0640 |
|
| public-path.js | File | 85 B | 0640 |
|
| reset.js | File | 1.93 KB | 0640 |
|
| sync.js | File | 3.21 KB | 0640 |
|