|
1 | | -# Patternfly Seed |
| 1 | +# PatternFly React Seed - Compass Theme Branch |
2 | 2 |
|
3 | | -Patternfly Seed is an open source build scaffolding utility for web apps. The primary purpose of this project is to give developers a jump start when creating new projects that will use patternfly. A secondary purpose of this project is to serve as a reference for how to configure various aspects of an application that uses patternfly, webpack, react, typescript, etc. |
| 3 | +This is the **Compass theme branch** of PatternFly React Seed - a specialized build scaffolding utility designed for creating modern, AI-optimized web applications with PatternFly's new **Compass theme** and **Generative UI** components. |
4 | 4 |
|
5 | | -Out of the box you'll get an app layout with chrome (header/sidebar), routing, build pipeline, test suite, and some code quality tools. Basically, all the essentials. |
| 5 | +## π― What is This Branch? |
6 | 6 |
|
7 | | -<img width="1058" alt="Out of box dashboard view of patternfly seed" src="https://github.com/user-attachments/assets/0227b366-67f1-4df8-8d92-e8e95d6e08b3" /> |
| 7 | +The `compass_theme` branch is a **seed/template for building Compass-based UIs** that leverage PatternFly's latest generative UI capabilities, including: |
| 8 | + |
| 9 | +- π¨ **Glass-morphism effects** and modern visual treatments |
| 10 | +- π€ **AI-optimized components** with thinking indicators and AI content highlighting |
| 11 | +- π **Compass layout components** designed for agentic development |
| 12 | +- π **React Flow integration** for pipelines and topology visualizations |
| 13 | +- β¨ **New design tokens** for gradients, animations, and background effects |
| 14 | + |
| 15 | +Out of the box you'll get a Compass-themed app layout with chrome (header/sidebar), routing, build pipeline, test suite, and code quality tools - all optimized for AI-assisted development with tools like Cursor and Claude Code. |
| 16 | + |
| 17 | +<img width="1400" alt="Compass theme dashboard with glass effects and modern dark UI" src="./seed_screenshot.png" /> |
| 18 | + |
| 19 | +> **Note**: This branch uses **unpublished Compass components** from PatternFly's staging site. See the [Compass Theme Guide](./ai-documentation/guidelines/compass-theme-guide.md) for complete documentation. |
8 | 20 |
|
9 | 21 | ## Quick-start |
10 | 22 |
|
11 | 23 | ```bash |
| 24 | +# Clone the repository and checkout the compass_theme branch |
12 | 25 | git clone https://github.com/patternfly/patternfly-react-seed |
13 | 26 | cd patternfly-react-seed |
| 27 | +git checkout compass_theme |
| 28 | + |
| 29 | +# Install dependencies and start the dev server |
14 | 30 | npm install && npm run start:dev |
15 | 31 | ``` |
| 32 | + |
| 33 | +The app will start on `http://localhost:9000` with the Compass theme and all generative UI features enabled. |
| 34 | + |
| 35 | +## Compass Theme Features |
| 36 | + |
| 37 | +This branch includes PatternFly's Compass enablement features: |
| 38 | + |
| 39 | +### New Component Variants |
| 40 | +- **`isPlain`** - Transparent cards, data lists, and tables for glass-morphism effects |
| 41 | +- **`isVertical`** - Vertical action lists for sidebars |
| 42 | +- **`isNav`** - Optimized tab styling for top navigation |
| 43 | +- **`isCircle`** - Circular buttons and menu toggles |
| 44 | +- **`isPill`** - Rounded, floating drawer panels |
| 45 | +- **`isThinking`** - Pulsing animation for AI processing states |
| 46 | +- **`hasAiIndicator`** - Gradient borders for AI-related content |
| 47 | + |
| 48 | +### Design Tokens |
| 49 | +- Glass-like visual effects |
| 50 | +- Background and border gradients |
| 51 | +- Smooth animations |
| 52 | +- Background image support |
| 53 | + |
| 54 | +### React Flow Integration |
| 55 | +Build pipelines, topology views, and workflow diagrams with React Flow + PatternFly. See [staging.patternfly.org/ai/generative-uis/react-flow](https://staging.patternfly.org/ai/generative-uis/react-flow). |
| 56 | + |
| 57 | +π **Full documentation**: [Compass Theme Guide](./ai-documentation/guidelines/compass-theme-guide.md) |
| 58 | + |
16 | 59 | ## Development scripts |
17 | 60 | ```sh |
18 | 61 | # Install development/build dependencies |
@@ -105,19 +148,28 @@ If you are using an AI-enabled IDE, the AI agent will automatically leverage the |
105 | 148 |
|
106 | 149 | By following these rulesβeither directly or via your AI assistantβyou'll ensure your app is maintainable, accessible, and consistent with PatternFly best practices. |
107 | 150 |
|
108 | | -### π¨ Compass Theme Branch |
| 151 | +### π¨ Working with Compass Components |
| 152 | + |
| 153 | +This `compass_theme` branch uses **unpublished Compass theme components** from PatternFly's **Generative UI** initiative. These cutting-edge components are optimized for AI-assisted development and generative interfaces. |
| 154 | + |
| 155 | +**π Documentation Sources:** |
109 | 156 |
|
110 | | -This branch (`compass_theme`) uses **Compass theme components** from PatternFly's **Generative UI** initiative. These components are optimized for AI-assisted development but are **not yet published** on the main PatternFly website. |
| 157 | +| Component Type | Documentation Location | |
| 158 | +|----------------|------------------------| |
| 159 | +| π¨ **Compass/Generative UI** | [staging.patternfly.org/ai/generative-uis](https://staging.patternfly.org/ai/generative-uis/overview) | |
| 160 | +| π **React Flow** | [staging.patternfly.org/ai/generative-uis/react-flow](https://staging.patternfly.org/ai/generative-uis/react-flow) | |
| 161 | +| π **Standard PatternFly** | [patternfly.org](https://www.patternfly.org/) | |
| 162 | +| π **Complete Guide** | [Compass Theme Guide](./ai-documentation/guidelines/compass-theme-guide.md) | |
111 | 163 |
|
112 | | -**Important for AI agents and developers:** |
113 | | -- π Compass component docs are on **[staging.patternfly.org/ai/generative-uis](https://staging.patternfly.org/ai/generative-uis/overview)** |
114 | | -- π Standard PatternFly components remain on **[patternfly.org](https://www.patternfly.org/)** |
115 | | -- π See [Compass Theme Guide](./ai-documentation/guidelines/compass-theme-guide.md) for complete instructions |
| 164 | +**β οΈ Important Notes:** |
| 165 | +- Compass components are **not yet on the main PatternFly site** - use staging site |
| 166 | +- PatternFly MCP server won't have Compass component docs yet |
| 167 | +- Always check the staging site first for Compass-specific features |
116 | 168 |
|
117 | | -**AI agents should:** |
118 | | -1. Check staging.patternfly.org for Compass/Generative UI components first |
119 | | -2. Fall back to patternfly.org for standard components |
120 | | -3. Note that PatternFly MCP won't have Compass docs yet |
| 169 | +**π€ For AI Agents:** |
| 170 | +- Use [staging.patternfly.org/ai/generative-uis](https://staging.patternfly.org/ai/generative-uis/overview) for Compass components |
| 171 | +- Use [patternfly.org](https://www.patternfly.org/) for standard components |
| 172 | +- See [Quick Reference](./ai-documentation/COMPASS-QUICK-REF.md) for decision trees |
121 | 173 |
|
122 | 174 | ## Multi environment configuration |
123 | 175 | This project uses [dotenv-webpack](https://www.npmjs.com/package/dotenv-webpack) for exposing environment variables to your code. Either export them at the system level like `export MY_ENV_VAR=http://dev.myendpoint.com && npm run start:dev` or simply drop a `.env` file in the root that contains your key-value pairs like below: |
|
0 commit comments