Skip to content

Commit f03c316

Browse files
committed
chore: update skill
1 parent 685f06a commit f03c316

3 files changed

Lines changed: 23 additions & 23 deletions

File tree

skills/maizzle/references/COMPONENTS.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -297,40 +297,39 @@ Props:
297297

298298
## Hr
299299

300-
Horizontal rule. Renders `<div role="separator">` with default 1px height, `#cbd5e1` background, 24px vertical margin.
300+
Horizontal rule. Renders `<div role="separator">` with defaults `h-px leading-px my-6 bg-slate-300`.
301301

302-
Customize the color with a Tailwind `bg-*` class or inline `background-color` — there is **no** `color` prop.
303-
304-
Props:
305-
- `height` (string | number, default `'1px'`).
306-
- `spaceY` (string | number, default `'24px'`) — vertical margin.
307-
- `spaceX` (string | number) — horizontal margin.
308-
- `top`, `bottom`, `left`, `right` (string | number) — override individual sides.
302+
Override defaults by passing the matching utility class:
303+
- Height: pass `h-*` or `leading-*`.
304+
- Margins: pass `m-*`, `mx-*`, `my-*`, `mt-*`, `mb-*`, `ml-*`, `mr-*`.
305+
- Color: pass `bg-*`.
309306

310307
```vue
311308
<Hr />
312-
<Hr class="bg-blue-200" height="2" />
313-
<Hr space-y="32px" />
314-
<Hr top="16" bottom="32" />
309+
<Hr class="bg-blue-200 h-0.5" />
310+
<Hr class="my-8" />
311+
<Hr class="mt-4 mb-8" />
312+
<Hr class="h-[3px]" />
315313
```
316314

317315
## Spacer
318316

319317
Vertical or horizontal spacer.
320318

321-
- Vertical: `<div role="separator">` with `line-height` (and `mso-line-height-alt` when `msoHeight` is set). Without `height`, collapses to a zero-width joiner (line-break).
319+
- Vertical: `<div role="separator">` containing a zero-width joiner. Size with `h-*` or `leading-*`.
322320
- Horizontal: `<i>` with em-space chars and `mso-font-width` for accurate Outlook sizing.
323321

324322
Props:
325323
- `type` (`'vertical'` | `'horizontal'`, default `'vertical'`).
326-
- `height` (string | number) — vertical only.
327324
- `width` (string | number, default `16`) — horizontal only, in px.
328-
- `msoHeight` (string | number) — Outlook override via `mso-line-height-alt`.
329-
- `outlookFallback` (bool, default `true`).
325+
- `outlookFallback` (bool, default `true`) — horizontal `mso-font-width`.
326+
327+
Vertical sizing is class-driven: pass `leading-*` directly, or `h-*`. For Outlook adjustments, use `mso-line-height-alt-*` utilities.
330328

331329
```vue
332-
<Spacer height="32px" />
333-
<Spacer height="40px" mso-height="32px" />
330+
<Spacer class="leading-8" />
331+
<Spacer class="h-10" />
332+
<Spacer class="leading-10 mso-line-height-alt-8" />
334333
<Spacer type="horizontal" :width="24" />
335334
```
336335

