Add Color module

This commit is contained in:
Jeremy Thomas
2024-06-25 22:20:37 +01:00
parent cb2de3a2a2
commit 0014fc4e34
13 changed files with 183 additions and 98 deletions

View File

@@ -0,0 +1,15 @@
import Color from "../components/Color";
const COLORS = ["primary", "link", "info", "success", "warning", "danger"];
function Colors() {
return (
<div>
{COLORS.map((color) => {
return <Color key={color} color={color} />;
})}
</div>
);
}
export default Colors;

View File

@@ -0,0 +1,16 @@
import Slider from "../components/Slider";
import { CSSVAR_KEYS } from "../constants";
function Scheme() {
const schemeIds = CSSVAR_KEYS.scheme;
return (
<div>
{schemeIds.map((schemeId) => {
return <Slider key={schemeId} id={schemeId} />;
})}
</div>
);
}
export default Scheme;