I would like to create custom experience fragment template type, template for customer site.
I do know, how to create editable template types from code to create custom editable template type.
How to create custom experience fragment template type, template ?
I am sure, this needs code changes and looking for a reference or an example.
Copy & customize the experience fragment template and apply the required configurations in 'structure' & 'initial content' accordingly.
Would that help?
Page Templates - Editable
when a experience fragment created with custom experience fragment template, I would like to have custom styles applied, custom baked in components to appear rather than drag and drop components.
I agree with Gaurav - what advantage are you looking for that the OOTB does not have.
Do you have a specific use case where OOB template type doesn't work?
You could create a copy of /conf/we-retail/settings/wcm/template-types/empty-experience-fragment and modify it appropriately, if required.