mantine-dev by itechmeat/llm-code
npx skills add https://github.com/itechmeat/llm-code --skill mantine-devMantine 是一个功能齐全的 React 组件库,支持 TypeScript。它提供了 100 多个钩子和组件,具备原生深色模式、通过 CSS 模块实现的 CSS-in-JS 以及出色的可访问性。
本技能重点在于:
有关 Vite 模板设置、手动安装和可选包的信息,请参阅 references/getting-started.md。
创建 postcss.config.cjs:
module.exports = {
plugins: {
"postcss-preset-mantine": {},
"postcss-simple-vars": {
variables: {
"mantine-breakpoint-xs": "36em",
"mantine-breakpoint-sm": "48em",
"mantine-breakpoint-md": "62em",
"mantine-breakpoint-lg": "75em",
"mantine-breakpoint-xl": "88em",
},
},
},
};
// src/App.tsx
import "@mantine/core/styles.css";
// 根据需要导入其他样式:
// import '@mantine/dates/styles.css';
// import '@mantine/notifications/styles.css';
import { MantineProvider, createTheme } from "@mantine/core";
const theme = createTheme({
// 在此处自定义主题
});
function App() {
return <MantineProvider theme={theme}>{/* 你的应用 */}</MantineProvider>;
}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
@mantine/core/styles.css —— 没有它组件将无法应用样式key={form.key('path')}包装你的应用,提供主题上下文和配色方案管理。
自定义颜色、排版、间距、组件默认属性。
所有组件都接受诸如 mt、p、c、bg 等样式属性。
所有主题值都作为 CSS 变量公开(例如 --mantine-color-blue-6)。
许多组件支持 component 属性以渲染为不同的元素。
@mantine/core/styles.css)每周安装量
130
代码仓库
GitHub 星标数
10
首次出现
2026 年 1 月 29 日
安全审计
已安装于
codex116
opencode115
github-copilot110
gemini-cli107
cursor106
kimi-cli101
Mantine is a fully-featured React components library with TypeScript support. It provides 100+ hooks and components with native dark mode, CSS-in-JS via CSS modules, and excellent accessibility.
This skill focuses on:
See references/getting-started.md for Vite template setup, manual installation, and optional packages.
Create postcss.config.cjs:
module.exports = {
plugins: {
"postcss-preset-mantine": {},
"postcss-simple-vars": {
variables: {
"mantine-breakpoint-xs": "36em",
"mantine-breakpoint-sm": "48em",
"mantine-breakpoint-md": "62em",
"mantine-breakpoint-lg": "75em",
"mantine-breakpoint-xl": "88em",
},
},
},
};
// src/App.tsx
import "@mantine/core/styles.css";
// Other style imports as needed:
// import '@mantine/dates/styles.css';
// import '@mantine/notifications/styles.css';
import { MantineProvider, createTheme } from "@mantine/core";
const theme = createTheme({
// Theme customization here
});
function App() {
return <MantineProvider theme={theme}>{/* Your app */}</MantineProvider>;
}
@mantine/core/styles.css — components won't style without itkey={form.key('path')} when using uncontrolled formsWraps your app, provides theme context and color scheme management.
Customize colors, typography, spacing, component default props.
All components accept style props like mt, p, c, bg, etc.
All theme values exposed as CSS variables (e.g., --mantine-color-blue-6).
Many components support component prop to render as different elements.
@mantine/core/styles.css)Weekly Installs
130
Repository
GitHub Stars
10
First Seen
Jan 29, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex116
opencode115
github-copilot110
gemini-cli107
cursor106
kimi-cli101
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
115,300 周安装