一键导入
mint-css-colors
Design system color tokens and semantic color variables. Use for consistent color usage across applications with automatic dark mode support.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design system color tokens and semantic color variables. Use for consistent color usage across applications with automatic dark mode support.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Accordion component with collapsible sections. Use for FAQs, nested content, or expandable details sections.
Button component with variants, sizes, loading states, and icon support. Use when creating clickable actions, forms, or navigation buttons.
Calendar component for date and month selection. Use when building date pickers, scheduling interfaces, or date range selectors.
Carousel component for image/content sliders with navigation controls. Use for image galleries, hero sections, or content that scrolls horizontally.
Checkbox component for boolean or multi-select inputs. Use when building forms with boolean toggles or multiple selection lists.
Dropdown menu component with trigger and content pattern. Use when building selectable menus, action menus, or nested navigation.
| name | mint-css-colors |
| description | Design system color tokens and semantic color variables. Use for consistent color usage across applications with automatic dark mode support. |
/* Full import includes all colors */
import '@groww-tech/mint-css/dist/index.css';
/* All variables */
@import '@groww-tech/mint-css/dist/fragments/allVariables.css';
The design system defines primitives that can be combined:
| Category | Colors |
|---|---|
| Yellow | Various yellow shades |
| Red | Various red shades |
| Green | Various green shades |
| Blue | Various blue shades |
| Lilac | Various lilac shades |
| Neutrals | Gray/neutral shades |
| Category | Purpose |
|---|---|
| Hover States | Interaction feedback |
| Selected States | Current selection indication |
/* Light theme */
--background-primary: ...;
--background-secondary: ...;
--background-tertiary: ...;
/* Dark theme */
html[data-theme="dark"] {
--background-primary: ...;
--background-secondary: ...;
--background-tertiary: ...;
}
/* Light theme */
--content-primary: ...; /* Main text */
--content-secondary: ...; /* Secondary text */
--content-tertiary: ...; /* Hints, placeholders */
--contentInverse: ...; /* Text on dark backgrounds */
/* Dark theme */
html[data-theme="dark"] {
--content-primary: ...;
--content-secondary: ...;
--content-tertiary: ...;
--contentInverse: ...;
}
/* Light theme */
--border-primary: ...; /* Main borders */
--border-secondary: ...; /* Subtle borders */
/* Dark theme */
html[data-theme="dark"] {
--border-primary: ...;
--border-secondary: ...;
}
.my-component {
background-color: var(--background-primary);
color: var(--content-primary);
border-color: var(--border-primary);
}
.my-text {
color: var(--content-primary);
}
.my-secondary-text {
color: var(--content-secondary);
}
/* Component.module.css */
.container {
background-color: var(--background-secondary);
color: var(--content-primary);
}
<div style={{
backgroundColor: 'var(--background-primary)',
color: 'var(--content-primary)'
}}>
Content
</div>
const styles = {
container: {
backgroundColor: 'var(--background-primary)',
color: 'var(--content-primary)',
}
};
.button-primary {
background-color: var(--primary);
color: var(--contentInverse);
}
.button-primary:hover {
background-color: var(--primary-hover);
}
.error-text {
color: var(--error);
}
.error-background {
background-color: var(--error-background);
}
.success-text {
color: var(--success);
}
.card {
background-color: var(--background-secondary);
border: 1px solid var(--border-primary);
}
The token system uses this naming pattern:
[category]-[semantic-role]
Examples:
background-primary - Main backgroundcontent-secondary - Secondary/secondary textborder-primary - Default border color