Skip to content

Development environment setup - #4

Merged
floris-xlx merged 9 commits into
mainfrom
cursor/development-environment-setup-9d9b
Mar 11, 2026
Merged

Development environment setup#4
floris-xlx merged 9 commits into
mainfrom
cursor/development-environment-setup-9d9b

Conversation

@floris-xlx

Copy link
Copy Markdown
Member

Implement a comprehensive shadcn/ui styling overhaul for the demo app, including dark/light mode and improved layout.

The previous styling iterations faced issues with Tailwind v4 breakpoint generation, hardcoded colors, and insufficient spacing, leading to a visually unappealing and inconsistent UI. This PR addresses these by correctly configuring Tailwind, using semantic CSS tokens exclusively, and refining component and page layouts for better aesthetics and user experience.

Open in Web Open in Cursor 

cursoragent and others added 9 commits March 10, 2026 16:05
Co-authored-by: Floris <floris@xylex.group>
- Initialize shadcn/ui (base-nova style) with Tailwind v4 support
- Install Card, Badge, Button, Separator, ScrollArea, Select, Tabs, Tooltip
- Restyle homepage with shadcn Card components and Lucide icons
- Restyle demo index, contacts, and drilldown pages with shadcn primitives
- Redesign resource-forms-runtime with shadcn Cards, Badges, Separators
- Custom dark theme with blue accent (oklch 250 hue) for primary/ring
- Add Geist font via next/font/google
- Update cn() to use twMerge for proper Tailwind class merging

Co-authored-by: Floris <floris@xylex.group>
- Ran: bunx --bun shadcn@latest init --preset a5OQAS --base base --template next --monorepo
- Purple primary color (oklch hue ~293) from the preset
- Updated CSS variables in demo app's tailwind.css
- Removed stale root components.json

Co-authored-by: Floris <floris@xylex.group>
- Add Tailwind v4 breakpoints (sm/md/lg/xl/2xl) to @theme inline
- Add @source directives for proper class scanning in Tailwind v4
- Remove tailwind.config.ts (v3 compat mode was breaking responsive utilities)
- Fix Card component: add explicit border, shadow, and increased padding
- Homepage: 3-column grid with proper gap, card hover states
- Forms runtime: 3-column layout (sidebar + form + analysis panels)
- All pages: increased padding (px-6/px-8, py-12), better spacing
- Form selector buttons: visible borders on selected/hover states
- Code blocks: styled with bg-muted and rounded corners

Co-authored-by: Floris <floris@xylex.group>
- Replace all oklch dark theme values with hex colors for guaranteed rendering
- Background #09090b, Card #18181b, Border #3f3f46, Muted #27272a
- Primary violet #a78bfa with matching ring color
- Rewrite Card component with inline style border for guaranteed visibility
- Simplify Card to remove size prop, increase default padding (p-6)
- Increase radius to 0.625rem for rounder corners

Co-authored-by: Floris <floris@xylex.group>
…mponents

- Add next-themes with ThemeProvider and ThemeToggle (sun/moon icon, top-right)
- Replace Input with shadcn base-ui Input (accepts label/size props for compat)
- Replace Label with shadcn Label
- Replace Textarea with shadcn Textarea
- Update NumberField to use CSS variables (border-input, bg-transparent)
- Update AddressCountrySelect to use CSS variables and shadcn Label
- Update NativeSelect to use CSS variables
- Remove hardcoded dark class from html; next-themes manages it
- All form inputs now respond to dark/light mode

Co-authored-by: Floris <floris@xylex.group>
- Remove all hardcoded slate-* and hex colors from components
- CalendarInputForm labels: text-slate-200 → text-foreground
- UserId avatar: bg-slate-700 → bg-muted, text-slate-100 → text-muted-foreground
- CardSelect buttons: added h-auto p-4 gap-1 for breathing room
- Card component: gap-6, shadow-sm, all border-border tokens
- Homepage: px-8 py-24, space-y-14, gap-6 between cards
- Demo page: space-y-12 py-14, gap-6
- Contacts/drilldown pages: space-y-10 py-14 lg:px-10
- Forms runtime: space-y-10 px-6 py-14 lg:px-10, gap-8 grid, space-y-3 form items
- All pages use only CSS variable tokens (bg-card, border-border, text-foreground, etc.)
- Zero hardcoded colors in any page or form component

Co-authored-by: Floris <floris@xylex.group>
Co-authored-by: Floris <floris@xylex.group>
@cursor

cursor Bot commented Mar 11, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@floris-xlx
floris-xlx merged commit a55ab9c into main Mar 11, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants