Skip to content

UI: Island panel component with light/dark mode system colors#65

Merged
lebduska merged 4 commits into
mainfrom
copilot/implement-island-panel-style
Dec 21, 2025
Merged

UI: Island panel component with light/dark mode system colors#65
lebduska merged 4 commits into
mainfrom
copilot/implement-island-panel-style

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 21, 2025

📝 Popis

Implementace "Island" panel komponenty s moderní estetikou – zaoblené rohy, jemný stín, automatická podpora light/dark režimu přes CSS proměnné.

Komponenta:

  • IslandPanel.tsx – hlavní komponenta s header (title, subtitle, actions) a content oblastí
  • Využívá CSS variables (--island-bg, --island-text, atd.) bez hard-coded brand barev
  • Automatický přepínání light/dark přes @media (prefers-color-scheme)

Demo:

  • IslandPanelDemo.tsx – ukázka 5 variant panelu (basic, with title, with actions, nested content)
  • Nový "demo" tab v aplikaci pro vizuálníověření

Styling:

/* Light mode */
--island-bg: rgb(255 255 255);
--island-text: rgb(23 23 23);
--island-shadow: rgba(0 0 0 / 0.08);

/* Dark mode (prefers-color-scheme: dark) */
--island-bg: rgb(30 30 30);
--island-text: rgb(250 250 250);
--island-shadow: rgba(0 0 0 / 0.3);

Použití:

<IslandPanel 
  title="Settings" 
  subtitle="Configure preferences"
  actions={<button>Save</button>}
>
  <p>Content here</p>
</IslandPanel>

Screenshots:

Light mode:
Light mode

Dark mode:
Dark mode

🔗 Související Issue

Fixes #52 (partial)

✅ Checklist

  • Kód odpovídá standardům projektu
  • Změny jsou zdokumentovány (README.md v ui/)
  • Manuální testování proběhlo úspěšně
  • Build v CI prošel (TypeScript compile OK)

🧪 Jak otestovat

cd blendmate-app
npm install
npm run dev

Otevři app, klikni na "DEMO" tab. Změň system light/dark mode preference a ověř automatické přepnutí barev panelů.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.4/linux64/chrome-headless-shell-linux64.zip
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js (http block)
  • https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.4/linux64/chrome-linux64.zip
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>UI: Island panel style (light/dark) using default tokens</issue_title>
<issue_description>Fixes part of #52.

Implement the “Island” panel aesthetic (soft rounded panels, subtle shadow, modern feel) in both light/dark.

Acceptance:

  • Panel component with:
    • rounded corners
    • subtle shadow
    • header with title + actions
    • content area
  • Uses CSS variables / system colors where possible
  • Works in light + dark (prefers-color-scheme)

Notes:

  • No hard-coded brand palette. Default vibes like modern OS UI.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 21, 2025 20:31
Co-authored-by: lebduska <11066249+lebduska@users.noreply.github.com>
Co-authored-by: lebduska <11066249+lebduska@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement Island panel style for light and dark modes UI: Island panel component with light/dark mode system colors Dec 21, 2025
Copilot AI requested a review from lebduska December 21, 2025 20:36
@lebduska lebduska marked this pull request as ready for review December 21, 2025 21:26
@lebduska lebduska merged commit c698282 into main Dec 21, 2025
1 check passed
@lebduska lebduska deleted the copilot/implement-island-panel-style branch December 21, 2025 22:03
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.

UI: Island panel style (light/dark) using default tokens EPIC: Hybrid Lab UI (Island + IDE workspace)

2 participants