1.5.2 • Published 11 months ago

@tryrolljs/design-system v1.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@tryrolljs/design-system

Install

yarn add @tryrolljs/design-system
npx install-peerdeps @tryrolljs/design-system

Setup

Web

The web version of the package works out of the box.

Native

The package is ready for react-native with a minimum amount of changes. You have to add an alias to your react-native application & it'll work smoothly.

// babel.config.js

module.exports = {
  plugins: [
    [
      "module-resolver",
      {
        alias: {
          "@tryrolljs/design-system": "@tryrolljs/design-system/dist/native/esm"
        }
      }
    ]
  ]
}

Usage

Wrap the root of your application with the theme provider.

import { TryrollProvider } from '@tryrolljs/design-system'

const App = ({ children }) => {
  return (
    <TryrollProvider>
      {children}
    </TryrollProvider>
  )
}

Enjoy using the well-typed package available for ESM & CJS. 🥳

import { Text, useTheme } from '@tryrolljs/design-system'

const MyComponent = () => {
  const theme = useTheme();

  return (
    <Text style={{ color: theme.text.primary }}>
      @tryrolljs/design-system is awesome!
    </Text>
  )
}

Development

Web

Use Storybook to test your changes locally.

yarn start

Native

You can use React Native Storybook to test changes locally. You'll need to add your story to

  1. Add your story to storybook.requires.js.
  2. Run yarn start:native
  3. Run yarn ios for iOS development.
  4. Run yarn android for Android development.
1.4.0

11 months ago

1.2.1

1 year ago

1.3.8

12 months ago

1.3.7

12 months ago

1.3.6

12 months ago

1.3.5

12 months ago

1.5.2

11 months ago

1.3.4

12 months ago

1.5.1

11 months ago

1.3.3

12 months ago

1.5.0

11 months ago

1.3.2

12 months ago

1.3.1

12 months ago

1.3.0

12 months ago

1.2.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.2

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

1.1.0

1 year ago

1.1.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.1.12

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.2

1 year ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.8

1 year ago

0.1.9

1 year ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.7

1 year ago

0.1.4

1 year ago

0.1.3

2 years ago

0.1.6

1 year ago

0.1.5

1 year ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago