@tempoxyz/ds 3.2.20261201001603 → 3.4.20261201020124
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 +1 -1
- package/dist/docs/marketing.md +357 -230
- package/dist/document/templates/brief.html +3 -3
- package/dist/document/templates/essay.html +3 -3
- package/dist/document/templates/post.html +3 -3
- package/dist/fonts/HBSet-Light.woff2 +0 -0
- package/dist/fonts/HBSet-Regular.woff2 +0 -0
- package/dist/fonts/TempoJetBrainsMono-Light.woff2 +0 -0
- package/dist/fonts/TempoJetBrainsMono-Medium.woff2 +0 -0
- package/dist/fonts/TempoJetBrainsMono-Regular.woff2 +0 -0
- package/dist/marketing/components/ArticleBody.css +1 -1
- package/dist/marketing/components/ArticleBody.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleHero.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleRail.js.zyzz.json +1 -1
- package/dist/marketing/components/AsideLayout.js.zyzz.json +1 -1
- package/dist/marketing/components/Breadcrumbs.js.zyzz.json +1 -1
- package/dist/marketing/components/Button.js.zyzz.json +1 -1
- package/dist/marketing/components/Card.js.zyzz.json +1 -1
- package/dist/marketing/components/Contact.js.zyzz.json +1 -1
- package/dist/marketing/components/Cta.js.zyzz.json +1 -1
- package/dist/marketing/components/CustomerStoryFeature.js.zyzz.json +1 -1
- package/dist/marketing/components/Faq.css +1 -1
- package/dist/marketing/components/Faq.js.zyzz.json +1 -1
- package/dist/marketing/components/FeatureAccordion.js.zyzz.json +1 -1
- package/dist/marketing/components/Field.css +1 -1
- package/dist/marketing/components/Field.d.ts +41 -10
- package/dist/marketing/components/Field.d.ts.map +1 -1
- package/dist/marketing/components/Field.js +39 -16
- package/dist/marketing/components/Field.js.map +1 -1
- package/dist/marketing/components/Field.js.zyzz.json +1 -1
- package/dist/marketing/components/Footer.d.ts +2 -2
- package/dist/marketing/components/Footer.js +2 -2
- package/dist/marketing/components/Footer.js.zyzz.json +1 -1
- package/dist/marketing/components/Hero.js.zyzz.json +1 -1
- package/dist/marketing/components/LeadCapture.js.zyzz.json +1 -1
- package/dist/marketing/components/Link.css +1 -1
- package/dist/marketing/components/Link.d.ts +8 -4
- package/dist/marketing/components/Link.d.ts.map +1 -1
- package/dist/marketing/components/Link.js +10 -8
- package/dist/marketing/components/Link.js.map +1 -1
- package/dist/marketing/components/Link.js.zyzz.json +1 -1
- package/dist/marketing/components/Logo.js.zyzz.json +1 -1
- package/dist/marketing/components/LogoWall.js.zyzz.json +1 -1
- package/dist/marketing/components/Mark.js.zyzz.json +1 -1
- package/dist/marketing/components/Media.js.zyzz.json +1 -1
- package/dist/marketing/components/Nav.js.zyzz.json +1 -1
- package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -1
- package/dist/marketing/components/QuoteBand.js.zyzz.json +1 -1
- package/dist/marketing/components/Section.js.zyzz.json +1 -1
- package/dist/marketing/components/SectionHeading.js.zyzz.json +1 -1
- package/dist/marketing/components/Showcase.js.zyzz.json +1 -1
- package/dist/marketing/components/Stats.js.zyzz.json +1 -1
- package/dist/marketing/components/Steps.css +1 -1
- package/dist/marketing/components/Steps.js.zyzz.json +1 -1
- package/dist/marketing/components/SymbolTile.css +1 -1
- package/dist/marketing/components/SymbolTile.d.ts +83 -20
- package/dist/marketing/components/SymbolTile.d.ts.map +1 -1
- package/dist/marketing/components/SymbolTile.js +25 -14
- package/dist/marketing/components/SymbolTile.js.map +1 -1
- package/dist/marketing/components/SymbolTile.js.zyzz.json +1 -1
- package/dist/marketing/components/Tab.css +1 -1
- package/dist/marketing/components/Tab.d.ts +42 -35
- package/dist/marketing/components/Tab.d.ts.map +1 -1
- package/dist/marketing/components/Tab.js +4 -3
- package/dist/marketing/components/Tab.js.map +1 -1
- package/dist/marketing/components/Tab.js.zyzz.json +1 -1
- package/dist/marketing/components/Table.js.zyzz.json +1 -1
- package/dist/marketing/components/Tag.d.ts +6 -5
- package/dist/marketing/components/Tag.d.ts.map +1 -1
- package/dist/marketing/components/Tag.js +2 -2
- package/dist/marketing/components/Tag.js.map +1 -1
- package/dist/marketing/components/Tag.js.zyzz.json +1 -1
- package/dist/marketing/components/internal/Hint.js.zyzz.json +1 -1
- package/dist/marketing/icons/ArrowRight.d.ts +11 -0
- package/dist/marketing/icons/ArrowRight.d.ts.map +1 -0
- package/dist/marketing/icons/ArrowRight.js +5 -0
- package/dist/marketing/icons/ArrowRight.js.map +1 -0
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/dist/marketing/styles.js.zyzz.json +1 -1
- package/dist/marketing/vars.d.ts +2 -2
- package/dist/marketing/vars.d.ts.map +1 -1
- package/dist/marketing/vars.js.map +1 -1
- package/dist/marketing/vars.js.zyzz.json +1 -1
- package/dist/marketing/zyzz.config.d.ts +10 -10
- package/dist/marketing/zyzz.config.js +6 -6
- package/dist/marketing/zyzz.config.js.map +1 -1
- package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
- package/package.json +22 -2
- package/src/fonts/HBSet-Light.woff2 +0 -0
- package/src/fonts/HBSet-Regular.woff2 +0 -0
- package/src/fonts/README.md +15 -0
- package/src/fonts/TempoJetBrainsMono-Light.woff2 +0 -0
- package/src/fonts/TempoJetBrainsMono-Medium.woff2 +0 -0
- package/src/fonts/TempoJetBrainsMono-Regular.woff2 +0 -0
- package/src/marketing/components/Field.tsx +97 -13
- package/src/marketing/components/Footer.tsx +2 -2
- package/src/marketing/components/Link.tsx +11 -4
- package/src/marketing/components/SymbolTile.tsx +78 -26
- package/src/marketing/components/Tab.tsx +61 -49
- package/src/marketing/components/Tag.tsx +6 -5
- package/src/marketing/icons/ArrowRight.tsx +30 -0
- package/src/marketing/vars.ts +2 -3
- package/src/marketing/zyzz.config.ts +19 -56
package/dist/docs/marketing.md
CHANGED
|
@@ -11,11 +11,11 @@ Each section below is one page of the documentation at ds.tehq.dev.
|
|
|
11
11
|
- [Link](#link): Links quietly to another page, ending in an icon.
|
|
12
12
|
- [Logo](#logo): Shows the Tempo wordmark where the whole name fits.
|
|
13
13
|
- [Mark](#mark): Shows the Tempo T where only a square fits.
|
|
14
|
-
- [Symbol Tile](#symbol-tile):
|
|
14
|
+
- [Symbol Tile](#symbol-tile): Sets a glyph, icon, or mark on a square tile beside its label.
|
|
15
15
|
- [Tab](#tab): Toggles a choice, such as a filter.
|
|
16
16
|
- [Tag](#tag): Labels one fixed fact, or links to its topic.
|
|
17
17
|
- [Accessibility](#accessibility-9): Focus rings, hit areas, contrast, and reduced motion on marketing pages.
|
|
18
|
-
- [Color](#color):
|
|
18
|
+
- [Color](#color-1): Roles for each background, container, text, and line, with a few accents.
|
|
19
19
|
- [Iconography](#iconography): Tempo's icon family, drawn on one grid in the color of its text.
|
|
20
20
|
- [Layout](#layout-1): The page grid, section spacing, gaps, and widths of marketing pages.
|
|
21
21
|
- [Motion](#motion): Durations, delays, curves, and distances, with reduced motion built in.
|
|
@@ -108,7 +108,7 @@ export default defineConfig({
|
|
|
108
108
|
})
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
Run the existing dev or build command. The plugin emits the Marketing variables, the Pilat and JetBrains Mono fonts, and keyframes once, and each module emits its own rules. You import no stylesheet.
|
|
111
|
+
Run the existing dev or build command. The plugin emits the Marketing variables, the Pilat, HB Set, and Tempo JetBrains Mono fonts, and keyframes once, and each module emits its own rules. You import no stylesheet.
|
|
112
112
|
|
|
113
113
|
With `ssr.noExternal`, the plugin reads the library's contracts in a server build.
|
|
114
114
|
|
|
@@ -538,6 +538,8 @@ Set `appearance="inverse"` in a dark section. The `primary` fill turns near-whit
|
|
|
538
538
|
/** Demonstrates Marketing buttons in a dark section. @module */
|
|
539
539
|
import { Button, style } from '@tempoxyz/ds/marketing'
|
|
540
540
|
|
|
541
|
+
export const surface = 'inverse'
|
|
542
|
+
|
|
541
543
|
export function Demo() {
|
|
542
544
|
return (
|
|
543
545
|
<div {...styles.section()}>
|
|
@@ -568,7 +570,7 @@ namespace styles {
|
|
|
568
570
|
|
|
569
571
|
#### Layout
|
|
570
572
|
|
|
571
|
-
Set `layout` to `navigation` in the site header, `card` in a card, where the label may wrap, or `carousel` for a round icon-only paging control. The round layouts size the glyph they hold to their circle.
|
|
573
|
+
Set `layout` to `navigation` in the site header, `card` in a card, where the label may wrap, or `carousel` for a round icon-only paging control. The round layouts size the [Tempo Icons](/marketing/foundations/iconography) glyph they hold to their circle.
|
|
572
574
|
|
|
573
575
|
```tsx
|
|
574
576
|
/** Demonstrates the navigation, card, and carousel layouts of the Marketing Button. @module */
|
|
@@ -610,6 +612,8 @@ Set `appearance="overlay"` over a photo or video. The `playback` layout draws th
|
|
|
610
612
|
import { PlayIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
611
613
|
import { Button, style } from '@tempoxyz/ds/marketing'
|
|
612
614
|
|
|
615
|
+
export const surface = 'overlay'
|
|
616
|
+
|
|
613
617
|
export function Demo() {
|
|
614
618
|
return (
|
|
615
619
|
<div {...styles.photo()}>
|
|
@@ -708,8 +712,8 @@ Follow the `primary` button with one `secondary` button at most, so the main act
|
|
|
708
712
|
|
|
709
713
|
Give buttons side by side one size.
|
|
710
714
|
|
|
711
|
-
* **Heroes
|
|
712
|
-
* **Sections
|
|
715
|
+
* **Heroes & Closing Bands (large):** The actions that lead a page or close it, such as a hero's pair.
|
|
716
|
+
* **Sections & Cards (medium):** The default, for an action inside a section or a card.
|
|
713
717
|
* **Dense Rows (small):** An action in a dense row, such as the footer's language picker.
|
|
714
718
|
|
|
715
719
|
#### Show Progress With Busy
|
|
@@ -765,7 +769,7 @@ Labels a text control, sets its submit action, and shows its messages.
|
|
|
765
769
|
|
|
766
770
|
### Overview
|
|
767
771
|
|
|
768
|
-
A labeled text field for a marketing form, such as the contact form, a newsletter sign-up, or a report's download. Its filled box
|
|
772
|
+
A labeled text field for a marketing form, such as the contact form, a newsletter sign-up, or a report's download. Its filled box takes the large [Button](/marketing/components/button)'s corner, so a field and its action share one shape.
|
|
769
773
|
|
|
770
774
|
### Examples
|
|
771
775
|
|
|
@@ -863,6 +867,8 @@ Set `appearance="inverse"` on `Field.Root` in a dark section, such as the [Foote
|
|
|
863
867
|
import { Button, Field, style } from '@tempoxyz/ds/marketing'
|
|
864
868
|
import { useState } from 'react'
|
|
865
869
|
|
|
870
|
+
export const surface = 'inverse'
|
|
871
|
+
|
|
866
872
|
export function Demo() {
|
|
867
873
|
const [busy, setBusy] = useState(false)
|
|
868
874
|
const [email, setEmail] = useState('')
|
|
@@ -925,6 +931,75 @@ namespace styles {
|
|
|
925
931
|
|
|
926
932
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Field/Inverse.tsx)
|
|
927
933
|
|
|
934
|
+
#### Condensed
|
|
935
|
+
|
|
936
|
+
For the [Footer](/marketing/sections/footer)'s sign-up only. Set `condensed` on `Field.Control` and pass a `Field.Submit` with an `aria-label` in `action`. The arrow button sits inside the end of the 48px box.
|
|
937
|
+
|
|
938
|
+
```tsx
|
|
939
|
+
/** Demonstrates the Marketing condensed field, the footer's sign-up, whose arrow submit runs, then confirms. @module */
|
|
940
|
+
import { Field, style } from '@tempoxyz/ds/marketing'
|
|
941
|
+
import { useState } from 'react'
|
|
942
|
+
|
|
943
|
+
export function Demo() {
|
|
944
|
+
const [busy, setBusy] = useState(false)
|
|
945
|
+
const [email, setEmail] = useState('')
|
|
946
|
+
const [subscribed, setSubscribed] = useState(false)
|
|
947
|
+
|
|
948
|
+
return (
|
|
949
|
+
<div {...styles.section()}>
|
|
950
|
+
<form
|
|
951
|
+
onSubmit={(event) => {
|
|
952
|
+
event.preventDefault()
|
|
953
|
+
setBusy(true)
|
|
954
|
+
setSubscribed(false)
|
|
955
|
+
|
|
956
|
+
// Stands in for the site's request. This example sends nothing.
|
|
957
|
+
setTimeout(() => {
|
|
958
|
+
setBusy(false)
|
|
959
|
+
setEmail('')
|
|
960
|
+
setSubscribed(true)
|
|
961
|
+
}, 1200)
|
|
962
|
+
}}
|
|
963
|
+
{...styles.form()}
|
|
964
|
+
>
|
|
965
|
+
<Field.Root appearance="inverse" name="email">
|
|
966
|
+
<Field.Label>Email for monthly updates</Field.Label>
|
|
967
|
+
<Field.Control
|
|
968
|
+
action={<Field.Submit aria-label="Subscribe" busy={busy} />}
|
|
969
|
+
autoComplete="email"
|
|
970
|
+
condensed
|
|
971
|
+
onValueChange={setEmail}
|
|
972
|
+
placeholder="you@company.com"
|
|
973
|
+
readOnly={busy}
|
|
974
|
+
required
|
|
975
|
+
type="email"
|
|
976
|
+
value={email}
|
|
977
|
+
/>
|
|
978
|
+
<Field.Error>Enter a valid email.</Field.Error>
|
|
979
|
+
<Field.Status>
|
|
980
|
+
{subscribed && 'You’re subscribed. Check your inbox to confirm.'}
|
|
981
|
+
</Field.Status>
|
|
982
|
+
</Field.Root>
|
|
983
|
+
</form>
|
|
984
|
+
</div>
|
|
985
|
+
)
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
namespace styles {
|
|
989
|
+
export const form = style({ maxWidth: '480', width: 'full' })
|
|
990
|
+
|
|
991
|
+
export const section = style({
|
|
992
|
+
backgroundColor: 'inverse.background.primary',
|
|
993
|
+
borderRadius: 'lg',
|
|
994
|
+
boxSizing: 'border-box',
|
|
995
|
+
padding: '24',
|
|
996
|
+
width: 'full',
|
|
997
|
+
})
|
|
998
|
+
}
|
|
999
|
+
```
|
|
1000
|
+
|
|
1001
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Field/Condensed.tsx)
|
|
1002
|
+
|
|
928
1003
|
#### States
|
|
929
1004
|
|
|
930
1005
|
Each state changes a tint, a mark, or the action, never the size, so the row holds still.
|
|
@@ -934,7 +1009,7 @@ Each state changes a tint, a mark, or the action, never the size, so the row hol
|
|
|
934
1009
|
* **Pressed (control.tonal.press):** A press on the text tints the box a step further, until the release.
|
|
935
1010
|
* **Focus (:focus-visible):** Focus holds the hover tint, and keyboard focus fades the ring in around the box.
|
|
936
1011
|
* **Filled (data-filled):** The value reads in the primary color on the rest tint, as the label does.
|
|
937
|
-
* **Required (required):** A submit with the text empty shows the error.
|
|
1012
|
+
* **Required (required):** A submit with the text empty shows the error. Say in the label which fields are required.
|
|
938
1013
|
* **Invalid (Field.Error):** The error marks its message with a red dot and joins the control's description.
|
|
939
1014
|
* **Disabled (disabled):** The box dims to 40% and leaves the tab order. Disable the action with it.
|
|
940
1015
|
* **Read-Only (readOnly):** The value reads at full strength, and the box takes no tint but keeps its ring.
|
|
@@ -1047,6 +1122,8 @@ The same states on a dark ground.
|
|
|
1047
1122
|
/** Demonstrates every state of the Marketing inline field on a dark ground. @module */
|
|
1048
1123
|
import { Sheet } from './States.js'
|
|
1049
1124
|
|
|
1125
|
+
export const surface = 'inverse'
|
|
1126
|
+
|
|
1050
1127
|
export function Demo() {
|
|
1051
1128
|
return <Sheet appearance="inverse" />
|
|
1052
1129
|
}
|
|
@@ -1213,6 +1290,7 @@ import { Field } from '@tempoxyz/ds/marketing'
|
|
|
1213
1290
|
<Field.Root>
|
|
1214
1291
|
<Field.Label />
|
|
1215
1292
|
<Field.Control />
|
|
1293
|
+
<Field.Submit />
|
|
1216
1294
|
<Field.Error />
|
|
1217
1295
|
<Field.Status />
|
|
1218
1296
|
</Field.Root>
|
|
@@ -1231,11 +1309,11 @@ import { Field } from '@tempoxyz/ds/marketing'
|
|
|
1231
1309
|
* Use [Tab](/marketing/components/tab) to choose one of a few fixed filters.
|
|
1232
1310
|
* Use [Button](/marketing/components/button) for an action that needs no typed value.
|
|
1233
1311
|
|
|
1234
|
-
####
|
|
1312
|
+
#### Give Every Control a Visible Label
|
|
1235
1313
|
|
|
1236
|
-
|
|
1314
|
+
A placeholder disappears on the first keystroke. Use it only for a format example, such as <you@company.com>, and name the control in a `Field.Label`.
|
|
1237
1315
|
|
|
1238
|
-
**Do:** Name the field above it, and keep the placeholder as a
|
|
1316
|
+
**Do:** Name the field above it, and keep the placeholder as a format example.
|
|
1239
1317
|
|
|
1240
1318
|
```tsx
|
|
1241
1319
|
<Field.Root>
|
|
@@ -1247,7 +1325,7 @@ Give each control a `Field.Label`, even when a placeholder hints at the value. A
|
|
|
1247
1325
|
</Field.Root>
|
|
1248
1326
|
```
|
|
1249
1327
|
|
|
1250
|
-
**Don't:**
|
|
1328
|
+
**Don't:** Use the placeholder as the only label.
|
|
1251
1329
|
|
|
1252
1330
|
```tsx
|
|
1253
1331
|
<Field.Root>
|
|
@@ -1259,17 +1337,21 @@ Give each control a `Field.Label`, even when a placeholder hints at the value. A
|
|
|
1259
1337
|
</Field.Root>
|
|
1260
1338
|
```
|
|
1261
1339
|
|
|
1262
|
-
#### Set the Input Type
|
|
1340
|
+
#### Set the Input Type & Autocomplete
|
|
1263
1341
|
|
|
1264
1342
|
Set `type` and `autoComplete`, such as `email` and `email`, so phones show the right keyboard and browsers fill the value.
|
|
1265
1343
|
|
|
1266
|
-
#### Use One
|
|
1344
|
+
#### Use One Field for Each Kind of Sign-Up
|
|
1345
|
+
|
|
1346
|
+
Build each newsletter and report sign-up from the inline field, with its action at `size="large"`, so the two share a height. Build the footer's sign-up from the condensed field, and use it nowhere else.
|
|
1347
|
+
|
|
1348
|
+
#### Validate When the Value Is Complete
|
|
1267
1349
|
|
|
1268
|
-
|
|
1350
|
+
`Field.Root` validates on submit, then on each change after a failed submit. For a format check, such as an email, set `validationMode="onBlur"`, so a half-typed value stays unmarked.
|
|
1269
1351
|
|
|
1270
1352
|
#### Hold the Form Still While It Sends
|
|
1271
1353
|
|
|
1272
|
-
Set `busy` on the action and `readOnly` on the control while the submit runs. The value stays readable, and a second press or Enter does nothing.
|
|
1354
|
+
Set `busy` on the action, or on `Field.Submit`, and `readOnly` on the control while the submit runs. The value stays readable, and a second press or Enter does nothing.
|
|
1273
1355
|
|
|
1274
1356
|
#### Return Focus After a Failure
|
|
1275
1357
|
|
|
@@ -1279,7 +1361,7 @@ If the submit fails, show why in `Field.Status` with `tone="negative"`, keep the
|
|
|
1279
1361
|
|
|
1280
1362
|
#### Say How to Fix the Value
|
|
1281
1363
|
|
|
1282
|
-
|
|
1364
|
+
Start the error with a verb, such as Enter, and name what the value needs, in one short sentence.
|
|
1283
1365
|
|
|
1284
1366
|
**Do:** Write Enter a valid email.
|
|
1285
1367
|
|
|
@@ -1304,7 +1386,8 @@ Confirm a sign-up with the next step, and a failure with what to do about it.
|
|
|
1304
1386
|
|
|
1305
1387
|
#### Your Responsibilities
|
|
1306
1388
|
|
|
1307
|
-
* **Name Icon Buttons (aria-label):** Name a button
|
|
1389
|
+
* **Name Icon Buttons (aria-label):** Name a button that shows only an icon, such as `Field.Submit` or a Clear in `slotEnd`.
|
|
1390
|
+
* **State Requirements ((required)):** State a requirement or a format in text, such as (required) in the label.
|
|
1308
1391
|
* **Hold the Submit (busy):** Set `busy` on the action and `readOnly` on the control until the request ends.
|
|
1309
1392
|
* **Return Focus (focus()):** After a failure, focus the control, so the visitor can fix it and try again.
|
|
1310
1393
|
|
|
@@ -1324,7 +1407,7 @@ Use for the contact section that holds a form.
|
|
|
1324
1407
|
|
|
1325
1408
|
[Footer](/marketing/sections/footer)
|
|
1326
1409
|
|
|
1327
|
-
Use for the site's sign-up on the black band.
|
|
1410
|
+
Use for the site's condensed sign-up on the black band.
|
|
1328
1411
|
|
|
1329
1412
|
[Lead Capture](/marketing/sections/lead-capture)
|
|
1330
1413
|
|
|
@@ -1336,7 +1419,7 @@ Links quietly to another page, ending in an icon.
|
|
|
1336
1419
|
|
|
1337
1420
|
### Overview
|
|
1338
1421
|
|
|
1339
|
-
A link in the type around it that ends in a chevron, or in an arrow up right when it leaves the site. `Link.Cue` draws the same label and icon as a `span`, for a card or row that is itself the link.
|
|
1422
|
+
A link in the size of the type around it, always in the Marketing sans, that ends in a chevron, or in an arrow up right when it leaves the site. `Link.Cue` draws the same label and icon as a `span`, for a card or row that is itself the link.
|
|
1340
1423
|
|
|
1341
1424
|
On a fine pointer, hover eases the color and moves the icon toward where the link goes.
|
|
1342
1425
|
|
|
@@ -1440,6 +1523,8 @@ Set `tone="inverse"` in a dark section.
|
|
|
1440
1523
|
/** Demonstrates a Marketing link in a dark section. @module */
|
|
1441
1524
|
import { Link, style } from '@tempoxyz/ds/marketing'
|
|
1442
1525
|
|
|
1526
|
+
export const surface = 'inverse'
|
|
1527
|
+
|
|
1443
1528
|
export function Demo() {
|
|
1444
1529
|
return (
|
|
1445
1530
|
<div {...styles.section()}>
|
|
@@ -1885,7 +1970,7 @@ namespace styles {
|
|
|
1885
1970
|
export const label = style({
|
|
1886
1971
|
alignItems: 'center',
|
|
1887
1972
|
color: 'content.secondary',
|
|
1888
|
-
columnGap: '
|
|
1973
|
+
columnGap: '8',
|
|
1889
1974
|
display: 'inline-flex',
|
|
1890
1975
|
typography: 'body.b3',
|
|
1891
1976
|
})
|
|
@@ -1913,7 +1998,7 @@ import { Mark } from '@tempoxyz/ds/marketing'
|
|
|
1913
1998
|
|
|
1914
1999
|
* Use [Logo](/marketing/components/logo) in the navigation, or anywhere the whole name fits.
|
|
1915
2000
|
* Use [Symbol Tile](/marketing/components/symbol-tile) for a partner's logo.
|
|
1916
|
-
* Use a
|
|
2001
|
+
* Use a [Tempo Icons](/marketing/foundations/iconography) glyph for an action.
|
|
1917
2002
|
|
|
1918
2003
|
#### Keep It Square
|
|
1919
2004
|
|
|
@@ -1952,7 +2037,7 @@ Use for the whole wordmark, where it fits.
|
|
|
1952
2037
|
|
|
1953
2038
|
[Iconography](/marketing/foundations/iconography)
|
|
1954
2039
|
|
|
1955
|
-
Covers the glyphs for actions and controls.
|
|
2040
|
+
Covers the Tempo Icons glyphs for actions and controls.
|
|
1956
2041
|
|
|
1957
2042
|
[Footer](/marketing/sections/footer)
|
|
1958
2043
|
|
|
@@ -1960,71 +2045,83 @@ Use for the band that links home with the mark.
|
|
|
1960
2045
|
|
|
1961
2046
|
## Symbol Tile
|
|
1962
2047
|
|
|
1963
|
-
|
|
2048
|
+
Sets a glyph, icon, or mark on a square tile beside its label.
|
|
1964
2049
|
|
|
1965
2050
|
### Overview
|
|
1966
2051
|
|
|
1967
|
-
A
|
|
2052
|
+
A square tile that holds one glyph, icon, or mark, painted in a surface tone or an accent color. The tile is decorative, with no states or motion. The label beside it carries the meaning, so the tile adds a picture to a word without adding anything to read.
|
|
1968
2053
|
|
|
1969
2054
|
### Examples
|
|
1970
2055
|
|
|
1971
2056
|
#### Default
|
|
1972
2057
|
|
|
1973
|
-
|
|
2058
|
+
A Tempo icon on the default 4% grey.
|
|
1974
2059
|
|
|
1975
2060
|
```tsx
|
|
1976
|
-
/** Demonstrates a
|
|
2061
|
+
/** Demonstrates a Tempo icon on a small tile in the default grey. @module */
|
|
2062
|
+
import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
1977
2063
|
import { SymbolTile } from '@tempoxyz/ds/marketing'
|
|
1978
2064
|
|
|
1979
2065
|
export function Demo() {
|
|
1980
2066
|
return (
|
|
1981
|
-
<SymbolTile
|
|
1982
|
-
<
|
|
2067
|
+
<SymbolTile>
|
|
2068
|
+
<GlobeIcon size={20} />
|
|
1983
2069
|
</SymbolTile>
|
|
1984
2070
|
)
|
|
1985
2071
|
}
|
|
1986
|
-
|
|
1987
|
-
/** A one-color mark on a 200 frame, drawn in the text color across the whole tile. */
|
|
1988
|
-
function Ring() {
|
|
1989
|
-
return (
|
|
1990
|
-
<svg fill="none" viewBox="0 0 200 200">
|
|
1991
|
-
<circle cx="100" cy="100" r="44" stroke="currentColor" strokeWidth="20" />
|
|
1992
|
-
</svg>
|
|
1993
|
-
)
|
|
1994
|
-
}
|
|
1995
2072
|
```
|
|
1996
2073
|
|
|
1997
2074
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Default.tsx)
|
|
1998
2075
|
|
|
1999
2076
|
#### Size
|
|
2000
2077
|
|
|
2001
|
-
Set `size` to `small` (default, 40px)
|
|
2078
|
+
Set `size` to `small` (default, 40px) in cards and rows, or `large` (64px) beside a title.
|
|
2002
2079
|
|
|
2003
2080
|
```tsx
|
|
2004
|
-
/** Demonstrates each symbol tile size. @module */
|
|
2081
|
+
/** Demonstrates each symbol tile size, with an icon at half the tile. @module */
|
|
2082
|
+
import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
2005
2083
|
import { style, SymbolTile } from '@tempoxyz/ds/marketing'
|
|
2006
2084
|
|
|
2007
2085
|
export function Demo() {
|
|
2008
2086
|
return (
|
|
2009
2087
|
<div {...styles.row()}>
|
|
2010
|
-
<SymbolTile
|
|
2011
|
-
<
|
|
2088
|
+
<SymbolTile>
|
|
2089
|
+
<GlobeIcon size={20} />
|
|
2012
2090
|
</SymbolTile>
|
|
2013
|
-
<SymbolTile
|
|
2014
|
-
<
|
|
2091
|
+
<SymbolTile size="large">
|
|
2092
|
+
<GlobeIcon scale="large" size={32} />
|
|
2015
2093
|
</SymbolTile>
|
|
2016
2094
|
</div>
|
|
2017
2095
|
)
|
|
2018
2096
|
}
|
|
2019
2097
|
|
|
2020
|
-
|
|
2021
|
-
|
|
2098
|
+
namespace styles {
|
|
2099
|
+
export const row = style({ alignItems: 'center', display: 'flex', gap: '12' })
|
|
2100
|
+
}
|
|
2101
|
+
```
|
|
2102
|
+
|
|
2103
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Size.tsx)
|
|
2104
|
+
|
|
2105
|
+
#### Tone
|
|
2106
|
+
|
|
2107
|
+
Set `tone` to the surface the tile sits on its ground with: `grey` (default), `white`, `outline`, or `inverse`. Content drawn in `currentColor` turns white on `inverse`.
|
|
2108
|
+
|
|
2109
|
+
```tsx
|
|
2110
|
+
/** Demonstrates each symbol tile tone on the page's grey. @module */
|
|
2111
|
+
import { WalletIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
2112
|
+
import { style, SymbolTile } from '@tempoxyz/ds/marketing'
|
|
2113
|
+
|
|
2114
|
+
const tones = ['grey', 'white', 'outline', 'inverse'] as const
|
|
2115
|
+
|
|
2116
|
+
export function Demo() {
|
|
2022
2117
|
return (
|
|
2023
|
-
<
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2118
|
+
<div {...styles.row()}>
|
|
2119
|
+
{tones.map((tone) => (
|
|
2120
|
+
<SymbolTile key={tone} tone={tone}>
|
|
2121
|
+
<WalletIcon size={20} />
|
|
2122
|
+
</SymbolTile>
|
|
2123
|
+
))}
|
|
2124
|
+
</div>
|
|
2028
2125
|
)
|
|
2029
2126
|
}
|
|
2030
2127
|
|
|
@@ -2033,65 +2130,61 @@ namespace styles {
|
|
|
2033
2130
|
}
|
|
2034
2131
|
```
|
|
2035
2132
|
|
|
2036
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/
|
|
2133
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Tone.tsx)
|
|
2037
2134
|
|
|
2038
|
-
####
|
|
2135
|
+
#### Color
|
|
2039
2136
|
|
|
2040
|
-
Set `color` to
|
|
2137
|
+
Set `color` to an accent, such as `accent.blue`, or to any CSS color. A color replaces the tone. Set `mark="light"` on a dark color, so content drawn in `currentColor` turns white.
|
|
2041
2138
|
|
|
2042
2139
|
```tsx
|
|
2043
|
-
/** Demonstrates symbol tiles in
|
|
2140
|
+
/** Demonstrates symbol tiles in accent colors and a color of the caller's own. @module */
|
|
2141
|
+
import { BankIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
2044
2142
|
import { style, SymbolTile } from '@tempoxyz/ds/marketing'
|
|
2045
2143
|
|
|
2046
2144
|
export function Demo() {
|
|
2047
2145
|
return (
|
|
2048
2146
|
<div {...styles.row()}>
|
|
2049
|
-
<SymbolTile color="
|
|
2050
|
-
<
|
|
2147
|
+
<SymbolTile color="accent.blue" mark="light">
|
|
2148
|
+
<BankIcon size={20} />
|
|
2149
|
+
</SymbolTile>
|
|
2150
|
+
<SymbolTile color="accent.violet" mark="light">
|
|
2151
|
+
<BankIcon size={20} />
|
|
2152
|
+
</SymbolTile>
|
|
2153
|
+
<SymbolTile color="accent.olive">
|
|
2154
|
+
<BankIcon size={20} />
|
|
2051
2155
|
</SymbolTile>
|
|
2052
2156
|
<SymbolTile color="#c4dc65">
|
|
2053
|
-
<
|
|
2157
|
+
<BankIcon size={20} />
|
|
2054
2158
|
</SymbolTile>
|
|
2055
2159
|
</div>
|
|
2056
2160
|
)
|
|
2057
2161
|
}
|
|
2058
2162
|
|
|
2059
|
-
/** A one-color mark on a 200 frame, drawn in the text color across the whole tile. */
|
|
2060
|
-
function Wave() {
|
|
2061
|
-
return (
|
|
2062
|
-
<svg fill="none" viewBox="0 0 200 200">
|
|
2063
|
-
<path
|
|
2064
|
-
d="M56 112c14-24 30-24 44 0s30 24 44 0"
|
|
2065
|
-
stroke="currentColor"
|
|
2066
|
-
strokeLinecap="round"
|
|
2067
|
-
strokeWidth="18"
|
|
2068
|
-
/>
|
|
2069
|
-
</svg>
|
|
2070
|
-
)
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
2163
|
namespace styles {
|
|
2074
2164
|
export const row = style({ alignItems: 'center', display: 'flex', gap: '12' })
|
|
2075
2165
|
}
|
|
2076
2166
|
```
|
|
2077
2167
|
|
|
2078
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/
|
|
2168
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Color.tsx)
|
|
2079
2169
|
|
|
2080
|
-
####
|
|
2170
|
+
#### Content
|
|
2081
2171
|
|
|
2082
|
-
|
|
2172
|
+
A child with its own width, such as an icon at its `size`, sits in the tile's center. A child without one, such as a mark drawn on its own frame, fills the whole tile.
|
|
2083
2173
|
|
|
2084
2174
|
```tsx
|
|
2085
|
-
/** Demonstrates
|
|
2175
|
+
/** Demonstrates an icon at its own size in the tile's center, and a mark drawn across the whole tile. @module */
|
|
2176
|
+
import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
2086
2177
|
import { style, SymbolTile } from '@tempoxyz/ds/marketing'
|
|
2087
2178
|
|
|
2088
2179
|
export function Demo() {
|
|
2089
2180
|
return (
|
|
2090
2181
|
<div {...styles.row()}>
|
|
2091
|
-
<SymbolTile
|
|
2182
|
+
<SymbolTile size="large">
|
|
2183
|
+
<GlobeIcon scale="large" size={32} />
|
|
2184
|
+
</SymbolTile>
|
|
2185
|
+
<SymbolTile size="large">
|
|
2092
2186
|
<Ring />
|
|
2093
2187
|
</SymbolTile>
|
|
2094
|
-
Ringwise
|
|
2095
2188
|
</div>
|
|
2096
2189
|
)
|
|
2097
2190
|
}
|
|
@@ -2105,6 +2198,33 @@ function Ring() {
|
|
|
2105
2198
|
)
|
|
2106
2199
|
}
|
|
2107
2200
|
|
|
2201
|
+
namespace styles {
|
|
2202
|
+
export const row = style({ alignItems: 'center', display: 'flex', gap: '12' })
|
|
2203
|
+
}
|
|
2204
|
+
```
|
|
2205
|
+
|
|
2206
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Content.tsx)
|
|
2207
|
+
|
|
2208
|
+
#### With Label
|
|
2209
|
+
|
|
2210
|
+
The label follows the tile as text, spaced by the card or row around it.
|
|
2211
|
+
|
|
2212
|
+
```tsx
|
|
2213
|
+
/** Demonstrates a symbol tile followed by its label as text. @module */
|
|
2214
|
+
import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
2215
|
+
import { style, SymbolTile } from '@tempoxyz/ds/marketing'
|
|
2216
|
+
|
|
2217
|
+
export function Demo() {
|
|
2218
|
+
return (
|
|
2219
|
+
<div {...styles.row()}>
|
|
2220
|
+
<SymbolTile>
|
|
2221
|
+
<GlobeIcon size={20} />
|
|
2222
|
+
</SymbolTile>
|
|
2223
|
+
Global payouts
|
|
2224
|
+
</div>
|
|
2225
|
+
)
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2108
2228
|
namespace styles {
|
|
2109
2229
|
export const row = style({
|
|
2110
2230
|
alignItems: 'center',
|
|
@@ -2116,7 +2236,7 @@ namespace styles {
|
|
|
2116
2236
|
}
|
|
2117
2237
|
```
|
|
2118
2238
|
|
|
2119
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/
|
|
2239
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/WithLabel.tsx)
|
|
2120
2240
|
|
|
2121
2241
|
### Anatomy
|
|
2122
2242
|
|
|
@@ -2130,31 +2250,41 @@ import { SymbolTile } from '@tempoxyz/ds/marketing'
|
|
|
2130
2250
|
|
|
2131
2251
|
#### When to Use
|
|
2132
2252
|
|
|
2133
|
-
* Lead a
|
|
2134
|
-
*
|
|
2135
|
-
*
|
|
2253
|
+
* Lead a card, a row, or a list item with a picture of what its label names.
|
|
2254
|
+
* Set an icon or a mark beside a title, at the large size.
|
|
2255
|
+
* Give a set of items one shape, whatever their glyphs.
|
|
2136
2256
|
|
|
2137
2257
|
#### When Not to Use
|
|
2138
2258
|
|
|
2139
|
-
* Use [Logo](/marketing/components/logo) or [Mark](/marketing/components/mark) for Tempo's own
|
|
2140
|
-
*
|
|
2259
|
+
* Use [Logo](/marketing/components/logo) or [Mark](/marketing/components/mark) for Tempo's own marks.
|
|
2260
|
+
* Use [Button](/marketing/components/button) for an action, since the tile is never pressable.
|
|
2261
|
+
* Use [Tag](/marketing/components/tag) for a short label with a small icon inside it.
|
|
2141
2262
|
|
|
2142
2263
|
#### Size a Tile by Its Place
|
|
2143
2264
|
|
|
2144
|
-
Use `small`
|
|
2265
|
+
Use `small` in cards and rows and `large` beside a title. Give tiles side by side one size.
|
|
2266
|
+
|
|
2267
|
+
#### Center an Icon at Half the Tile
|
|
2268
|
+
|
|
2269
|
+
Set a Tempo icon to 20px on a small tile and 32px on a large one, so it sits centered with even space around it.
|
|
2270
|
+
|
|
2271
|
+
#### Draw a Mark on Its Own Frame
|
|
2272
|
+
|
|
2273
|
+
Pass a mark without its own width, drawn with its padding on its own square frame, so it fills the tile as drawn.
|
|
2145
2274
|
|
|
2146
|
-
####
|
|
2275
|
+
#### Keep One Tone in a Set
|
|
2147
2276
|
|
|
2148
|
-
|
|
2277
|
+
Give tiles side by side one `tone`, or one accent each when the color tells the items apart.
|
|
2149
2278
|
|
|
2150
2279
|
### Accessibility
|
|
2151
2280
|
|
|
2152
|
-
* **Hidden Tile (aria-hidden):** Always hidden from screen readers
|
|
2153
|
-
* **
|
|
2281
|
+
* **Hidden Tile (aria-hidden):** Always hidden from screen readers, so it adds nothing to what they announce.
|
|
2282
|
+
* **No Focus or States (span):** Renders a `<span>` that never takes focus, so the keyboard skips it.
|
|
2283
|
+
* **Forced Colors:** Keeps its colors and its content in forced colors, as an image does.
|
|
2154
2284
|
|
|
2155
2285
|
#### Your Responsibilities
|
|
2156
2286
|
|
|
2157
|
-
* **Follow It With
|
|
2287
|
+
* **Follow It With a Label:** Follow the tile with its label as text, which a screen reader announces.
|
|
2158
2288
|
|
|
2159
2289
|
### Related
|
|
2160
2290
|
|
|
@@ -2162,13 +2292,13 @@ Pass a mark built from the partner's own vector, never a traced picture, and set
|
|
|
2162
2292
|
|
|
2163
2293
|
Use for Tempo's own mark.
|
|
2164
2294
|
|
|
2165
|
-
[
|
|
2295
|
+
[Tag](/marketing/components/tag)
|
|
2166
2296
|
|
|
2167
|
-
Use for
|
|
2297
|
+
Use for a short label with a small icon inside it.
|
|
2168
2298
|
|
|
2169
|
-
[
|
|
2299
|
+
[Iconography](/marketing/foundations/iconography)
|
|
2170
2300
|
|
|
2171
|
-
|
|
2301
|
+
Covers the icons a tile holds and the sizes they draw at.
|
|
2172
2302
|
|
|
2173
2303
|
## Tab
|
|
2174
2304
|
|
|
@@ -2178,6 +2308,8 @@ Toggles a choice, such as a filter.
|
|
|
2178
2308
|
|
|
2179
2309
|
A native toggle button for a choice that changes what a page shows in place, such as the blog's category filters. A tab reports whether it is on. It is never a tab in a tablist, so it switches no panels.
|
|
2180
2310
|
|
|
2311
|
+
A tab rests as an outline and fills gray when selected, so a row of tabs never reads as a row of buttons.
|
|
2312
|
+
|
|
2181
2313
|
### Examples
|
|
2182
2314
|
|
|
2183
2315
|
#### Filter Group
|
|
@@ -2254,13 +2386,15 @@ namespace styles {
|
|
|
2254
2386
|
|
|
2255
2387
|
#### Inverse
|
|
2256
2388
|
|
|
2257
|
-
Set `appearance="inverse"` in a dark section.
|
|
2389
|
+
Set `appearance="inverse"` in a dark section. The outline and the gray fill turn white.
|
|
2258
2390
|
|
|
2259
2391
|
```tsx
|
|
2260
2392
|
/** Demonstrates Marketing tabs in a dark section, led by an All tab. @module */
|
|
2261
2393
|
import { style, Tab } from '@tempoxyz/ds/marketing'
|
|
2262
2394
|
import { useState } from 'react'
|
|
2263
2395
|
|
|
2396
|
+
export const surface = 'inverse'
|
|
2397
|
+
|
|
2264
2398
|
export function Demo() {
|
|
2265
2399
|
const [region, setRegion] = useState<string>()
|
|
2266
2400
|
|
|
@@ -2305,13 +2439,15 @@ namespace styles {
|
|
|
2305
2439
|
|
|
2306
2440
|
#### Overlay
|
|
2307
2441
|
|
|
2308
|
-
Set `appearance="overlay"` over a photo or video.
|
|
2442
|
+
Set `appearance="overlay"` over a photo or video. A dark glass keeps each label legible, and the selected tab deepens it.
|
|
2309
2443
|
|
|
2310
2444
|
```tsx
|
|
2311
2445
|
/** Demonstrates Marketing tabs over a photo. @module */
|
|
2312
2446
|
import { style, Tab } from '@tempoxyz/ds/marketing'
|
|
2313
2447
|
import { useState } from 'react'
|
|
2314
2448
|
|
|
2449
|
+
export const surface = 'overlay'
|
|
2450
|
+
|
|
2315
2451
|
export function Demo() {
|
|
2316
2452
|
const [view, setView] = useState<string | undefined>('Video')
|
|
2317
2453
|
|
|
@@ -2371,13 +2507,20 @@ import { Tab } from '@tempoxyz/ds/marketing'
|
|
|
2371
2507
|
|
|
2372
2508
|
Clear the filter on a second press of the selected tab, or put an All tab first in the row.
|
|
2373
2509
|
|
|
2510
|
+
#### Show the Choice With the Fill
|
|
2511
|
+
|
|
2512
|
+
The gray fill alone marks the selected tab, so a tab keeps its size in both states.
|
|
2513
|
+
|
|
2514
|
+
* **Unselected (Outline):** Rests as an outline, and tints on hover.
|
|
2515
|
+
* **Selected (Gray Fill):** Fills gray, and deepens a step on press.
|
|
2516
|
+
|
|
2374
2517
|
#### Give Tabs in a Row One Size
|
|
2375
2518
|
|
|
2376
2519
|
Use `small` for an index's filters and `medium` or `large` for a directory's rows. Never mix sizes in one row.
|
|
2377
2520
|
|
|
2378
2521
|
### Content
|
|
2379
2522
|
|
|
2380
|
-
#### Keep Labels Short
|
|
2523
|
+
#### Keep Labels Short & Fixed
|
|
2381
2524
|
|
|
2382
2525
|
Label each tab in one or two words, and keep the label the same whether it is selected or not.
|
|
2383
2526
|
|
|
@@ -2460,30 +2603,6 @@ namespace styles {
|
|
|
2460
2603
|
|
|
2461
2604
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tag/Size.tsx)
|
|
2462
2605
|
|
|
2463
|
-
#### Outline
|
|
2464
|
-
|
|
2465
|
-
Set `appearance` to `base` (default) on the page or a white card, or to `outline` in a list of capabilities or partners.
|
|
2466
|
-
|
|
2467
|
-
```tsx
|
|
2468
|
-
/** Demonstrates a base Marketing tag beside an outline tag. @module */
|
|
2469
|
-
import { style, Tag } from '@tempoxyz/ds/marketing'
|
|
2470
|
-
|
|
2471
|
-
export function Demo() {
|
|
2472
|
-
return (
|
|
2473
|
-
<div {...styles.row()}>
|
|
2474
|
-
<Tag>Stablecoins</Tag>
|
|
2475
|
-
<Tag appearance="outline">Stablecoins</Tag>
|
|
2476
|
-
</div>
|
|
2477
|
-
)
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
|
-
namespace styles {
|
|
2481
|
-
export const row = style({ alignItems: 'center', display: 'flex', flexWrap: 'wrap', gap: '8' })
|
|
2482
|
-
}
|
|
2483
|
-
```
|
|
2484
|
-
|
|
2485
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tag/Outline.tsx)
|
|
2486
|
-
|
|
2487
2606
|
#### Linked
|
|
2488
2607
|
|
|
2489
2608
|
Use `Tag.Link` to link a tag to its topic, such as the blog's Announcements.
|
|
@@ -2496,9 +2615,7 @@ export function Demo() {
|
|
|
2496
2615
|
return (
|
|
2497
2616
|
<div {...styles.row()}>
|
|
2498
2617
|
<Tag.Link href="/blog">Announcements</Tag.Link>
|
|
2499
|
-
<Tag.Link
|
|
2500
|
-
Research
|
|
2501
|
-
</Tag.Link>
|
|
2618
|
+
<Tag.Link href="/blog">Research</Tag.Link>
|
|
2502
2619
|
</div>
|
|
2503
2620
|
)
|
|
2504
2621
|
}
|
|
@@ -2518,6 +2635,8 @@ Set `appearance="inverse"` in a dark section.
|
|
|
2518
2635
|
/** Demonstrates Marketing tags in a dark section, static and linked. @module */
|
|
2519
2636
|
import { style, Tag } from '@tempoxyz/ds/marketing'
|
|
2520
2637
|
|
|
2638
|
+
export const surface = 'inverse'
|
|
2639
|
+
|
|
2521
2640
|
export function Demo() {
|
|
2522
2641
|
return (
|
|
2523
2642
|
<div {...styles.section()}>
|
|
@@ -2552,6 +2671,8 @@ Set `appearance="overlay"` over a photo or video.
|
|
|
2552
2671
|
/** Demonstrates a Marketing tag over a photo. @module */
|
|
2553
2672
|
import { style, Tag } from '@tempoxyz/ds/marketing'
|
|
2554
2673
|
|
|
2674
|
+
export const surface = 'overlay'
|
|
2675
|
+
|
|
2555
2676
|
export function Demo() {
|
|
2556
2677
|
return (
|
|
2557
2678
|
<div {...styles.photo()}>
|
|
@@ -2573,25 +2694,24 @@ namespace styles {
|
|
|
2573
2694
|
|
|
2574
2695
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tag/Overlay.tsx)
|
|
2575
2696
|
|
|
2576
|
-
#### Icon
|
|
2697
|
+
#### Icon & Logo
|
|
2577
2698
|
|
|
2578
2699
|
Set `icon` to a glyph, or `logo` to a partner's logo. At `medium`, `logo` also takes a currency's flag or a stablecoin's mark.
|
|
2579
2700
|
|
|
2580
2701
|
```tsx
|
|
2581
|
-
/** Demonstrates the Marketing tag's icon and logo slots at each size. @module */
|
|
2702
|
+
/** Demonstrates the Marketing tag's icon and logo slots at each size, with a Tempo Icons glyph. @module */
|
|
2703
|
+
import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
2582
2704
|
import { style, Tag } from '@tempoxyz/ds/marketing'
|
|
2583
2705
|
|
|
2584
2706
|
export function Demo() {
|
|
2585
2707
|
return (
|
|
2586
2708
|
<div {...styles.rows()}>
|
|
2587
2709
|
<div {...styles.row()}>
|
|
2588
|
-
<Tag icon={<
|
|
2589
|
-
<Tag
|
|
2590
|
-
Customer
|
|
2591
|
-
</Tag>
|
|
2710
|
+
<Tag icon={<GlobeIcon />}>Global</Tag>
|
|
2711
|
+
<Tag logo={<Coin />}>USD</Tag>
|
|
2592
2712
|
</div>
|
|
2593
2713
|
<div {...styles.row()}>
|
|
2594
|
-
<Tag icon={<
|
|
2714
|
+
<Tag icon={<GlobeIcon />} size="medium">
|
|
2595
2715
|
Global
|
|
2596
2716
|
</Tag>
|
|
2597
2717
|
<Tag logo={<Coin />} size="medium">
|
|
@@ -2602,20 +2722,6 @@ export function Demo() {
|
|
|
2602
2722
|
)
|
|
2603
2723
|
}
|
|
2604
2724
|
|
|
2605
|
-
/** A globe glyph in the text color, drawn at `1em`. */
|
|
2606
|
-
function Globe() {
|
|
2607
|
-
return (
|
|
2608
|
-
<svg fill="none" height="1em" viewBox="0 0 16 16" width="1em">
|
|
2609
|
-
<circle cx="8" cy="8" r="5.75" stroke="currentColor" strokeWidth="1.5" />
|
|
2610
|
-
<path
|
|
2611
|
-
d="M2.5 8h11M8 2.25c1.6 1.6 2.4 3.5 2.4 5.75S9.6 12.15 8 13.75C6.4 12.15 5.6 10.25 5.6 8S6.4 3.85 8 2.25Z"
|
|
2612
|
-
stroke="currentColor"
|
|
2613
|
-
strokeWidth="1.5"
|
|
2614
|
-
/>
|
|
2615
|
-
</svg>
|
|
2616
|
-
)
|
|
2617
|
-
}
|
|
2618
|
-
|
|
2619
2725
|
/** A coin mark in its own 20px box, as a currency's flag or a stablecoin's mark brings. */
|
|
2620
2726
|
function Coin() {
|
|
2621
2727
|
return (
|
|
@@ -2640,6 +2746,8 @@ namespace styles {
|
|
|
2640
2746
|
|
|
2641
2747
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tag/IconAndLogo.tsx)
|
|
2642
2748
|
|
|
2749
|
+
The globe is from [Tempo Icons](/arsenal/libraries/icons), which ships every glyph at `@tempoxyz/ds/arsenal/icons`.
|
|
2750
|
+
|
|
2643
2751
|
### Anatomy
|
|
2644
2752
|
|
|
2645
2753
|
```tsx
|
|
@@ -2663,6 +2771,14 @@ import { Tag } from '@tempoxyz/ds/marketing'
|
|
|
2663
2771
|
* Use [Button](/marketing/components/button) for an action.
|
|
2664
2772
|
* Use plain text for a count or a status that changes.
|
|
2665
2773
|
|
|
2774
|
+
#### Set the Appearance by the Ground
|
|
2775
|
+
|
|
2776
|
+
A tag fills on the page and on a card, however many sit together, from a post's one category to a partner's 24 currencies. Only the ground changes the appearance.
|
|
2777
|
+
|
|
2778
|
+
* **Page or Card (base):** Fills with a light tint, alone or in a list.
|
|
2779
|
+
* **Dark Section (inverse):** Fills with a white tint on a dark ground.
|
|
2780
|
+
* **Photo or Video (overlay):** Sits on a blurred glass that keeps it legible.
|
|
2781
|
+
|
|
2666
2782
|
#### Size a Tag by Its Text
|
|
2667
2783
|
|
|
2668
2784
|
Match `small` to Body B2 and `medium` to Body B1, and give tags side by side one size.
|
|
@@ -2779,17 +2895,15 @@ Covers the content roles and their contrast.
|
|
|
2779
2895
|
|
|
2780
2896
|
## Color
|
|
2781
2897
|
|
|
2782
|
-
|
|
2898
|
+
Roles for each background, container, text, and line, with a few accents.
|
|
2783
2899
|
|
|
2784
2900
|
### Overview
|
|
2785
2901
|
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
A dark section flips the page. The inverse roles hold the same hierarchy in white on black, so a band can change tone without new rules. Hue only reports status, such as a submitted form.
|
|
2902
|
+
Pick a role by what it colors: a background, a container, content, or a line. On a dark ground, use the inverse role of the same name.
|
|
2789
2903
|
|
|
2790
2904
|
### Primitives
|
|
2791
2905
|
|
|
2792
|
-
Primitives hold the raw colors that the roles read.
|
|
2906
|
+
Primitives hold the raw colors that the roles read. Style pages with roles, and reach for a primitive only to draw art or a chart, or to author the role that a new component needs.
|
|
2793
2907
|
|
|
2794
2908
|
#### Neutral
|
|
2795
2909
|
|
|
@@ -2826,16 +2940,12 @@ Primitives hold the raw colors that the roles read. Use a role in page styles, a
|
|
|
2826
2940
|
|
|
2827
2941
|
Each step names a percentage of black, from white at 000 to black at 100. The page sits at 004, a step off white.
|
|
2828
2942
|
|
|
2829
|
-
#### Black and White
|
|
2830
|
-
|
|
2831
|
-
A translucent role is black or white at its own percentage, such as supporting copy at 56% black. Black darkens any light surface by the same amount and white lightens any dark one, so a role reads the same on the page and on a white band.
|
|
2832
|
-
|
|
2833
2943
|
#### Glass
|
|
2834
2944
|
|
|
2835
|
-
|
|
2945
|
+
Glass blurs what passes behind a bar or a control. Use the frost on the page and the tint on media.
|
|
2836
2946
|
|
|
2837
|
-
* **
|
|
2838
|
-
* **
|
|
2947
|
+
* **Light Frost (background.glass):** A pale grey frost for the header, its menus, and the folded menu, under `blur.popover`.
|
|
2948
|
+
* **Dark Tint (control.glass):** A black tint for a control on a photo or video, so its white label reads, under `blur.control`.
|
|
2839
2949
|
|
|
2840
2950
|
#### Accent
|
|
2841
2951
|
|
|
@@ -2851,7 +2961,9 @@ Marketing has two glasses. A light frost carries the header and its menus over t
|
|
|
2851
2961
|
| purple | `accent.purple` | `#ba59dd` |
|
|
2852
2962
|
| violet | `accent.violet` | `#7e59e4` |
|
|
2853
2963
|
|
|
2854
|
-
|
|
2964
|
+
* **Primary (purple):** The hero accent, for the one mark or moment that leads the page.
|
|
2965
|
+
* **Feedback (red, orange, green):** Negative, warning, and positive states, such as a failed or sent form.
|
|
2966
|
+
* **On Request (blue, cyan, olive, magenta, violet):** Artwork and illustration only, such as a chart or a spot, when a brief asks for the hue.
|
|
2855
2967
|
|
|
2856
2968
|
### Backgrounds
|
|
2857
2969
|
|
|
@@ -2864,9 +2976,9 @@ Each hue has one value, for status marks and art on the light page.
|
|
|
2864
2976
|
|
|
2865
2977
|
A page has three grounds. Each part takes a matching `appearance` on each, so it reads the same on any of them.
|
|
2866
2978
|
|
|
2867
|
-
* **
|
|
2868
|
-
* **
|
|
2869
|
-
* **
|
|
2979
|
+
* **Base (base):** The light page that every marketing page sits on, in `background.primary`.
|
|
2980
|
+
* **Inverse (inverse):** A black band, card, or box in `inverse.background.primary`, with the inverse roles.
|
|
2981
|
+
* **Overlay (overlay):** A photo or video under a control, such as a play button or a tag.
|
|
2870
2982
|
|
|
2871
2983
|
### Containers
|
|
2872
2984
|
|
|
@@ -2887,12 +2999,10 @@ Content colors text and glyphs. Pick a role by how much the reader needs the tex
|
|
|
2887
2999
|
| `content.prose` | `color-mix(in srgb, var(--tds-black, #000000) 80%, transparent)` | Running text in articles and long descriptions. |
|
|
2888
3000
|
| `content.secondary` | `color-mix(in srgb, var(--tds-black, #000000) 56%, transparent)` | Supporting copy, captions, and metadata. |
|
|
2889
3001
|
| `content.tertiary` | `color-mix(in srgb, var(--tds-black, #000000) 40%, transparent)` | Hints and glyphs, such as separators. Too faint for body text. |
|
|
2890
|
-
| `content.subtle` | `color-mix(in srgb, var(--tds-black, #000000) 16%, transparent)` |
|
|
3002
|
+
| `content.subtle` | `color-mix(in srgb, var(--tds-black, #000000) 16%, transparent)` | Decoration only, such as a faint mark or rule. Never text. |
|
|
2891
3003
|
| `content.positive` | `#13a963` | Success, such as a confirmed form submission. |
|
|
2892
3004
|
| `content.negative` | `#eb3417` | Errors, such as an invalid email address. |
|
|
2893
3005
|
|
|
2894
|
-
The status roles read two accents: green for positive and red for negative.
|
|
2895
|
-
|
|
2896
3006
|
### Lines
|
|
2897
3007
|
|
|
2898
3008
|
| Token | Value | Use |
|
|
@@ -2910,22 +3020,22 @@ Links take the text color around them and recede on hover, as [Link](/marketing/
|
|
|
2910
3020
|
|
|
2911
3021
|
### Inverse
|
|
2912
3022
|
|
|
2913
|
-
The inverse roles color a dark
|
|
3023
|
+
The inverse roles color a dark ground, such as a band, card, or box. Each one mirrors the light role of its name, and each part on the ground takes `appearance="inverse"` or stays light.
|
|
2914
3024
|
|
|
2915
3025
|
| Token | Value | Use |
|
|
2916
3026
|
| --- | --- | --- |
|
|
2917
|
-
| `inverse.background.primary` | `#000000` | A dark
|
|
2918
|
-
| `inverse.background.secondary` | `#141414` | A raised panel
|
|
2919
|
-
| `inverse.container.control` | `color-mix(in srgb, var(--tds-white, #ffffff) 12%, transparent)` | A control fill
|
|
2920
|
-
| `inverse.content.primary` | `#f5f5f5` | Headlines and primary text
|
|
2921
|
-
| `inverse.content.secondary` | `color-mix(in srgb, var(--tds-white, #ffffff) 60%, transparent)` | Supporting copy
|
|
2922
|
-
| `inverse.content.tertiary` | `color-mix(in srgb, var(--tds-white, #ffffff) 44%, transparent)` | Hints and glyphs
|
|
2923
|
-
| `inverse.content.subtle` | `color-mix(in srgb, var(--tds-white, #ffffff) 20%, transparent)` |
|
|
3027
|
+
| `inverse.background.primary` | `#000000` | A dark ground, such as a band, card, or box. |
|
|
3028
|
+
| `inverse.background.secondary` | `#141414` | A raised panel on a dark ground. |
|
|
3029
|
+
| `inverse.container.control` | `color-mix(in srgb, var(--tds-white, #ffffff) 12%, transparent)` | A control fill on a dark ground. |
|
|
3030
|
+
| `inverse.content.primary` | `#f5f5f5` | Headlines and primary text on a dark ground. |
|
|
3031
|
+
| `inverse.content.secondary` | `color-mix(in srgb, var(--tds-white, #ffffff) 60%, transparent)` | Supporting copy on a dark ground. |
|
|
3032
|
+
| `inverse.content.tertiary` | `color-mix(in srgb, var(--tds-white, #ffffff) 44%, transparent)` | Hints and glyphs on a dark ground. |
|
|
3033
|
+
| `inverse.content.subtle` | `color-mix(in srgb, var(--tds-white, #ffffff) 20%, transparent)` | Decoration only on a dark ground. Never text. |
|
|
2924
3034
|
| `inverse.line.secondary` | `color-mix(in srgb, var(--tds-white, #ffffff) 12%, transparent)` | Dividers inside a dark section. |
|
|
2925
3035
|
|
|
2926
3036
|
### Surfaces
|
|
2927
3037
|
|
|
2928
|
-
A box set apart from its ground, such as a card, panel, or art tile, takes one `tone`,
|
|
3038
|
+
A box set apart from its ground, such as a card, panel, or art tile, takes one `tone`, never a shadow, and nests two deep at most on a ground where the step shows. [Section](/marketing/sections/section) and [Card](/marketing/sections/card) take the same tone names, and controls and art keep their own colors.
|
|
2929
3039
|
|
|
2930
3040
|
* **White (tone="white"):** Lifts words or controls off the page. On a white band, frame the box with an outline instead.
|
|
2931
3041
|
* **Grey (tone="grey"):** Sinks art, media, and quieter groups one step off the page. On grey, lift the box in white.
|
|
@@ -2938,10 +3048,10 @@ A box set apart from its ground, such as a card, panel, or art tile, takes one `
|
|
|
2938
3048
|
|
|
2939
3049
|
Style a page with roles such as `content.secondary`, not with the primitive step it reads. A role keeps its meaning when the system changes a value.
|
|
2940
3050
|
|
|
2941
|
-
**Do:** Color
|
|
3051
|
+
**Do:** Color supporting copy with `content.secondary`.
|
|
2942
3052
|
|
|
2943
3053
|
```tsx
|
|
2944
|
-
<MarketingExample kind="
|
|
3054
|
+
<MarketingExample kind="roles" />
|
|
2945
3055
|
```
|
|
2946
3056
|
|
|
2947
3057
|
**Don't:** Set copy in `content.tertiary`. It is too faint for text the reader must see.
|
|
@@ -2966,14 +3076,6 @@ Status color supports a label and never stands alone.
|
|
|
2966
3076
|
<MarketingExample kind="statusColor" />
|
|
2967
3077
|
```
|
|
2968
3078
|
|
|
2969
|
-
#### Use Inverse Roles in Dark Sections
|
|
2970
|
-
|
|
2971
|
-
Inside a dark band, use the `inverse` role for each light role, such as `inverse.content.secondary` for supporting copy. Give each part its `appearance="inverse"`. A part without one stays light.
|
|
2972
|
-
|
|
2973
|
-
#### Set a Box Apart With One Tone
|
|
2974
|
-
|
|
2975
|
-
Give a box one `tone`, never a shadow. Nest surfaces two deep at most, and only on a ground where the step shows.
|
|
2976
|
-
|
|
2977
3079
|
### Related
|
|
2978
3080
|
|
|
2979
3081
|
[Typography](/marketing/foundations/typography)
|
|
@@ -3275,7 +3377,7 @@ Every motion token holds a reduced value. Under `prefers-reduced-motion: reduce`
|
|
|
3275
3377
|
| `ease.morph` | `cubic-bezier(0.45, 0, 0.2, 1)` | The products showcase. |
|
|
3276
3378
|
| `ease.draw` | `cubic-bezier(0.65, 0, 0.35, 1)` | Lines that draw themselves, such as a rail. |
|
|
3277
3379
|
|
|
3278
|
-
### Scale
|
|
3380
|
+
### Scale & Distance
|
|
3279
3381
|
|
|
3280
3382
|
| Token | Value | Use |
|
|
3281
3383
|
| --- | --- | --- |
|
|
@@ -3289,7 +3391,7 @@ Every motion token holds a reduced value. Under `prefers-reduced-motion: reduce`
|
|
|
3289
3391
|
| `translate.enter` | `8px, 0px reduced` | How far an entering item rises. |
|
|
3290
3392
|
| `translate.nudge` | `0.15em, 0px reduced` | How far a chevron travels on hover. |
|
|
3291
3393
|
|
|
3292
|
-
### Blur
|
|
3394
|
+
### Blur & Opacity
|
|
3293
3395
|
|
|
3294
3396
|
| Token | Value | Use |
|
|
3295
3397
|
| --- | --- | --- |
|
|
@@ -3322,8 +3424,8 @@ A recipe names the tokens that time one kind of change, so every part moves alik
|
|
|
3322
3424
|
Under `prefers-reduced-motion: reduce`, each token falls to its reduced value, and nothing travels.
|
|
3323
3425
|
|
|
3324
3426
|
* **State Changes (100ms):** Hover, press release, state, swap, surface, and disclosure durations.
|
|
3325
|
-
* **Entrances
|
|
3326
|
-
* **Travel
|
|
3427
|
+
* **Entrances & Media (0ms):** Entering sets, media zooms, showcase moves, and drawn lines.
|
|
3428
|
+
* **Travel & Scale (0px · 1):** Distances fall to zero and scales to one, so parts fade in place.
|
|
3327
3429
|
|
|
3328
3430
|
### Guidelines
|
|
3329
3431
|
|
|
@@ -3335,7 +3437,7 @@ Set the duration and curve of a transition from the same row, such as `hoverIn`
|
|
|
3335
3437
|
|
|
3336
3438
|
A menu, popover, or dialog closes on a shorter duration and the exit curve, so it leaves before the next input. A hover returns on a longer duration than it arrives on, so a pointer that crosses a part fades it in and out once.
|
|
3337
3439
|
|
|
3338
|
-
#### Limit Motion to Feedback
|
|
3440
|
+
#### Limit Motion to Feedback & Entrances
|
|
3339
3441
|
|
|
3340
3442
|
Animate visitor-triggered changes, such as a hover or a filter, with transitions that name their properties. One-time entrances when content comes into view and busy indicators may also move. Avoid unsolicited looping motion, and use the reduced-motion tokens for each animation.
|
|
3341
3443
|
|
|
@@ -3604,8 +3706,8 @@ Each text style is a typography set that sets the family, size, weight, line hei
|
|
|
3604
3706
|
### Typefaces
|
|
3605
3707
|
|
|
3606
3708
|
* **Pilat (fontFamily.sans):** Headlines, copy, and navigation, at Book (500) by default.
|
|
3607
|
-
* **HB Set (fontFamily.serif):**
|
|
3608
|
-
* **JetBrains Mono (fontFamily.mono):** Code, figures, and technical labels, at Regular (400).
|
|
3709
|
+
* **HB Set (fontFamily.serif):** Rare serif statements in display.d1, at Light (300), on request only.
|
|
3710
|
+
* **Tempo JetBrains Mono (fontFamily.mono):** Code, figures, and technical labels, at Regular (400).
|
|
3609
3711
|
|
|
3610
3712
|
### Type Sets
|
|
3611
3713
|
|
|
@@ -3645,7 +3747,7 @@ Display and heading sets step up at 768px, 1024px, and 1512px, and the hero step
|
|
|
3645
3747
|
| --- | --- | --- | --- | --- | --- |
|
|
3646
3748
|
| `utility.eyebrow` | Pilat | 500 | Mobile 10px/16px, Tablet 10px/16px, Desktop 10px/16px, Display 10px/16px | 0.06em | The uppercase label above a section title. |
|
|
3647
3749
|
| `utility.nav` | Pilat | 500 | Mobile 14px/16px, Tablet 14px/16px, Desktop 14px/16px, Display 14px/16px | 0em | Navigation links and footer links. |
|
|
3648
|
-
| `utility.mono` | JetBrains Mono | 400 | Mobile 10px/14px, Tablet 10px/14px, Desktop 10px/14px, Display 10px/14px | 0.06em | Code, figures, and technical labels. |
|
|
3750
|
+
| `utility.mono` | Tempo JetBrains Mono | 400 | Mobile 10px/14px, Tablet 10px/14px, Desktop 10px/14px, Display 10px/14px | 0.06em | Code, figures, and technical labels. |
|
|
3649
3751
|
|
|
3650
3752
|
### Type Pairs
|
|
3651
3753
|
|
|
@@ -3861,7 +3963,7 @@ The text starts its headings at `h2`, under the hero's `h1`, so the outline hold
|
|
|
3861
3963
|
|
|
3862
3964
|
Open every article with an `ArticleBody.Callout` that sums it up in one or two sentences.
|
|
3863
3965
|
|
|
3864
|
-
#### Write Terms as Rows
|
|
3966
|
+
#### Write Terms as Rows & Comparisons as Tables
|
|
3865
3967
|
|
|
3866
3968
|
Set two or more terms as `ArticleBody.Row` items in `ArticleBody.Rows`, each with its `term`, and set a comparison as an `ArticleBody.Table`.
|
|
3867
3969
|
|
|
@@ -3871,7 +3973,7 @@ Set a quote as an `ArticleBody.Quote` with its `author` and `affiliation`, so th
|
|
|
3871
3973
|
|
|
3872
3974
|
#### Write Links Plainly
|
|
3873
3975
|
|
|
3874
|
-
A link in a sentence is plain and underlined. A link on its own line ends in a [Link](/marketing/components/link) chevron, or an arrow up right when it leaves the site.
|
|
3976
|
+
A link in a sentence is plain and underlined. A link on its own line ends in a [Link](/marketing/components/link) chevron, or an arrow up right when it leaves the site, both from [Tempo Icons](/marketing/foundations/iconography).
|
|
3875
3977
|
|
|
3876
3978
|
### Accessibility
|
|
3877
3979
|
|
|
@@ -4001,13 +4103,13 @@ import { ArticleHero } from '@tempoxyz/ds/marketing'
|
|
|
4001
4103
|
|
|
4002
4104
|
Set `description` on a Learn guide or a customer story, and `eyebrow` only on a customer story, to name its company.
|
|
4003
4105
|
|
|
4004
|
-
#### Show the Date
|
|
4106
|
+
#### Show the Date & the Read Time
|
|
4005
4107
|
|
|
4006
4108
|
Pass both `date` and `minutes` to `ArticleHero.Meta` whenever the article has them.
|
|
4007
4109
|
|
|
4008
4110
|
### Content
|
|
4009
4111
|
|
|
4010
|
-
#### Write the Title
|
|
4112
|
+
#### Write the Title & Line
|
|
4011
4113
|
|
|
4012
4114
|
Write the title in sentence case with no closing period, and `description` in one or two sentences.
|
|
4013
4115
|
|
|
@@ -4449,7 +4551,7 @@ export function Demo() {
|
|
|
4449
4551
|
|
|
4450
4552
|
#### Photo
|
|
4451
4553
|
|
|
4452
|
-
Set `job="photo"` to set the title on its photo, over the scrim. Leave out `href` for a card that names a role and links nowhere, as role cards introduce a team.
|
|
4554
|
+
Set `job="photo"` to set the title on its photo, over the scrim. Leave out `href` for a card that names a role and links nowhere, as role cards introduce a team. Its `icon` badge takes a [Tempo Icons](/marketing/foundations/iconography) glyph.
|
|
4453
4555
|
|
|
4454
4556
|
```tsx
|
|
4455
4557
|
/** Demonstrates Marketing photo cards: a team's roles on photos, each with an icon badge. @module */
|
|
@@ -4777,7 +4879,7 @@ import { Contact } from '@tempoxyz/ds/marketing'
|
|
|
4777
4879
|
|
|
4778
4880
|
Give each field a visible `Field.Label` above it, and mark the optional ones Optional. A placeholder alone disappears as the visitor types.
|
|
4779
4881
|
|
|
4780
|
-
#### Hold the Form
|
|
4882
|
+
#### Hold the Form & Only It
|
|
4781
4883
|
|
|
4782
4884
|
Pass the contact form as `children`. The card pads it by the same inset as the copy above it, so nothing else belongs in the card.
|
|
4783
4885
|
|
|
@@ -5088,7 +5190,7 @@ import { CustomerStoryFeature } from '@tempoxyz/ds/marketing'
|
|
|
5088
5190
|
* Use [Card](/marketing/sections/card) for several stories at once.
|
|
5089
5191
|
* Use [Quote Band](/marketing/sections/quote-band) for a quote that speaks for the whole page.
|
|
5090
5192
|
|
|
5091
|
-
#### Pass the Photo, Logo
|
|
5193
|
+
#### Pass the Photo, Logo & Link
|
|
5092
5194
|
|
|
5093
5195
|
Pass the photo in `image`, which covers the panel, and the logo in `logo`, which draws black on the page and white on the panel. Pass the link in `action` as a [Link](/marketing/components/link) with its default tone.
|
|
5094
5196
|
|
|
@@ -5468,12 +5570,10 @@ export function Demo() {
|
|
|
5468
5570
|
<Field.Root appearance="inverse" name="email">
|
|
5469
5571
|
<Field.Label>Email for monthly updates</Field.Label>
|
|
5470
5572
|
<Field.Control
|
|
5471
|
-
action={
|
|
5472
|
-
<Button appearance="inverse" size="large" type="submit">
|
|
5473
|
-
Subscribe
|
|
5474
|
-
</Button>
|
|
5475
|
-
}
|
|
5573
|
+
action={<Field.Submit aria-label="Subscribe" />}
|
|
5476
5574
|
autoComplete="email"
|
|
5575
|
+
condensed
|
|
5576
|
+
placeholder="you@company.com"
|
|
5477
5577
|
required
|
|
5478
5578
|
type="email"
|
|
5479
5579
|
/>
|
|
@@ -5521,9 +5621,9 @@ import { Footer } from '@tempoxyz/ds/marketing'
|
|
|
5521
5621
|
|
|
5522
5622
|
Pass the site's sections in `groups`, each with its `title` and `links`, in reading order. Add a new product or solution page to its group's links, so the footer stays the whole site map.
|
|
5523
5623
|
|
|
5524
|
-
#### Pass the Sign-Up
|
|
5624
|
+
#### Pass the Sign-Up & the Language Picker
|
|
5525
5625
|
|
|
5526
|
-
Pass the sign-up form in `newsletter` and the language picker in `language`. The footer lays them out and never posts or routes. Build the sign-up from
|
|
5626
|
+
Pass the sign-up form in `newsletter` and the language picker in `language`. The footer lays them out and never posts or routes. Build the sign-up from the condensed [Field](/marketing/components/field), with `appearance="inverse"` and a `Field.Submit` named Subscribe.
|
|
5527
5627
|
|
|
5528
5628
|
#### Link Through Your Router
|
|
5529
5629
|
|
|
@@ -5536,7 +5636,7 @@ Pass `linkRender` for router links, such as a Next.js link. Every link renders t
|
|
|
5536
5636
|
|
|
5537
5637
|
#### Your Responsibilities
|
|
5538
5638
|
|
|
5539
|
-
* **Name the Sign-Up (Field.Label):** Label the sign-up's field, and place the
|
|
5639
|
+
* **Name the Sign-Up (Field.Label):** Label the sign-up's field, name its arrow, and place the outcome in `Field.Status`.
|
|
5540
5640
|
* **Translate the Labels (navigationLabel):** Set `navigationLabel` and `homeLabel` on a page in another language.
|
|
5541
5641
|
|
|
5542
5642
|
### Related
|
|
@@ -5555,7 +5655,7 @@ Use for a page's own newsletter sign-up.
|
|
|
5555
5655
|
|
|
5556
5656
|
[Field](/marketing/components/field)
|
|
5557
5657
|
|
|
5558
|
-
Use for the sign-up's email field and its submit
|
|
5658
|
+
Use for the sign-up's condensed email field and its arrow submit.
|
|
5559
5659
|
|
|
5560
5660
|
## Hero
|
|
5561
5661
|
|
|
@@ -5796,7 +5896,7 @@ import { LeadCapture } from '@tempoxyz/ds/marketing'
|
|
|
5796
5896
|
* Use [Card](/marketing/sections/card) for a report featured on another page.
|
|
5797
5897
|
* Use [Contact](/marketing/sections/contact) for a form to reach the team.
|
|
5798
5898
|
|
|
5799
|
-
#### Pass the Form
|
|
5899
|
+
#### Pass the Form & the Figures
|
|
5800
5900
|
|
|
5801
5901
|
Pass the form as `children`, and the key figures in `figures`, such as a [Stats](/marketing/sections/stats) row. Build a one-field form from an inline [Field](/marketing/components/field) with its submit `action`.
|
|
5802
5902
|
|
|
@@ -6161,7 +6261,7 @@ List the sections in `links`. A section with `items` opens a menu, sorted A to Z
|
|
|
6161
6261
|
|
|
6162
6262
|
Pass the closing action in `action`, such as Contact. It renders as a [Button](/marketing/components/button) with `layout="navigation"`.
|
|
6163
6263
|
|
|
6164
|
-
#### Fix the Bar
|
|
6264
|
+
#### Fix the Bar & Clear It
|
|
6165
6265
|
|
|
6166
6266
|
Set `fixed` so the bar stays at the top. Anything keyboard focus or a jump link brings into view clears the bar.
|
|
6167
6267
|
|
|
@@ -6316,7 +6416,7 @@ Leave `size="compact"` (default) for a long list to scan, and set `size="large"`
|
|
|
6316
6416
|
|
|
6317
6417
|
#### Link Through Your Router
|
|
6318
6418
|
|
|
6319
|
-
Pass `render` for router links. A card whose `href` starts with `http` opens in a new tab and ends in
|
|
6419
|
+
Pass `render` for router links. A card whose `href` starts with `http` opens in a new tab and ends in the [Tempo Icons](/marketing/foundations/iconography) arrow up right.
|
|
6320
6420
|
|
|
6321
6421
|
### Accessibility
|
|
6322
6422
|
|
|
@@ -6444,7 +6544,7 @@ import { QuoteBand } from '@tempoxyz/ds/marketing'
|
|
|
6444
6544
|
|
|
6445
6545
|
Pass the quote as `children` without marks. The part adds the curly marks the page's language uses, so typed marks would double them.
|
|
6446
6546
|
|
|
6447
|
-
#### Pass the Photo
|
|
6547
|
+
#### Pass the Photo & the Action
|
|
6448
6548
|
|
|
6449
6549
|
Pass the photo in `image`, which covers the band. Pass the action as a [Button](/marketing/components/button) link with `appearance="overlay"` and `variant="secondary"`, such as Read the case study.
|
|
6450
6550
|
|
|
@@ -6502,7 +6602,7 @@ export const fill = true
|
|
|
6502
6602
|
|
|
6503
6603
|
export function Demo() {
|
|
6504
6604
|
return (
|
|
6505
|
-
<div>
|
|
6605
|
+
<div {...styles.page()}>
|
|
6506
6606
|
<Section aria-labelledby="section-benefits">
|
|
6507
6607
|
<SectionHeading
|
|
6508
6608
|
eyebrow="Business benefits"
|
|
@@ -6524,9 +6624,14 @@ export function Demo() {
|
|
|
6524
6624
|
}
|
|
6525
6625
|
|
|
6526
6626
|
namespace styles {
|
|
6627
|
+
// Scales the page as a whole, so the gap keeps its proportion to the headings and still steps
|
|
6628
|
+
// with the preview's width.
|
|
6629
|
+
export const page = style({ zoom: '0.75 !custom' })
|
|
6630
|
+
|
|
6527
6631
|
export const content = style({
|
|
6528
6632
|
backgroundColor: 'container.control',
|
|
6529
|
-
|
|
6633
|
+
borderRadius: 'lg',
|
|
6634
|
+
color: 'content.secondary',
|
|
6530
6635
|
margin: '0',
|
|
6531
6636
|
padding: '24',
|
|
6532
6637
|
textAlign: 'center',
|
|
@@ -6543,7 +6648,7 @@ Set `tone` to `page` (default, nothing painted), `white`, `grey`, `outline`, or
|
|
|
6543
6648
|
|
|
6544
6649
|
```tsx
|
|
6545
6650
|
/** Demonstrates the Marketing section tones, with an inverse heading in the inverse section. @module */
|
|
6546
|
-
import { Section, SectionHeading } from '@tempoxyz/ds/marketing'
|
|
6651
|
+
import { Section, SectionHeading, style } from '@tempoxyz/ds/marketing'
|
|
6547
6652
|
|
|
6548
6653
|
export const fill = true
|
|
6549
6654
|
|
|
@@ -6557,9 +6662,14 @@ const tones = [
|
|
|
6557
6662
|
|
|
6558
6663
|
export function Demo() {
|
|
6559
6664
|
return (
|
|
6560
|
-
<div>
|
|
6665
|
+
<div {...styles.grid()}>
|
|
6561
6666
|
{tones.map((entry) => (
|
|
6562
|
-
<Section
|
|
6667
|
+
<Section
|
|
6668
|
+
aria-labelledby={`tone-${entry.tone}`}
|
|
6669
|
+
key={entry.tone}
|
|
6670
|
+
tone={entry.tone}
|
|
6671
|
+
{...styles.tile()}
|
|
6672
|
+
>
|
|
6563
6673
|
<SectionHeading
|
|
6564
6674
|
appearance={entry.tone === 'inverse' ? 'inverse' : 'base'}
|
|
6565
6675
|
eyebrow={entry.title}
|
|
@@ -6571,6 +6681,21 @@ export function Demo() {
|
|
|
6571
6681
|
</div>
|
|
6572
6682
|
)
|
|
6573
6683
|
}
|
|
6684
|
+
|
|
6685
|
+
namespace styles {
|
|
6686
|
+
// Scales the tones as a whole, so each keeps the space it pads, and sets them two to a row once
|
|
6687
|
+
// two fit. The inverse tone closes the set across the full width, as a dark band closes a page.
|
|
6688
|
+
export const grid = style({
|
|
6689
|
+
display: 'grid',
|
|
6690
|
+
gap: '16',
|
|
6691
|
+
gridTemplateColumns: 'repeat(auto-fit, minmax(min(100%, 480px), 1fr)) !custom',
|
|
6692
|
+
zoom: '0.75 !custom',
|
|
6693
|
+
selectors: { '& > :last-child': { gridColumn: '1 / -1 !custom' } },
|
|
6694
|
+
})
|
|
6695
|
+
|
|
6696
|
+
// Rounds each tone, so it reads as its own tile. The outline follows the corner.
|
|
6697
|
+
export const tile = style({ borderRadius: 'xl', marginInline: '0' })
|
|
6698
|
+
}
|
|
6574
6699
|
```
|
|
6575
6700
|
|
|
6576
6701
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Tone.tsx)
|
|
@@ -6885,7 +7010,7 @@ import { Showcase } from '@tempoxyz/ds/marketing'
|
|
|
6885
7010
|
* **Stacked (stacked):** Items in a row under the art, such as three steps.
|
|
6886
7011
|
* **Contained (contained):** The heading inside the art's plate, under the art, from 1024px.
|
|
6887
7012
|
|
|
6888
|
-
#### Give Each Item One Line
|
|
7013
|
+
#### Give Each Item One Line & One Link
|
|
6889
7014
|
|
|
6890
7015
|
Pass each step, card, or tool as a `Showcase.Item` with one line, and its link as a [Link](/marketing/components/link) in `action`. A page with a pending picture isn't ready to ship.
|
|
6891
7016
|
|
|
@@ -6948,7 +7073,7 @@ export function Demo() {
|
|
|
6948
7073
|
|
|
6949
7074
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Stats/Default.tsx)
|
|
6950
7075
|
|
|
6951
|
-
#### Inverse
|
|
7076
|
+
#### Inverse & Small
|
|
6952
7077
|
|
|
6953
7078
|
Set `appearance="inverse"` on a photo or a dark ground. Set `size="small"` inside a card, or `large` (default) in a section of its own.
|
|
6954
7079
|
|
|
@@ -6958,6 +7083,8 @@ import { Stats, style } from '@tempoxyz/ds/marketing'
|
|
|
6958
7083
|
|
|
6959
7084
|
export const fill = true
|
|
6960
7085
|
|
|
7086
|
+
export const surface = 'inverse'
|
|
7087
|
+
|
|
6961
7088
|
export function Demo() {
|
|
6962
7089
|
return (
|
|
6963
7090
|
<div {...styles.section()}>
|
|
@@ -7156,7 +7283,7 @@ Name the step as an action, and say what it does in its `description`, in one sh
|
|
|
7156
7283
|
### Accessibility
|
|
7157
7284
|
|
|
7158
7285
|
* **Ordered List (ol):** Renders an `<ol>`, so a screen reader announces each step's place.
|
|
7159
|
-
* **Rail
|
|
7286
|
+
* **Rail & Numbers (aria-hidden):** The rail, the nodes, and the drawn numbers are hidden from screen readers.
|
|
7160
7287
|
* **Reduced Motion (draw):** Under reduced motion, and before the script runs, the rail shows drawn and every node lit.
|
|
7161
7288
|
* **No Focus (Tab):** Nothing in it takes focus, so the keyboard moves past it.
|
|
7162
7289
|
|
|
@@ -7389,7 +7516,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
7389
7516
|
|
|
7390
7517
|
#### Content Fields
|
|
7391
7518
|
|
|
7392
|
-
* **Path
|
|
7519
|
+
* **Path & Title (path · title):** The page's address and the article's title.
|
|
7393
7520
|
* **Description (description):** A Learn guide's line under the title, and the share card's text.
|
|
7394
7521
|
* **Publish Date (date · publishDate):** A post's `date` or a guide's `publishDate`, under the title.
|
|
7395
7522
|
* **Label (label):** Its topic, which the index filters by and cards show.
|
|
@@ -7630,7 +7757,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
7630
7757
|
|
|
7631
7758
|
The body is the pitch, then the contact form. Each language has its own page, with the English page's image.
|
|
7632
7759
|
|
|
7633
|
-
* **Path
|
|
7760
|
+
* **Path & Title (path · title):** The page's address in each language, and its title.
|
|
7634
7761
|
* **Description (description):** One sentence for search results and the share card.
|
|
7635
7762
|
* **Image (image):** The share image, the same in every language.
|
|
7636
7763
|
|
|
@@ -8036,14 +8163,14 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8036
8163
|
|
|
8037
8164
|
#### Content Fields
|
|
8038
8165
|
|
|
8039
|
-
* **Path
|
|
8166
|
+
* **Path & Title (path · title):** The page's address and the story's title.
|
|
8040
8167
|
* **Description (description):** The line under the title, and the share card's text.
|
|
8041
8168
|
* **Company (company):** The customer's name, over the title.
|
|
8042
8169
|
* **Company Facts (companyMetadata):** Industry, size, and products, beside the story.
|
|
8043
8170
|
* **Results (impactMetrics):** Three figures, each with its period or source.
|
|
8044
8171
|
* **Video (videoUrl):** The video at the top of the text, with its still and loop.
|
|
8045
8172
|
* **Card Image (thumbnail):** The image the story's card draws.
|
|
8046
|
-
* **Category
|
|
8173
|
+
* **Category & Date (category · date):** Its topic, which picks related stories, and its publish date.
|
|
8047
8174
|
|
|
8048
8175
|
### Guidelines
|
|
8049
8176
|
|
|
@@ -8459,7 +8586,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8459
8586
|
|
|
8460
8587
|
The event's words, details, sessions, and people are its settings, under the page's slug.
|
|
8461
8588
|
|
|
8462
|
-
* **Path
|
|
8589
|
+
* **Path & Title (path · title):** The page's address, at the event's slug, and its title.
|
|
8463
8590
|
* **Description (description):** One sentence for search results and the share card.
|
|
8464
8591
|
* **Image (image):** The share image, where the page has its own.
|
|
8465
8592
|
* **Remove On (removeOn):** The day after the event, in UTC, when the page comes down.
|
|
@@ -8560,7 +8687,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8560
8687
|
|
|
8561
8688
|
#### Content Fields
|
|
8562
8689
|
|
|
8563
|
-
* **Path
|
|
8690
|
+
* **Path & Title (path · title):** The page's address and title, which the share card also reads.
|
|
8564
8691
|
* **Description (description):** One sentence for search results and the share card.
|
|
8565
8692
|
* **Image (image):** The share image, where the page has its own.
|
|
8566
8693
|
* **Order (order):** The order of the middle: the showcases before the capabilities, or after.
|
|
@@ -8670,7 +8797,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8670
8797
|
3. [CTA](/marketing/sections/cta): Tempo Earn, only on Tokenized assets.
|
|
8671
8798
|
4. [CTA](/marketing/sections/cta): A call to action.
|
|
8672
8799
|
|
|
8673
|
-
#### Ramps
|
|
8800
|
+
#### Ramps & FX
|
|
8674
8801
|
|
|
8675
8802
|
1. [Section Heading](/marketing/sections/section-heading): The title, description, and coverage figures.
|
|
8676
8803
|
2. The coverage explorer.
|
|
@@ -8695,7 +8822,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8695
8822
|
|
|
8696
8823
|
Each page draws from its partner's, asset's, or category's record, never from words written on the page.
|
|
8697
8824
|
|
|
8698
|
-
* **Path
|
|
8825
|
+
* **Path & Title (path · title):** The page's address and title, which the share card also reads.
|
|
8699
8826
|
* **Description (description):** A profile's or asset's intro, 95 characters at most.
|
|
8700
8827
|
* **Image (image):** The share image, where the page has its own.
|
|
8701
8828
|
* **Search Title (seoTitle · seoDescription):** A title and description for search results, where they differ.
|
|
@@ -8776,7 +8903,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8776
8903
|
|
|
8777
8904
|
The page draws only its fields, never words in its body.
|
|
8778
8905
|
|
|
8779
|
-
* **Path
|
|
8906
|
+
* **Path & Title (path · title):** The page's address and the report's title.
|
|
8780
8907
|
* **Order (order):** Its place on the Reports index, first to last. Required.
|
|
8781
8908
|
* **PDF (pdfUrl):** The report's PDF, which the form hands over. Required.
|
|
8782
8909
|
* **Eyebrow (eyebrow):** The label over the title, such as Analysis.
|
|
@@ -8903,7 +9030,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8903
9030
|
|
|
8904
9031
|
#### Content Fields
|
|
8905
9032
|
|
|
8906
|
-
* **Path
|
|
9033
|
+
* **Path & Title (path · title):** The page's address and title, which the share card also reads.
|
|
8907
9034
|
* **Description (description):** One sentence for search results and the share card.
|
|
8908
9035
|
* **Image (image):** The share image, where the page has its own.
|
|
8909
9036
|
* **Search Title (seoTitle · seoDescription):** A title and description for search results, where they differ.
|
|
@@ -8923,7 +9050,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8923
9050
|
|
|
8924
9051
|
Keep the opening and closing sections in the template's order. Use each middle section once, with the variations listed below.
|
|
8925
9052
|
|
|
8926
|
-
#### Set Three Benefits
|
|
9053
|
+
#### Set Three Benefits & Three Cards
|
|
8927
9054
|
|
|
8928
9055
|
Give each benefit its art, since the row sets three across from 768px, and fill the page's three card slots.
|
|
8929
9056
|
|