Theme
Utilities for changing the theme and getting items from the current theme.
:SetTheme
Arguements
Name | Type | Description |
---|---|---|
scope | Fusion.Scope | The scope to set the theme for. |
theme | ThemeConfig | DefaultTheme | The new theme for the scope. |
Types
type ThemeConfig = {
Background: {
Primary: Color3,
Secondary: Color3,
Tertiary: Color3,
Stroke: Color3
},
Text: {
Title: Color3,
Body: Color3
},
Accent: {
Primary: Color3,
Secondary: Color3,
Destructive: Color3
}
}
type DefaultTheme = "Dark"
:GetThemeItem
Name | Type | Description |
---|---|---|
scope | Fusion.Scope | The scope to get the theme item for. |
item | Fusion.UsedAs<ThemeItem> | The theme item to get. |
mutator | Fusion.UsedAs<Types.MutatorPreset | (self: Color3) -> Color3 | nil>? | The mutator to apply to this instance of the theme item. Choose from a preset or make your own. |
twInfo | Fusion.UsedAs<TweenInfo?>? | false | The tween info to apply to item. Defaults to TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) . |
Types
type ThemeItem = "Background/Primary" | "Background/Secondary" | "Background/Tertiary" | "Background/Stroke" | "Text/Title" | "Text/Body" | "Accent/Primary" | "Accent/Secondary" | "Accent/Destructive"
type MutatorPreset = "Default" | "Hover" | "Focus" | "Highlight"