Skip to main content

Overview of a state object

In Hackbox, a state must contain the following properties:

Property NameTypeRequiredDescription
versionintegerYesThis is the version of the state object.
themeobjectYesThis JSON object contains theme information for the state, such as the style of the header & background as well as which Google fonts to use.
presetsobjectYesThis JSON object contains style information for the various components used in the state.
uiobjectYesThis JSON object contains the data for various components - and the header - used in the state.