Skip to content

useAppStore ​

Global application state store.

Import ​

typescript
const appStore = useAppStore()

State ​

PropertyTypeDefaultDescription
currentThemestring'dark'Active theme name
sidebarOpenbooleantrueSidebar visibility
activeTabnumber0Current workflow tab index

Actions ​

ActionParametersDescription
setThemetheme: stringChange active theme
toggleSidebar—Toggle sidebar visibility
setActiveTabtab: numberChange workflow tab

Theme Management ​

The app store manages theme state. Available themes are defined in app/constants/themes.ts:

  • dark — Dark background with light text
  • light — Clean light theme
  • sandstone — Warm earth tones
  • neo-mint — Fresh green accents
  • corporate — Professional blue palette

Theme is initialized by app/plugins/theme.client.ts on page load and persisted to localStorage.

Source ​

app/stores/app.ts

Built with VitePress