Warning: Globe is WIP and not yet ready to be used. Documentation might be wrong, incomplete and changing.
Globe is the design system behind gazzer.io.
It is mobile-first and supports theming, rtl-convertion and has accessibility built-in.
It is written in ReasonML and Elodin and right now only targets React.
It can be used with JavaScript and ReasonML.
yarn add @gazzer/globe
If you're using Globe with JavaScript, all you have to do is wrap your app with the StyleProvider
component.
import { StyleProvider } from '@gazzer/globe'
import App from '../path/to/root'
export default () => (
<StyleProvider>
<App />
</StyleProvider>
)
Now you're ready to import components as you like.
import { ScrollView, Box, Button } from '@gazzer/globe'
export default () => (
<ScrollView>
<Box padding={4} space={2}>
<Button>Click</Button>
<Button>Me</Button>
</Box>
</ScrollView>
)
First of all, you'll have to add "@gazzer/globe"
to your bsconfig.json
in order to be compiled.
You might also need to add "reason-fela"
as it's a direct dependency.
Once set up, you have to wrap your app with the StyleProvider
component.
open Globe;
[@react.component]
let make = () =>
<StyleProvider>
<App />
</StyleProvider>;
Now you're ready to import components as you like.
open Globe;
let s = React.string;
[@react.component]
let make = () =>
<ScrollView>
<Box padding=4 space={Int(2)}>
<Button>"Click"->s</Button>
<Button>"Me"->s</Button>
</Box>
</ScrollView>
Globe is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with ♥ by @robinweser.