Class StyleSet

Represents a set of styles

Hierarchy

  • StyleSet

Constructors

Properties

Methods

Constructors

Properties

styles: {
    @charset: string & {};
    @fontFace: string & {};
    @import: string & {};
    @keyframes: string & {};
    @media: string & {};
    alignContent: AlignContentOptions;
    alignItems: AlignItemsOptions;
    alignSelf: AlignSelfOptions;
    all: AllOptions;
    animation: string & {};
    animationDelay: string & {};
    animationDirection: AnimationDirectionOptions;
    animationDuration: string & {};
    animationFillMode: AnimationFillModeOptions;
    animationIterationCount: string & {};
    animationName: string & {};
    animationPlayState: AnimationPlayStateOptions;
    animationTimingFunction: string & {};
    backfaceVisibility: string & {};
    background: ColorOptions;
    backgroundAttachment: BackgroundAttachmentOptions;
    backgroundBlendMode: string & {};
    backgroundClip: string & {};
    backgroundColor: ColorOptions;
    backgroundImage: BackgroundImageOptions;
    backgroundOrigin: string & {};
    backgroundPosition: BackgroundPositionOptions;
    backgroundRepeat: BackgroundRepeatOptions;
    backgroundSize: string & {};
    border: string & {};
    borderBottom: string & {};
    borderBottomColor: string & {};
    borderBottomLeftRadius: string & {};
    borderBottomRightRadius: string & {};
    borderBottomStyle: string & {};
    borderBottomWidth: string & {};
    borderCollapse: string & {};
    borderColor: string & {};
    borderImage: string & {};
    borderImageOutset: string & {};
    borderImageRepeat: string & {};
    borderImageSlice: string & {};
    borderImageSource: string & {};
    borderImageWidth: string & {};
    borderLeft: string & {};
    borderLeftColor: string & {};
    borderLeftStyle: string & {};
    borderLeftWidth: string & {};
    borderRadius: string & {};
    borderRight: string & {};
    borderRightColor: string & {};
    borderRightStyle: string & {};
    borderRightWidth: string & {};
    borderSpacing: string & {};
    borderStyle: BorderStyleOptions;
    borderTop: string & {};
    borderTopColor: string & {};
    borderTopLeftRadius: string & {};
    borderTopRightRadius: string & {};
    borderTopStyle: string & {};
    borderTopWidth: string & {};
    borderWidth: string & {};
    bottom: Number;
    boxShadow: string & {};
    boxSizing: string & {};
    captionSide: string & {};
    caretColor: string & {};
    clear: string & {};
    clip: string & {};
    clipPath: string & {};
    color: ColorOptions;
    columnCount: string & {};
    columnFill: string & {};
    columnGap: string & {};
    columnRule: string & {};
    columnRuleColor: string & {};
    columnRuleStyle: string & {};
    columnRuleWidth: string & {};
    columnSpan: string & {};
    columnWidth: string & {};
    columns: string & {};
    content: string & {};
    counterIncrement: string & {};
    counterReset: string & {};
    cursor: string & {};
    direction: string & {};
    display: DisplayOptions;
    emptyCells: string & {};
    filter: string & {};
    flex: string & {};
    flexBasis: string & {};
    flexDirection: FlexDirectionOptions;
    flexFlow: string & {};
    flexGrow: string & {};
    flexShrink: string & {};
    flexWrap: string & {};
    float: string & {};
    font: string & {};
    fontFamily: string & {};
    fontKerning: string & {};
    fontSize: string & {};
    fontSizeAdjust: string & {};
    fontStretch: string & {};
    fontStyle: FontStyleOptions;
    fontVariant: string & {};
    fontWeight: FontWeightOptions;
    grid: string & {};
    gridArea: string & {};
    gridAutoColumns: string & {};
    gridAutoFlow: string & {};
    gridAutoRows: string & {};
    gridColumn: string & {};
    gridColumnEnd: string & {};
    gridColumnGap: string & {};
    gridColumnStart: string & {};
    gridGap: string & {};
    gridRow: string & {};
    gridRowEnd: string & {};
    gridRowGap: string & {};
    gridRowStart: string & {};
    gridTemplate: string & {};
    gridTemplateAreas: string & {};
    gridTemplateColumns: string & {};
    gridTemplateRows: string & {};
    height: string & {};
    hyphens: string & {};
    justifyContent: string & {};
    left: Number;
    letterSpacing: string & {};
    lineHeight: string & {};
    listStyle: string & {};
    listStyleImage: string & {};
    listStylePosition: string & {};
    listStyleType: string & {};
    margin: string & {};
    marginBottom: string & {};
    marginLeft: string & {};
    marginRight: string & {};
    marginTop: string & {};
    maxHeight: string & {};
    maxWidth: string & {};
    minHeight: string & {};
    minWidth: string & {};
    objectFit: string & {};
    objectPosition: string & {};
    opacity: string & {};
    order: string & {};
    outline: string & {};
    outlineColor: string & {};
    outlineOffset: string & {};
    outlineStyle: string & {};
    outlineWidth: string & {};
    overflow: string & {};
    overflowX: string & {};
    overflowY: string & {};
    padding: string & {};
    paddingBottom: string & {};
    paddingLeft: string & {};
    paddingRight: string & {};
    paddingTop: string & {};
    pageBreakAfter: string & {};
    pageBreakBefore: string & {};
    pageBreakInside: string & {};
    perspective: string & {};
    perspectiveOrigin: string & {};
    pointerEvents: string & {};
    position: PPositionOptions;
    quotes: string & {};
    right: Number;
    scrollBehavior: string & {};
    tableLayout: string & {};
    textAlign: string & {};
    textAlignLast: string & {};
    textDecoration: string & {};
    textDecorationColor: string & {};
    textDecorationLine: string & {};
    textDecorationStyle: string & {};
    textIndent: string & {};
    textJustify: string & {};
    textOverflow: string & {};
    textShadow: string & {};
    textTransform: string & {};
    top: Number;
    transform: TransformOptions;
    transformOrigin: string & {};
    transformStyle: string & {};
    transition: string & {};
    transitionDelay: string & {};
    transitionDuration: string & {};
    transitionProperty: string & {};
    transitionTimingFunction: string & {};
    userSelect: string & {};
    verticalAlign: string & {};
    visibility: string & {};
    whiteSpace: string & {};
    width: string & {};
    wordBreak: string & {};
    wordSpacing: string & {};
    wordWrap: string & {};
    writingMode: string & {};
    zIndex: Number;
} = {}

