The Config object in Easyblocks is a central object that holds all the essential configuration settings. It's a parameter required by EasyblocksEditor (Editor Page) and buildDocument (Rendering Content).
Devices object allows you reconfigure default devices provided by Easyblocks. Easyblocks comes with an opinionated list of devices:
Mobile xs - max-width: 568px
Mobile Horizontal sm - max-width: 768px
Tablet md - max-width: 992px
Tablet Horizontal lg - max-width: 1280px
Desktop xl - max-width: 1600px
Large desktop 2xl
You can switch between different devices using the device switch from the top bar of editor.
By default, Mobile Horizontal and Tablet Horizontal are hidden as we find them unnecessary to be visible out of the box. If you would like to have more control over your breakpoints you can make them visible by setting hidden property:
One of the locales must be alwyas set as default. This locale is going to be used as a fallback in cases where locale is missing or a translation for selected locale (different than default) is missing.
Config.types
Beside using built-in types provided by Eeasyblocks you can also define your own custom types for referencing external data. Learn more about custom types here.
Each type in Easyblocks can be tokenised which means that a predefined list of variables (tokens) is always available in the field widgets. The tokens are defined via Config.tokens property.
The built-in types like color, font, space, aspectRatio, boxShadow, icon are tokenized. When you use any of those types please remember of defining its tokens (example below).
Your custom types can also be tokenised and you can create your own custom token scales.