Skip to content

juancstlm/AtlasDesignSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atlas Design System

A themable design system library with core components used in a React Native App. Designed for Atlas Workout app and EzBudget budget app.

screenshot

Usage

Ensure your app has the peerDependencies installed

//...
//1.  Import the ThemeContext and a theme. You can make your own or use the provided light theme ATLAS_LIGHT
import { ThemeContext, ATLAS_LIGHT } from "atlas-design-system";

export default function MyThemedApp(){

    return (
        // 2. Wrap your app with the ThemeContext.Provider and provide your theme
        <ThemeContext.Provider value={ATLAS_LIGHT}>
            <MyApp>
        </ThemeContext.Provider>
    );
}
import { Text } from "atlas-design-system";
import { View } from "react-native";

// 3. Use the components
export default function MyApp() {
    return (
        <View>
            <Text category="h1" >Welcome to My App</Text>
        </View>
    )
}

Running exmple app

The example app is provided as a way to test and develop on the design system. It is also used as a gallery to view all the components and features of the desgin system.

To run the example app run the following command

cd /example && yarn && yarn ios