@writedocs/generator 0.4.6 → 0.4.8

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.
Files changed (48) hide show
  1. package/astro.config.mjs +37 -3
  2. package/package.json +1 -1
  3. package/src/components/Accordion.astro +22 -5
  4. package/src/components/AppIcon.astro +5 -0
  5. package/src/components/Callout.astro +15 -5
  6. package/src/components/Card.astro +64 -13
  7. package/src/components/Check.astro +13 -0
  8. package/src/components/Color.astro +61 -0
  9. package/src/components/ColorItem.astro +93 -0
  10. package/src/components/ColorRow.astro +39 -0
  11. package/src/components/Columns.astro +11 -0
  12. package/src/components/Frame.astro +10 -1
  13. package/src/components/GitHubRepo.astro +156 -0
  14. package/src/components/Hint.astro +50 -4
  15. package/src/components/Panel.astro +11 -0
  16. package/src/components/ParamField.astro +25 -0
  17. package/src/components/Parameter.astro +41 -4
  18. package/src/components/Prompt.astro +143 -0
  19. package/src/components/ResponseField.astro +18 -0
  20. package/src/components/Step.astro +22 -3
  21. package/src/components/Steps.astro +22 -0
  22. package/src/components/Tab.astro +7 -1
  23. package/src/components/Tabs.astro +27 -4
  24. package/src/components/Tile.astro +65 -0
  25. package/src/components/Tooltip.astro +13 -0
  26. package/src/components/Tree.astro +213 -0
  27. package/src/components/TreeFile.astro +17 -0
  28. package/src/components/TreeFolder.astro +28 -0
  29. package/src/components/Update.astro +171 -0
  30. package/src/components/View.astro +214 -0
  31. package/src/components/Visibility.astro +11 -0
  32. package/src/components/compound.ts +21 -0
  33. package/src/components/index.ts +12 -0
  34. package/src/content.config.ts +68 -2
  35. package/src/layout/components/NavTree.astro +34 -0
  36. package/src/layout/styles/base.css +12 -0
  37. package/src/lib/config.ts +1412 -1306
  38. package/src/lib/inline-markdown.js +29 -0
  39. package/src/lib/mdx-inject-builtins.js +20 -2
  40. package/src/lib/mdx-mintlify.js +99 -0
  41. package/src/lib/mdx-title-anchor-ids.js +7 -2
  42. package/src/lib/shiki-code-block.js +140 -26
  43. package/src/lib/visibility.js +29 -0
  44. package/src/pages/[...slug].astro +110 -7
  45. package/src/pages/[...slug].md.ts +7 -1
  46. package/src/pages/llms-full.txt.ts +5 -1
  47. package/src/pages/llms.txt.ts +3 -0
  48. package/src/styles/global.css +10 -0
