New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@elemental-ui-alpha/core

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elemental-ui-alpha/core

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

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
3
-57.14%
Maintainers
2
Weekly downloads
 
Created
Source

Core

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.

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

Wrapper

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

<Core>
  {/* app content */}
</Core>

Normalize CSS

By default normalize.css is included with the Core component. You can opt out by passing false to the includeNormalize property.

<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.

<Core optimizeLegibility={false} />
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.

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

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

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

FAQs

Package last updated on 24 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts