From 9c01b1db6db3ef1340cb66bacee89e82c5ffec0e Mon Sep 17 00:00:00 2001 From: Ronan Berder Date: Fri, 20 Jun 2025 06:18:30 +0800 Subject: [PATCH] Removing mentions of Alpine.js (RIP) --- README.md | 2 +- docs/src/_data/site.js | 2 +- docs/src/_includes/partials/sidebar.njk | 12 ++---------- docs/src/assets/styles.css | 16 ++++++++++++++++ docs/src/introduction.njk | 4 ++-- packages/cli/README.md | 1 - src/jinja/toast.html.jinja | 3 +-- src/nunjucks/toast.njk | 3 +-- 8 files changed, 24 insertions(+), 19 deletions(-) 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]" } ) %}
diff --git a/docs/src/assets/styles.css b/docs/src/assets/styles.css index 6091525..0ffbf23 100644 --- a/docs/src/assets/styles.css +++ b/docs/src/assets/styles.css @@ -466,6 +466,9 @@ .min-h-\[350px\] { min-height: 350px; } + .w-\(--sidebar-mobile-width\) { + width: var(--sidebar-mobile-width); + } .w-1\/2 { width: calc(1/2 * 100%); } @@ -502,6 +505,9 @@ .w-\[271px\] { width: 271px; } + .w-\[calc\(100vw-24px\)\] { + width: calc(100vw - 24px); + } .w-full { width: 100%; } @@ -1273,6 +1279,16 @@ margin-left: calc(var(--spacing) * 4); } } + .md\:w-\(--sidebar-width\) { + @media (width >= 48rem) { + width: var(--sidebar-width); + } + } + .md\:w-\[239px\] { + @media (width >= 48rem) { + width: 239px; + } + } .md\:max-w-\[200px\] { @media (width >= 48rem) { max-width: 200px; diff --git a/docs/src/introduction.njk b/docs/src/introduction.njk index 5c18d11..e8cf408 100644 --- a/docs/src/introduction.njk +++ b/docs/src/introduction.njk @@ -25,7 +25,7 @@ toc:

That's where Basecoat comes in. It gives you modern, accessible components with the simplicity of plain HTML and Tailwind. Basecoat is: