mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
feat: more groups
This commit is contained in:
1 parent
4a9fc65e71
commit
821bd363ad
11 files changed
+160
-18
No files matched your search
@@ -19,6 +19,8 @@ export const LIGHT_TEXT_COLORS = new Set<Color>([
|
||||
"brown",
|
||||
"crimson",
|
||||
"jade",
|
||||
"blue",
|
||||
"tomato",
|
||||
]);
|
||||
|
||||
export function Button({
|
||||
@@ -33,7 +35,7 @@ export function Button({
|
||||
className={classNames(styles.button, className)}
|
||||
data-color={color}
|
||||
data-variant={variant}
|
||||
data-light-text={color ? LIGHT_TEXT_COLORS.has(color) : undefined}
|
||||
data-light-text={variant === "solid"}
|
||||
style={{
|
||||
backgroundColor: color ? `var(--${color}-9)` : undefined,
|
||||
...style,
|
||||
|
||||
Reference in new issue
Block a user