diff --git a/README.md b/README.md index 89af2ac..5c72c55 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A collection of modern UI components built with Tailwind CSS that works with any ## Features -- **Lightweight**: no runtime JS, just CSS and tiny Alpine.js scripts for the more interactive components. +- **Lightweight**: no runtime JS, just CSS and a tiny bit of vanilla JavaScript for the more interactive components. - **Easy to use**: add classes like `btn` or `input` and you're done. - **Framework-agnostic**: works with any backend or frontend stack. - **Accessible**: components follow accessibility best practices. diff --git a/docs/src/_data/site.js b/docs/src/_data/site.js index ee150c2..80a2f93 100644 --- a/docs/src/_data/site.js +++ b/docs/src/_data/site.js @@ -1,7 +1,7 @@ export default { title: "Basecoat", description: "A components library built with Tailwind CSS that works with any web stack.", - keywords: ["components", "component library", "component system", "UI", "UI kit", "shadcn", "shadcn/ui", "Tailwind CSS", "Tailwind", "CSS", "HTML", "Jinja", "Nunjucks", "Alpine.js"], + keywords: ["components", "component library", "component system", "UI", "UI kit", "shadcn", "shadcn/ui", "Tailwind CSS", "Tailwind", "CSS", "HTML", "Jinja", "Nunjucks", "JS", "JavaScript", "vanilla JS", "vanilla JavaScript"], author: { name: "Ronan Berder", x: "@hunvreus" diff --git a/docs/src/_includes/partials/sidebar.njk b/docs/src/_includes/partials/sidebar.njk index be4af76..47e7d44 100644 --- a/docs/src/_includes/partials/sidebar.njk +++ b/docs/src/_includes/partials/sidebar.njk @@ -17,16 +17,8 @@ "data-keep-mobile-sidebar-open": "" }, popover_attrs={ - "data-side": "right", - "data-align": "end", - "class": "w-80", - "x-init": " - if (window.innerWidth < 768) { - $el.setAttribute('data-side', 'top'); - $el.setAttribute('data-align', 'start'); - $el.classList.add('w-[271px]'); - } - " + "data-side": "top", + "class": "w-[271px] md:w-[239px]" } ) %}
That's where Basecoat comes in. It gives you modern, accessible components with the simplicity of plain HTML and Tailwind. Basecoat is:
btn or input and you're done.Add a single CSS file to your Tailwind setup. Use components by dropping in simple classes like btn, form, or card.
Some components (like modals or dropdowns) use a tiny bit of Alpine.js. You can skip it if you don't need interactivity.
+Some components (like modals or dropdowns) use a tiny bit of vanilla JavaScript. You can skip it if you don't need interactivity.
There's also a CLI to help you scaffold components and get set up fast.
diff --git a/packages/cli/README.md b/packages/cli/README.md index 0281c8a..7e25e2a 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -8,7 +8,6 @@ This package provides a Command Line Interface (CLI) to help you quickly scaffol - For the components to function correctly, your project should have: - [Tailwind CSS](https://tailwindcss.com/docs/installation) installed and configured. - The `basecoat-css` package installed and imported (or `basecoat.css` manually added). - - [Alpine.js](https://alpinejs.dev/docs/installation) installed and initialized, as Basecoat components rely on it for interactivity. ## Usage diff --git a/src/jinja/toast.html.jinja b/src/jinja/toast.html.jinja index ccfa2ba..3d62047 100644 --- a/src/jinja/toast.html.jinja +++ b/src/jinja/toast.html.jinja @@ -4,8 +4,7 @@ @param id {string} [optional] [default="toaster"] - Unique identifier for the toaster container. @param toasts {array} [optional] - An array of toast objects to render initially. See thetoast() macro for more details.
- @param main_attrs {object} [optional] - Additional HTML attributes for the main toaster container div.
- @param is_fragment {boolean} [optional] [default=false] - If true, renders only the toast elements with hx-swap-oob="beforeend", suitable for htmx responses. Skips script and template inclusion.
+ @param attrs {object} [optional] - Additional HTML attributes for the main toaster container div.
#}
{% macro toaster(
id="toaster",
diff --git a/src/nunjucks/toast.njk b/src/nunjucks/toast.njk
index 674ce31..2d34102 100644
--- a/src/nunjucks/toast.njk
+++ b/src/nunjucks/toast.njk
@@ -4,8 +4,7 @@
@param id {string} [optional] [default="toaster"] - Unique identifier for the toaster container.
@param toasts {array} [optional] - An array of toast objects to render initially. See the toast() macro for more details.
- @param main_attrs {object} [optional] - Additional HTML attributes for the main toaster container div.
- @param is_fragment {boolean} [optional] [default=false] - If true, renders only the toast elements with hx-swap-oob="beforeend", suitable for htmx responses. Skips script and template inclusion.
+ @param attrs {object} [optional] - Additional HTML attributes for the main toaster container div.
#}
{% macro toaster(
id="toaster",