@nicknish09/ribon-shared
v1.0.2
Published
Shared library for Ribon
Downloads
3
Maintainers
Readme
@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.