mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: isolate radix utils
This commit is contained in:
1 parent
887d3079df
commit
9640920863
6 files changed
+28
-32
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { 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})`;
|
||||
}
|
||||
Reference in new issue
Block a user