mirror of
https://github.com/hunvreus/basecoat.git
synced 2026-11-12 13:18:22 +00:00
Cleaned up packages, updated documentation
This commit is contained in:
@@ -46,7 +46,7 @@ toc:
|
||||
<div class="prose">
|
||||
<p>Add Basecoat to your Tailwind CSS file.</p>
|
||||
</div>
|
||||
{% set code %}npm install hunvreus/basecoat{% endset %}
|
||||
{% set code %}npm install basecoat-css{% endset %}
|
||||
{{ code_block(code, "bash") }}
|
||||
<div class="prose">
|
||||
<p>Alternatively, you can directly <a href="https://github.com/hunvreus/basecoat/blob/main/src/css/basecoat.css" target="_blank">copy the <code>basecoat.css</code> file</a> into your project.</p>
|
||||
@@ -55,7 +55,7 @@ toc:
|
||||
<li class="step mt-8">
|
||||
<h3 class="mb-4 scroll-m-20 font-semibold tracking-tight" id="install-css-import"><a href="#install-css-import">Import basecoat in your CSS</a></h3>
|
||||
{% set code %}@import "tailwindcss";
|
||||
@import "basecoat";{% endset %}
|
||||
@import "basecoat-css";{% endset %}
|
||||
{{ code_block(code, "css") }}
|
||||
</li>
|
||||
<li class="step mt-8">
|
||||
@@ -97,7 +97,7 @@ toc:
|
||||
<div class="prose">
|
||||
<p>If you're using Nunjucks or Jinja, you can use the CLI to install the CSS and macros for any of the complex components(e.g. <a href="/components/dialog">Dialog</a>). It will copy the JS and `<code>.html.jinja</code> or <code>.njk</code> macros into your code.</p>
|
||||
<p>For example, to add the Dialog component, run:</p>
|
||||
{% set code %}npx github:hunvreus/basecoat/packages/cli add dialog{% endset %}
|
||||
{% set code %}npx basecoat-cli add dialog{% endset %}
|
||||
{{ code_block(code, "bash") }}
|
||||
<p>You will be asked to confirm the template engine and destination directory for the Javascript and macros.</p>
|
||||
</div>
|
||||
@@ -140,7 +140,7 @@ toc:
|
||||
<li>
|
||||
Import the theme in your CSS file:
|
||||
{% set code %}@import "tailwindcss";
|
||||
@import "basecoat";
|
||||
@import "basecoat-css";
|
||||
@import "theme.css";{% endset %}
|
||||
{{ code_block(code, "css") }}
|
||||
</li>
|
||||
|
||||
Generated
+1
-1
@@ -4215,7 +4215,7 @@
|
||||
"inquirer": "^12.6.0"
|
||||
},
|
||||
"bin": {
|
||||
"cli": "dist/index.js"
|
||||
"basecoat-cli": "dist/index.js"
|
||||
}
|
||||
},
|
||||
"packages/css": {
|
||||
|
||||
Reference in New Issue
Block a user