How to create Theme Setting Page?

You can create a custom theme settings page by class  AddThemePage()

 

Files need to add:

classes/class-theme-page.php
classes/class-form-fields-generator.php

Use on the theme:

Copy these file under “includes” directory and you can add in your theme directory as follows under “functions.php” file

require get_template_directory() . '/includes/class-form-fields-generator.php';
require get_template_directory() . '/includes/class-theme-page.php';

Main CSS & Js file need to add

css/pickplugins-options-framework.css
js/pickplugins-options-framework.js

3rd Party CSS and JS file as need

css/codemirror.css
css/fontawesome.min.css
css/jquery-ui.css
css/select2.min.css

js/select2.min.js
js/codemirror.min.js
js/form-field-dependency.js

 

Example:

Please see the following file is providing a demo input field under the category

example/functions-theme-page.php