Variables
Const thumbActiveStyles
thumbActiveStyles: CSSResult = css`background-color: var(--tint);`
Const thumbStyles
thumbStyles: CSSResult = css`appearance: none;background-color: var(--secondary-foreground);width: 10px;height: 10px;border-radius: 10px;transition: .15s;transform: translateY(calc(1px - 50%));`
Const trackStyles
trackStyles: CSSResult = css`background-color: var(--primary-background);height: 2px;border-radius: 2px;`
Number field
new GUI() .add({ value: 1 }) // Auto detect .add({ field: 'number' }) // Specify field name .add({ field: new NumberField() }) // Provide field instance
Preview