menu_bookDocumentation

UI Style Properties: CSS Reference with Custom Pseudo-Classes and Sound Events

calendar_today May 20, 2026 schedule ~1 min read person PatrickJr verified 50

s&box UI styling follows web CSS conventions with some differences. Everything is flex by default. Key custom properties include sound-in/sound-out for hover/click sounds, background-image-tint, and text-stroke.

Custom Pseudo-Classes

  • :intro — removed when element is created, things transition away from this state
  • :outro — added when Panel.Delete() is called, panel waits for transitions to finish before deleting
SCSS
MyPanel {
    transition: all 2s ease-out;
    transform: scale( 1 );

    &:intro {
        transform: scale( 0 ); // Expand from nothing on create
    }

    &:outro {
        transform: scale( 2 ); // Double size before delete
    }
}

Key Differences from Web

Custom Properties

Supports: animations, transitions, backdrop-filter (blur, saturate, etc.), gradients, box-shadow, flexbox layout, overflow scrolling, and more.
Was this helpful?