# va-themes/florial

Florial — flower-subscription product theme. Covers the three Florial client
environments (`savitarna`, `pardavimai`, `operacijos`) and is switch-ready for
the public `web` env (Protera stays the web default until Phase 6).

- **Namespace:** `ViartasThemes\Florial\`
- **Provider:** `FlorialThemeServiceProvider` (extends `BaseThemeServiceProvider`)
- **Brand tokens:** `Resources/assets/css/variables.css` (CSS custom properties only)
- **Fonts:** Playfair Display, self-hosted variable woff2 (`Resources/assets/fonts/`)
- **Layout:** `theme::layouts.app` (`Resources/views/layouts/app.blade.php`)
- **DB rows:** seeded by `FlorialThemeSeeder` (savitarna/pardavimai/operacijos =
  default; web = switch-ready, `is_default=false`).

## Build (per-package Vite)

Node 18+ required.

```bash
cd packages/va-themes/florial
npm ci
npm run build          # → public/build/assets/florial.{css,js} + woff2 (tracked)
cd -
php artisan themes:publish-assets   # copies public/build → public/vendor/va-themes/florial/build (gitignored)
```

The `florial.{css,js}` bundle is emitted for the `savitarna.*` / `pardavimai.*` /
`operacijos.*` route patterns via the host `@assets` directive.

## Notes

- Brand tokens are **reconstructed** from the task spec because the design source
  `packages/viartas-design/ofisai/` is currently absent. Token NAMES are the
  stable contract — sync values 1:1 when the source returns.
- Flat radius (`--bs-border-radius: 0`) — magazine/editorial look.
