Compare commits
2 Commits
ec93cd5678
...
3bed5a97c5
Author | SHA1 | Date | |
---|---|---|---|
|
3bed5a97c5 | ||
|
ab4af06fd1 |
@ -107,7 +107,7 @@ interface PreviewBlockProps {
|
||||
|
||||
const PreviewBlock: FC<PreviewBlockProps> = ({ baseline, title }) => {
|
||||
const customSets = useMemo(() => {
|
||||
const colors = keys(baseline.customColors);
|
||||
const colors = keys(baseline.customColors).sort();
|
||||
const elements: ReactNode[] = [];
|
||||
|
||||
for (const key of colors) {
|
||||
@ -122,9 +122,9 @@ const PreviewBlock: FC<PreviewBlockProps> = ({ baseline, title }) => {
|
||||
<div className={styles.preview_block} style={{ backgroundColor: `#${baseline.surface.root}` }}>
|
||||
<h2 style={{ color: `#${baseline.surface.onRoot}` }}>{title}</h2>
|
||||
<PreviewSet name="Primary" colorUnit={baseline.primary} />
|
||||
<PreviewSet name="Secondary" colorUnit={baseline.secondary} />
|
||||
<PreviewSet name="Tertiary" colorUnit={baseline.tertiary} />
|
||||
<PreviewSet name="Accent" colorUnit={baseline.accent} />
|
||||
{baseline.secondary && <PreviewSet name="Secondary" colorUnit={baseline.secondary} />}
|
||||
{baseline.tertiary && <PreviewSet name="Tertiary" colorUnit={baseline.tertiary} />}
|
||||
{baseline.accent && <PreviewSet name="Accent" colorUnit={baseline.accent} />}
|
||||
<PreviewSet name="Danger" colorUnit={baseline.danger} />
|
||||
<PreviewSet name="Success" colorUnit={baseline.success} />
|
||||
<PreviewSet name="Warn" colorUnit={baseline.warn} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user