Integrations

Integrating things with glamorous

create-react-app

Here is an example of using glamorous with create-react-app.

next.js

jest

Here is an example of using glamorous with jest.

āœØ polished

glamorous works with āœØ polished mixins, helpers, and shorthands:

const MyStyledParagraph = glamorous.p({
  fontSize: 20,
  color: lighten(0.5, '#000'),
})

You can also use object spread properties to apply more complex āœØ polished mixins directly onto glamorous components:

function GlamorousLogo() {
  return (
    <glamorous.Div
      width={400}
      height={400}
      border="2px solid"
      borderColor={mix(0.5, '#fff', '#000')}
      {...borderRadius('top', '5px')}
    >
    </glamorous.Div>
  );
}
CodeSandbox

styled-system

glamorous works with styled-system helper functions.

Interactive demo
CodeSandbox

glamorous-pseudo

A handy abstraction

With the built-in components, if you want to use pseudo-states, you have to use the css prop. If you'd rather not do that, then you can use glamorous-pseudo.

Inspiration
This was inspired by this tweet from @tkh44. Thanks!
CodeSandbox

glamor

recompose

Contributors:

patitonar's GitHub avatarpksjce's GitHub avatarbhough's GitHub avatarkentcdodds's GitHub avatartkh44's GitHub avatar