@flusys/ng-ui 6.2.2 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -108,7 +108,19 @@ PRESET_NAMES; // ['Aura', 'Lara', 'Nora']
108
108
  PRESETS["Nora"]; // ThemePreset — border radius, shadows, focus ring, card + select-button tokens
109
109
  ```
110
110
 
111
- Each `ThemePreset` controls border radius scale, shadow scale, transition duration, focus ring style, card tokens, and select-button tokens. `Aura` is soft/rounded, `Lara` is Bootstrap-like, `Nora` is sharp/high-contrast with solid highlights.
111
+ Each `ThemePreset` is a whole design language, not a palette. It controls the radius scale, border width, shadow scale, transition duration, focus ring, **control density** (field and button padding), button weight and tracking, overlay shape and elevation, card tokens, shell chrome (sidebar / topbar / active menu item), and select-button tokens.
112
+
113
+ | Preset | Language |
114
+ | ------ | --------------------------------------------------------------------------------------------------- |
115
+ | `Aura` | Soft and elevated — rounded controls, compact rows, diffuse shadows, hairline borders. The default. |
116
+ | `Lara` | Structural and flat — tighter corners, noticeably taller rows, shadows replaced by linework, bolder type. |
117
+ | `Nora` | Sharp and brutalist — zero radius, 2px borders, no motion, solid highlights, heaviest type. |
118
+
119
+ Preset tokens reach the UI through three routes, and a new token should use one of them rather than being read directly in a component:
120
+
121
+ 1. **Tailwind's own scales** — `@theme inline` in `themes/tailwind.scss` maps `--radius-*`, `--shadow-*` and `--default-border-width` onto preset tokens, so every existing `rounded-*`, `shadow-*` and `border` utility in the app is already preset-driven.
122
+ 2. **The `f-*` control utilities** — `f-field` / `f-field-sm` / `f-field-lg` / `f-field-compact` / `f-field-shape`, `f-btn` / `f-btn-sm` / `f-btn-lg` / `f-btn-icon*` / `f-btn-round`, and `f-overlay` / `f-overlay-shape`. Form fields and buttons use these instead of fixed padding and radius classes; that is what lets a preset change how dense the UI reads. Never hard-code a control's padding or radius.
123
+ 3. **`--f-*` custom properties** — read directly by the layout SCSS for shell chrome. The applier also stamps `data-f-preset="<name>"` on `<html>` for the rare shell rule that has to know the design language as a whole rather than one token's value.
112
124
 
113
125
  ### Palettes
114
126