Skip to content

Class · inherits Instance

StyleDerive

Official docs ↗

When parented to a StyleSheet, references another StyleSheet from which the parent inherits StyleRules and token definitions.

About StyleDerive

When parented to a StyleSheet, references another StyleSheet from which the parent inherits StyleRules and token definitions. Multiple StyleDerive instances can exist under a StyleSheet and you can order them by Priority.

Properties 2

  • Priority: intA number that determines how style properties inherited through this StyleDerive apply relative to the same properties inherited through other StyleDerives.

    A number that determines how style properties inherited through this StyleDerive apply relative to the same properties inherited through other StyleDerives. Higher priority takes precedence over lower; for example, if a StyleDerive with a priority of 10 points to a sheet StyleSheetA, its StyleRules and tokens will take precedence over the same StyleRules and tokens inherited through lower-priority StyleDerives.

  • StyleSheet: StyleSheetThe StyleSheet from which the parent StyleSheet inherits StyleRules and token definitions.

StyleDerive also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.