Skip to content

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

BaseColor: typeof BaseColor[keyof typeof BaseColor]

Defined in: index.ts:4

The base color of an element.


ContentColor

ContentColor: typeof ContentColor[keyof typeof ContentColor]

Defined in: index.ts:24

The content color of an element.


ControlSize

ControlSize: typeof ControlSize[keyof typeof ControlSize]

Defined in: index.ts:53

The size of a control element.


ModalSize

ModalSize: typeof ModalSize[keyof typeof ModalSize]

Defined in: index.ts:38

The size of a modal dialog.

Variables

BaseColor

const BaseColor: object

Defined in: index.ts:4

The base color of an element.

Type declaration

background

readonly background: "background" = 'background'

error

readonly error: "error" = 'error'

gradient

readonly gradient: "gradient" = 'gradient'

info

readonly info: "info" = 'info'

primary

readonly primary: "primary" = 'primary'

secondary

readonly secondary: "secondary" = 'secondary'

success

readonly success: "success" = 'success'

surface

readonly surface: "surface" = 'surface'

warning

readonly warning: "warning" = 'warning'


ContentColor

const ContentColor: object

Defined in: index.ts:24

The content color of an element.

Type declaration

default

readonly default: "text-default" = 'text-default'

highlighted

readonly highlighted: "text-highlighted" = 'text-highlighted'

subtle

readonly subtle: "text-subtle" = 'text-subtle'


ControlSize

const ControlSize: object

Defined in: index.ts:53

The size of a control element.

Type declaration

auto

auto: string = 'auto'

large

large: string = 'large'

max

max: string = 'max'

medium

medium: string = 'medium'

small

small: string = 'small'


ModalSize

const ModalSize: object

Defined in: index.ts:38

The size of a modal dialog.

Type declaration

auto

auto: string = 'auto'

large

large: string = 'large'

max

max: string = 'max'

medium

medium: string = 'medium'

small

small: string = 'small'