Getting Started
Step-by-step guide to setting up your modern Angular environment with Tailwind CSS and Spartan UI.
Install the Angular Command Line Interface (CLI) global on your machine.
Ensure you have a recent version of Node.js (LTS recommended) installed.
Initialize your application using the CLI. This will set up the workspace and project files.
Follow the prompts to configure your project. We recommend enabling SSR (Server Side Rendering) for better performance and SEO.
Tailwind CSS is the primary styling engine used by Spartan UI.
Now, add the power of Spartan UI to your project using the official CLI.
1. Install the Spartan CLI (Dev Dependency):
2. Initialize Spartan in your project:
(Note: Use 'npx nx g @spartan-ng/cli:init' if you are using an Nx Workspace)
3. Add UI components as needed:
The CLI will prompt you to select components. Each component includes:
- Brain primitive: Headless logic (installed to node_modules)
- Helm styles: Visual styling (copied to your project)
- All necessary dependencies automatically managed
Explore the full documentation and interactive examples:
spartan.ng