Git Product home page Git Product logo

trilogy's Introduction

Trilogy DS

Trilogy DS, developed by Bouygues Telecom, is a multiplatform design system ( Web / React / React Native ) with reusable components with same codebase.

npm SASS React React Native Storybook

🚨 Prerequisites

Web

Mobile (Android / IOS)

See how to setup your environment for Android and IOS


Usage

npm i @trilogy-ds/react
import { Button, Text } from '@trilogy-ds/react';

<Button variant='PRIMARY'>My Button</Button>
<Text level='1'>My Text</Text>

Trilogy Provider - Import directly css styles

The TrilogyProvider simplifies integrating Trilogy style into your app by wrapping your entry point with a provider. It offers two props for customization:

  • mangled [optional]: Apply compressed styling for performance.
  • injectTrilogyAssets: Inject Trilogy assets directly into the DOM.

Web Usage

  1. Import the TrilogyProvider component:

    import { TrilogyProvider } from "@trilogy-ds/react/lib/context/provider"
  2. Wrap your app's root component with it:

      <TrilogyProvider mangled injectTrilogyAssets>
        <App />
      </TrilogyProvider>

Native Usage

  1. Import the TrilogyThemeProvider along with SVGicons & colors from trilogy-assets library:

    import { TrilogyThemeProvider, defaultTheme } from '@trilogy-ds/react/lib/context/providerTheme'
    import { SVGicons } from '@trilogy-ds/assets/lib/iconsPath'
  2. Wrap your app's root component with it:

      const theme = {
        ...defaultTheme,
        icons: SVGicons,
        // here: override theme colors
      }
    
      <TrilogyThemeProvider theme={theme}>
        <AppNative />
      </TrilogyThemeProvider>

trilogy's People

Contributors

sara-picoud avatar julienmora avatar arnaud avatar hakaba avatar air-one-x avatar

Stargazers

Anceret Matthieu avatar Benjamin Fourmaux avatar Jean-François Mougnot avatar Victor avatar  avatar  avatar Paul Naszalyi avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.