UseColors
Last updated: 2.7.0 (16/06/2024)
Usage
import { useColors, Button } from "@valence-ui/core";
import { CSSProperties } from "react";
function MyComponent() {
const { getHex } = useColors();
const buttonStyle: CSSProperties = {
color: getHex("blue", "weak"),
}
return (
<Button
style={buttonStyle}
>
I'm a button!
</Button>
)
}Return type
Attribute
Type
Description
Changelog
Last updated