0.0.18 • Published 3 years ago

grigliata v0.0.18

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

logo

A styled-components grid system.

Why you should use it?

  • It's not rocket science
  • It works
  • It will force you to manage the responsiveness of your website/application. So no more random padding on your layout when used on tablet.

Documentation that is also a demo.

A full example

export const App = () => {
  const ROW_PADDING = {
    mobile: 0.5,
    tabletPortrait: 0.5,
    tabletLandscape: 0.5,
    desktop: 0.5
  };

  return (
    <div>
      <Container>
          <Row paddingLeft={ROW_PADDING} paddingRight={ROW_PADDING}>
            <Column
              columnWidth={{
                mobile: 12,
                tabletPortrait: 12,
                tabletLandscape: 12,
                desktop: 12
              }}
            >
            <p>Content</p>
          </Column>
          </Row>
      </Container>
    </div>
  )
}

Development

To test the package we suggest to use the yalc package.

Here's a useful command to build and update your local build:

yarn build && yalc push

Used by

0.0.17

3 years ago

0.0.18

3 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.1

5 years ago