elmethis
Configure Stylelint with the Elmethis rules. Use when an Elmethis user wants to lint their application's CSS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Configure Stylelint with the Elmethis rules. Use when an Elmethis user wants to lint their application's CSS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | elmethis |
| description | Configure Stylelint with the Elmethis rules. Use when an Elmethis user wants to lint their application's CSS. |
Install stylelint and @elmethis/core as development dependencies using the project's package manager.
Create stylelint.config.mjs:
/** @type {import("stylelint").Config} */
export default {
extends: ["@elmethis/core/stylelint"],
rules: {
// Add or override rules for the application here.
"declaration-no-important": true,
},
ignoreFiles: ["dist/**"],
};
Run Stylelint against the application's CSS, for example:
stylelint "src/**/*.css"
Import @elmethis/core/tokens.css, then inspect the custom properties on :root in browser DevTools. To locate the published CSS file directly, run:
node -p 'require.resolve("@elmethis/core/tokens.css")'
Prefer semantic variables such as --elmethis-color-primary; avoid using --elmethis-primitive-* directly.