Skip to content

evoYTMode: plugin settings

Where they are

System → Plugins → System - evoYTMode (light and dark mode for YOOtheme Pro). The plugin has four tabs: Settings, Privacy, Generic skin and License. The settings affect the whole public site. The builder’s Colour mode element has its own options, described in the reference.

Anything not recognised goes back to its default: the plugin normalises every setting before using it.

Settings tab

What it doesSettingDefault
Mode shown to a visitor who has not chosen yet. In automatic mode the visitor’s system preference is followed. Values: Automatic, Light, Dark.Default modeAutomatic
How the site looks without this plugin. If the theme is already dark, choose “Dark”. It is also the mode used in automatic when the visitor’s system expresses no preference.Native look of the siteLight
“Three: automatic, light and dark” cycles through all three; “Two: light and dark” only toggles between light and dark.Button statesThree
Where the button is added automatically (see below).Button positionHeader corner (and next to the menu on mobile)
Shows the mode name next to the icon on floating buttons. The header corner button is always icon only.Show textNo
Style of the button icons: “Outline” or “Filled”.IconsOutline
Button name for screen readers. Leave empty to use the one in the site language. Maximum 60 characters, no tags.Accessible textEmpty

Button position

  • Header corner (and next to the menu on mobile). On desktop the button is added at the top right of the YOOtheme header (.tm-header; if it does not exist, the first one found among body > header, header[role="banner"] and [role="banner"]). On mobile it goes next to the menu button. If the page has no header at all, the button becomes a floating one at the bottom right.
  • Floating bottom right, bottom left, top right, top left. A fixed button in that corner of the screen.
  • None (I use the element). Nothing is added. You use the builder element or a link with data-evo-mode-toggle.

Privacy tab

What it doesSettingDefault
Where the browser remembers the mode the visitor picked. “Yes, in the browser and with an expiry” uses local storage; “Only for the session (cleared when the tab closes)” uses session storage; “No (always the default mode; nothing is stored)” writes nothing.Remember the choiceYes, in the browser and with an expiry
From 1 to 24 months after the visitor chose. After that the choice is discarded and deleted. Only shown with “Yes, in the browser and with an expiry”.Months it is remembered12

The tab also holds the “What is stored in the browser” note and a suggested text for your cookie policy, reproduced in data it handles.

Generic skin tab

What it doesSettingDefault
Off, the plugin only changes the data-evo-mode attribute and the browser colour scheme. On, it applies the UIkit skin in the mode opposite to the native look of the site.Enable the generic skinNo
Three or six digit hexadecimal. Empty uses the default colour.Background colourEmpty
Same.Surface colour (cards, menus)Empty
Same.Text colourEmpty
Same.Heading colourEmpty
Same.Muted text colourEmpty
Same.Border colourEmpty
Same.Accent colour (links and primary button)Empty

The colour fields only appear when the skin is on. A value that is not hexadecimal is discarded, so no arbitrary CSS can get in that way.

Default colours, by the mode the skin applies to:

Dark skin (light native look)ColourLight skin (dark native look)
#0f1115Background#ffffff
#181b21Surfaces#f5f6f8
#c9ced6Text#2b2f36
#ffffffHeadings#0f1115
#8b93a1Muted text#6b7280
#2a2f38Borders#d9dde3
#4da3ffAccent#0b5fff

License tab

It shows the licence status and the “Check now” and “Remove” buttons. The Download ID is pasted in System → Update Sites; the procedure is in installation.

Change settings with evoMCP

If evoMCP is installed, the plugin announces itself, with no extra plugin:

  • evoytmode_get_settings reads every setting.
  • evoytmode_set_settings changes them with strict validation, supports dry_run and requires human approval, because it changes how the public site looks.
  • evoytmode_status reports the state of the plugin.

The parameters are in the reference.