import * as React from 'react';
import { LightTheme as LT, DarkTheme as DT } from './baseui/themes';
const LightTheme: any = LT;
const DarkTheme: any = DT;
const SIZING = [
'scale0',
'scale100',
'scale200',
'scale300',
'scale400',
'scale500',
'scale550',
'scale600',
'scale650',
'scale700',
'scale750',
'scale800',
'scale850',
'scale900',
'scale950',
'scale1000',
'scale1200',
'scale1400',
'scale1600',
'scale2400',
'scale3200',
'scale4800',
];
const COLORS = [
'primaryA',
'primaryB',
'accent',
'negative',
'warning',
'positive',
'backgroundPrimary',
'backgroundSecondary',
'backgroundTertiary',
'backgroundInversePrimary',
'backgroundInverseSecondary',
'contentPrimary',
'contentSecondary',
'contentTertiary',
'contentInversePrimary',
'contentInverseSecondary',
'contentInverseTertiary',
'borderOpaque',
'borderTransparent',
'borderSelected',
'borderInverseOpaque',
'borderInverseTransparent',
'borderInverseSelected',
'backgroundStateDisabled',
'backgroundOverlayDark',
'backgroundOverlayLight',
'backgroundOverlayArt',
'backgroundAccent',
'backgroundNegative',
'backgroundWarning',
'backgroundPositive',
'backgroundLightAccent',
'backgroundLightNegative',
'backgroundLightWarning',
'backgroundLightPositive',
'backgroundAlwaysDark',
'backgroundAlwaysLight',
'contentStateDisabled',
'contentAccent',
'contentNegative',
'contentWarning',
'contentPositive',
'contentOnColor',
'borderStateDisabled',
'borderAccent',
'borderAccentLight',
'borderNegative',
'borderWarning',
'borderPositive',
'safety',
'eatsGreen400',
'freightBlue400',
'jumpRed400',
'rewardsTier1',
'rewardsTier2',
'rewardsTier3',
'rewardsTier4',
'membership',
];
const TYPO = [
'ParagraphXSmall',
'ParagraphSmall',
'ParagraphMedium',
'ParagraphLarge',
'LabelXSmall',
'LabelSmall',
'LabelMedium',
'LabelLarge',
'HeadingXSmall',
'HeadingSmall',
'HeadingMedium',
'HeadingLarge',
'HeadingXLarge',
'HeadingXXLarge',
'DisplayXSmall',
'DisplaySmall',
'DisplayMedium',
'DisplayLarge',
];
const BORDERS = ['border100', 'border200', 'border300', 'border400', 'border500', 'border600'];
const RADII = ['radius100', 'radius200', 'radius300', 'radius400', 'radius500'];
const MEDIA = ['small', 'medium', 'large'];
const ANIMATION = [
'timing100',
'timing400',
'timing700',
'timing1000',
'easeOutCurve',
'easeInCurve',
'easeInOutCurve',
];
const LIGHTING = ['shadow400', 'shadow500', 'shadow600', 'shadow700'];
const ColorCell: React.FC<{ color: string }> = ({ color }) => (
{color.replace(/ /g, '')}
|
);
const Themeval: React.FC<{}> = () => {
return (
Base Theming Docs
| theme.sizing |
|
|
{SIZING.map((scale) => (
| {scale} |
{LightTheme.sizing[scale]} |
|
))}
| theme.colors |
LightTheme |
DarkTheme |
{COLORS.map((color) => (
| {color} |
))}
| theme.typography |
{TYPO.map((typo) => (
| {typo} |
))}
| theme.breakpoints |
|
{MEDIA.map((media) => (
| {media} |
{LightTheme.breakpoints[media]} |
))}
| theme.mediaQuery |
|
{MEDIA.map((media) => (
| {media} |
{LightTheme.mediaQuery[media]} |
))}
| theme.borders |
LightTheme |
DarkTheme |
{BORDERS.map((border) => (
| {border} |
|
|
))}
| theme.borders |
|
|
{RADII.map((radius) => (
| {radius} |
|
{LightTheme.borders[radius]} |
))}
| theme.animation |
|
{ANIMATION.map((ani) => (
| {ani} |
{LightTheme.animation[ani]} |
))}
| theme.lighting |
|
|
{LIGHTING.map((light) => (
| {light} |
{LightTheme.lighting[light]} |
|
LightTheme |
))}
{LIGHTING.map((light) => (
| {light} |
{DarkTheme.lighting[light]} |
|
DarkTheme |
))}
theme.dir - auto, rtl, ltr
);
};
export default Themeval;