declarative-shadow-dom

Custom Element to create Shadow DOM in a declarative manner
Check the source of this page. Now, you can simply do:
<anyelement>
    <template is="declarative-shadow-dom">
        Shadow Content here
        <slot></slot>
    </template>
    Light DOM content here
</anyelement>

For more check the Declarative Shadow DOM Spec proposal and README.md