1.0.0 • Published 3 years ago

@remirror/ui v1.0.0

Weekly downloads
281
License
MIT
Repository
github
Last release
3 years ago

@remirror/ui

npm bundle size (scoped) npm

This library is the base for all the UI (user interface) components and styles within Remirror. It uses @emotion/core and @styled-system/css, but was inspired by theme-ui.

Installation

yarn add @remirror/ui @remirror/core @remirror/react

Usage

Firstly, create the theme or use a custom theme preset.

sx

The sx utility comes from the @styled-system/css package and is intended for use with the Emotion css prop. It will attempt to use values from the theme object for many common CSS properties, and will fall back to raw values when there is no corresponding theme value.

To see a list of supported CSS properties, see the Styled System CSS docs.

sx(styleObject)(theme);

Usage:

<div css={sx(styles)} />
ArgumentTypeDescription
styleObjectObjecta theme-aware style object with support for responsive array values and Styled System prop shortcuts
themeObjectthe Emotion theming context object
1.0.0

3 years ago

1.0.0-next.1

4 years ago

1.0.0-next.0

4 years ago

0.7.6

4 years ago

0.7.5

4 years ago

0.7.4

4 years ago

0.7.3

4 years ago

0.7.2

4 years ago

0.6.5

4 years ago

0.7.0

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago