@nicknish09/ribon-shared
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@ribon/shared

Small library used to share resources between our frontends


Usage:

  • Install via yarn
yarn add https://github.com/RibonDAO/shared
  • Import and use whatever you want!
import { defaultDisplayLarge } from '@ribon/shared/styles/typography/default';
import { theme } from '@ribon/shared/styles';

export const Title = styled.h1`
      ${defaultDisplayLarge}
      color: ${({ theme }) => theme.colors.green30};
      font-weight: ${({ theme }) => theme.font.light};
`;

What can we share?

  • Types (entities, responses and enums)
  • Styles (theme and typography)
  • Hooks and services
  • Small libs (NOT IMPLEMENTED YET)

React-native problems

React-native doesn't recognize stylized typography (that one using the Gambarino font). So we need to use a different approach to load custom fonts on mobile frontends. It will be implemented until the end of 2022.

Package Sidebar

Install

npm i @nicknish09/ribon-shared

Weekly Downloads

1

Version

1.0.2

License

Apache-2.0

Unpacked Size

118 kB

Total Files

146

Last publish

Collaborators

  • nicknish09