mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-20 02:46:16 -04:00
better color support
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { colorMap } from '@strudel.cycles/core/color.mjs';
|
||||
import React from 'react';
|
||||
|
||||
const Colors = () => {
|
||||
return (
|
||||
<div>
|
||||
{Object.entries(colorMap).map(([name, hex]) => (
|
||||
<div key={name} className="py-1">
|
||||
<div className="grid gap-2 grid-cols-3">
|
||||
<div>{name}</div>
|
||||
<div style={{ backgroundColor: hex }}></div>
|
||||
<div style={{ backgroundColor: name, color: hex }}>{name}</div>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Colors;
|
||||
Reference in New Issue
Block a user