From 99243d4206341afa0e23138d51b4a2421ca89bf7 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Tue, 17 Mar 2026 17:44:09 +0800 Subject: [PATCH] =?UTF-8?q?[STYLE]=20=E7=B5=B1=E4=B8=80=E5=85=A8=E7=AB=99?= =?UTF-8?q?=E6=AC=A1=E8=A6=81=E8=B3=87=E8=A8=8A=E5=AD=97=E9=AB=94=E8=A6=8F?= =?UTF-8?q?=E7=AF=84=E4=B8=A6=E6=9B=B4=E6=96=B0=20UI=20Skill=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .agents/skills/ui-minimal-luxury/SKILL.md | 19 +++++++++++++++++++ .../basic-settings/machines/index.blade.php | 12 ++++++------ .../payment-configs/index.blade.php | 12 ++++++------ .../views/admin/companies/index.blade.php | 10 +++++----- .../admin/data-config/accounts.blade.php | 12 ++++++------ .../views/admin/permission/roles.blade.php | 18 +++++++++--------- resources/views/layouts/admin.blade.php | 2 +- 7 files changed, 52 insertions(+), 33 deletions(-) diff --git a/.agents/skills/ui-minimal-luxury/SKILL.md b/.agents/skills/ui-minimal-luxury/SKILL.md index be418ad..5b43012 100644 --- a/.agents/skills/ui-minimal-luxury/SKILL.md +++ b/.agents/skills/ui-minimal-luxury/SKILL.md @@ -319,6 +319,25 @@ y items-center gap-2">... ``` + +## 10. 字體與技術資訊規範 (Typography & Technical Data) + +為了確保全站「次要資訊」具備極一致的高級感,必須遵守以下「機台標竿」規範: + +### 核心樣式級別 (Core Typography Scale) +| 資訊類型 | 客戶/配置名稱 (標題) | 技術代碼 (ID, SN, Code) | 分隔符號 (•) | +| :--- | :--- | :--- | :--- | +| **字體族** | `font-sans` (Plus Jakarta Sans) | `font-mono` (微縮型單雙格) | `font-sans` | +| **尺寸** | `text-base` | `text-xs` (不可使用 10px) | `text-xs` | +| **字重** | `font-extrabold` (800) | `font-bold` (700) | `font-bold` | +| **字距** | `tracking-tight` (-0.02em) | `tracking-widest` (最寬) | `tracking-normal` | +| **格式** | 保持原始名稱 | `uppercase` (強制大寫) | N/A | +| **色彩** | `slate-900` / `slate-100` | `slate-500` / `slate-400` | `slate-300` / `slate-700` | + +### 實作禁忌與準則 +- **禁止斜體 (No Italics)**: 名稱欄位嚴禁附帶 `italic`(特別是標題或配置名稱),保持直挺專業感。 +- **作用範圍 (Mono Scoping)**: `font-mono` 僅限作用於「純英文/數字」的代碼。Email 或分隔點必須回歸 `font-sans` 以確保圓潤。 +- **權重載入 (Font Weights)**: 確保 HTML Header 載入了 `800` 與 `900` 權重,避免瀏覽器模擬出的假粗體。 --- > [!IMPORTANT] > **開發新功能前,必須確認 `app.css` 中的 `.btn-luxury-*` 系列組件是否滿足需求。** diff --git a/resources/views/admin/basic-settings/machines/index.blade.php b/resources/views/admin/basic-settings/machines/index.blade.php index ba254af..6190c22 100644 --- a/resources/views/admin/basic-settings/machines/index.blade.php +++ b/resources/views/admin/basic-settings/machines/index.blade.php @@ -58,14 +58,14 @@
- +
{{ $machine->name }}
- {{ $machine->serial_no }} + {{ $machine->serial_no }} - {{ $machine->machineModel->name ?? '--' }} + {{ $machine->machineModel->name ?? '--' }}
@@ -90,17 +90,17 @@
- {{ $machine->card_reader_seconds ?? 0 }}s / No.{{ $machine->card_reader_no ?? '--' }} + {{ $machine->card_reader_seconds ?? 0 }}s / No.{{ $machine->card_reader_no ?? '--' }}
- + {{ $machine->company->name ?? __('None') }} @foreach($paymentConfigs as $config) - +
- +
-
{{ $config->name }}
-
ID: {{ str_pad($config->id, 5, '0', STR_PAD_LEFT) }}
+
{{ $config->name }}
+
ID: {{ str_pad($config->id, 5, '0', STR_PAD_LEFT) }}
- + {{ $config->company->name ?? __('None') }}
{{ $config->updated_at->format('Y/m/d H:i') }} - {{ $config->updated_at->diffForHumans() }} + {{ $config->updated_at->diffForHumans() }}
diff --git a/resources/views/admin/companies/index.blade.php b/resources/views/admin/companies/index.blade.php index 786c87f..d9f702b 100644 --- a/resources/views/admin/companies/index.blade.php +++ b/resources/views/admin/companies/index.blade.php @@ -64,7 +64,7 @@
@@ -123,7 +123,7 @@
+ stroke-width="2.5"> @@ -133,7 +133,7 @@ class="text-base font-extrabold text-slate-800 dark:text-slate-100 group-hover:text-cyan-600 dark:group-hover:text-cyan-400 transition-colors">{{ $company->name }} {{ + class="text-xs font-mono font-bold text-slate-500 dark:text-slate-400 mt-0.5 tracking-widest uppercase">{{ $company->code }}
@@ -141,12 +141,12 @@ @if($company->status) + class="inline-flex items-center px-3 py-1 rounded-full text-[11px] font-black bg-emerald-500/10 text-emerald-500 border border-emerald-500/20 tracking-widest uppercase"> {{ __('Active') }} @else + class="inline-flex items-center px-3 py-1 rounded-full text-[11px] font-black bg-slate-100 dark:bg-slate-800 text-slate-400 dark:text-slate-500 border border-slate-200 dark:border-slate-700 tracking-widest uppercase"> {{ __('Disabled') }} @endif diff --git a/resources/views/admin/data-config/accounts.blade.php b/resources/views/admin/data-config/accounts.blade.php index 5bf2f44..21e9f69 100644 --- a/resources/views/admin/data-config/accounts.blade.php +++ b/resources/views/admin/data-config/accounts.blade.php @@ -103,14 +103,14 @@
{{ $user->name }} - {{ $user->username }} @if($user->email) • {{ $user->email }} @endif + {{ $user->username }} @if($user->email) • {{ $user->email }} @endif
@if(auth()->user()->isSystemAdmin()) @if($user->company) - {{ $user->company->name }} + {{ $user->company->name }} @else {{ __('SYSTEM') }} @endif @@ -118,19 +118,19 @@ @endif @foreach($user->roles as $role) - + {{ $role->name }} @endforeach @if($user->status) - + {{ __('Active') }} @else - + {{ __('Disabled') }} @endif @@ -164,7 +164,7 @@ @else - {{ __('Protected') }} + {{ __('Protected') }} @endif diff --git a/resources/views/admin/permission/roles.blade.php b/resources/views/admin/permission/roles.blade.php index bc73f72..efcdf23 100644 --- a/resources/views/admin/permission/roles.blade.php +++ b/resources/views/admin/permission/roles.blade.php @@ -93,12 +93,12 @@
@forelse($role->permissions->take(6) as $permission) - {{ __(str_replace('menu.', '', $permission->name)) }} + {{ __(str_replace('menu.', '', $permission->name)) }} @empty - {{ __('No permissions') }} + {{ __('No permissions') }} @endforelse @if($role->permissions->count() > 6) - +{{ $role->permissions->count() - 6 }} + +{{ $role->permissions->count() - 6 }} @endif
@@ -228,12 +228,12 @@ class="peer w-5 h-5 rounded-lg border-2 border-slate-200 dark:border-slate-700 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-0 bg-transparent transition-all checked:border-cyan-500"> -
-
- -
- {{ __($pure_name) }} -
+
+
+ +
+ {{ __($pure_name) }} +
@endforeach diff --git a/resources/views/layouts/admin.blade.php b/resources/views/layouts/admin.blade.php index 0491e15..3fddd33 100644 --- a/resources/views/layouts/admin.blade.php +++ b/resources/views/layouts/admin.blade.php @@ -10,7 +10,7 @@ - +