@@ -0,0 +1,65 @@
1
+ ---
2
+ // Mintlify's <Tile> - a visual preview (the slot, usually an image or a
3
+ // light/dark image pair) on a patterned background, with a title and
4
+ // description under it. Usually laid out in a <Columns> grid. `title`
5
+ // takes inline Markdown (`code`, **bold**, *italic*), like Mintlify's.
6
+ import { inlineMarkdown } from '../lib/inline-markdown.js';
7
+
8
+ interface Props {
9
+ href?: string;
10
+ title?: string;
11
+ description?: string;
12
+ }
13
+ const { href, title, description } = Astro.props as Props;
14
+ const Tag = href ? 'a' : 'div';
15
+ ---
16
+ <Tag class="wd-tile" href={href}>
17
+ <div class="wd-tile-preview"><slot /></div>
18
+ {title && <div class="wd-tile-title" set:html={inlineMarkdown(title)} />}
19
+ {description && <div class="wd-tile-description">{description}</div>}
20
+ </Tag>
21
+ <style>
22
+ .wd-tile {
23
+ display: block;
24
+ text-decoration: none;
25
+ color: inherit;
26
+ }
27
+ /* Dotted pattern behind the preview, drawn from the theme's own border
28
+ color so it reads in both themes. */
29
+ .wd-tile-preview {
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ height: 10rem;
34
+ overflow: hidden;
35
+ border: 1px solid var(--wd-border);
36
+ border-radius: 0.6rem;
37
+ background-color: var(--wd-surface);
38
+ background-image: radial-gradient(var(--wd-border) 1px, transparent 1px);
39
+ background-size: 14px 14px;
40
+ transition: border-color 0.15s ease;
41
+ }
42
+ a.wd-tile:hover .wd-tile-preview {
43
+ border-color: var(--wd-primary);
44
+ }
45
+ .wd-tile-preview :global(img),
46
+ .wd-tile-preview :global(svg) {
47
+ max-width: 100%;
48
+ max-height: 100%;
49
+ object-fit: contain;
50
+ margin: 0;
51
+ }
52
+ .wd-tile-preview :global(p) {
53
+ display: contents;
54
+ }
55
+ .wd-tile-title {
56
+ margin-top: 0.6rem;
57
+ font-weight: 600;
58
+ color: var(--wd-text);
59
+ }
60
+ .wd-tile-description {
61
+ margin-top: 0.15rem;
62
+ font-size: 0.875rem;
63
+ color: var(--wd-text-muted);
64
+ }
65
+ </style>
@@ -0,0 +1,13 @@
1
+ ---
2
+ // Mintlify's <Tooltip tip headline cta href> - rendered by Hint.astro,
3
+ // which is the same inline hover bubble under writedocs' own name.
4
+ import Hint from './Hint.astro';
5
+ interface Props {
6
+ tip: string;
7
+ headline?: string;
8
+ cta?: string;
9
+ href?: string;
10
+ }
11
+ const props = Astro.props as Props;
12
+ ---
13
+ <Hint {...props}><slot /></Hint>
@@ -0,0 +1,213 @@
1
+ ---
2
+ // Mintlify's <Tree> (alias <FileTree>) - a file/folder tree built from
3
+ // <Tree.Folder> and <Tree.File> (TreeFolder.astro / TreeFile.astro,
4
+ // attached as properties in components/compound.ts), or from a Markdown
5
+ // list, which remarkMintlifyTreeLists (lib/mdx-mintlify.js) rewrites into
6
+ // those same elements at build time.
7
+ //
8
+ // Rendered as an ARIA tree. The script below adds Mintlify's documented
9
+ // keyboard navigation: Up/Down between visible items, Right to open a
10
+ // folder (or step into it), Left to close it (or step out to its parent),
11
+ // Home/End, Enter/Space to toggle, * to open every sibling folder, and
12
+ // type-ahead to jump to an item by its first letters.
13
+ //
14
+ // The highlight color is the `--tree-highlight` custom property, which a
15
+ // page can set on the tree itself: <Tree style={{ "--tree-highlight": "..." }}>.
16
+ interface Props {
17
+ style?: string | Record<string, string>;
18
+ class?: string;
19
+ className?: string;
20
+ }
21
+ const { style, class: className, className: mintlifyClassName } = Astro.props as Props;
22
+ ---
23
+ <ul class:list={['wd-tree', className, mintlifyClassName]} role="tree" style={style}><slot /></ul>
24
+ <script>
25
+ function initTrees(root: ParentNode) {
26
+ root.querySelectorAll<HTMLElement>('.wd-tree').forEach((tree) => {
27
+ if (tree.dataset.wdInit) return;
28
+ tree.dataset.wdInit = 'true';
29
+ const items = () => Array.from(tree.querySelectorAll<HTMLElement>('.wd-tree-item'));
30
+ const isFolder = (el: HTMLElement) => el.classList.contains('wd-tree-folder');
31
+ const isOpen = (el: HTMLElement) => el.getAttribute('aria-expanded') === 'true';
32
+ // Visible = not inside a closed folder.
33
+ const visible = () =>
34
+ items().filter((el) => {
35
+ let parent = el.parentElement?.closest<HTMLElement>('.wd-tree-folder');
36
+ while (parent && tree.contains(parent)) {
37
+ if (!isOpen(parent)) return false;
38
+ parent = parent.parentElement?.closest<HTMLElement>('.wd-tree-folder');
39
+ }
40
+ return true;
41
+ });
42
+ const setOpen = (el: HTMLElement, open: boolean) => {
43
+ if (!isFolder(el) || el.classList.contains('wd-tree-static')) return;
44
+ el.setAttribute('aria-expanded', String(open));
45
+ };
46
+ const focus = (el: HTMLElement | undefined) => {
47
+ if (!el) return;
48
+ items().forEach((i) => (i.tabIndex = -1));
49
+ el.tabIndex = 0;
50
+ el.focus();
51
+ };
52
+ const first = items()[0];
53
+ if (first) first.tabIndex = 0;
54
+
55
+ tree.addEventListener('click', (e) => {
56
+ const row = (e.target as HTMLElement).closest('.wd-tree-row');
57
+ const item = row?.parentElement as HTMLElement | null;
58
+ if (!item || !tree.contains(item)) return;
59
+ if (isFolder(item)) setOpen(item, !isOpen(item));
60
+ focus(item);
61
+ });
62
+
63
+ let typed = '';
64
+ let typedAt = 0;
65
+ tree.addEventListener('keydown', (e) => {
66
+ const current = (e.target as HTMLElement).closest<HTMLElement>('.wd-tree-item');
67
+ if (!current) return;
68
+ const list = visible();
69
+ const i = list.indexOf(current);
70
+ const parentFolder = current.parentElement?.closest<HTMLElement>('.wd-tree-folder');
71
+ switch (e.key) {
72
+ case 'ArrowDown':
73
+ focus(list[i + 1]);
74
+ break;
75
+ case 'ArrowUp':
76
+ focus(list[i - 1]);
77
+ break;
78
+ case 'ArrowRight':
79
+ if (isFolder(current) && !isOpen(current) && !current.classList.contains('wd-tree-static')) setOpen(current, true);
80
+ else if (isFolder(current) && isOpen(current)) focus(current.querySelector<HTMLElement>('.wd-tree-item') ?? undefined);
81
+ break;
82
+ case 'ArrowLeft':
83
+ if (isFolder(current) && isOpen(current) && !current.classList.contains('wd-tree-static')) setOpen(current, false);
84
+ else if (parentFolder && tree.contains(parentFolder)) focus(parentFolder);
85
+ break;
86
+ case 'Home':
87
+ focus(list[0]);
88
+ break;
89
+ case 'End':
90
+ focus(list[list.length - 1]);
91
+ break;
92
+ case 'Enter':
93
+ case ' ':
94
+ if (isFolder(current)) setOpen(current, !isOpen(current));
95
+ break;
96
+ case '*':
97
+ Array.from(current.parentElement?.children ?? [])
98
+ .filter((el): el is HTMLElement => el instanceof HTMLElement && isFolder(el))
99
+ .forEach((el) => setOpen(el, true));
100
+ break;
101
+ default:
102
+ if (e.key.length === 1 && /\S/.test(e.key) && !e.ctrlKey && !e.metaKey && !e.altKey) {
103
+ const now = Date.now();
104
+ typed = now - typedAt > 700 ? e.key.toLowerCase() : typed + e.key.toLowerCase();
105
+ typedAt = now;
106
+ const nameOf = (el: HTMLElement) =>
107
+ el.querySelector(':scope > .wd-tree-row .wd-tree-name')?.textContent?.toLowerCase() ?? '';
108
+ // A single letter looks past the current item; a longer
109
+ // prefix (typed quickly) keeps matching from it, so "pa"
110
+ // after "p" landed on page.tsx stays there.
111
+ const startAt = typed.length > 1 ? i : i + 1;
112
+ const ordered = [...list.slice(startAt), ...list.slice(0, startAt)];
113
+ const match = ordered.find((el) => nameOf(el).startsWith(typed));
114
+ if (match) focus(match);
115
+ break;
116
+ }
117
+ return;
118
+ }
119
+ e.preventDefault();
120
+ });
121
+ });
122
+ }
123
+ initTrees(document);
124
+ document.addEventListener('astro:page-load', () => initTrees(document));
125
+ </script>
126
+ <style is:global>
127
+ .wd-tree {
128
+ --wd-tree-accent: var(--tree-highlight, var(--wd-primary));
129
+ margin: 1.25rem 0;
130
+ padding: 0.6rem;
131
+ list-style: none;
132
+ border: 1px solid var(--wd-border);
133
+ border-radius: 0.6rem;
134
+ font-family: monospace;
135
+ font-size: 0.875rem;
136
+ }
137
+ .wd-tree .wd-tree-group {
138
+ margin: 0;
139
+ padding-left: 1.1rem;
140
+ list-style: none;
141
+ }
142
+ .wd-tree .wd-tree-item {
143
+ margin: 0;
144
+ padding: 0;
145
+ outline: none;
146
+ }
147
+ .wd-tree-folder[aria-expanded='false'] > .wd-tree-group {
148
+ display: none;
149
+ }
150
+ .wd-tree-row {
151
+ display: flex;
152
+ align-items: center;
153
+ gap: 0.4rem;
154
+ padding: 0.2rem 0.4rem;
155
+ border-radius: 0.35rem;
156
+ color: var(--wd-text);
157
+ cursor: default;
158
+ user-select: none;
159
+ }
160
+ .wd-tree-folder:not(.wd-tree-static) > .wd-tree-row {
161
+ cursor: pointer;
162
+ }
163
+ .wd-tree-row:hover,
164
+ .wd-tree-item:focus-visible > .wd-tree-row {
165
+ background: var(--wd-surface);
166
+ }
167
+ .wd-tree-item:focus-visible > .wd-tree-row {
168
+ box-shadow: inset 0 0 0 1px var(--wd-tree-accent);
169
+ }
170
+ .wd-tree-chevron {
171
+ width: 0.8rem;
172
+ flex-shrink: 0;
173
+ display: inline-flex;
174
+ justify-content: center;
175
+ }
176
+ .wd-tree-folder > .wd-tree-row > .wd-tree-chevron::before {
177
+ content: '';
178
+ width: 0.35rem;
179
+ height: 0.35rem;
180
+ border-right: 1.5px solid var(--wd-text-muted);
181
+ border-bottom: 1.5px solid var(--wd-text-muted);
182
+ transform: rotate(-45deg);
183
+ transition: transform 0.12s ease;
184
+ }
185
+ .wd-tree-folder[aria-expanded='true'] > .wd-tree-row > .wd-tree-chevron::before {
186
+ transform: rotate(45deg);
187
+ }
188
+ .wd-tree-static > .wd-tree-row > .wd-tree-chevron::before {
189
+ opacity: 0.35;
190
+ }
191
+ svg.wd-tree-icon {
192
+ width: 1em;
193
+ height: 1em;
194
+ flex-shrink: 0;
195
+ color: var(--wd-text-muted);
196
+ }
197
+ .wd-tree-folder[aria-expanded='true'] > .wd-tree-row > .wd-tree-icon-closed,
198
+ .wd-tree-folder[aria-expanded='false'] > .wd-tree-row > .wd-tree-icon-open {
199
+ display: none;
200
+ }
201
+ /* The highlighted item gets a tinted row; a highlighted folder also
202
+ tints the text of everything inside it, so the active path reads. */
203
+ .wd-tree-highlight > .wd-tree-row {
204
+ background: color-mix(in srgb, var(--wd-tree-accent) 14%, transparent);
205
+ color: var(--wd-tree-accent);
206
+ font-weight: 600;
207
+ }
208
+ .wd-tree-highlight > .wd-tree-row .wd-tree-icon,
209
+ .wd-tree-folder.wd-tree-highlight .wd-tree-row,
210
+ .wd-tree-folder.wd-tree-highlight .wd-tree-icon {
211
+ color: var(--wd-tree-accent);
212
+ }
213
+ </style>
@@ -0,0 +1,17 @@
1
+ ---
2
+ // Mintlify's <Tree.File name="..."> - see Tree.astro. `highlight` marks it
3
+ // as the active item.
4
+ import AppIcon from './AppIcon.astro';
5
+ interface Props {
6
+ name: string;
7
+ highlight?: boolean;
8
+ }
9
+ const { name, highlight = false } = Astro.props as Props;
10
+ ---
11
+ <li class:list={['wd-tree-item', 'wd-tree-file', { 'wd-tree-highlight': highlight }]} role="treeitem" tabindex="-1">
12
+ <span class="wd-tree-row">
13
+ <span class="wd-tree-chevron wd-tree-chevron-spacer" aria-hidden="true"></span>
14
+ <AppIcon icon="lucide:file" class="wd-tree-icon" />
15
+ <span class="wd-tree-name">{name}</span>
16
+ </span>
17
+ </li>
@@ -0,0 +1,28 @@
1
+ ---
2
+ // Mintlify's <Tree.Folder name="..."> - see Tree.astro. `defaultOpen`
3
+ // starts it expanded; `openable={false}` makes it a fixed, non-toggling
4
+ // folder (shown open or closed per `defaultOpen`); `highlight` marks it as
5
+ // the active item and tints everything inside it.
6
+ import AppIcon from './AppIcon.astro';
7
+ interface Props {
8
+ name: string;
9
+ defaultOpen?: boolean;
10
+ openable?: boolean;
11
+ highlight?: boolean;
12
+ }
13
+ const { name, defaultOpen = false, openable = true, highlight = false } = Astro.props as Props;
14
+ ---
15
+ <li
16
+ class:list={['wd-tree-item', 'wd-tree-folder', { 'wd-tree-highlight': highlight, 'wd-tree-static': !openable }]}
17
+ role="treeitem"
18
+ aria-expanded={defaultOpen ? 'true' : 'false'}
19
+ tabindex="-1"
20
+ >
21
+ <span class="wd-tree-row">
22
+ <span class="wd-tree-chevron" aria-hidden="true"></span>
23
+ <AppIcon icon="lucide:folder" class="wd-tree-icon wd-tree-icon-closed" />
24
+ <AppIcon icon="lucide:folder-open" class="wd-tree-icon wd-tree-icon-open" />
25
+ <span class="wd-tree-name">{name}</span>
26
+ </span>
27
+ <ul class="wd-tree-group" role="group"><slot /></ul>
28
+ </li>
@@ -0,0 +1,171 @@
1
+ ---
2
+ // Mintlify's <Update> - one changelog entry: `label` (usually a date or
3
+ // version) in a left column that sticks while its content scrolls, with
4
+ // `description` and `tags` under it. The label is a linkable anchor, deduped
5
+ // against every other anchor on the page by remarkTitleAnchorIds, same as a
6
+ // Callout/Accordion title. Stacks into one column on narrow screens.
7
+ //
8
+ // When any Update on the page has `tags`, a row of tag filters appears
9
+ // above the first one (the script below) - Mintlify shows the same filters
10
+ // in its right-hand panel. `rss` is accepted but unused: writedocs doesn't
11
+ // generate an RSS feed from updates.
12
+ interface Props {
13
+ label: string;
14
+ description?: string;
15
+ tags?: string[];
16
+ rss?: { title?: string; description?: string };
17
+ _titleId?: string;
18
+ }
19
+ const { label, description, tags = [], _titleId } = Astro.props as Props;
20
+ function slugify(value: string): string {
21
+ return value
22
+ .toLowerCase()
23
+ .replace(/[^a-z0-9]+/g, '-')
24
+ .replace(/^-+|-+$/g, '');
25
+ }
26
+ const id = _titleId ?? slugify(label);
27
+ ---
28
+ <section class="wd-update" data-update-tags={JSON.stringify(tags)}>
29
+ <div class="wd-update-meta">
30
+ <div class="wd-update-label" id={id}>
31
+ <a href={`#${id}`}>{label}</a>
32
+ </div>
33
+ {description && <div class="wd-update-description">{description}</div>}
34
+ {tags.length > 0 && (
35
+ <div class="wd-update-tags">
36
+ {tags.map((tag) => <span class="wd-update-tag">{tag}</span>)}
37
+ </div>
38
+ )}
39
+ </div>
40
+ <div class="wd-update-body"><slot /></div>
41
+ </section>
42
+ <script>
43
+ // Builds one tag-filter bar per page, before the first Update, from every
44
+ // Update's tags. Clicking a tag shows only the updates that have it;
45
+ // clicking it again (or "All") shows everything.
46
+ function initUpdateFilters(root: ParentNode) {
47
+ const updates = Array.from(root.querySelectorAll<HTMLElement>('.wd-update'));
48
+ if (updates.length === 0 || updates[0].dataset.wdInit) return;
49
+ updates.forEach((u) => (u.dataset.wdInit = 'true'));
50
+ const tagsOf = (u: HTMLElement): string[] => {
51
+ try {
52
+ return JSON.parse(u.dataset.updateTags ?? '[]');
53
+ } catch {
54
+ return [];
55
+ }
56
+ };
57
+ const allTags = [...new Set(updates.flatMap(tagsOf))];
58
+ if (allTags.length === 0) return;
59
+
60
+ const bar = document.createElement('div');
61
+ bar.className = 'wd-update-filters';
62
+ bar.setAttribute('role', 'toolbar');
63
+ bar.setAttribute('aria-label', 'Filter updates by tag');
64
+ let active: string | null = null;
65
+ const buttons: HTMLButtonElement[] = [];
66
+ const apply = () => {
67
+ updates.forEach((u) => (u.hidden = active !== null && !tagsOf(u).includes(active)));
68
+ buttons.forEach((b) => b.setAttribute('aria-pressed', String((b.dataset.tag ?? null) === active)));
69
+ };
70
+ for (const tag of [null, ...allTags]) {
71
+ const b = document.createElement('button');
72
+ b.type = 'button';
73
+ b.className = 'wd-update-filter';
74
+ b.textContent = tag ?? 'All';
75
+ if (tag !== null) b.dataset.tag = tag;
76
+ b.addEventListener('click', () => {
77
+ active = tag === null || active === tag ? null : tag;
78
+ apply();
79
+ });
80
+ buttons.push(b);
81
+ bar.appendChild(b);
82
+ }
83
+ updates[0].before(bar);
84
+ apply();
85
+ }
86
+ initUpdateFilters(document);
87
+ document.addEventListener('astro:page-load', () => initUpdateFilters(document));
88
+ </script>
89
+ <style>
90
+ .wd-update {
91
+ display: grid;
92
+ grid-template-columns: 11rem minmax(0, 1fr);
93
+ gap: 2rem;
94
+ padding: 2rem 0;
95
+ border-top: 1px solid var(--wd-border);
96
+ }
97
+ .wd-update:first-of-type {
98
+ border-top: 0;
99
+ }
100
+ .wd-update[hidden] {
101
+ display: none;
102
+ }
103
+ .wd-update-meta {
104
+ position: sticky;
105
+ top: calc(var(--wd-topbar-offset, 5rem) + 1rem);
106
+ align-self: start;
107
+ }
108
+ .wd-update-label {
109
+ scroll-margin-top: calc(var(--wd-topbar-offset, 5rem) + 1rem);
110
+ }
111
+ .wd-update-label a {
112
+ display: inline-block;
113
+ padding: 0.2rem 0.6rem;
114
+ border-radius: 999px;
115
+ font-size: 0.85rem;
116
+ font-weight: 600;
117
+ text-decoration: none;
118
+ color: var(--wd-primary);
119
+ background: color-mix(in srgb, var(--wd-primary) 12%, transparent);
120
+ }
121
+ .wd-update-description {
122
+ margin-top: 0.5rem;
123
+ font-size: 0.85rem;
124
+ color: var(--wd-text-muted);
125
+ }
126
+ .wd-update-tags {
127
+ display: flex;
128
+ flex-wrap: wrap;
129
+ gap: 0.3rem;
130
+ margin-top: 0.5rem;
131
+ }
132
+ .wd-update-tag {
133
+ padding: 0.05rem 0.45rem;
134
+ border: 1px solid var(--wd-border);
135
+ border-radius: 999px;
136
+ font-size: 0.72rem;
137
+ color: var(--wd-text-muted);
138
+ }
139
+ .wd-update-body > :global(:first-child) {
140
+ margin-top: 0;
141
+ }
142
+ @media (max-width: 720px) {
143
+ .wd-update {
144
+ grid-template-columns: minmax(0, 1fr);
145
+ gap: 0.75rem;
146
+ }
147
+ .wd-update-meta {
148
+ position: static;
149
+ }
150
+ }
151
+ :global(.wd-update-filters) {
152
+ display: flex;
153
+ flex-wrap: wrap;
154
+ gap: 0.4rem;
155
+ margin: 1rem 0 0.5rem;
156
+ }
157
+ :global(.wd-update-filter) {
158
+ padding: 0.2rem 0.7rem;
159
+ border: 1px solid var(--wd-border);
160
+ border-radius: 999px;
161
+ background: none;
162
+ color: var(--wd-text-muted);
163
+ font-size: 0.8rem;
164
+ cursor: pointer;
165
+ }
166
+ :global(.wd-update-filter[aria-pressed='true']) {
167
+ border-color: var(--wd-primary);
168
+ color: var(--wd-primary);
169
+ background: color-mix(in srgb, var(--wd-primary) 10%, transparent);
170
+ }
171
+ </style>