@suwa-sh/mui-fui-theme
v0.5.0
Published
Futuristic User Interface (FUI/HUD) theme for MUI - J.A.R.V.I.S. style
Maintainers
Readme
@suwa-sh/mui-fui-theme
Futuristic User Interface (FUI/HUD) theme for MUI - J.A.R.V.I.S. style.
Features
- Dark and Light mode themes
- FUI/HUD-style MUI components
- CSS animations (scan lines, glow effects, etc.)
- React hooks for text decode and scroll animations
Requirements
- React 18.0+ or 19.0+
- MUI (Material UI) 7.0+
- Emotion 11.0+
Installation
npm install @suwa-sh/mui-fui-theme @mui/material @emotion/react @emotion/styled
# or
pnpm add @suwa-sh/mui-fui-theme @mui/material @emotion/react @emotion/styledQuick Start
import { ThemeProvider, CssBaseline } from '@mui/material';
import { createFuiTheme } from '@suwa-sh/mui-fui-theme';
const theme = createFuiTheme('dark'); // or 'light'
function App() {
return (
<ThemeProvider theme={theme}>
<CssBaseline />
<YourApp />
</ThemeProvider>
);
}Components
Atoms
NavMenuItem- Navigation menu itemProgressBar- Animated progress barColorLegend- Color legend displayStatusIndicator- Status indicator with colorsSectionHeader- Section header with decorations
Molecules
DiamondNode- Diamond-shaped nodeIconBox- Icon container with FUI styling
Animations
Available CSS keyframe animations:
fadeInUp,fadeInLeft,fadeInRight,slideInDiagonalscaleIn,rotateInpulse,glowPulsefloat,hologramFlickerscanLine,dataStream,gridPulse
Hooks
useTextDecode- Matrix/JARVIS-style text scramble effectuseScrollAnimation- Scroll-triggered animationsuseAwakeningStyle- "Silence to Awakening" hover effect for dashboard cards
Design Tokens
This package includes design tokens in Figma Tokens (Tokens Studio) format as the Single Source of Truth.
Token Files
tokens/
├── core.json # Typography, spacing, layout (shared)
├── dark.json # Dark mode colors and effects
└── light.json # Light mode colors and effectsDirect Import
// Import tokens directly
import coreTokens from '@suwa-sh/mui-fui-theme/tokens/core.json';
import darkTokens from '@suwa-sh/mui-fui-theme/tokens/dark.json';
import lightTokens from '@suwa-sh/mui-fui-theme/tokens/light.json';
// Or via the main export
import { coreTokens, darkTokens, lightTokens } from '@suwa-sh/mui-fui-theme';Figma Tokens Studio Integration
- Install Tokens Studio for Figma
- Import
tokens/*.jsonfiles as Token Sets - Sync design changes back to JSON
Token Format
Tokens follow the Figma Tokens format:
{
"colors": {
"primary": { "value": "#FFB300", "type": "color" }
}
}Documentation
- Storybook - Interactive component demos
- agent docs - Document for LLM / Coding Agent
Pro Version
Need more components? Check out @suwa-sh/mui-fui-theme-pro (coming soon) for:
Atoms: ChartTooltip
Molecules: NavMenuGroup, SidebarLogo, MetricCard, FuiTable, HeatmapLegend, HUDOverlay, VisualPanel, DiagonalDivider, CodeEditor, DecodedTitle, FileUpload, Progress
Organisms: Sidebar, FuiAreaChart, FuiBarChart, FuiRadarChart
License
MIT
