You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/rules/logical-naming.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,3 +69,31 @@ onStartClick () {
69
69
this.$emit('alpha-clicked');
70
70
},
71
71
```
72
+
73
+
## Description Prose
74
+
75
+
**Identifiers stay logical. Descriptions become bilingual.**
76
+
77
+
When writing a JSDoc comment, slot description, or doc-page prose that mentions a logical direction, always add the LTR-default physical equivalent as an `(aka <physical>)` parenthetical. This helps consumers mid-migration anchor the logical term to a physical one without requiring them to look it up.
- Parenthetical is lowercase: `(aka top)` not `(AKA top)`
91
+
- Placed inside the sentence, before the period: `… side (aka top). Overrides…`
92
+
- Bridge the first mention in a JSDoc block only — leave subsequent `Overrides …` sentences as-is
93
+
- Drop legacy qualifiers: `(top/bottom in horizontal writing mode)` → `(aka top/bottom)`, `inLTR` → delete
94
+
95
+
## Combinator Filter
96
+
97
+
The Combinator prop/slot search uses `packages/combinator/src/lib/logical_aliases.js` as its canonical alias map. In `option_bar.vue`, `tokenizeName` splits each prop/slot name on camelCase boundaries and recognizes compound tokens (`block-start`, `inline-end`, etc.) derived from the alias map keys. `getSearchCorpus` expands those tokens via `logical_aliases.js` to build a precomputed search corpus. `filterCorpora` matches the user's query against that corpus. Searching `"top"` finds `borderWidthBlockStart`, `paddingBlockStart`, etc. automatically.
98
+
99
+
**When adding new logical-naming vocabulary** (e.g. a new axis concept beyond `block`/`inline`), add the new token and its physical aliases to `logical_aliases.js`. No per-component or per-prop changes needed — the filter picks it up automatically for any component that uses the new token in its prop/slot names.
Copy file name to clipboardExpand all lines: apps/dialtone-documentation/docs/components/prose.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,7 @@ Unordered and ordered lists can be freely nested inside each other, with each le
205
205
206
206
### Blockquote
207
207
208
-
Blockquotes are visually offset with an inline-start border and muted color, supporting multi-paragraph content, nesting, and attributed citations.
208
+
Blockquotes are visually offset with an inline-start (aka left) border and muted color, supporting multi-paragraph content, nesting, and attributed citations.
> Avoid applying margins directly. Lean toward using layout components like [Stack](/components/stack/) for consistent and maintainable spacing **between** elements.
10
10
11
-
Use `d-m-{stop}` to set margin using spacing token stops. The number references the spacing token (`d-m-100` = `--dt-spacing-100` = 8px). Logical property aliases are also available: `d-mbs-{stop}` (margin-block-start), `d-mbe-{stop}` (margin-block-end), `d-mis-{stop}` (margin-inline-start), `d-mie-{stop}` (margin-inline-end).
11
+
Use `d-m-{stop}` to set margin using spacing token stops. The number references the spacing token (`d-m-100` = `--dt-spacing-100` = 8px). Logical property aliases are also available: `d-mbs-{stop}` (margin-block-start, aka top), `d-mbe-{stop}` (margin-block-end, aka bottom), `d-mis-{stop}` (margin-inline-start, aka left), `d-mie-{stop}` (margin-inline-end, aka right).
12
12
13
13
## Add Margin to All Sides
14
14
@@ -67,7 +67,7 @@ Auto margins allow an element to fill a remaining space within an object. This i
67
67
68
68
## Classes
69
69
70
-
Margins can be added using `d-m-{stop}` or directional classes like `d-m{t|r|b|l|y|x}-{stop}`. Logical property aliases are also available: `d-mbs-{stop}` (margin-block-start), `d-mbe-{stop}` (margin-block-end), `d-mis-{stop}` (margin-inline-start), `d-mie-{stop}` (margin-inline-end).
70
+
Margins can be added using `d-m-{stop}` or directional classes like `d-m{t|r|b|l|y|x}-{stop}`. Logical property aliases are also available: `d-mbs-{stop}` (margin-block-start, aka top), `d-mbe-{stop}` (margin-block-end, aka bottom), `d-mis-{stop}` (margin-inline-start, aka left), `d-mie-{stop}` (margin-inline-end, aka right).
71
71
72
72
It is highly recommended to use the [DtStack component](/components/stack.md) prior to applying margins individually.
Copy file name to clipboardExpand all lines: apps/dialtone-documentation/docs/utilities/spacing/padding.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Use `d-p-{stop}` to set padding using spacing token stops. The number references
47
47
48
48
## Classes
49
49
50
-
Padding can be added to an element by using `d-p-{stop}` or a directional class like `d-p{t|r|b|l|y|x}-{stop}`. Logical property aliases are also available: `d-pbs-{stop}` (padding-block-start), `d-pbe-{stop}` (padding-block-end), `d-pis-{stop}` (padding-inline-start), `d-pie-{stop}` (padding-inline-end).
50
+
Padding can be added to an element by using `d-p-{stop}` or a directional class like `d-p{t|r|b|l|y|x}-{stop}`. Logical property aliases are also available: `d-pbs-{stop}` (padding-block-start, aka top), `d-pbe-{stop}` (padding-block-end, aka bottom), `d-pis-{stop}` (padding-inline-start, aka left), `d-pie-{stop}` (padding-inline-end, aka right).
51
51
52
52
It is highly recommended to use the [DtBox component](/components/box.md) before applying padding individually.
0 commit comments