Admin React Context query

Hi all, in the admin application, I’m looking for a reference to the theme configuration objects (colors etc), and it’s not on the StrapiAppContext. Where is it?

This topic has been created from a Discord post (1249725189357568001) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

It’s alright. Strapi has a wobbly if the Component in customFields.register isn’t in an object that looks like a module: i.e register({module : Component})

app.customFields.register({
      "name" :     "editorjs-field",
      "pluginId" : pluginId,
      "type"      : "json",
      "components" : {
         Input: async () => {
          const Module = (await import ('./components/Editor'));
          const Component = Module.default;
          const inst : React.FC<any> = ( ({...props}) => {
            return (
            <ThemeContext.Provider value={app.configurations.theme} >
              <Component {...props}></Component>
            </ThemeContext.Provider>)
          });
          return { default : inst } ;
        }
        //Input : () => <div></div>
      },
      intlLabel: {
        id: `${pluginId}.plugin.customField.name`,
        defaultMessage: 'editorJs',
      },
      intlDescription: {
        id: `${pluginId}.plugin.customField.description`,
        defaultMessage: "editorjs custom field",
      },
      validator : () => yup.mixed().nullable()
    })