# @elemental-ui-alpha/core

> Core includes a range of styles, variables and helpers that form the foundation of how the Design System works.

Latest version **0.0.2** (published 2020-04-24) · 0 weekly downloads

## Install

```sh
npm install @elemental-ui-alpha/core
pnpm add @elemental-ui-alpha/core
yarn add @elemental-ui-alpha/core
bun add @elemental-ui-alpha/core
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-04-24 |
| First published | 2020-04-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 34.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dsf-release-bot, mitchellhamilton |

## Links

- npm: https://www.npmjs.com/package/@elemental-ui-alpha/core
- npm.io page: https://npm.io/package/@elemental-ui-alpha/core

## Dependencies (4)

- [@emotion/core](https://npm.io/package/@emotion/core.md) ^10.0.22
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.8.3
- [@elemental-ui-alpha/a11y](https://npm.io/package/@elemental-ui-alpha/a11y.md) ^0.0.2
- [@elemental-ui-alpha/theme](https://npm.io/package/@elemental-ui-alpha/theme.md) ^0.0.0

## Recent versions

- 0.0.2 (latest) — 2020-04-24
- 0.0.1 — 2020-04-23
- 0.0.0 — 2020-04-23

## README

# Core

```jsx
import { Core } from '@elemental-ui-alpha/core';
```

## Emotion

Emotion's core components and utilities are exposed to ensure a single version
is bundled with the design system and the consuming application.

```jsx
import {
  ClassNames,
  Global,
  css,
  jsx,
  keyframes,
} from '@elemental-ui-alpha/core';
```

## Wrapper

The `Core` component provides the default styles along with
CSS normalize.

<!-- prettier-ignore-start -->
```jsx
<Core>
  {/* app content */}
</Core>
```
<!-- prettier-ignore-end -->

### Normalize CSS

By default [normalize.css](https://necolas.github.io/normalize.css/) is included
with the `Core` component. You can opt out by passing `false` to the
`includeNormalize` property.

```jsx
<Core includeNormalize={false} />
```

### Text Legibility

By default a handful of CSS properties are applied to optimize text legibility
across major browsers. You can opt out by passing `false` to the
`optimizeLegibility` property.

```jsx
<Core optimizeLegibility={false} />
```

```css
body {
  font-feature-settings: 'liga' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: 'liga' on;
}
```

### Theme

Customize the theme consumed by Elemental components.

```jsx
import { makeTheme } from '@elemental-ui-alpha/theme';

const customTheme = makeTheme('Custom Theme', {
  foreground: {
    action: 'DodgerBlue',
  },
});

function App() {
  return <Core theme={customTheme} />;
}
```

---
_Source: https://npm.io/package/@elemental-ui-alpha/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
