Vaadin 14 npm mode - Migration - Converting theme

Can someone tell me how to migrate the following to use it as a JsModule instead of HtmlImport?

<dom-module id="so-grid" theme-for="vaadin-grid">
    <template>
        <style>
            :host(.so-grid) [part~="row"]
[selected]
 [part~="body-cell"]
:not([part~="details-cell"]
) {
                background: var(--lumo-primary-color-50pct);
            }
        </style>
    </template>
</dom-module>

Hi Syam,

I would suggest you to read this documentation before migrating the themes
https://github.com/vaadin/flow-and-components-documentation/blob/master/documentation/theme/migrate-p2-to-p3.asciidoc

Thank you, that was really helpful.