import * as React from "react"; import * as Strings from "~/common/strings"; import * as System from "~/components/system"; import * as Constants from "~/common/constants"; import { css } from "@emotion/react"; import SystemPage from "~/components/system/SystemPage"; import ViewSourceLink from "~/components/system/ViewSourceLink"; const STYLES_COLOR_BAR = css` width: 100%; display: flex; align-items: center; padding: 72px 24px 0 0px; `; const STYLES_COLOR_TEXT = css` display: block; text-transform: uppercase; letter-spacing: 0.2px; font-size: 12px; padding: 8px; color: ${Constants.system.white}; background-color: rgba(0, 0, 0, 0.4); margin-top: 8px; `; export default class SystemPageColors extends React.Component { render() { return ( Colors

All of the colors the Filecoin Client uses.


Imports

Import Constants.

{`import { Constants } from 'slate-react-system';`}

Usage

Declare Constants.
{`{Constants.system.white}; {Constants.system.foreground}; {Constants.system.gray}; {Constants.system.border}; {Constants.system.darkGray}; {Constants.system.black}; {Constants.system.pitchBlack}; {Constants.system.brand}; {Constants.system.green}; {Constants.system.yellow}; {Constants.system.red};`}

Output

{Object.keys(Constants.system).map((each) => { const hex = Constants.system[each]; const rgba = Strings.hexToRGBA(hex); return (
{each.toUpperCase()}
{hex}
{rgba}
); })}
); } }