Skip to content

Derives

  • Deriving allows you to import the rules from one StyleSheet into another.
  • They can only be defined at the root level of the StyleSheet (not inside rules).

They can be written as follows:

rsml
@derive "./path/to/style/sheet/here"

Deriving works slightly differently depending on which integration you are using. Integrations that rely on .rsml files will likely use paths for the local filesystem, whilst integrations which use stringified rsml embedded inside programming languages will likely use paths for the Roblox DataModel.