BaseLayer
Re-usable multi part components built on React Aria and TailwindCSS.
claude mcp add --transport stdio zwgnr-baselayer node path/to/server.js \ --env BASELAYER_ENV="development"
How to use
BaseLayer is a React component library designed to accelerate UI development by combining accessible, focusable components (via React Aria) with the styling flexibility of Tailwind CSS. It provides a collection of UI primitives and design utilities that you can drop into modern React applications to build consistent, accessible interfaces quickly. Use the library to compose grids, forms, menus, modals, and other common UI patterns, all while leveraging AI-powered tooling ideas and best practices baked into the component ecosystem.
To use BaseLayer in your project, install the package from npm, import the components you need, and render them within your React app. Start by setting up Tailwind CSS (if you haven’t already) so you can style components with the library’s utility classes. The library is intended to work well with typical React tooling (Vite, Create React App, Next.js, etc.), allowing you to mix BaseLayer components with your own custom components and business logic.
How to install
Prerequisites:
- Node.js and npm (or pnpm/yarn) installed on your machine
- A React project setup (Vite, CRA, Next.js, etc.)
- Install the library from npm:
npm install zwgnr-baselayer
- (Optional) If you don’t already have Tailwind CSS configured, set up Tailwind in your project. Example for a typical React project:
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Configure tailwind.config.js and include the base, components, and utilities in your CSS:
@tailwind base;
@tailwind components;
@tailwind utilities;
- Import and use BaseLayer components in your React code:
import { Button } from 'zwgnr-baselayer';
function App() {
return (
<div className="p-4">
<Button onClick={() => alert('Hello')}>Click Me</Button>
</div>
);
}
export default App;
- (Optional) If the library exposes theming or ARIA-driven components, follow the docs to wire up any providers or context as needed for accessibility and styling consistency.
Additional notes
Notes:
- The library emphasizes accessibility through React Aria primitives; ensure your app’s global styles don’t override focus styles unintentionally.
- Tailwind CSS is a common pairing; make sure your build pipeline includes Tailwind PostCSS processing.
- If you encounter styling conflicts, review the library's component API for className overrides and slot props.
- Environment variables (if any) are typically used for theming or feature flags; refer to the library’s docs for supported vars and defaults.
- If the library evolves, periodically update to capture new components and accessibility improvements.
Related MCP Servers
mcp-language
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
tool-ui
UI components for AI interfaces
robloxstudio
Create agentic AI workflows in ROBLOX Studio
kodit
👩💻 MCP server to index external repositories
daisyui
🌼 A token-friendly local MCP server for DaisyUI component documentation using their public llms.txt.
gtm
An MCP server for Google Tag Manager. Connect it to your LLM, authenticate once, and start managing GTM through natural language.