0.4.1 • Published 2 years ago

elemental-react v0.4.1

Weekly downloads
3
License
ISC
Repository
github
Last release
2 years ago

Elemental React

Build UI components once, render to any platform using react-primitives. This library abstracts away common UI patterns for you.

npm npm

Abstraction for app presentation to speed up cross-platform UI design and development with code using React/Sketch as a design function. This is an underlying cross-platform abstraction wrapper that allows you to build your own design language

Based off styled-system and styled-components. API is similar to rebass, but using React Native style components.

This is an alpha/preview release. Please test comprehensively before using in production.

Supported React Renderers:

  • react - React web
  • react-native - React Native (WIP)
  • react-sketchapp - React Sketch.app
  • more - Post an issue to suggest more! Ideally an API should exist that lets you override the primitives

Getting Started

npm install elemental-react
import React from 'react';
import {
  Box, Text, Button,
} from 'elemental-react';

// ...
return (
  <Box mt={3} bg="dark-blue">
    <Text color="white">
      Hello World
    </Text>
  </Box>
);

Example UI

Quick example of a design created by a coder (me :slightly_smiling_face:), developed with live rendering to react-sketchapp: Example Blog UI

Related Reading

Design Properties

Line

Themed colour (primary)

  • Weight
  • Color
  • Texture
  • Style

Shape

Foundational element.

  • Depth
    • Light, shadow and depth (illusion)

Texture

Physical quality of a surface.

Balance

Equal distribution of visual weight – spacing.

  • Symmetry (each side is the same)
  • Asymmetry – evenly distribute weight
  • Rule of thirds – grid divided into thirds

Color

Properties

  • Hue
  • Saturation
    • Monochromatic
  • Value

Analagous Colour Scheme

0.4.2-beta.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.0-beta.4

2 years ago

0.4.0-beta.2

2 years ago

0.4.0-beta.3

2 years ago

0.4.0-beta.1

2 years ago

0.3.7-beta.0

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

3 years ago

0.3.5-beta.1

3 years ago

0.3.5-beta.2

3 years ago

0.3.5-beta.0

3 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.4-beta.1

4 years ago

0.3.4-beta.0

4 years ago

0.3.2

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.3.1-beta.4

4 years ago

0.3.1-beta.3

4 years ago

0.3.1-beta.2

4 years ago

0.3.1-beta.1

4 years ago

0.3.0

4 years ago

0.3.0-beta.2

4 years ago

0.3.0-beta.0

4 years ago

0.3.0-beta.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.1

5 years ago