mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
12 lines
345 B
TypeScript
12 lines
345 B
TypeScript
import type { RadixColorCompound, RadixRadius } from '../../stores/embedState';
|
|
|
|
export function toWidthVar(state: number) {
|
|
return `${state}px`;
|
|
}
|
|
export function toRadiusVar(state: RadixRadius) {
|
|
return `var(--radius-${state})`;
|
|
}
|
|
export function toColorVar(state: RadixColorCompound) {
|
|
return `var(--${state.base}-${state.variant})`;
|
|
}
|