Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By serendiev1.0.0MITIn 1 marketplace
Builds React interfaces with Serendie UI components that match the Figma UI kit, with five color themes and dark mode. Needs a PandaCSS setup for the shared tokens and supports Japanese and English.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
Connects to a remote server outside your machine
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Of the plugin's README
Japanese
1 marketplace, most starred first
design-system, ui-components, react-components, design-tokens, theming, dark-mode, japanese-ui, ui-kit
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Serendie Design Systemは三菱電機によるオープンなデザインシステムです。
デザイントークンやSerendie Symbolsなど複数のリポジトリから構成されています。本リポジトリはSerendie UIを扱います。
次のような特徴を持つ、ReactベースのUIコンポーネントライブラリです。
デザイントークンも同梱されます。
npm install @serendie/ui
rootのCSSに対して下記を指定してください。1行目は、Serendie UIに対して、スタイルを適切に当てるためにカスケードレイヤーの指定をするもの、2行目は同梱のデザイントークンやデフォルトスタイルを読み込むものです。
@layer reset, base, tokens, recipes, utilities;
@import "@serendie/ui/styles.css";
各Componentのpropsについては、ドキュメントや、Storybook、Figma Code Connectを参照してください。
import { Button } from "@serendie/ui";
<Button size="medium">Login</Button>;
Next.js App RouterのServer Componentから使用する場合は、@serendie/ui/clientからインポートすることで、use clientディレクティブを記述する必要がなくなります。
// app/page.tsx - Server Component
import { Button } from "@serendie/ui/client";
export default function Page() {
return <Button size="medium">Login</Button>;
}
Client Componentでも同様に使用できます:
// app/client-component.tsx - Client Component
"use client";
import { Tabs, TabItem, ModalDialog } from "@serendie/ui/client";
export default function ClientComponent() {
// インタラクティブなコンポーネントも問題なく動作します
return <Tabs defaultValue="tab1">...</Tabs>;
}
Serendie Design Systemには5つのカラーテーマ (konjo, asagi, sumire, tsutsuji, kurikawa) とダークモードがあります。各テーマについてはこちらを参照してください。
SerendieProviderのcolorThemeとcolorModeを使って、テーマとカラーモードを設定できます。
import { SerendieProvider } from "@serendie/ui";
function App() {
return (
<SerendieProvider lang="ja" colorTheme="konjo" colorMode="system">
{/* アプリケーション全体 */}
</SerendieProvider>
);
}
colorTheme: カラーテーマ(konjo | asagi | sumire | tsutsuji | kurikawa、デフォルト: konjo)colorMode: カラーモード(system | light | dark、デフォルト: light)colorMode="system"を指定すると、OSの設定に応じてライト/ダークモードが自動的に切り替わります。
SSR環境(Next.jsなど)では、ページ読み込み時にテーマが一瞬ちらつく(FOUC)ことがあります。ColorSchemeScriptを<head>内に配置することで、HTMLの描画前にテーマを適用しFOUCを防止できます。
// Next.js App Router: app/layout.tsx
import { SerendieProvider, ColorSchemeScript } from "@serendie/ui";
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<SerendieProvider lang="ja" colorTheme="konjo" colorMode="system">
<html suppressHydrationWarning>
<head>
<ColorSchemeScript />
</head>
<body>{children}</body>
</html>
</SerendieProvider>
);
}
SerendieProviderを<html>の外側に配置することで、ColorSchemeScriptはContextからテーマ設定を自動取得します。テーマの設定を1箇所にまとめられるため、値の不整合を防ぐことができます。
SerendieProviderを使わない場合や、ColorSchemeScriptをProvider外で使う場合は、propsで直接指定することもできます。
<ColorSchemeScript colorTheme="konjo" colorMode="system" />
data-panda-theme属性による直接制御SerendieProviderを使用せずに、data-panda-theme属性を直接設定してテーマを切り替えることもできます。
<html data-panda-theme="asagi"></html>
マージンを微修正したいなど、Serendie UIのスタイルをカスタムしたいシーンでは、プロジェクト側にスタイリングライブラリ(CSS-in-JSなど)を導入してください。どのスタイリングライブラリでも併用は可能ですが、ここではSerendie UIの内部でも使用しているPanda CSSの例を紹介します。
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub serendie/serendie --plugin serendiePlugins from other owners that cover similar ground