utilities
Theme

Theme

Utilities for changing the theme and getting items from the current theme.

:SetTheme

Arguements

NameTypeDescription
scopeFusion.ScopeThe scope to set the theme for.
themeThemeConfig | DefaultThemeThe 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

NameTypeDescription
scopeFusion.ScopeThe scope to get the theme item for.
itemFusion.UsedAs<ThemeItem>The theme item to get.
mutatorFusion.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.
twInfoFusion.UsedAs<TweenInfo?>? | falseThe 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"