Interface: Mode

twind.Mode

Properties

unknown

unknown: <Section>(section: Section, key: undefined | string[], optional: boolean, context: Context) => undefined | void | ThemeSectionType<Theme[Section]>

Called for unknown theme values

Type declaration:

▸ <Section>(section: Section, key: undefined | string[], optional: boolean, context: Context): undefined | void | ThemeSectionType<Theme[Section]>

Type parameters:

NameType
Sectioncolors | spacing | durations | screens | animation | backdropBlur | backdropBrightness | backdropContrast | backdropGrayscale | backdropHueRotate | backdropInvert | backdropOpacity | backdropSaturate | backdropSepia | backgroundColor | backgroundImage | backgroundOpacity | backgroundPosition | backgroundSize | blur | borderColor | borderOpacity | borderRadius | borderWidth | boxShadow | brightness | container | contrast | cursor | divideColor | divideOpacity | divideWidth | dropShadow | fill | flex | flexGrow | flexShrink | fontFamily | fontSize | fontWeight | gap | gradientColorStops | grayscale | gridAutoColumns | gridAutoRows | gridColumn | gridColumnEnd | gridColumnStart | gridRow | gridRowEnd | gridRowStart | gridTemplateColumns | gridTemplateRows | height | hueRotate | inset | invert | keyframes | letterSpacing | lineHeight | listStyleType | margin | maxHeight | maxWidth | minHeight | minWidth | objectPosition | opacity | order | outline | padding | placeholderColor | placeholderOpacity | ringColor | ringOffsetColor | ringOffsetWidth | ringOpacity | ringWidth | rotate | saturate | scale | sepia | skew | space | stroke | strokeWidth | textColor | textOpacity | transformOrigin | transitionDelay | transitionDuration | transitionProperty | transitionTimingFunction | translate | width | zIndex

Parameters:

NameType
sectionSection
keyundefined | string[]
optionalboolean
contextContext

Returns: undefined | void | ThemeSectionType<Theme[Section]>

Defined in: src/types/twind.ts:137

Defined in: src/types/twind.ts:137

Methods

report

report(info: ReportInfo, context: Context): void

Notify error (missing plugin, duplicate directives? )

Why id?

  • can generate an url with more info
  • reduce bundle size by omitting large error messages

Parameters:

NameType
infoReportInfo
contextContext

Returns: void

Defined in: src/types/twind.ts:151