improvement: logo and name svgs updated and replaced.
This commit is contained in:
12
.cursor/rules/frontend-assets.mdc
Normal file
12
.cursor/rules/frontend-assets.mdc
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description: Brand and FDI SVG sources live under frontend/src/assets, not public/
|
||||
globs: frontend/src/assets/**,frontend/src/components/ui/shared/Brand*.tsx,frontend/public/**,frontend/scripts/**
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
# Frontend static assets
|
||||
|
||||
- **Brand** (wordmark + logo): `frontend/src/assets/brand/*.svg`. Inline in `BrandWordmark` / `BrandLogo` / `BrandLockup` so fills can use `currentColor`. After editing an SVG, run `frontend/scripts/build-brand-components.mjs`.
|
||||
- **Favicon:** `frontend/src/app/icon.svg` (hex fills — `currentColor` does not work in tab icons).
|
||||
- **FDI tooth sources:** `frontend/src/assets/fdi/`. The chart uses inlined paths in `realisticToothAssets.ts`; regenerate with `frontend/scripts/extract-tooth-svgs.mjs`.
|
||||
- **`public/`** is only for files that must be fetched by URL (e.g. og images). Do not put themeable brand/FDI SVGs there — `<img src>` cannot inherit `currentColor`.
|
||||
Reference in New Issue
Block a user