skills/maizzle/references/CONVERT-REACT-EMAIL.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Vue templates need a colon prefix to bind dynamic values (`:href="resetUrl"`); s
3535
| `<Button href="..." className="... block text-center no-underline box-border">` | `<Button href="..." class="...">` | Drop `box-border block text-center no-underline` — handled internally. Use `class` for colors. Variants: `solid` (default), `outline`, `ghost`, `link`. Optional `align`, `icon`, `icon-position`. |
3636
| `<Link>` | `<Link>` | Defaults to `no-underline`. |
3737
| `<Img src="..." width="150">` | `<Img src="..." width="150">` | `width` is required. Adds `dark-src` and `motion-src` for variant images via `<picture>`. |
38-
| `<Hr>` | `<Hr>` | Maizzle's `<Hr>` is a styled `<div>` with default 1px gray bg + 24px vertical margin. Override with Tailwind classes (`bg-gray-200 my-8`) or props: `height`, `space-y`, `space-x`, `top`, `bottom`, `left`, `right`. Drop React Email's `border-solid border-*`. |
38+
| `<Hr>` | `<Hr>` | Maizzle's `<Hr>` is a styled `<div>` with defaults `h-px leading-px my-6 bg-slate-300`. Override via class: `bg-*`, `m*-*`, and `h-*` or `leading-*`. Drop React Email's `border-solid border-*`. |
3939
| `<CodeBlock code language="js" theme={dracula}>` | `<CodeBlock code="..." language="js" theme="github-light">` | Theme is a Shiki theme name (string), not an imported object. |
4040
| `<CodeInline>` | `<CodeInline>` | Same. |
4141
| `<Markdown>{content}</Markdown>` | `<Markdown>content</Markdown>` | Also accepts `src` for `.md` files. |
@@ -46,7 +46,7 @@ Vue templates need a colon prefix to bind dynamic values (`:href="resetUrl"`); s
4646
| Component | Purpose |
4747
|---|---|
4848
| `<Layout>` | Full document scaffold: `html` + `head` (charset/viewport/format-detection meta, MSO font reset, Tailwind import, Inter font, color-scheme meta) + `body` + `<div role="article">`. Replaces the `Html > Tailwind > Head + Body` chain. Props: `lang`, `dir`, `body-class`, `aria-label`, `double-head`, `outlook-fallback`. |
49-
| `<Spacer>` | Vertical or horizontal spacer. Props: `type` (`vertical`/`horizontal`), `height`, `width` (default 16), `mso-height`. Horizontal renders MSO-safe `mso-font-width` `<i>`. |
49+
| `<Spacer>` | Vertical or horizontal spacer. Props: `type` (`vertical`/`horizontal`), `width` (default 16, horizontal-only), `outlook-fallback`. Vertical sizing via class: `leading-*` or `h-*`; Outlook fine-tune via `mso-line-height-alt-*` utilities. Horizontal renders MSO-safe `mso-font-width` `<i>`. |
5050
| `<WithUrl>` | Scoped URL rewriting (base URL, UTM params) for descendant `href`/`src` attributes. |
5151
| `<NoWidows>` | Prevents orphaned last words in text. |
5252
| `<Outlook>` / `<NotOutlook>` | Render content only in (or only outside) Outlook. Outlook supports version filtering. |
@@ -182,8 +182,7 @@ export default defineConfig({
182182

183183
```vue
184184
<Hr class="bg-gray-200 my-5" />
185-
<!-- or with props -->
186-
<Hr space-y="20px" />
185+
<Hr class="h-0.5 bg-blue-300" />
187186
```
188187

189188
### 9. Preheader

skills/maizzle/references/STYLING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,12 @@ Keep contrast above WCAG AA (4.5:1 for body text).
142142

143143
## Spacing & Dividers
144144

145-
- `<Spacer height="32px" />` for vertical space (uses `mso-line-height-alt` on Outlook).
146-
- `<Hr />` for visible separators — defaults to 1 px / `#cbd5e1` / 24 px vertical margin. Override color via Tailwind `bg-*`:
145+
146+
- `<Spacer class="leading-8" />` for vertical space. Pass `leading-*` or `h-*`. For Outlook fine-tune use `mso-line-height-alt-*`.
147+
- `<Hr />` for visible separators — defaults `h-px leading-px my-6 bg-slate-300`. Pass `h-*`, `bg-*`, `m*-*` to override:
147148
```vue
148149
<Hr class="bg-gray-200 my-8" />
150+
<Hr class="h-0.5 bg-indigo-300" />
149151
```
150152

151153
## Responsive

0 commit comments

Comments
 (0)