If a component includes shared text or layer styles, these will get added to DSM. Styles can also be directly uploaded. DSM uses the Sketch unique ID per style to avoid duplication.
We recommend that before adding any component to the library, a team should create all their text styles, layer styles, icons (symbols) , and colors to the system. They should also make sure their nested symbols were added to the library before they added their more sophisticated components.