0.22.3 • Published 2 years ago

@hiiretail/synergy-ui v0.22.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

⛔ DEPRECATED ⛔

Use Foundation UI instead

Synergy-Ui

Synergy-ui is a component library that implements extendas synergy design system. The components can be seen in Storybook

Installation

Synergy-Ui is available as an npm package

npm install @hiiretail/synergy-ui

Getting started

To start working with the library create a theme using the createTheme() function.

Parameter spacingUnit is used as a minimal measure in pixels for spacing in the application. By default, it's set to 4px

const myTheme = createTheme({spacingUnit: 2});

Theme object contains the following fields:

  • spacing is a function that takes a multiplier param and returns the actual spacing by multiplying spacingUnit and multiplier
  • breakpoints - an object containing a set of breakpoints to handle responsiveness
  • media - an object containing 3 helper functions: between, greaterThan and lessThan. These functions take breakpoints as parameters and return a media query.
const SyledDiv = styled.div`
  border-radius: ${(props) => props.theme.spacing(1)}px;
`;

Our approach to CSS

Synergy-Ui is aimed at reducing the amount of CSS code needed to build an application. We use styled-components to provide isolated CSS styling for components. For that purpose, the library provides layout components (Flexbox, CssGrid and Box) with intuitive APIs to avoid a scenario when developers implement their layouts using divs and CSS classes, keeping the code clean and readable. All components are still customizable via ClassName, allowing changing of look and feel.

Responsiveness

Media component and useMedia hook handle responsiveness. Use theme.breakpoints and theme.media to simplify your work.

Contributing

The source code is available on GitHub.

If you found a bug or see some space for improvement feel free to submit a pull request.

Docs

You can find docs for each component in the docs tab in Storybook.

0.22.3

2 years ago

0.22.2

2 years ago

0.22.1

2 years ago

0.21.0

2 years ago

0.22.0

2 years ago

0.20.17

2 years ago

0.20.15

2 years ago

0.20.16

2 years ago

0.20.14

2 years ago

0.20.13

2 years ago

0.20.11

2 years ago

0.20.12

2 years ago

0.20.10

2 years ago

0.20.9

2 years ago

0.20.8

2 years ago

0.20.7

2 years ago

0.20.6

2 years ago

0.20.5

2 years ago

0.20.4

2 years ago

0.20.3

2 years ago

0.20.1

2 years ago

0.19.0

2 years ago

0.19.1

2 years ago

0.19.2

2 years ago

0.18.2

2 years ago

0.18.3

2 years ago

0.18.1

3 years ago

0.18.0

3 years ago

0.17.2

3 years ago

0.17.1

3 years ago

0.17.0

3 years ago

0.16.13

3 years ago

0.16.11

3 years ago

0.16.12

3 years ago

0.16.10

3 years ago

0.16.9

3 years ago

0.16.6

3 years ago

0.16.7

3 years ago

0.16.8

3 years ago

0.16.4

3 years ago

0.16.5

3 years ago

0.13.6

3 years ago

0.13.7

3 years ago

0.13.8

3 years ago

0.13.9

3 years ago

0.11.0

3 years ago

0.11.1

3 years ago

0.13.0

3 years ago

0.11.2

3 years ago

0.13.1

3 years ago

0.11.3

3 years ago

0.15.0

3 years ago

0.13.2

3 years ago

0.15.1

3 years ago

0.13.3

3 years ago

0.13.4

3 years ago

0.13.5

3 years ago

0.13.12

3 years ago

0.13.11

3 years ago

0.13.10

3 years ago

0.13.16

3 years ago

0.13.15

3 years ago

0.13.14

3 years ago

0.13.13

3 years ago

0.13.17

3 years ago

0.16.3

3 years ago

0.12.0

3 years ago

0.10.2

3 years ago

0.10.3

3 years ago

0.14.0

3 years ago

0.12.2

3 years ago

0.10.4

3 years ago

0.14.1

3 years ago

0.12.3

3 years ago

0.10.5

3 years ago

0.16.0

3 years ago

0.12.4

3 years ago

0.10.6

3 years ago

0.16.1

3 years ago

0.12.5

3 years ago

0.10.7

3 years ago

0.16.2

3 years ago

0.12.6

3 years ago

0.0.0

3 years ago

0.10.0

3 years ago

0.10.1

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago