Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/rules/vue-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ paths:

## API Style

- **New components**: Composition API with `<script setup lang="ts">`. Use `defineProps`, `defineEmits`, `defineSlots`.
- **New components**: Composition API with `<script setup lang="ts">`. Use `defineProps`, `defineEmits`, `defineSlots`. Always include `defineOptions({ name: 'DtComponentName' })` β€” without it, vue-docgen infers the name from the filename (lowercase, no prefix), breaking the combinator, component-documentation.json, and Vue devtools.
- **Existing components**: Options API with `compatConfig: { MODE: 3 }`. Do NOT convert unless explicitly asked.

## Props
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@
</dt-text>
<div
v-else-if="color.property === 'border-color'"
:class="['d-d-inline-flex d-p-50 d-bar-pill', { 'd-bgc-contrast': color.variable.includes('inverted') }]"
:class="[
'd-d-inline-flex d-p-50 d-bar-pill',
{ 'd-bgc-contrast': color.variable.includes('inverted') },
]"
>
<div
:style="{ borderColor: `var(--${color.variable})` }"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,44 @@ a.header-anchor {
}
}

code {
.d-docsite--paragraph &,
.d-docsite--unordered-list &,
.d-docsite--ordered-list &,
.d-docsite--list-element &,
.d-docsite--preview-header & {
font-size: 95%;
}
}

.d-docsite-article {
> table:not([class]) {
border: 1px solid var(--dt-color-border-subtle);
border-collapse: collapse;
margin: var(--dt-size-200) 0;
inline-size: 100%;

th {
font: var(--dt-text-label-sm);
color: var(--dt-color-foreground-secondary);
}

th, td {
text-align: start;
border: 1px solid var(--dt-color-border-subtle);
border-inline: 0;
padding: var(--dt-size-450);
}

code {
background-color: var(--dt-color-background-default);
padding: var(--dt-size-200);
font: var(--dt-text-code-xs);
}
}

}

.d-docsite--unordered-list,
.d-docsite--list-element,
.d-docsite--ordered-list {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ div[class*="language-"] {
}
}

code:not(.d-code--md, .d-code--sm, .d-prose *) {
padding: var(--dt-size-200) var(--dt-size-300);
color: var(--dt-color-blue-800);
background-color: var(--dt-color-surface-info);
border-radius: var(--dt-size-100);
user-select: all;
}

code[class*="language-"],
pre[class*="language-"] {
margin: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</h2>
</div>
<!-- eslint-disable-next-line vue/no-undef-components -->
<content />
<content class="d-docsite-article" />
</article>
<dt-stack
direction="row"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<template>
<aside class="dialtone-toc d-of-auto d-py-800 d-ps-fixed d-d-none xl:d-d-block">
<dt-text as="h2" kind="headline" :size="100" strength="semibold" tone="secondary" class="d-tt-uppercase d-px-100 d-pbe-50">
<dt-text
as="h2"
kind="headline"
:size="100"
strength="semibold"
tone="secondary"
class="d-tt-uppercase d-px-100 d-pbe-50"
>
On this page
</dt-text>
<nav>
Expand Down
4 changes: 4 additions & 0 deletions apps/dialtone-documentation/docs/_data/site-nav.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@
"text": "Presence",
"link": "/components/presence.html"
},
{
"text": "Prose",
"link": "/components/prose.html"
},
{
"text": "Radio",
"link": "/components/radio.html"
Expand Down
Loading
Loading