15.0.26 • Published 1 year ago

@times-components-native/styleguide v15.0.26

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

Styleguide

The styleguide package contains the shared styles and functionalities which are commonly used across Times Components packages and components. Many of the properties of the styleguide can be simply exported as named exports:

import { colours, spacing } from "@times-components-native/styleguide";

However, the default export is a factory method which takes a configuration object.

Configuration

The styleguide default method can be called much like a factory funtion with a config object. This object includes a scale property which manages the user-controlled font size settings:

import styleguide from "@times-components-native/styleguide";

const { colours, fontFactory, spacing } = styleguide({ scale });

Animations

A cross-device component called FadeIn which animates a fade in

Colours

Exports functional or section based colours.

Fonts

Times Components fonts and font sizes.

Font factory

The fontFactory method takes a font and fontSize, and returns an object containing the appropriate font style properties, including a lineHeight.

Line heights

Times Componets line heights. This is utilised as part of the font factory scaling.

Spacing

Provides a way to standardise layout, particularly in regards to the concept of a consistent spacing layout across multiple breakpoints.

15.0.26

1 year ago

15.0.25

1 year ago

15.0.24

1 year ago

15.0.23

1 year ago

15.0.18

1 year ago

15.0.22

1 year ago

15.0.21

1 year ago

15.0.20

1 year ago

15.0.19

1 year ago

15.0.1

2 years ago

15.0.0

2 years ago