Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sunil Pai
    @threepointone
    it's a bugfix for chrome threepointone/glamor#20
    I'll make it optional in v3
    Sarbbottam Bandyopadhyay
    @sarbbottam
    so nth-child(n) should only be needed only for data-*
    great find BTW.
    Donald Pipowitch
    @donaldpipowitch

    it's a bugfix for chrome threepointone/glamor#20

    Crazy bug. One just has to love browsers... ♥

    Donald Pipowitch
    @donaldpipowitch
    @otbe propMerge seems to have a nice API, if we can get it fast, I guess it would be a nice addition. Do I understand correctly that it merges all styles (props with data-css- keys) and spread all other props ({...props}) ?
    Sunil Pai
    @threepointone
    propMerge might be a nice addition to glamor/react.
    Benjamin Otto
    @otbe
    @donaldpipowitch yes you call propMerge with an arbitrary object with a data-css-* field and a style and it will return an object with the same fields but merged styles.
    Have worked out a more performant version Yesterday evening. Will post it later
    Benjamin Otto
    @otbe
    @threepointone I can place a PR if it's fine for you :)
    Sunil Pai
    @threepointone
    @otbe go for it! We'll discuss it in detail there too
    Benjamin Otto
    @otbe
    Okay :)
    August Brenner
    @AugustBrenner
    Hey guys, the docs hint that glamor can be used outside of react. Does anyone know of any examples of it being used as a stand alone package
    Sunil Pai
    @threepointone
    @AugustBrenner hey, it should 'just work' by default, there's nothing react specific in the core lib. Anything you need?
    Benjamin Otto
    @otbe
    @threepointone return of the broken webpack build by multiple glamor instances. Any idea why this happens again?
    Note: after import something from glamor/react
    Sunil Pai
    @threepointone
    @otbe odd, I haven't changed anything...
    Benjamin Otto
    @otbe
    Mh we recently updated webpack :/ will check it today
    Benjamin Otto
    @otbe
    Solved. Webpack quirks :)
    Cameron Ellis
    @cellis
    Hey everyone, I'm evaluating this against Aphrodite and interested in any opinions or links
    ahh, just read upthread
    jessehart
    @jessehart
    anyone run into an issue merging style objects with short hand properties?
    Miles Spoor
    @lededje
    How do I achieve a nested hover? Do I have to use javascript for this? For example .lorem:hover .ipsum {}
    Miles Spoor
    @lededje
    Achieved it by using js, not ideal but it works okay
    Sunil Pai
    @threepointone
    @lededje css({ ':hover .ipsum': { ... }}) ?
    Miles Spoor
    @lededje
    @threepointone Ah thanks. I see you are going through updating the docs, I'll read through them properly now.
    @threepointone One more question though; importing an font face with multiple weights, how would I go about this?
    Mike Klein
    @mikedklein
    do we have the install v3 directly from the repo? I am not getting it in the npm registry? I feel like I am missing something
    Cody Brunner
    @rockchalkwushock
    I'm working with glamor for the first time and want to use css.global() I'm working in React so my question is would I set this in my entry point? I don't think so because the entry point is a div that is a child to <html> & <body>. Any direction would be great! Thanks
    Jeroen Ransijn 🔮
    @Jeroen_Ransijn_twitter
    Hi there, was just wondering what the timeline on v3 is? And potentially anything I can do to help out.
    Andrew Blick
    @blicksky
    Hey, I'm wondering if anyone can provide some insight on how best to use glamor in a library. I'm a little concerned about a library using it as well as an application using that library, where it seems that both would be writing to the same <style data-glamor> tag. Could this be a problem if different versions of glamor were being used, and the logic differed enough to somehow cause them to interact poorly? Is it possible to separate them so that each instance has their own style tag?
    Sid Ferreira
    @sidferreira
    guys, I believe this is a common question: Is it possible to use the glamor plugin with create-react-app projects without ejecting them?
    Richard Gorman
    @_richardgorman_twitter
    Hi guys, Im trying to create a simple plugin for Glamor but I cannot seem to make it work. I tried following the exact example in the docs but this also doesn't work. Any help would be appreciated
    Dan Turkov
    @dntrkv
    I've tried searching Google with no avail, but what is the difference between glamor and glamorous?
    Kirk Strobeck
    @kirkstrobeck
    Thoughts on threepointone/glamor#333 ?
    Huy Giang
    @_huygn_twitter
    Hi guys, is v3 official yet? checking Github release i am not sure whether those v3 releases are "alpha" or not
    Benjamin Nwaneampeh
    @bnwan
    anyone here have any ideas on using font-face with glamor?
    Varenya Thyagaraj
    @varenya
    hey folks whats the general approach for migrating a plain scss/css project to glamor ? any learning that will help me?
    i have bunch of base styles that get cascaded down
    i am intimidated even approach such a refactor :) and i am kind a going rogue and alone here :P
    Varenya Thyagaraj
    @varenya
    @threepointone
    any tips?
    Joe Seifi
    @joeseifi_twitter
    hi @dntrkv long time no talk man! basically Glamorous uses glamor and allows you to stamp out components, just like you can with Styled Components. but obviously it uses JSON notation instead of tagged template literals in SC
    Dan Reeves
    @danreeves
    In https://github.com/threepointone/glamor/blob/master/src/prefixer.js glamor creates a custom facade for inline-style-prefixer. Is that for perf or bundle size or something else?
    Dan Reeves
    @danreeves
    @threepointone ?
    Stef
    @steffektif
    Hi guys, I'm trying to implement CSP solution in our application. We are using glamor and I'm trying to set the __webpack_nonce__ on every style tag generated by glamor. I searched the glamor GitHub repo and this chat but didn't found any clue. Only issue I found is this threepointone/glamor#323 which didn't help me. So is there already a way to set a nonce on every tag which I just missed or is glamor not supporting setting nonce at the moment?
    Stef
    @steffektif
    Ah just found threepointone/glamor#376 . looks like this is going to fix it
    Frazer
    @AlexFrazer
    Can someone help me understand how to convert a mixin to glamor?
    Would want something like:
    @mixin deceleration-transition($property: all, $duration: 300ms) {
      transition: $property cubic-bezier(0, 0, 0.2, 1) $duration;
    }