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 {SIZING.map((scale) => ( ))}
theme.sizing
{scale} {LightTheme.sizing[scale]}
{COLORS.map((color) => ( ))}
theme.colors LightTheme DarkTheme
{color}
{TYPO.map((typo) => ( ))}
theme.typography
{typo}
Usage: {'
'}
{MEDIA.map((media) => ( ))}
theme.breakpoints
{media} {LightTheme.breakpoints[media]}
{MEDIA.map((media) => ( ))}
theme.mediaQuery
{media} {LightTheme.mediaQuery[media]}
{BORDERS.map((border) => ( ))}
theme.borders LightTheme DarkTheme
{border}
Usage: {'
'}
{RADII.map((radius) => ( ))}
theme.borders
{radius}
{LightTheme.borders[radius]}
{ANIMATION.map((ani) => ( ))}
theme.animation
{ani} {LightTheme.animation[ani]}
{LIGHTING.map((light) => ( ))} {LIGHTING.map((light) => ( ))}
theme.lighting
{light} {LightTheme.lighting[light]}
LightTheme
{light} {DarkTheme.lighting[light]}
DarkTheme

theme.dir - auto, rtl, ltr

); }; export default Themeval;