Type declaration

  • @charset: string & {}
  • @fontFace: string & {}
  • @import: string & {}
  • @keyframes: string & {}
  • @media: string & {}
  • alignContent: AlignContentOptions
  • alignItems: AlignItemsOptions
  • alignSelf: AlignSelfOptions
  • all: AllOptions
  • animation: string & {}
  • animationDelay: string & {}
  • animationDirection: AnimationDirectionOptions
  • animationDuration: string & {}
  • animationFillMode: AnimationFillModeOptions
  • animationIterationCount: string & {}
  • animationName: string & {}
  • animationPlayState: AnimationPlayStateOptions
  • animationTimingFunction: string & {}
  • backfaceVisibility: string & {}
  • background: ColorOptions
  • backgroundAttachment: BackgroundAttachmentOptions
  • backgroundBlendMode: string & {}
  • backgroundClip: string & {}
  • backgroundColor: ColorOptions
  • backgroundImage: BackgroundImageOptions
  • backgroundOrigin: string & {}
  • backgroundPosition: BackgroundPositionOptions
  • backgroundRepeat: BackgroundRepeatOptions
  • backgroundSize: string & {}
  • border: string & {}
  • borderBottom: string & {}
  • borderBottomColor: string & {}
  • borderBottomLeftRadius: string & {}
  • borderBottomRightRadius: string & {}
  • borderBottomStyle: string & {}
  • borderBottomWidth: string & {}
  • borderCollapse: string & {}
  • borderColor: string & {}
  • borderImage: string & {}
  • borderImageOutset: string & {}
  • borderImageRepeat: string & {}
  • borderImageSlice: string & {}
  • borderImageSource: string & {}
  • borderImageWidth: string & {}
  • borderLeft: string & {}
  • borderLeftColor: string & {}
  • borderLeftStyle: string & {}
  • borderLeftWidth: string & {}
  • borderRadius: string & {}
  • borderRight: string & {}
  • borderRightColor: string & {}
  • borderRightStyle: string & {}
  • borderRightWidth: string & {}
  • borderSpacing: string & {}
  • borderStyle: BorderStyleOptions
  • borderTop: string & {}
  • borderTopColor: string & {}
  • borderTopLeftRadius: string & {}
  • borderTopRightRadius: string & {}
  • borderTopStyle: string & {}
  • borderTopWidth: string & {}
  • borderWidth: string & {}
  • bottom: Number
  • boxShadow: string & {}
  • boxSizing: string & {}
  • captionSide: string & {}
  • caretColor: string & {}
  • clear: string & {}
  • clip: string & {}
  • clipPath: string & {}
  • color: ColorOptions
  • columnCount: string & {}
  • columnFill: string & {}
  • columnGap: string & {}
  • columnRule: string & {}
  • columnRuleColor: string & {}
  • columnRuleStyle: string & {}
  • columnRuleWidth: string & {}
  • columnSpan: string & {}
  • columnWidth: string & {}
  • columns: string & {}
  • content: string & {}
  • counterIncrement: string & {}
  • counterReset: string & {}
  • cursor: string & {}
  • direction: string & {}
  • display: DisplayOptions
  • emptyCells: string & {}
  • filter: string & {}
  • flex: string & {}
  • flexBasis: string & {}
  • flexDirection: FlexDirectionOptions
  • flexFlow: string & {}
  • flexGrow: string & {}
  • flexShrink: string & {}
  • flexWrap: string & {}
  • float: string & {}
  • font: string & {}
  • fontFamily: string & {}
  • fontKerning: string & {}
  • fontSize: string & {}
  • fontSizeAdjust: string & {}
  • fontStretch: string & {}
  • fontStyle: FontStyleOptions
  • fontVariant: string & {}
  • fontWeight: FontWeightOptions
  • grid: string & {}
  • gridArea: string & {}
  • gridAutoColumns: string & {}
  • gridAutoFlow: string & {}
  • gridAutoRows: string & {}
  • gridColumn: string & {}
  • gridColumnEnd: string & {}
  • gridColumnGap: string & {}
  • gridColumnStart: string & {}
  • gridGap: string & {}
  • gridRow: string & {}
  • gridRowEnd: string & {}
  • gridRowGap: string & {}
  • gridRowStart: string & {}
  • gridTemplate: string & {}
  • gridTemplateAreas: string & {}
  • gridTemplateColumns: string & {}
  • gridTemplateRows: string & {}
  • height: string & {}
  • hyphens: string & {}
  • justifyContent: string & {}
  • left: Number
  • letterSpacing: string & {}
  • lineHeight: string & {}
  • listStyle: string & {}
  • listStyleImage: string & {}
  • listStylePosition: string & {}
  • listStyleType: string & {}
  • margin: string & {}
  • marginBottom: string & {}
  • marginLeft: string & {}
  • marginRight: string & {}
  • marginTop: string & {}
  • maxHeight: string & {}
  • maxWidth: string & {}
  • minHeight: string & {}
  • minWidth: string & {}
  • objectFit: string & {}
  • objectPosition: string & {}
  • opacity: string & {}
  • order: string & {}
  • outline: string & {}
  • outlineColor: string & {}
  • outlineOffset: string & {}
  • outlineStyle: string & {}
  • outlineWidth: string & {}
  • overflow: string & {}
  • overflowX: string & {}
  • overflowY: string & {}
  • padding: string & {}
  • paddingBottom: string & {}
  • paddingLeft: string & {}
  • paddingRight: string & {}
  • paddingTop: string & {}
  • pageBreakAfter: string & {}
  • pageBreakBefore: string & {}
  • pageBreakInside: string & {}
  • perspective: string & {}
  • perspectiveOrigin: string & {}
  • pointerEvents: string & {}
  • position: PPositionOptions
  • quotes: string & {}
  • right: Number
  • scrollBehavior: string & {}
  • tableLayout: string & {}
  • textAlign: string & {}
  • textAlignLast: string & {}
  • textDecoration: string & {}
  • textDecorationColor: string & {}
  • textDecorationLine: string & {}
  • textDecorationStyle: string & {}
  • textIndent: string & {}
  • textJustify: string & {}
  • textOverflow: string & {}
  • textShadow: string & {}
  • textTransform: string & {}
  • top: Number
  • transform: TransformOptions
  • transformOrigin: string & {}
  • transformStyle: string & {}
  • transition: string & {}
  • transitionDelay: string & {}
  • transitionDuration: string & {}
  • transitionProperty: string & {}
  • transitionTimingFunction: string & {}
  • userSelect: string & {}
  • verticalAlign: string & {}
  • visibility: string & {}
  • whiteSpace: string & {}
  • width: string & {}
  • wordBreak: string & {}
  • wordSpacing: string & {}
  • wordWrap: string & {}
  • writingMode: string & {}
  • zIndex: Number

Methods

  • Check if a style is set

    Parameters

    • key: string

    Returns boolean

  • Set a single style

    Type Parameters

    • T extends CssProperty

    Parameters

    • key: T
    • value: PickPropertyValues<T>

    Returns StyleSet

Generated using TypeDoc