Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

joy-ui

БесплатноБез исполняемых скриптовНе проверен

Joy UI — MUI's alternative design system with CSS variables, modern aesthetics, and simpler API

TheLobbiот TheLobbi★ 22 звезды на GitHub

Об этом скилле

Joy UI

What is Joy UI?

Joy UI (@mui/joy) is MUI's alternative component library that offers a modern, clean design language distinct from Google's Material Design. It is built from the ground up with CSS variables as a first-class feature, a flexible variant system, and a simpler API surface compared to Material UI.

npm install @mui/joy @emotion/react @emotion/styled
# or
pnpm add @mui/joy @emotion/react @emotion/styled

Joy UI shares MUI's engineering quality (accessibility, TypeScript, composability) but makes different design decisions:

  • CSS variables by default -- not experimental, not opt-in
  • Variant system -- every component supports solid, soft, outlined, plain
  • Color system -- semantic colors (primary, neutral, danger, success, warning) instead of primary/secondary
  • Decoration levels -- replaces Material UI's elevation with a more flexible concept
  • Modern aesthetic -- rounded, spacious, contemporary look out of the box

When to Use Joy UI

Scenario Recommendation
App should NOT look like Material Design Joy UI
Want CSS variables without experimental flags Joy UI
Need Google Material Design compliance Material UI
Building a modern SaaS dashboard Joy UI
Existing Material UI codebase Material UI (or gradual migration)
Need the largest component catalog Material UI (more components today)
Want built-in dark mode with zero config Joy UI

Key Differences from Material UI

Variant System

Material UI uses variant on some components (contained, outlined, text for Button). Joy UI applies a consistent variant system across ALL components:

Variant Description Use Case
solid Filled background, high emphasis Primary actions, selected states
soft Subtle background tint Secondary actions, tags, badges
outlined Border only Tertiary actions, form fields
plain No background or border Low-emphasis, text-like actions
import Button from '@mui/joy/Button';
import Chip from '@mui/joy/Chip';
import Alert from '@mui/joy/Alert';

// Every component supports all four variants
<Button variant="solid">Submit</Button>
<Button variant="soft">Draft</Button>
<Button variant="outlined">Cancel</Button>
<Button variant="plain">Skip</Button>

<Chip variant="soft" color="success">Active</Chip>
<Alert variant="outlined" color="warning">Check your input</Alert>

Color System

Material UI: primary, secondary, error, warning, info, success Joy UI: primary, neutral, danger, success, warning

import Button from '@mui/joy/Button';
import Typography from '@mui/joy/Typography';

<Button color="primary">Primary</Button>
<Button color="neutral">Neutral</Button>
<Button color="danger">Delete</Button>
<Button color="success">Approve</Button>
<Button color="warning">Caution</Button>

<Typography color="danger">Error message</Typography>

Component Naming Differences

Material UI Joy UI Notes
Paper Sheet Surface container
TextField Input / Textarea Separate components, not a wrapper
AppBar Header (custom) Joy UI does not ship AppBar; use Sheet
Snackbar Snackbar Same name, different API
Fab No equivalent Use IconButton with variant="solid"
Rating No equivalent Not yet available in Joy UI
SpeedDial No equivalent Not yet available

Decoration Levels vs Elevation

Material UI uses elevation={0..24} for box-shadow depth. Joy UI uses CSS variables and the shadow prop:

import Sheet from '@mui/joy/Sheet';

// Joy UI -- shadow levels
<Sheet variant="outlined" sx={{ p: 2 }}>No shadow</Sheet>
<Sheet variant="outlined" sx={{ p: 2, boxShadow: 'sm' }}>Small shadow</Sheet>
<Sheet variant="outlined" sx={{ p: 2, boxShadow: 'md' }}>Medium shadow</Sheet>
<Sheet variant="outlined" sx={{ p: 2, boxShadow: 'lg' }}>Large shadow</Sheet>

Setup

Basic Setup with CssVarsProvider

// src/main.tsx
import { CssVarsProvider } from '@mui/joy/styles';
import CssBaseline from '@mui/joy/CssBaseline';
import App from './App';

function Root() {
  return (
    <CssVarsProvider>
      <CssBaseline />
      <App />
    </CssVarsProvider>
  );
}

CssVarsProvider replaces Material UI's ThemeProvider. It automatically:

  • Injects CSS variables into :root
  • Supports light/dark mode toggle without theme re-creation
  • Enables runtime theme switching without JavaScript recalculation

Dark Mode Toggle

import { useColorScheme } from '@mui/joy/styles';
import IconButton from '@mui/joy/IconButton';

function ColorSchemeToggle() {
  const { mode, setMode } = useColorScheme();

  return (
    <IconButton
      variant="outlined"
      color="neutral"
      onClick={() => setMode(mode === 'dark' ? 'light' : 'dark')}
    >
Полный SKILL.md на GitHub

Установить joy-ui в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Glob
Grep
Write
Edit

FAQ

Что делает скилл joy-ui?

Joy UI — MUI's alternative design system with CSS variables, modern aesthetics, and simpler API

Как установить скилл joy-ui?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл joy-ui запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить joy-ui с