{"id":28420,"date":"2024-11-24T13:25:54","date_gmt":"2024-11-24T05:25:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28420\/"},"modified":"2024-11-24T13:25:54","modified_gmt":"2024-11-24T05:25:54","slug":"cassi-an-ai-powered-css-style-guide-generator","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28420\/","title":{"rendered":"Cassi: An AI-Powered CSS Style Guide Generator"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173180560320426.jpg\" class=\"aligncenter\" title=\"Cassi: An AI-Powered CSS Style Guide Generator\u63d2\u56fe\" alt=\"Cassi: An AI-Powered CSS Style Guide Generator\u63d2\u56fe\" \/><\/p>\n<h2> cassi\uff1a\u4eba\u5de5\u667a\u80fd\u9a71\u52a8\u7684  \u52a9\u624b <\/h2>\n<p>cassi \u662f\u4e00\u6b3e\u4eba\u5de5\u667a\u80fd\u9a71\u52a8\u7684\u5de5\u5177\uff0c\u65e8\u5728\u4ece\u73b0\u6709 css \u6587\u4ef6\u751f\u6210\u57fa\u4e8e markdown \u7684\u6587\u6863\u3002\u5b83\u5229\u7528  \u6a21\u578b\u751f\u6210\u6709\u5173\u6bcf\u4e2a css \u89c4\u5219\u7684\u6709\u610f\u4e49\u7684\u4fe1\u606f\u3002\u6b64\u8fc7\u7a0b\u4f7f\u8bb0\u5f55\u590d\u6742\u6837\u5f0f\u8868\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002<\/p>\n<h2> \u8bb0\u5f55\u5927\u578b css \u9879\u76ee\u7684\u6311\u6218 <\/h2>\n<p>\u5904\u7406\u5177\u6709\u5927\u91cf css \u89c4\u5219\uff08\u53ef\u80fd\u5206\u6563\u5728\u591a\u4e2a\u6587\u4ef6\u4e2d\uff09\u7684\u9879\u76ee\u53ef\u80fd\u5177\u6709\u6311\u6218\u6027\u3002\u73b0\u6709\u5de5\u5177\u901a\u5e38\u4e13\u6ce8\u4e8e\u7ec4\u4ef6\u5e93\uff0c\u9700\u8981\u5728\u89c4\u5219\u4e2d\u6dfb\u52a0\u6ce8\u91ca\uff0c\u6216\u8005\u5df2\u7ecf\u8fc7\u65f6\uff0c\u5bfc\u81f4\u96be\u4ee5\u6709\u6548\u8bb0\u5f55\u539f\u59cb css \u6837\u5f0f\u3002<\/p>\n<p>\u6211\u6784\u5efa\u4e86 <strong>cassi<\/strong> \u901a\u8fc7\u5206\u6790\u73b0\u6709 css \u6587\u4ef6\u5e76\u4e3a\u6bcf\u4e2a\u89c4\u5219\u751f\u6210\u57fa\u4e8e markdown \u7684\u6587\u6863\u6765\u89e3\u51b3\u6b64\u95ee\u9898\u3002<\/p>\n<h2> \u5361\u897f\u7684\u4e3b\u8981\u7279\u70b9 <\/h2>\n<p>\u8fd9\u5c31\u662f cassi \u6210\u4e3a\u5f3a\u5927\u5de5\u5177\u7684\u539f\u56e0\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ol>\n<li> <strong>\u672c\u5730\u6216\u4e91\u7aef\u4eba\u5de5\u667a\u80fd\u96c6\u6210<\/strong>\n<ul>\n<li>\u5728\u672c\u5730\u4f7f\u7528\u5f00\u6e90\u6a21\u578b\u6216\u8fde\u63a5\u5230\u6258\u7ba1 ai \u670d\u52a1\uff0c\u4f8b\u5982 openai \u6216 anthropic \u6a21\u578b\u3002<\/li>\n<\/ul>\n<\/li>\n<li> <strong>\u57fa\u4e8e markdown \u7684\u6587\u6863\u8f93\u51fa<\/strong>\n<ul>\n<li>\u751f\u6210\u4e30\u5bcc\u7684\u3001\u57fa\u4e8e markdown \u7684\u6587\u6863\uff0c\u5e76\u5305\u542b 11ty \u517c\u5bb9\u7684\u524d\u7aef\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<\/li>\n<li> <strong>\u53ef\u5b9a\u5236\u6a21\u677f<\/strong>\n<ul>\n<li>\u7f16\u8f91\u63d0\u793a\u6a21\u677f\u4ee5\u6839\u636e\u60a8\u7684\u9700\u8981\u5b9a\u5236\u8f93\u51fa\u3002<\/li>\n<\/ul>\n<\/li>\n<li> <strong>\u65e0\u7f1d\u96c6\u6210<\/strong>\n<ul>\n<li>markdown \u8f93\u51fa\u53ef\u8f7b\u677e\u4f7f\u7528 11ty \u6216\u5176\u4ed6\u6587\u6863\u5e73\u53f0\u7b49\u5de5\u5177\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2> \u5361\u897f\u7684\u5de5\u4f5c\u539f\u7406 <\/h2>\n<p>\u622a\u81f3\u64b0\u5199\u672c\u6587\u65f6\uff0ccassi \u53ea\u4e0d\u8fc7\u662f\u4e00\u4e2a node js \u811a\u672c\u548c\u4e00\u4e2a\u63d0\u793a\u6a21\u677f\u3002\u6211\u786e\u5b9e\u8ba1\u5212\u6dfb\u52a0\u4e00\u4e9b\u9644\u52a0\u529f\u80fd\uff0c\u7a0d\u540e\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\u3002\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u770b\u770b\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\u3002<\/p>\n<ol>\n<li>\n<p><strong>css \u89e3\u6790<\/strong><\/p>\n<ul>\n<li>\u6839\u636e\u63d0\u4f9b\u7684 glob \u6a21\u5f0f\u8bfb\u53d6 css \u6587\u4ef6\u3002<\/li>\n<li>\u89e3\u6790 css \u89c4\u5219\u4ee5\u63d0\u53d6\u9009\u62e9\u5668\u548c\u58f0\u660e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4eba\u5de5\u667a\u80fd\u9a71\u52a8\u7684 markdown \u751f\u6210<\/strong><\/p>\n<ul>\n<li>\u5c06\u6bcf\u6761\u89c4\u5219\u53d1\u9001\u5230 ai \u6a21\u578b\uff0c\u5e76\u5e26\u6709\u7cbe\u5fc3\u8bbe\u8ba1\u7684\u63d0\u793a\u4ee5\u751f\u6210\u6587\u6863\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa markdown \u6587\u6863<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528 ai \u6a21\u578b\u7684\u54cd\u5e94\u4e3a\u6bcf\u4e2a\u89c4\u5219\u521b\u5efa markdown \u6587\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u5982\u60a8\u6240\u89c1\uff0c\u8be5\u8fc7\u7a0b\u76f8\u5bf9\u7b80\u5355\uff0c\u5e76\u4e14\u6f14\u793a\u4e86\u5728\u4f7f\u7528\u672c\u5730\u6a21\u578b\u65f6\uff0c\u901a\u8fc7\u6b63\u786e\u7684\u63d0\u793a\u53ef\u4ee5\u5b9e\u73b0\u4ec0\u4e48\u3002<\/p>\n<h3> \u793a\u4f8b\u8f93\u51fa <\/h3>\n<p>\u4ee5\u4e0b\u662f cassi \u5728 ollama \u4e0a\u4f7f\u7528 qwen2.5-coder \u751f\u6210\u7684 markdown \u8f93\u51fa\u793a\u4f8b\uff1a<\/p>\n<pre>    ---\n    title: \"Styling for .btn-primary\"\n    tags: [\"CSS\", \"Styles\", \"Selectors\"]\n    permalink: \"\/styles\/btn-primary\/\"\n    shortDescription: \"Primary button styling for highlighting important actions.\"\n    selectors:\n    - \".btn-primary\"\n    ---\n\n    ## Overview\n\n    The `.btn-primary` rule defines the primary styling for buttons that should stand out, typically used for important calls to action like \"Submit\" or \"Save.\"\n\n    ## Usage\n\n    Here's how to use this rule in your HTML:\n\n    ```\n\nhtml\n    &lt;button class=\"btn-primary\"&gt;Submit&lt;\/button&gt;\n\n\n    ```\n\n    ## CSS Declarations\n\n    ```\n\ncss\n    .btn-primary {\n        background-color: #007bff;\n        color: #fff;\n        border: 1px solid #007bff;\n        padding: 10px 15px;\n        border-radius: 5px;\n    }\n\n\n    ```\n\n    ## Developer Notes\n\n    - Use `.btn-primary` sparingly to maintain emphasis on important actions.\n    - Ensure sufficient contrast between the button text and its background for accessibility.\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2> hub \u5b58\u50a8\u5e93 <\/h2>\n<p>\u5982\u679c\u60a8\u60f3\u67e5\u770b\u4ee3\u7801\u3001\u4eb2\u81ea\u5c1d\u8bd5\u751a\u81f3\u5e2e\u52a9\u6539\u8fdb\u8be5\u5de5\u5177\uff0c\u53ef\u4ee5\u5728 github itlackey\/cassi \u4e0a\u627e\u5230 cassi \u5b58\u50a8\u5e93\u3002<\/p>\n<h2> \u5361\u897f\u7684\u4e0b\u4e00\u6b65\u662f\u4ec0\u4e48\uff1f <\/h2>\n<p>cassi \u7684\u8bde\u751f\u662f\u4e3a\u4e86\u89e3\u51b3\u6211\u76ee\u524d\u9762\u4e34\u7684\u95ee\u9898\u3002\u73b0\u5728\u6211\u53ef\u4ee5\u8f7b\u677e\u751f\u6210\u56e2\u961f\u6240\u9700\u7684\u6587\u6863\uff0c\u6211\u4eec\u53ef\u4ee5\u5f00\u59cb\u4e13\u6ce8\u4e8e\u6dfb\u52a0\u66f4\u591a\u529f\u80fd\u4ee5\u8fdb\u4e00\u6b65\u6539\u8fdb\u6211\u4eec\u7684\u5de5\u4f5c\u6d41\u7a0b\u3002\u4ee5\u4e0b\u662f\u6211\u6b63\u5728\u8003\u8651\u6dfb\u52a0\u7684\u4e00\u4e9b\u529f\u80fd\uff1a<\/p>\n<ul>\n<li> <strong>11ty starter kit<\/strong> &#8211; \u9884\u914d\u7f6e\u7684 11ty \u9879\u76ee\uff0c\u5176\u4e2d\u5305\u542b cassi\uff0c\u5e76\u9884\u914d\u7f6e\u4e3a\u4ece cassi \u521b\u5efa\u7684\u6587\u4ef6\u751f\u6210\u6837\u5f0f\u6307\u5357\u3002<\/li>\n<li> <strong>\u6b63\u786e\u7684 cli<\/strong> \u5141\u8bb8\u4f7f\u7528 cassigenerate styles\/*.css &#8211;output-dir docs \u7b49\u8bed\u6cd5\u6765\u751f\u6210\u6587\u6863\uff0ccassi download http:\/\/some.site \u4ece url \u4e0b\u8f7d css \u6587\u4ef6\uff0c\u6216\u8005 cassi build \u5230\u4f7f\u7528 11ty \u751f\u6210\u98ce\u683c\u6307\u5357\u3002<\/li>\n<li> <strong>\u589e\u91cf\u66f4\u65b0<\/strong> &#8211; \u6dfb\u52a0\u903b\u8f91\u4ee5\u5141\u8bb8 cassi \u786e\u5b9a\u6dfb\u52a0\/\u4fee\u6539\u4e86\u54ea\u4e9b css\uff0c\u5e76\u76f8\u5e94\u5730\u6dfb\u52a0\/\u66f4\u65b0 markdown \u6587\u6863\u3002<\/li>\n<li> <strong>\u6837\u5f0f\u5206\u7ec4<\/strong> &#8211; \u5141\u8bb8\u7528\u6237\u5c06 css \u89c4\u5219\u5206\u7ec4\u4e3a\u7c7b\u522b\u6216\u90e8\u5206\uff0c\u4ee5\u4fbf\u4e8e\u5bfc\u822a\u3002<\/li>\n<\/ul>\n<h2> \u6700\u540e\u7684\u60f3\u6cd5 <\/h2>\n<p>css \u6587\u6863\u4e0d\u4e00\u5b9a\u662f\u4e00\u4e2a\u624b\u52a8\u4e14\u8017\u65f6\u7684\u8fc7\u7a0b\u3002 <strong>cassi<\/strong> \u53ef\u4ee5\u5feb\u901f\u751f\u6210\u4e30\u5bcc\u7684\u3001\u57fa\u4e8e markdown \u7684\u6587\u6863\uff0c\u6613\u4e8e\u4f7f\u7528\u3001\u96c6\u6210\u548c\u81ea\u5b9a\u4e49\u3002<\/p>\n<p><strong>\u4f60\u89c9\u5f97\u600e\u4e48\u6837\uff1f<\/strong>cassi \u5bf9\u4f60\u7684\u9879\u76ee\u6709\u7528\u5417\uff1f\u8bf7\u5728\u4e0b\u9762\u7684\u8bc4\u8bba\u4e2d\u544a\u8bc9\u6211\uff01<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fCassi: An AI-Powered CSS Style Guide Generator\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cassi\uff1a\u4eba\u5de5\u667a\u80fd\u9a71\u52a8\u7684 \u52a9\u624b cassi \u662f\u4e00\u6b3e\u4eba\u5de5\u667a\u80fd\u9a71\u52a8\u7684\u5de5\u5177\uff0c\u65e8\u5728\u4ece\u73b0\u6709 css \u6587\u4ef6\u751f\u6210\u57fa\u4e8e markdown \u7684\u6587\u6863\u3002\u5b83\u5229\u7528 \u6a21\u578b\u751f\u6210\u6709\u5173\u6bcf\u4e2a css \u89c4\u5219\u7684\u6709\u610f\u4e49\u7684\u4fe1\u606f\u3002\u6b64\u8fc7\u7a0b\u4f7f\u8bb0\u5f55\u590d\u6742\u6837\u5f0f\u8868\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002 \u8bb0\u5f55\u5927\u578b css \u9879\u76ee\u7684\u6311\u6218 \u5904\u7406\u5177\u6709\u5927\u91cf css \u89c4\u5219\uff08\u53ef\u80fd\u5206\u6563\u5728\u591a\u4e2a\u6587\u4ef6\u4e2d\uff09\u7684\u9879\u76ee\u53ef\u80fd\u5177\u6709\u6311\u6218\u6027\u3002\u73b0\u6709\u5de5\u5177\u901a\u5e38\u4e13\u6ce8\u4e8e\u7ec4\u4ef6\u5e93\uff0c\u9700\u8981\u5728\u89c4\u5219\u4e2d\u6dfb\u52a0\u6ce8\u91ca\uff0c\u6216\u8005\u5df2\u7ecf\u8fc7\u65f6\uff0c\u5bfc\u81f4\u96be\u4ee5\u6709\u6548\u8bb0\u5f55\u539f\u59cb css \u6837\u5f0f\u3002 \u6211\u6784\u5efa\u4e86 cassi \u901a\u8fc7\u5206\u6790\u73b0\u6709 css \u6587\u4ef6\u5e76\u4e3a\u6bcf\u4e2a\u89c4\u5219\u751f\u6210\u57fa\u4e8e markdown \u7684\u6587\u6863\u6765\u89e3\u51b3\u6b64\u95ee\u9898\u3002 \u5361\u897f\u7684\u4e3b\u8981\u7279\u70b9 \u8fd9\u5c31\u662f cassi \u6210\u4e3a\u5f3a\u5927\u5de5\u5177\u7684\u539f\u56e0\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u672c\u5730\u6216\u4e91\u7aef\u4eba\u5de5\u667a\u80fd\u96c6\u6210 \u5728\u672c\u5730\u4f7f\u7528\u5f00\u6e90\u6a21\u578b\u6216\u8fde\u63a5\u5230\u6258\u7ba1 ai \u670d\u52a1\uff0c\u4f8b\u5982 openai \u6216 anthropic \u6a21\u578b\u3002 \u57fa\u4e8e markdown \u7684\u6587\u6863\u8f93\u51fa \u751f\u6210\u4e30\u5bcc\u7684\u3001\u57fa\u4e8e markdown \u7684\u6587\u6863\uff0c\u5e76\u5305\u542b 11ty \u517c\u5bb9\u7684\u524d\u7aef\u5185\u5bb9\u3002 \u53ef\u5b9a\u5236\u6a21\u677f \u7f16\u8f91\u63d0\u793a\u6a21\u677f\u4ee5\u6839\u636e\u60a8\u7684\u9700\u8981\u5b9a\u5236\u8f93\u51fa\u3002 \u65e0\u7f1d\u96c6\u6210 markdown \u8f93\u51fa\u53ef\u8f7b\u677e\u4f7f\u7528 11ty \u6216\u5176\u4ed6\u6587\u6863\u5e73\u53f0\u7b49\u5de5\u5177\u3002 \u5361\u897f\u7684\u5de5\u4f5c\u539f\u7406 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-28420","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28420"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28420\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}