Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

DESQOL/MyCoeliac

Repository files navigation

Greenkeeper badge atomic design

Atoms

atoms

Atoms are the smallest possible components, such as buttons, titles, inputs or event color pallets, animations, and fonts. They can be applied on any context, globally or within other components and templates, besides having many states, such as this example of button: disabled, hover, different sizes, etc.

Molecules

molecules

They are the composition of one or more components of atoms. Here we begin to compose complex components and reuse some of those components. Molecules can have their own properties and create functionalities by using atoms, which don’t have any function or action by themselves.

Organisms

organisms

Organisms are the combination of molecules that work together or even with atoms that compose more elaborate interfaces. At this level, the components begin to have the final shape, but they are still ensured to be independent, portable and reusable enough to be reusable in any content.

React + Atomic Design

This project uses atomic design

  • The Atomic Design should have a file of variables and it must be imported by each component;
  • The atoms should be written without margins and positions;
  • Only the molecules and organisms can set the positions of atoms, but these stacks can’t have any styles of margins and positions;

Scripts

Script Desc
$ npm install Start a simple webpack server
$ npx react-native run-android Create a server to development at port 5000
$ npm storybook Start Storybook with the stories imported

Libraries

  • Storybook
    • Storybook Info
  • Project
    • ESLint

TODO's

Below is a list of things that still need to be done.

Bug(s)

This is a list of known bugs in the code.


The Recipe component was used as an example in the description of the bug, however this bug is also a problem on the Comment Screen and Profile Screen component.

Contributors

@linh @martijn @jordy @jeffrey