ArcaneTheme class
Main theme configuration for Arcane Jaspr
Constructors
- ArcaneTheme({ContrastedColorScheme? scheme, ThemeMode themeMode = ThemeMode.system, AccentTheme accent = AccentTheme.emerald, double radius = 0.5, double surfaceOpacity = 0.8, double surfaceOpacityLight = 0.9, double surfaceBlur = 12.0, double scaling = 1.0, double contrast = 0.0, double spin = 0.0, ArcaneToastTheme toast = const ArcaneToastTheme(), GutterTheme gutter = const GutterTheme(), CardCarouselTheme cardCarousel = const CardCarouselTheme(), ArcaneBarriers barrierColors = const ArcaneBarriers()})
-
const
- ArcaneTheme.supabase({AccentTheme accent = AccentTheme.emerald, ThemeMode themeMode = ThemeMode.dark, double radius = 0.75})
-
Create a Supabase-styled theme with the given accent color
factory
Properties
- accent → AccentTheme
-
The accent color theme (emerald, cyan, violet, amber)
final
- accentContainer → Color
-
no setter
- accentHover → Color
-
no setter
- accentPrimary → Color
-
Get accent colors based on current brightness
no setter
- barrierColors → ArcaneBarriers
-
Barrier colors for dialogs/overlays
final
- borderRadiusCss → String
-
CSS border radius value
no setter
- borderRadiusPx → double
-
Calculate border radius in pixels
no setter
- brightness → Brightness
-
Get the current brightness
no setter
- cardCarousel → CardCarouselTheme
-
Card carousel theme configuration
final
- colorScheme → ColorScheme
-
Get the active color scheme
no setter
- contrast → double
-
Contrast adjustment (-1.0 to 1.0)
final
-
cssVariables
→ Map<
String, String> -
Generate CSS custom properties for the theme
no setter
- cssVariablesStyle → String
-
Generate inline style string for CSS variables
no setter
- effectiveSurfaceOpacity → double
-
Get effective surface opacity based on brightness
no setter
- gutter → GutterTheme
-
Gutter theme configuration
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Navigation theme configuration
final
- radius → double
-
Border radius scaling (0.0 = square, 1.0 = fully rounded)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaling → double
-
Global scaling factor
final
- scheme → ContrastedColorScheme?
-
The color scheme for light/dark mode
final
- spin → double
-
Hue spin in degrees
final
- surfaceBlur → double
-
Blur radius for surface effects
final
- surfaceOpacity → double
-
Surface opacity for glass effects
final
- surfaceOpacityLight → double
-
Surface opacity for light mode
final
- themeMode → ThemeMode
-
The current theme mode
final
- toast → ArcaneToastTheme
-
Toast theme configuration
final
Methods
-
copyWith(
{ContrastedColorScheme? scheme, ThemeMode? themeMode, AccentTheme? accent, double? radius, double? surfaceOpacity, double? surfaceOpacityLight, double? surfaceBlur, double? scaling, double? contrast, double? spin, ArcaneToastTheme? toast, GutterTheme? gutter, CardCarouselTheme? cardCarousel, ArcaneBarriers? barrierColors}) → ArcaneTheme - Copy with modifications
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withAccent(
AccentTheme newAccent) → ArcaneTheme - Create a copy with a different accent color
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
maybeOf(
BuildContext context) → ArcaneTheme? - Try to get theme from context
-
of(
BuildContext context) → ArcaneTheme - Get theme from context (via InheritedComponent)