Style-related Types
The library also provides a set of variables and types for use with TypeScript. They can help you use the styles correctly and in a type-safe manner. They are primarily intended for use with SolidJS and my @spuxx/solid library.
Type Aliases
BaseColor
Defined in: index.ts:4
The base color of an element.
ContentColor
ContentColor = typeof
ContentColor[keyof typeofContentColor]
Defined in: index.ts:25
The content color of an element.
ControlSize
ControlSize = typeof
ControlSize[keyof typeofControlSize]
Defined in: index.ts:54
The size of a control element.
HoverEffect
HoverEffect = typeof
HoverEffect[keyof typeofHoverEffect]
Defined in: index.ts:69
ModalSize
Defined in: index.ts:39
The size of a modal dialog.
Variables
BaseColor
constBaseColor:object
Defined in: index.ts:4
The base color of an element.
Type declaration
accent
readonlyaccent:"accent"='accent'
background
readonlybackground:"background"='background'
error
readonlyerror:"error"='error'
gradient
readonlygradient:"gradient"='gradient'
info
readonlyinfo:"info"='info'
primary
readonlyprimary:"primary"='primary'
secondary
readonlysecondary:"secondary"='secondary'
success
readonlysuccess:"success"='success'
surface
readonlysurface:"surface"='surface'
warning
readonlywarning:"warning"='warning'
ContentColor
constContentColor:object
Defined in: index.ts:25
The content color of an element.
Type declaration
default
readonlydefault:"text-default"='text-default'
highlighted
readonlyhighlighted:"text-highlighted"='text-highlighted'
subtle
readonlysubtle:"text-subtle"='text-subtle'
ControlSize
constControlSize:object
Defined in: index.ts:54
The size of a control element.
Type declaration
auto
readonlyauto:"auto"='auto'
full
readonlyfull:"full"='full'
large
readonlylarge:"large"='large'
medium
readonlymedium:"medium"='medium'
small
readonlysmall:"small"='small'
HoverEffect
constHoverEffect:object
Defined in: index.ts:69
The hover effect applied to an element.
Type declaration
none
readonlynone:"none"='none'
scale
readonlyscale:"scale"='scale'
stylizedShadow
readonlystylizedShadow:"stylized-shadow"='stylized-shadow'
ModalSize
constModalSize:object
Defined in: index.ts:39
The size of a modal dialog.
Type declaration
auto
readonlyauto:"auto"='auto'
full
readonlyfull:"full"='full'
large
readonlylarge:"large"='large'
medium
readonlymedium:"medium"='medium'
small
readonlysmall:"small"='small'