@tempoxyz/ds 0.3.14 → 0.3.15
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/dist/docs/AGENTS.md +73 -10
- package/dist/docs/{marketing/introduction/getting-started.md → marketing.md} +28 -20
- package/dist/docs/product/components/actions.md +2058 -0
- package/dist/docs/product/components/blockchain.md +3825 -0
- package/dist/docs/product/components/data-display.md +5901 -0
- package/dist/docs/product/components/feedback-and-status.md +4008 -0
- package/dist/docs/product/components/forms-and-inputs.md +10543 -0
- package/dist/docs/product/components/layout.md +3339 -0
- package/dist/docs/product/components/navigation.md +2914 -0
- package/dist/docs/product/components/overlays.md +4917 -0
- package/dist/docs/product/components.md +125 -125
- package/dist/docs/product/foundations.md +4596 -0
- package/dist/docs/product/patterns.md +10129 -0
- package/package.json +1 -1
- package/dist/docs/index.md +0 -145
- package/dist/docs/product/components/accordion.md +0 -489
- package/dist/docs/product/components/address-card.md +0 -147
- package/dist/docs/product/components/agent-logo.md +0 -194
- package/dist/docs/product/components/alert-dialog.md +0 -631
- package/dist/docs/product/components/alert.md +0 -448
- package/dist/docs/product/components/amount-input.md +0 -305
- package/dist/docs/product/components/amount.md +0 -794
- package/dist/docs/product/components/app-shell.md +0 -559
- package/dist/docs/product/components/asset-chip.md +0 -294
- package/dist/docs/product/components/autocomplete.md +0 -620
- package/dist/docs/product/components/avatar.md +0 -321
- package/dist/docs/product/components/badge.md +0 -339
- package/dist/docs/product/components/badged-logo.md +0 -116
- package/dist/docs/product/components/banner.md +0 -379
- package/dist/docs/product/components/bar-chart.md +0 -208
- package/dist/docs/product/components/breadcrumbs.md +0 -380
- package/dist/docs/product/components/button-group.md +0 -286
- package/dist/docs/product/components/button.md +0 -650
- package/dist/docs/product/components/calendar.md +0 -375
- package/dist/docs/product/components/callout.md +0 -96
- package/dist/docs/product/components/checkbox-group.md +0 -521
- package/dist/docs/product/components/checkbox.md +0 -467
- package/dist/docs/product/components/choice-group.md +0 -516
- package/dist/docs/product/components/choicebox.md +0 -641
- package/dist/docs/product/components/code.md +0 -100
- package/dist/docs/product/components/combobox.md +0 -939
- package/dist/docs/product/components/container.md +0 -257
- package/dist/docs/product/components/copy-button.md +0 -642
- package/dist/docs/product/components/date-picker.md +0 -514
- package/dist/docs/product/components/dialog.md +0 -1332
- package/dist/docs/product/components/drawer.md +0 -966
- package/dist/docs/product/components/empty.md +0 -340
- package/dist/docs/product/components/field.md +0 -570
- package/dist/docs/product/components/fieldset.md +0 -398
- package/dist/docs/product/components/frame.md +0 -434
- package/dist/docs/product/components/gauge.md +0 -299
- package/dist/docs/product/components/get-started-visual.md +0 -117
- package/dist/docs/product/components/grid.md +0 -288
- package/dist/docs/product/components/hero-visual.md +0 -155
- package/dist/docs/product/components/hex.md +0 -487
- package/dist/docs/product/components/icon-tile.md +0 -292
- package/dist/docs/product/components/identicon.md +0 -371
- package/dist/docs/product/components/inline.md +0 -233
- package/dist/docs/product/components/inset.md +0 -225
- package/dist/docs/product/components/kbd.md +0 -423
- package/dist/docs/product/components/list-group.md +0 -981
- package/dist/docs/product/components/loading-dots.md +0 -237
- package/dist/docs/product/components/menu.md +0 -934
- package/dist/docs/product/components/native-select.md +0 -204
- package/dist/docs/product/components/network-logo.md +0 -248
- package/dist/docs/product/components/number-field.md +0 -543
- package/dist/docs/product/components/otp-field.md +0 -616
- package/dist/docs/product/components/pagination.md +0 -516
- package/dist/docs/product/components/popover.md +0 -544
- package/dist/docs/product/components/progress.md +0 -388
- package/dist/docs/product/components/qr.md +0 -314
- package/dist/docs/product/components/radio-group.md +0 -528
- package/dist/docs/product/components/secret-value.md +0 -406
- package/dist/docs/product/components/select.md +0 -751
- package/dist/docs/product/components/separator.md +0 -379
- package/dist/docs/product/components/sidebar-menu.md +0 -922
- package/dist/docs/product/components/skeleton.md +0 -517
- package/dist/docs/product/components/slider.md +0 -539
- package/dist/docs/product/components/snippet.md +0 -424
- package/dist/docs/product/components/spinner.md +0 -216
- package/dist/docs/product/components/split-bar.md +0 -139
- package/dist/docs/product/components/split-button.md +0 -464
- package/dist/docs/product/components/stack.md +0 -299
- package/dist/docs/product/components/status-chip.md +0 -226
- package/dist/docs/product/components/status-indicator.md +0 -119
- package/dist/docs/product/components/status-row.md +0 -174
- package/dist/docs/product/components/stepper.md +0 -451
- package/dist/docs/product/components/success-hero.md +0 -157
- package/dist/docs/product/components/surface.md +0 -639
- package/dist/docs/product/components/switch.md +0 -472
- package/dist/docs/product/components/table.md +0 -968
- package/dist/docs/product/components/tabs.md +0 -627
- package/dist/docs/product/components/tempo-logo.md +0 -185
- package/dist/docs/product/components/text-input.md +0 -624
- package/dist/docs/product/components/textarea.md +0 -352
- package/dist/docs/product/components/toast.md +0 -535
- package/dist/docs/product/components/token-logo.md +0 -371
- package/dist/docs/product/components/token.md +0 -247
- package/dist/docs/product/components/tooltip.md +0 -490
- package/dist/docs/product/components/verification-code.md +0 -116
- package/dist/docs/product/components/visual.md +0 -249
- package/dist/docs/product/foundations/accessibility.md +0 -377
- package/dist/docs/product/foundations/agents.md +0 -159
- package/dist/docs/product/foundations/color.md +0 -522
- package/dist/docs/product/foundations/content/tone.md +0 -194
- package/dist/docs/product/foundations/content/voice.md +0 -194
- package/dist/docs/product/foundations/content/writing-style.md +0 -406
- package/dist/docs/product/foundations/iconography.md +0 -282
- package/dist/docs/product/foundations/intent.md +0 -360
- package/dist/docs/product/foundations/layout.md +0 -508
- package/dist/docs/product/foundations/linter.md +0 -523
- package/dist/docs/product/foundations/motion.md +0 -151
- package/dist/docs/product/foundations/radius-and-padding.md +0 -86
- package/dist/docs/product/foundations/typography.md +0 -331
- package/dist/docs/product/introduction/faq.md +0 -133
- package/dist/docs/product/introduction/getting-started.md +0 -377
- package/dist/docs/product/patterns/blockchain-values.md +0 -709
- package/dist/docs/product/patterns/dashboards.md +0 -638
- package/dist/docs/product/patterns/destructive-actions.md +0 -626
- package/dist/docs/product/patterns/empty-states.md +0 -612
- package/dist/docs/product/patterns/errors-and-validation.md +0 -808
- package/dist/docs/product/patterns/feedback-and-status.md +0 -518
- package/dist/docs/product/patterns/forms.md +0 -679
- package/dist/docs/product/patterns/loading.md +0 -630
- package/dist/docs/product/patterns/navigation.md +0 -397
- package/dist/docs/product/patterns/payments.md +0 -765
- package/dist/docs/product/patterns/responsive-layout.md +0 -997
- package/dist/docs/product/patterns/tables-and-lists.md +0 -1170
- package/dist/docs/product/products/tempo-console.md +0 -671
- package/dist/docs/product/products/tempo-performance.md +0 -435
- package/dist/docs/product/products/tempo-wallet.md +0 -438
package/dist/docs/AGENTS.md
CHANGED
|
@@ -1,18 +1,81 @@
|
|
|
1
1
|
# Tempo Design System for Agents
|
|
2
2
|
|
|
3
|
-
These files
|
|
3
|
+
These files document `@tempoxyz/ds` for the version installed beside them. They describe how to use the design system in an app, not how to build the library. Read this file in full, then open only the sections a task needs.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Choose a System
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **Marketing:** Pages that present Tempo, such as the home page and launch, campaign, and event pages. Start from [marketing/introduction/getting-started.md](marketing/introduction/getting-started.md).
|
|
7
|
+
An app uses one system.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
- **Product:** Interfaces people use, such as wallets, consoles, dashboards, explorers, and internal tools. Import `@tempoxyz/ds`, and follow this file.
|
|
10
|
+
- **Marketing:** Pages that present Tempo, such as the home page and launch, campaign, and event pages. Read [marketing.md](marketing.md) instead. A marketing site does not import `@tempoxyz/ds`.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
## Read in This Order
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
1. **Rules:** Read the [rules](#rules) below. They apply to every screen.
|
|
15
|
+
2. **Setup:** Set up a project with [Getting Started](product/foundations.md#getting-started).
|
|
16
|
+
3. **Patterns:** Find the patterns a screen uses in the contents of [product/patterns.md](product/patterns.md), and read those sections in full.
|
|
17
|
+
4. **Components:** Choose components with the [Components](product/components.md#overview) overview, which compares similar ones. Then read each component's section in its family file up to its Examples heading.
|
|
18
|
+
5. **Examples:** Read a component's Examples or Use Cases only for the cases you build.
|
|
19
|
+
6. **Foundations:** Look up color, layout, type, motion, and content in [product/foundations.md](product/foundations.md) when a rule or a section links there.
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
Each file opens with its contents. Find a section with `rg -n '^## ' <file>`, and read from its heading to the next heading of the same level.
|
|
22
|
+
|
|
23
|
+
## Files
|
|
24
|
+
|
|
25
|
+
- [product/foundations.md](product/foundations.md) (156 KB): Getting Started, the FAQ, and the foundations: color, layout, type, icons, motion, content, accessibility, intent, and the linter.
|
|
26
|
+
- [product/patterns.md](product/patterns.md) (339 KB): Layouts that combine components, such as forms, tables, payments, and errors, and the product references.
|
|
27
|
+
- [product/components.md](product/components.md) (15 KB): Every component by family, and how to choose between similar ones.
|
|
28
|
+
- [product/components/actions.md](product/components/actions.md) (57 KB): Button, ButtonGroup, CopyButton, SplitButton.
|
|
29
|
+
- [product/components/forms-and-inputs.md](product/components/forms-and-inputs.md) (304 KB): AmountInput, Autocomplete, Calendar, Checkbox, CheckboxGroup, Choicebox, ChoiceGroup, Combobox, DatePicker, Field, Fieldset, NativeSelect, NumberField, OtpField, RadioGroup, Select, Slider, Switch, Textarea, TextInput.
|
|
30
|
+
- [product/components/feedback-and-status.md](product/components/feedback-and-status.md) (112 KB): Alert, Banner, Callout, Empty, Gauge, LoadingDots, Progress, Skeleton, Spinner, StatusChip, StatusIndicator, StatusRow, Toast.
|
|
31
|
+
- [product/components/overlays.md](product/components/overlays.md) (140 KB): AlertDialog, Dialog, Drawer, Menu, Popover, Tooltip.
|
|
32
|
+
- [product/components/navigation.md](product/components/navigation.md) (85 KB): Breadcrumbs, Pagination, SidebarMenu, Stepper, Tabs.
|
|
33
|
+
- [product/components/layout.md](product/components/layout.md) (91 KB): AppShell, Container, Frame, Grid, Inline, Inset, Separator, Stack, Surface.
|
|
34
|
+
- [product/components/data-display.md](product/components/data-display.md) (164 KB): Accordion, AgentLogo, Avatar, Badge, BarChart, Code, GetStartedVisual, HeroVisual, IconTile, Kbd, ListGroup, Snippet, SplitBar, SuccessHero, Table, TempoLogo, VerificationCode, Visual.
|
|
35
|
+
- [product/components/blockchain.md](product/components/blockchain.md) (103 KB): AddressCard, Amount, AssetChip, BadgedLogo, Hex, Identicon, NetworkLogo, Qr, SecretValue, Token, TokenLogo.
|
|
36
|
+
- [marketing.md](marketing.md) (7 KB): The Marketing system.
|
|
37
|
+
|
|
38
|
+
## Rules
|
|
39
|
+
|
|
40
|
+
These rules are requirements, and so are the Guidelines, Content, and Accessibility sections of every page. If a request conflicts with a guideline, follow the request and point out the conflict.
|
|
41
|
+
|
|
42
|
+
### Use Library Components First
|
|
43
|
+
|
|
44
|
+
* **Catalog First:** Check the [Components](product/components.md#overview) overview, which compares similar ones, before you write markup.
|
|
45
|
+
* **Intent First:** Choose each component by the job of its content, as [Building From Intent](product/foundations.md#building-from-intent) describes, not by the old markup.
|
|
46
|
+
* **Public Entrypoints:** Import `@tempoxyz/ds` on Web and `@tempoxyz/ds/mobile` in React Native, with icons from `/icons`.
|
|
47
|
+
* **No Rebuilds:** Don't rebuild a library component or swap in a raw Base UI primitive or another library.
|
|
48
|
+
* **Named Parts:** Build larger components from their named parts, such as `Dialog.Root` and `Dialog.Title`.
|
|
49
|
+
|
|
50
|
+
### Style With Tokens
|
|
51
|
+
|
|
52
|
+
* **Style Definitions:** Style your own markup with `style` and `variants`, grouped in a `namespace styles` block.
|
|
53
|
+
* **Tokens:** Set colors, spacing, type, and radii with tokens, such as `content.primary` and `'24'`.
|
|
54
|
+
* **Custom Values:** Mark the rare literal that no token fits with `!custom`, as in `'24rem !custom'`.
|
|
55
|
+
* **One Styling System:** Don't add utility classes or a separate stylesheet to UI built with the library.
|
|
56
|
+
* **Variable Scopes:** Components inherit variables, so apply `vars()` only to override values or fix a color scheme.
|
|
57
|
+
|
|
58
|
+
### Set Type With Few Sets
|
|
59
|
+
|
|
60
|
+
* **Component Type:** Let each component set the type of its parts. Pass text as children and don't restyle it.
|
|
61
|
+
* **One Set per Style (typography):** Set your own text with one `typography` set, never a separate family, size, or weight.
|
|
62
|
+
* **Few Sets per Screen:** Use at most five styles on a screen, and Pilat only for titles.
|
|
63
|
+
* **Expressive Sets:** Follow [Typography](product/foundations.md#reserve-the-expressive-sets) before you use display, value, utility, or mono.
|
|
64
|
+
|
|
65
|
+
### Use Only Documented APIs
|
|
66
|
+
|
|
67
|
+
* **Documented Props:** Use only the props, parts, and values that a component page or its TSDoc documents.
|
|
68
|
+
* **Missing Pieces:** Build a missing variant or token locally with `style`, and flag it for a [proposal](product/foundations.md#how-do-i-request-a-component-variant-or-token).
|
|
69
|
+
* **Installed Package:** Don't patch the installed package or target the class names that it generates.
|
|
70
|
+
|
|
71
|
+
### Follow the Guidelines
|
|
72
|
+
|
|
73
|
+
* **Guidance First:** Read a component's Guidelines, Content, and Accessibility before you use it, not only its examples.
|
|
74
|
+
* **Patterns:** Before you build a screen, read the patterns it uses, such as [Forms](product/patterns.md#forms) and [Tables and Lists](product/patterns.md#tables-and-lists).
|
|
75
|
+
* **Native Semantics:** Keep native semantics, and meet every item on the [Accessibility](product/foundations.md#checklist) checklist.
|
|
76
|
+
|
|
77
|
+
### Write Copy to the Content Guidelines
|
|
78
|
+
|
|
79
|
+
* **Labels and Terms:** Use sentence case and verb-first button labels, as [Writing Style](product/foundations.md#write-labels) describes.
|
|
80
|
+
* **Amounts and Addresses:** Format amounts with [Amount](product/components/blockchain.md#amount) and a `currency` or `symbol`, and addresses and hashes with [Hex](product/components/blockchain.md#hex).
|
|
81
|
+
* **Errors:** Write error messages that state the fix, as [Writing Style](product/foundations.md#write-messages) describes.
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Marketing
|
|
2
|
+
|
|
3
|
+
Each section below is one page of the documentation at ds.tehq.dev.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- [Getting Started](#getting-started): Install the Marketing system and style your first section.
|
|
8
|
+
|
|
9
|
+
## Getting Started
|
|
2
10
|
|
|
3
11
|
Install the Marketing system and style your first section.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
### Overview
|
|
6
14
|
|
|
7
15
|
Marketing pages present Tempo to the public. They explain what Tempo is, who it is for, and why it matters, and lead the reader to a next step. `@tempoxyz/ds/marketing` ships the variables and authoring helpers for these pages.
|
|
8
16
|
|
|
@@ -11,16 +19,16 @@ Marketing pages present Tempo to the public. They explain what Tempo is, who it
|
|
|
11
19
|
* **Launches (Announcements):** Present a new feature, partner, or upgrade.
|
|
12
20
|
* **Events (Event pages):** Show the agenda, the speakers, and registration.
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
### Agent Prompt
|
|
15
23
|
|
|
16
24
|
Paste this prompt into your coding agent:
|
|
17
25
|
|
|
18
26
|
Read ds.tehq.dev/marketing/introduction/getting-started and help me build a Tempo marketing page
|
|
19
27
|
with Tempo Design System.
|
|
20
28
|
|
|
21
|
-
|
|
29
|
+
### Setup
|
|
22
30
|
|
|
23
|
-
|
|
31
|
+
#### Install the Library
|
|
24
32
|
|
|
25
33
|
Install `@tempoxyz/ds` and its Zyzz peer. Marketing ships from the same package.
|
|
26
34
|
|
|
@@ -28,16 +36,16 @@ Install `@tempoxyz/ds` and its Zyzz peer. Marketing ships from the same package.
|
|
|
28
36
|
npm install @tempoxyz/ds zyzz
|
|
29
37
|
```
|
|
30
38
|
|
|
31
|
-
|
|
39
|
+
#### Choose Framework
|
|
32
40
|
|
|
33
41
|
Choose a compilation target and a variable mode:
|
|
34
42
|
|
|
35
43
|
* **TDS Variables (Quick):** Uses the Marketing variables as they ship.
|
|
36
44
|
* **Custom Variables (Advanced):** Extends the Marketing variables with site tokens.
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
#### Vite
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
#### Configure Vite
|
|
41
49
|
|
|
42
50
|
Add Zyzz beside the existing framework plugin.
|
|
43
51
|
|
|
@@ -55,9 +63,9 @@ Run the existing dev or build command. The plugin emits the Marketing variables,
|
|
|
55
63
|
|
|
56
64
|
With `ssr.noExternal`, the plugin reads the library's contracts in a server build.
|
|
57
65
|
|
|
58
|
-
|
|
66
|
+
##### TDS Variables (Quick)
|
|
59
67
|
|
|
60
|
-
|
|
68
|
+
#### Style a Section
|
|
61
69
|
|
|
62
70
|
Import `style` from `@tempoxyz/ds/marketing`, and style your markup with Marketing tokens.
|
|
63
71
|
|
|
@@ -88,9 +96,9 @@ namespace styles {
|
|
|
88
96
|
|
|
89
97
|
Tokens such as `content.primary`, `'64'`, and `display.d1` type-check against the Marketing variables. Light and dark values follow the inherited `color-scheme`.
|
|
90
98
|
|
|
91
|
-
|
|
99
|
+
##### Custom Variables (Advanced)
|
|
92
100
|
|
|
93
|
-
|
|
101
|
+
#### Define Config
|
|
94
102
|
|
|
95
103
|
Extend the Marketing variables with site tokens, and export the bound helpers.
|
|
96
104
|
|
|
@@ -106,7 +114,7 @@ export const { style, vars } = Config.create({
|
|
|
106
114
|
|
|
107
115
|
Place `zyzz.config.ts` at the root of the site source, such as `src/zyzz.config.ts`. The Vite plugin scans its directory for global styles.
|
|
108
116
|
|
|
109
|
-
|
|
117
|
+
#### Style a Section
|
|
110
118
|
|
|
111
119
|
Apply `vars()` to the site root. Style your markup with the bound `style` helper, which accepts Marketing and site tokens.
|
|
112
120
|
|
|
@@ -136,9 +144,9 @@ namespace styles {
|
|
|
136
144
|
}
|
|
137
145
|
```
|
|
138
146
|
|
|
139
|
-
|
|
147
|
+
#### Other Bundlers
|
|
140
148
|
|
|
141
|
-
|
|
149
|
+
#### Configure the Bundler
|
|
142
150
|
|
|
143
151
|
Add the matching unplugin adapter to the bundler configuration. Keep the existing TypeScript and JSX transforms.
|
|
144
152
|
|
|
@@ -158,9 +166,9 @@ Load the emitted stylesheet and script in the document. Adjust the paths to the
|
|
|
158
166
|
|
|
159
167
|
Run the existing build command. [Bundler Setup](https://zyzz.style/docs/api/unplugin) lists the configuration for each bundler.
|
|
160
168
|
|
|
161
|
-
|
|
169
|
+
##### TDS Variables (Quick)
|
|
162
170
|
|
|
163
|
-
|
|
171
|
+
#### Style a Section
|
|
164
172
|
|
|
165
173
|
Import `style` from `@tempoxyz/ds/marketing`, and style your markup with Marketing tokens.
|
|
166
174
|
|
|
@@ -191,9 +199,9 @@ namespace styles {
|
|
|
191
199
|
|
|
192
200
|
Tokens such as `content.primary`, `'64'`, and `display.d1` type-check against the Marketing variables. Light and dark values follow the inherited `color-scheme`.
|
|
193
201
|
|
|
194
|
-
|
|
202
|
+
##### Custom Variables (Advanced)
|
|
195
203
|
|
|
196
|
-
|
|
204
|
+
#### Define Config
|
|
197
205
|
|
|
198
206
|
Extend the Marketing variables with site tokens, and export the bound helpers.
|
|
199
207
|
|
|
@@ -207,7 +215,7 @@ export const { style, vars } = Config.create({
|
|
|
207
215
|
})
|
|
208
216
|
```
|
|
209
217
|
|
|
210
|
-
|
|
218
|
+
#### Style a Section
|
|
211
219
|
|
|
212
220
|
Apply `vars()` to the site root. Style your markup with the bound `style` helper, which accepts Marketing and site tokens.
|
|
213
221
|
|