Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Buridan UI Expert Rules

You are an expert at Buridan UI and Reflex. When building applications or helping users with this design system, follow these strict rules:

## 1. Component Management
- **Never copy-paste component code manually.**
- **Always use the CLI**: Run `buridan add <name>` to add components.
- This ensures dependencies like `twmerge`, `CoreComponent`, and icon providers are correctly included.

## 2. Project Structure
- Components MUST be imported from the `components/` directory in the user's project root.
- Icons: `from components.icons.hugeicon import hi`.
- UI: `from components.ui.button import button`.

## 3. Theming
- Buridan UI uses OKLCH variables defined in `assets/globals.css`.
- Use semantic Tailwind classes: `bg-background`, `text-primary`, `text-muted-foreground`.
- To change themes, use `buridan init --preset <ID>`.

## 4. Architectural Patterns
- **Layouts**: Use the `@layout_decorator` from `app.templates.layout` to wrap pages.
- **State**: Use `reflex.experimental.ClientStateVar` for client-side interactions.
- **Consistency**: Maintain the masonry grid layout style for dashboards (`columns-[320px]`).

## 5. Helpful Commands
- `buridan list`: See available components.
- `buridan add button input badge`: Add multiple components.
- `buridan init --preset b0`: Initialize with a theme.
54 changes: 27 additions & 27 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: Deploy Reflex App
# name: Deploy Reflex App

on:
push:
branches:
- main
# on:
# push:
# branches:
# - main

jobs:
deploy:
name: Deploy to Reflex Cloud
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# jobs:
# deploy:
# name: Deploy to Reflex Cloud
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv pip install --system -e .
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install uv
# uv pip install --system -e .

- name: Generate Markdown Files
run: python -m scripts.generate_markdown
# - name: Generate Markdown Files
# run: python -m scripts.generate_markdown

- name: Deploy to Reflex
id: deploy
run: |
reflex deploy --app-name ui --project ${{ secrets.REFLEX_PROJECT_ID }} --token ${{ secrets.REFLEX_AUTH_TOKEN }} --no-interactive
# - name: Deploy to Reflex
# id: deploy
# run: |
# reflex deploy --app-name ui --project ${{ secrets.REFLEX_PROJECT_ID }} --token ${{ secrets.REFLEX_AUTH_TOKEN }} --no-interactive
84 changes: 42 additions & 42 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
name: Development Preview

on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main

jobs:
preview:
name: Run Dev Preview
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv pip install --system -e .

- name: Generate Markdown Files
run: |
python -m scripts.generate_markdown

- name: Run Reflex App (prod env)
run: |
nohup reflex run --env prod > reflex.log 2>&1 &
sleep 15
echo "Reflex app started for PR #${{ github.event.pull_request.number }}"

- name: Deploy to UI-Dev
id: deploy
run: |
reflex deploy --app-name ui-dev --project ${{ secrets.REFLEX_PROJECT_ID }} --token ${{ secrets.REFLEX_AUTH_TOKEN }} --no-interactive
# name: Development Preview

# on:
# pull_request:
# types: [opened, synchronize, reopened]
# branches:
# - main

# jobs:
# preview:
# name: Run Dev Preview
# runs-on: ubuntu-latest

# steps:
# - name: Checkout code
# uses: actions/checkout@v3

# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.x"

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install uv
# uv pip install --system -e .

# - name: Generate Markdown Files
# run: |
# python -m scripts.generate_markdown

# - name: Run Reflex App (prod env)
# run: |
# nohup reflex run --env prod > reflex.log 2>&1 &
# sleep 15
# echo "Reflex app started for PR #${{ github.event.pull_request.number }}"

# - name: Deploy to UI-Dev
# id: deploy
# run: |
# reflex deploy --app-name ui-dev --project ${{ secrets.REFLEX_PROJECT_ID }} --token ${{ secrets.REFLEX_AUTH_TOKEN }} --no-interactive
21 changes: 11 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
.states
*.db
.web
assets/external/
*.py[cod]
*.db
.DS_Store
.idea
.venv
.web
# Python-generated files
__pycache__/
assets/external/
.vercel
*.py[oc]
build/
dist/
buridan_ui.egg-info
.reflex_ui_cache/
src/components/
assets/docs/-components/
wheels/
*.egg-info

# Virtual environments
.venv
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
Loading