Re: [webcomponents] Sharing styles across custom elements (#282)

Varunkumar,
CSS properties are the current way developers are theming in Web Components
right now, at least the ones I know. Polymer developers are as well. It
seems to be where things are headed.

On Thu, Jul 16, 2015 at 1:29 PM, Varunkumar Nagarajan <
notifications@github.com> wrote:

> We are building a bunch of components for an internal project. These
> components share some common styles (like font-awesome fonts, custom css
> framework, etc). As of now, we are sharing these styles across components
> using /deep/ combinators. I understand from the recent
> <https://www.w3.org/wiki/Webapps/WebComponentsApril2015Meeting> web
> components meeting that /deep/ combinator and other shadow piercing
> combinators are going to be removed.
>
> I understand that Shadow DOM provides style boundary and it also helps in
> abstracting the implementation details of the component. In my use case, I
> am more interested in the latter than the former. Though style boundary
> prevents accidental leakage of styles, I still find the ability to
> selectively pierce the components useful.
>
> Please suggest alternatives for being able to share styles across
> components. (Custom css properties and named parts model might not be
> suitable for this use case. I am interesting in sharing classes across
> components than configuring hooks for theming).
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/w3c/webcomponents/issues/282>.
>



-- 



*Erik Isaksen *


*Google Developer Expert HTML5
<https://developers.google.com/experts/people/erik-isaksen>*

*The Web Platform Podcast <http://thewebplatform.libsyn.com/> Show Host*

*ReadTheSource.io <http://ReadTheSource.io> Co-Host*


*nevraeka@gmail.com <nevraeka@gmail.com>*
*@eisaksen <https://twitter.com/eisaksen>   *

*The Web Platform Podcast Links*

Twitter - https://twitter.com/thewebplatform

Google Plus - https://plus.google.com/u/0/106965203807974584370

Stream/Web -http://thewebplatform.libsyn.com/

Facebook - https://www.facebook.com/thewebplatform

iTunes -
https://itunes.apple.com/us/podcast/the-web-platform-podcast/id899384794?mt=2

Stitcher - http://www.stitcher.com/podcast/the-web-platform-podcast

YouTube (not all episodes available)  -
https://www.youtube.com/channel/UCjz3j22CyBpy6Qk5SL6UwcQ

RSS - http://thewebplatform.libsyn.com/rss

Github - https://github.com/thewebplatform


*Read The Source: Open Source Companion Live Screencast*

Twitter - http://hangouts.readthesource.io/

Google Plus - https://plus.google.com/105627089988168968277/

Youtube - https://www.youtube.com/channel/UCVqD-Rd1nMmvbvf-AvQvgZw

Github - https://github.com/readthesource

RSS - http://hangouts.readthesource.io/index.xml


---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/282#issuecomment-124163879

Received on Thursday, 23 July 2015 16:44:26 UTC