@tempoxyz/ds 3.2.20261201001603 → 3.3.20261201015246

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.
@@ -36,7 +36,7 @@ Each file opens with its contents. Find a section with `rg -n '^## ' <file>`, an
36
36
  - [product/components/layout.md](product/components/layout.md) (91 KB): AppShell, Container, Frame, Grid, Inline, Inset, Separator, Stack, Surface.
37
37
  - [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.
38
38
  - [product/components/blockchain.md](product/components/blockchain.md) (107 KB): AddressCard, Amount, AssetChip, BadgedLogo, Hex, Identicon, NetworkLogo, Qr, SecretValue, Token, TokenLogo.
39
- - [marketing.md](marketing.md) (291 KB): The Marketing system.
39
+ - [marketing.md](marketing.md) (293 KB): The Marketing system.
40
40
  - [arsenal.md](arsenal.md) (262 KB): The Arsenal brand system.
41
41
 
42
42
  ## Rules
@@ -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): Shows a partner's logo on a tile in its brand color.
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): Black and white, each at a few strengths, with hue reserved for status.
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.
@@ -1885,7 +1885,7 @@ namespace styles {
1885
1885
  export const label = style({
1886
1886
  alignItems: 'center',
1887
1887
  color: 'content.secondary',
1888
- columnGap: '4',
1888
+ columnGap: '8',
1889
1889
  display: 'inline-flex',
1890
1890
  typography: 'body.b3',
1891
1891
  })
@@ -1960,71 +1960,83 @@ Use for the band that links home with the mark.
1960
1960
 
1961
1961
  ## Symbol Tile
1962
1962
 
1963
- Shows a partner's logo on a tile in its brand color.
1963
+ Sets a glyph, icon, or mark on a square tile beside its label.
1964
1964
 
1965
1965
  ### Overview
1966
1966
 
1967
- A partner's own mark on a square tile in the partner's brand color. The mark, an image or an inline SVG passed as children, fills the whole tile. The tile is decorative, so the partner's name always follows it as text.
1967
+ 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
1968
 
1969
1969
  ### Examples
1970
1970
 
1971
1971
  #### Default
1972
1972
 
1973
- Alchemy's tile, as a partner's card draws it.
1973
+ A Tempo icon on the default 4% grey.
1974
1974
 
1975
1975
  ```tsx
1976
- /** Demonstrates a partner's mark on a small tile in its brand color, as a partner's card draws it. @module */
1976
+ /** Demonstrates a Tempo icon on a small tile in the default grey. @module */
1977
+ import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
1977
1978
  import { SymbolTile } from '@tempoxyz/ds/marketing'
1978
1979
 
1979
1980
  export function Demo() {
1980
1981
  return (
1981
- <SymbolTile color="#4471ed" mark="light">
1982
- <Ring />
1982
+ <SymbolTile>
1983
+ <GlobeIcon size={20} />
1983
1984
  </SymbolTile>
1984
1985
  )
1985
1986
  }
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
1987
  ```
1996
1988
 
1997
1989
  [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Default.tsx)
1998
1990
 
1999
1991
  #### Size
2000
1992
 
2001
- Set `size` to `small` (default, 40px) on cards and rows, or `large` (64px) beside a profile's title.
1993
+ Set `size` to `small` (default, 40px) in cards and rows, or `large` (64px) beside a title.
2002
1994
 
2003
1995
  ```tsx
2004
- /** Demonstrates each symbol tile size. @module */
1996
+ /** Demonstrates each symbol tile size, with an icon at half the tile. @module */
1997
+ import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
2005
1998
  import { style, SymbolTile } from '@tempoxyz/ds/marketing'
2006
1999
 
2007
2000
  export function Demo() {
2008
2001
  return (
2009
2002
  <div {...styles.row()}>
2010
- <SymbolTile color="#7e59e4" mark="light">
2011
- <Bars />
2003
+ <SymbolTile>
2004
+ <GlobeIcon size={20} />
2012
2005
  </SymbolTile>
2013
- <SymbolTile color="#7e59e4" mark="light" size="large">
2014
- <Bars />
2006
+ <SymbolTile size="large">
2007
+ <GlobeIcon scale="large" size={32} />
2015
2008
  </SymbolTile>
2016
2009
  </div>
2017
2010
  )
2018
2011
  }
2019
2012
 
2020
- /** A one-color mark on a 200 frame, drawn in the text color across the whole tile. */
2021
- function Bars() {
2013
+ namespace styles {
2014
+ export const row = style({ alignItems: 'center', display: 'flex', gap: '12' })
2015
+ }
2016
+ ```
2017
+
2018
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Size.tsx)
2019
+
2020
+ #### Tone
2021
+
2022
+ 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`.
2023
+
2024
+ ```tsx
2025
+ /** Demonstrates each symbol tile tone on the page's grey. @module */
2026
+ import { WalletIcon } from '@tempoxyz/ds/arsenal/icons'
2027
+ import { style, SymbolTile } from '@tempoxyz/ds/marketing'
2028
+
2029
+ const tones = ['grey', 'white', 'outline', 'inverse'] as const
2030
+
2031
+ export function Demo() {
2022
2032
  return (
2023
- <svg fill="currentColor" viewBox="0 0 200 200">
2024
- <rect height="72" rx="8" width="20" x="62" y="64" />
2025
- <rect height="96" rx="8" width="20" x="90" y="52" />
2026
- <rect height="48" rx="8" width="20" x="118" y="76" />
2027
- </svg>
2033
+ <div {...styles.row()}>
2034
+ {tones.map((tone) => (
2035
+ <SymbolTile key={tone} tone={tone}>
2036
+ <WalletIcon size={20} />
2037
+ </SymbolTile>
2038
+ ))}
2039
+ </div>
2028
2040
  )
2029
2041
  }
2030
2042
 
@@ -2033,65 +2045,61 @@ namespace styles {
2033
2045
  }
2034
2046
  ```
2035
2047
 
2036
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Size.tsx)
2048
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Tone.tsx)
2037
2049
 
2038
- #### Mark
2050
+ #### Color
2039
2051
 
2040
- Set `color` to the partner's brand color. Set `mark="light"` on a dark tile, so a mark drawn in `currentColor` turns white. Without a `color`, the tile keeps a 4% grey.
2052
+ 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
2053
 
2042
2054
  ```tsx
2043
- /** Demonstrates symbol tiles in brand colors, with the mark in white on a dark tile and black on a light one. @module */
2055
+ /** Demonstrates symbol tiles in accent colors and a color of the caller's own. @module */
2056
+ import { BankIcon } from '@tempoxyz/ds/arsenal/icons'
2044
2057
  import { style, SymbolTile } from '@tempoxyz/ds/marketing'
2045
2058
 
2046
2059
  export function Demo() {
2047
2060
  return (
2048
2061
  <div {...styles.row()}>
2049
- <SymbolTile color="#7e59e4" mark="light">
2050
- <Wave />
2062
+ <SymbolTile color="accent.blue" mark="light">
2063
+ <BankIcon size={20} />
2064
+ </SymbolTile>
2065
+ <SymbolTile color="accent.violet" mark="light">
2066
+ <BankIcon size={20} />
2067
+ </SymbolTile>
2068
+ <SymbolTile color="accent.olive">
2069
+ <BankIcon size={20} />
2051
2070
  </SymbolTile>
2052
2071
  <SymbolTile color="#c4dc65">
2053
- <Wave />
2072
+ <BankIcon size={20} />
2054
2073
  </SymbolTile>
2055
2074
  </div>
2056
2075
  )
2057
2076
  }
2058
2077
 
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
2078
  namespace styles {
2074
2079
  export const row = style({ alignItems: 'center', display: 'flex', gap: '12' })
2075
2080
  }
2076
2081
  ```
2077
2082
 
2078
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Mark.tsx)
2083
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Color.tsx)
2079
2084
 
2080
- #### With Name
2085
+ #### Content
2081
2086
 
2082
- The partner's name follows as text, spaced by the card or row around it.
2087
+ 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
2088
 
2084
2089
  ```tsx
2085
- /** Demonstrates a symbol tile followed by the partner's name as text, as a card's row sets it. @module */
2090
+ /** Demonstrates an icon at its own size in the tile's center, and a mark drawn across the whole tile. @module */
2091
+ import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
2086
2092
  import { style, SymbolTile } from '@tempoxyz/ds/marketing'
2087
2093
 
2088
2094
  export function Demo() {
2089
2095
  return (
2090
2096
  <div {...styles.row()}>
2091
- <SymbolTile color="#4471ed" mark="light">
2097
+ <SymbolTile size="large">
2098
+ <GlobeIcon scale="large" size={32} />
2099
+ </SymbolTile>
2100
+ <SymbolTile size="large">
2092
2101
  <Ring />
2093
2102
  </SymbolTile>
2094
- Ringwise
2095
2103
  </div>
2096
2104
  )
2097
2105
  }
@@ -2105,6 +2113,33 @@ function Ring() {
2105
2113
  )
2106
2114
  }
2107
2115
 
2116
+ namespace styles {
2117
+ export const row = style({ alignItems: 'center', display: 'flex', gap: '12' })
2118
+ }
2119
+ ```
2120
+
2121
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/Content.tsx)
2122
+
2123
+ #### With Label
2124
+
2125
+ The label follows the tile as text, spaced by the card or row around it.
2126
+
2127
+ ```tsx
2128
+ /** Demonstrates a symbol tile followed by its label as text. @module */
2129
+ import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
2130
+ import { style, SymbolTile } from '@tempoxyz/ds/marketing'
2131
+
2132
+ export function Demo() {
2133
+ return (
2134
+ <div {...styles.row()}>
2135
+ <SymbolTile>
2136
+ <GlobeIcon size={20} />
2137
+ </SymbolTile>
2138
+ Global payouts
2139
+ </div>
2140
+ )
2141
+ }
2142
+
2108
2143
  namespace styles {
2109
2144
  export const row = style({
2110
2145
  alignItems: 'center',
@@ -2116,7 +2151,7 @@ namespace styles {
2116
2151
  }
2117
2152
  ```
2118
2153
 
2119
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/WithName.tsx)
2154
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/SymbolTile/WithLabel.tsx)
2120
2155
 
2121
2156
  ### Anatomy
2122
2157
 
@@ -2130,31 +2165,41 @@ import { SymbolTile } from '@tempoxyz/ds/marketing'
2130
2165
 
2131
2166
  #### When to Use
2132
2167
 
2133
- * Lead a partner's card in the directory, a category, or search results.
2134
- * Lead a ramp's row among the ways to get an asset.
2135
- * Sit beside a partner's title on its profile.
2168
+ * Lead a card, a row, or a list item with a picture of what its label names.
2169
+ * Set an icon or a mark beside a title, at the large size.
2170
+ * Give a set of items one shape, whatever their glyphs.
2136
2171
 
2137
2172
  #### When Not to Use
2138
2173
 
2139
- * Use [Logo](/marketing/components/logo) or [Mark](/marketing/components/mark) for Tempo's own logo.
2140
- * Leave a stablecoin's or an issuer's mark to the asset pages, which draw their own.
2174
+ * Use [Logo](/marketing/components/logo) or [Mark](/marketing/components/mark) for Tempo's own marks.
2175
+ * Use [Button](/marketing/components/button) for an action, since the tile is never pressable.
2176
+ * Use [Tag](/marketing/components/tag) for a short label with a small icon inside it.
2141
2177
 
2142
2178
  #### Size a Tile by Its Place
2143
2179
 
2144
- Use `small` on cards and rows and `large` beside a profile's title. Give tiles side by side one size.
2180
+ Use `small` in cards and rows and `large` beside a title. Give tiles side by side one size.
2181
+
2182
+ #### Center an Icon at Half the Tile
2145
2183
 
2146
- #### Use the Partner's Own Mark
2184
+ 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.
2147
2185
 
2148
- Pass a mark built from the partner's own vector, never a traced picture, and set `color` to the partner's brand color.
2186
+ #### Draw a Mark on Its Own Frame
2187
+
2188
+ Pass a mark without its own width, drawn with its padding on its own square frame, so it fills the tile as drawn.
2189
+
2190
+ #### Keep One Tone in a Set
2191
+
2192
+ Give tiles side by side one `tone`, or one accent each when the color tells the items apart.
2149
2193
 
2150
2194
  ### Accessibility
2151
2195
 
2152
- * **Hidden Tile (aria-hidden):** Always hidden from screen readers. It never takes focus, and the card around it does.
2153
- * **Forced Colors:** The tile and its mark keep their colors in forced colors, as an image does.
2196
+ * **Hidden Tile (aria-hidden):** Always hidden from screen readers, so it adds nothing to what they announce.
2197
+ * **No Focus or States (span):** Renders a `<span>` that never takes focus, so the keyboard skips it.
2198
+ * **Forced Colors:** Keeps its colors and its content in forced colors, as an image does.
2154
2199
 
2155
2200
  #### Your Responsibilities
2156
2201
 
2157
- * **Follow It With the Name:** Follow the tile with the partner's name as text, so a screen reader announces who it is.
2202
+ * **Follow It With a Label:** Follow the tile with its label as text, which a screen reader announces.
2158
2203
 
2159
2204
  ### Related
2160
2205
 
@@ -2162,13 +2207,13 @@ Pass a mark built from the partner's own vector, never a traced picture, and set
2162
2207
 
2163
2208
  Use for Tempo's own mark.
2164
2209
 
2165
- [Breadcrumbs](/marketing/components/breadcrumbs)
2210
+ [Tag](/marketing/components/tag)
2166
2211
 
2167
- Use for the trail above the tile on a partner's profile.
2212
+ Use for a short label with a small icon inside it.
2168
2213
 
2169
- [Partners Index](/marketing/sections/partners-index)
2214
+ [Iconography](/marketing/foundations/iconography)
2170
2215
 
2171
- Use for the directory of partner cards that each lead with a tile.
2216
+ Covers the icons a tile holds and the sizes they draw at.
2172
2217
 
2173
2218
  ## Tab
2174
2219
 
@@ -2779,17 +2824,15 @@ Covers the content roles and their contrast.
2779
2824
 
2780
2825
  ## Color
2781
2826
 
2782
- Black and white, each at a few strengths, with hue reserved for status.
2827
+ Roles for each background, container, text, and line, with a few accents.
2783
2828
 
2784
2829
  ### Overview
2785
2830
 
2786
- Marketing pages are black type on a near-white page. Contrast carries the hierarchy: black headlines, grey supporting copy, and faint grey hints sit on the same page color. Controls fill with a few percent of black, cards lift in white, and panels sink in grey, without a new color.
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.
2831
+ 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
2832
 
2790
2833
  ### Primitives
2791
2834
 
2792
- Primitives hold the raw colors that the roles read. Use a role in page styles, and reach for a primitive only for an illustration or a chart.
2835
+ 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
2836
 
2794
2837
  #### Neutral
2795
2838
 
@@ -2826,16 +2869,12 @@ Primitives hold the raw colors that the roles read. Use a role in page styles, a
2826
2869
 
2827
2870
  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
2871
 
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
2872
  #### Glass
2834
2873
 
2835
- Marketing has two glasses. A light frost carries the header and its menus over the page, and a dark glass carries controls over photos and film, dark enough that their near-white labels read over a white photo.
2874
+ Glass blurs what passes behind a bar or a control. Use the frost on the page and the tint on media.
2836
2875
 
2837
- * **Header Glass (background.glass):** The header bar, its menus and the folded menu, under `blur.popover`.
2838
- * **Media Glass (control.glass):** A play button, a tab, a tag, a badge or a secondary button over media, under `blur.control`.
2876
+ * **Light Frost (background.glass):** A pale grey frost for the header, its menus, and the folded menu, under `blur.popover`.
2877
+ * **Dark Tint (control.glass):** A black tint for a control on a photo or video, so its white label reads, under `blur.control`.
2839
2878
 
2840
2879
  #### Accent
2841
2880
 
@@ -2851,7 +2890,9 @@ Marketing has two glasses. A light frost carries the header and its menus over t
2851
2890
  | purple | `accent.purple` | `#ba59dd` |
2852
2891
  | violet | `accent.violet` | `#7e59e4` |
2853
2892
 
2854
- Each hue has one value, for status marks and art on the light page.
2893
+ * **Primary (purple):** The hero accent, for the one mark or moment that leads the page.
2894
+ * **Feedback (red, orange, green):** Negative, warning, and positive states, such as a failed or sent form.
2895
+ * **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
2896
 
2856
2897
  ### Backgrounds
2857
2898
 
@@ -2864,9 +2905,9 @@ Each hue has one value, for status marks and art on the light page.
2864
2905
 
2865
2906
  A page has three grounds. Each part takes a matching `appearance` on each, so it reads the same on any of them.
2866
2907
 
2867
- * **Page (base):** The light page that every marketing page sits on, in `background.primary`.
2868
- * **Dark Section (inverse):** A black band in `inverse.background.primary`, with the inverse roles inside.
2869
- * **Photo or Video (overlay):** Media under a control, such as a video's play button or a tag on a photo.
2908
+ * **Base (base):** The light page that every marketing page sits on, in `background.primary`.
2909
+ * **Inverse (inverse):** A black band, card, or box in `inverse.background.primary`, with the inverse roles.
2910
+ * **Overlay (overlay):** A photo or video under a control, such as a play button or a tag.
2870
2911
 
2871
2912
  ### Containers
2872
2913
 
@@ -2887,12 +2928,10 @@ Content colors text and glyphs. Pick a role by how much the reader needs the tex
2887
2928
  | `content.prose` | `color-mix(in srgb, var(--tds-black, #000000) 80%, transparent)` | Running text in articles and long descriptions. |
2888
2929
  | `content.secondary` | `color-mix(in srgb, var(--tds-black, #000000) 56%, transparent)` | Supporting copy, captions, and metadata. |
2889
2930
  | `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)` | Placeholders and disabled text. |
2931
+ | `content.subtle` | `color-mix(in srgb, var(--tds-black, #000000) 16%, transparent)` | Decoration only, such as a faint mark or rule. Never text. |
2891
2932
  | `content.positive` | `#13a963` | Success, such as a confirmed form submission. |
2892
2933
  | `content.negative` | `#eb3417` | Errors, such as an invalid email address. |
2893
2934
 
2894
- The status roles read two accents: green for positive and red for negative.
2895
-
2896
2935
  ### Lines
2897
2936
 
2898
2937
  | Token | Value | Use |
@@ -2910,22 +2949,22 @@ Links take the text color around them and recede on hover, as [Link](/marketing/
2910
2949
 
2911
2950
  ### Inverse
2912
2951
 
2913
- The inverse roles color a dark section on the light page. Each one mirrors the light role of its name, so a band reads the same way in either tone.
2952
+ 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
2953
 
2915
2954
  | Token | Value | Use |
2916
2955
  | --- | --- | --- |
2917
- | `inverse.background.primary` | `#000000` | A dark section on the light page. |
2918
- | `inverse.background.secondary` | `#141414` | A raised panel inside a dark section. |
2919
- | `inverse.container.control` | `color-mix(in srgb, var(--tds-white, #ffffff) 12%, transparent)` | A control fill inside a dark section. |
2920
- | `inverse.content.primary` | `#f5f5f5` | Headlines and primary text inside a dark section. |
2921
- | `inverse.content.secondary` | `color-mix(in srgb, var(--tds-white, #ffffff) 60%, transparent)` | Supporting copy inside a dark section. |
2922
- | `inverse.content.tertiary` | `color-mix(in srgb, var(--tds-white, #ffffff) 44%, transparent)` | Hints and glyphs inside a dark section. |
2923
- | `inverse.content.subtle` | `color-mix(in srgb, var(--tds-white, #ffffff) 20%, transparent)` | Placeholders and disabled text inside a dark section. |
2956
+ | `inverse.background.primary` | `#000000` | A dark ground, such as a band, card, or box. |
2957
+ | `inverse.background.secondary` | `#141414` | A raised panel on a dark ground. |
2958
+ | `inverse.container.control` | `color-mix(in srgb, var(--tds-white, #ffffff) 12%, transparent)` | A control fill on a dark ground. |
2959
+ | `inverse.content.primary` | `#f5f5f5` | Headlines and primary text on a dark ground. |
2960
+ | `inverse.content.secondary` | `color-mix(in srgb, var(--tds-white, #ffffff) 60%, transparent)` | Supporting copy on a dark ground. |
2961
+ | `inverse.content.tertiary` | `color-mix(in srgb, var(--tds-white, #ffffff) 44%, transparent)` | Hints and glyphs on a dark ground. |
2962
+ | `inverse.content.subtle` | `color-mix(in srgb, var(--tds-white, #ffffff) 20%, transparent)` | Decoration only on a dark ground. Never text. |
2924
2963
  | `inverse.line.secondary` | `color-mix(in srgb, var(--tds-white, #ffffff) 12%, transparent)` | Dividers inside a dark section. |
2925
2964
 
2926
2965
  ### Surfaces
2927
2966
 
2928
- A box set apart from its ground, such as a card, panel, or art tile, takes one `tone`, which sets its fill on any ground. [Section](/marketing/sections/section) and [Card](/marketing/sections/card) take the same tone names. Controls keep their own tint, and art keeps its own colors.
2967
+ 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
2968
 
2930
2969
  * **White (tone="white"):** Lifts words or controls off the page. On a white band, frame the box with an outline instead.
2931
2970
  * **Grey (tone="grey"):** Sinks art, media, and quieter groups one step off the page. On grey, lift the box in white.
@@ -2938,10 +2977,10 @@ A box set apart from its ground, such as a card, panel, or art tile, takes one `
2938
2977
 
2939
2978
  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
2979
 
2941
- **Do:** Color the eyebrow and lede with `content.secondary`.
2980
+ **Do:** Color supporting copy with `content.secondary`.
2942
2981
 
2943
2982
  ```tsx
2944
- <MarketingExample kind="section" />
2983
+ <MarketingExample kind="roles" />
2945
2984
  ```
2946
2985
 
2947
2986
  **Don't:** Set copy in `content.tertiary`. It is too faint for text the reader must see.
@@ -2966,14 +3005,6 @@ Status color supports a label and never stands alone.
2966
3005
  <MarketingExample kind="statusColor" />
2967
3006
  ```
2968
3007
 
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
3008
  ### Related
2978
3009
 
2979
3010
  [Typography](/marketing/foundations/typography)
@@ -6502,7 +6533,7 @@ export const fill = true
6502
6533
 
6503
6534
  export function Demo() {
6504
6535
  return (
6505
- <div>
6536
+ <div {...styles.page()}>
6506
6537
  <Section aria-labelledby="section-benefits">
6507
6538
  <SectionHeading
6508
6539
  eyebrow="Business benefits"
@@ -6524,9 +6555,14 @@ export function Demo() {
6524
6555
  }
6525
6556
 
6526
6557
  namespace styles {
6558
+ // Scales the page as a whole, so the gap keeps its proportion to the headings and still steps
6559
+ // with the preview's width.
6560
+ export const page = style({ zoom: '0.75 !custom' })
6561
+
6527
6562
  export const content = style({
6528
6563
  backgroundColor: 'container.control',
6529
- color: 'content.primary',
6564
+ borderRadius: 'lg',
6565
+ color: 'content.secondary',
6530
6566
  margin: '0',
6531
6567
  padding: '24',
6532
6568
  textAlign: 'center',
@@ -6543,7 +6579,7 @@ Set `tone` to `page` (default, nothing painted), `white`, `grey`, `outline`, or
6543
6579
 
6544
6580
  ```tsx
6545
6581
  /** Demonstrates the Marketing section tones, with an inverse heading in the inverse section. @module */
6546
- import { Section, SectionHeading } from '@tempoxyz/ds/marketing'
6582
+ import { Section, SectionHeading, style } from '@tempoxyz/ds/marketing'
6547
6583
 
6548
6584
  export const fill = true
6549
6585
 
@@ -6557,9 +6593,14 @@ const tones = [
6557
6593
 
6558
6594
  export function Demo() {
6559
6595
  return (
6560
- <div>
6596
+ <div {...styles.grid()}>
6561
6597
  {tones.map((entry) => (
6562
- <Section aria-labelledby={`tone-${entry.tone}`} key={entry.tone} tone={entry.tone}>
6598
+ <Section
6599
+ aria-labelledby={`tone-${entry.tone}`}
6600
+ key={entry.tone}
6601
+ tone={entry.tone}
6602
+ {...styles.tile()}
6603
+ >
6563
6604
  <SectionHeading
6564
6605
  appearance={entry.tone === 'inverse' ? 'inverse' : 'base'}
6565
6606
  eyebrow={entry.title}
@@ -6571,6 +6612,21 @@ export function Demo() {
6571
6612
  </div>
6572
6613
  )
6573
6614
  }
6615
+
6616
+ namespace styles {
6617
+ // Scales the tones as a whole, so each keeps the space it pads, and sets them two to a row once
6618
+ // two fit. The inverse tone closes the set across the full width, as a dark band closes a page.
6619
+ export const grid = style({
6620
+ display: 'grid',
6621
+ gap: '16',
6622
+ gridTemplateColumns: 'repeat(auto-fit, minmax(min(100%, 480px), 1fr)) !custom',
6623
+ zoom: '0.75 !custom',
6624
+ selectors: { '& > :last-child': { gridColumn: '1 / -1 !custom' } },
6625
+ })
6626
+
6627
+ // Rounds each tone, so it reads as its own tile. The outline follows the corner.
6628
+ export const tile = style({ borderRadius: 'xl', marginInline: '0' })
6629
+ }
6574
6630
  ```
6575
6631
 
6576
6632
  [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Tone.tsx)
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
  Brief template for Tempo document mode. Replace every placeholder that a comment marks,
4
4
  keep the structure, and run the lint before you publish:
5
- npx -p @tempoxyz/ds@3.2.20261201001603 tempo-document lint brief.html
5
+ npx -p @tempoxyz/ds@3.3.20261201015246 tempo-document lint brief.html
6
6
  -->
7
7
  <html lang="en">
8
8
  <head>
@@ -12,11 +12,11 @@
12
12
  <title>Title of the brief</title>
13
13
  <link
14
14
  rel="stylesheet"
15
- href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.2.20261201001603/dist/document/document.css"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.3.20261201015246/dist/document/document.css"
16
16
  />
17
17
  <script
18
18
  defer
19
- src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.2.20261201001603/dist/document/script.js"
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.3.20261201015246/dist/document/script.js"
20
20
  ></script>
21
21
  </head>
22
22
  <body>
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
  Essay template for Tempo document mode. Replace every placeholder that a comment marks,
4
4
  keep the structure, and run the lint before you publish:
5
- npx -p @tempoxyz/ds@3.2.20261201001603 tempo-document lint essay.html
5
+ npx -p @tempoxyz/ds@3.3.20261201015246 tempo-document lint essay.html
6
6
  -->
7
7
  <html lang="en">
8
8
  <head>
@@ -12,11 +12,11 @@
12
12
  <title>Title of the essay</title>
13
13
  <link
14
14
  rel="stylesheet"
15
- href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.2.20261201001603/dist/document/document.css"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.3.20261201015246/dist/document/document.css"
16
16
  />
17
17
  <script
18
18
  defer
19
- src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.2.20261201001603/dist/document/script.js"
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.3.20261201015246/dist/document/script.js"
20
20
  ></script>
21
21
  </head>
22
22
  <body>
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
  Post template for Tempo document mode. Replace every placeholder that a comment marks,
4
4
  keep the structure, and run the lint before you publish:
5
- npx -p @tempoxyz/ds@3.2.20261201001603 tempo-document lint post.html
5
+ npx -p @tempoxyz/ds@3.3.20261201015246 tempo-document lint post.html
6
6
  -->
7
7
  <html lang="en">
8
8
  <head>
@@ -12,11 +12,11 @@
12
12
  <title>Title of the post</title>
13
13
  <link
14
14
  rel="stylesheet"
15
- href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.2.20261201001603/dist/document/document.css"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.3.20261201015246/dist/document/document.css"
16
16
  />
17
17
  <script
18
18
  defer
19
- src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.2.20261201001603/dist/document/script.js"
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.3.20261201015246/dist/document/script.js"
20
20
  ></script>
21
21
  </head>
22
22
  <body>
@@ -1 +1 @@
1
- .z_TeRTuL0{background-color:var(--z-tds_2f_marketing-color-container-control,color-mix(in srgb, var(--tds-black,#000) 4%, transparent))}.z_TeRTuL1{display:block}.z_TeRTuL2{flex-shrink:0}.z_TeRTuL3{forced-color-adjust:none}.z_TeRTuL4{overflow:hidden}.z_TeRTuL5{&>*{display:block}}.z_TeRTuL6{&>*{height:var(--z-tds_2f_marketing-spacing-full,100%)}}.z_TeRTuL7{&>*{width:var(--z-tds_2f_marketing-spacing-full,100%)}}.z_TeRTuL8{&:where([data-mark=dark]){color:var(--z-tds_2f_marketing-color-neutral-100,#000)}}.z_TeRTuL9{&:where([data-mark=light]){color:var(--z-tds_2f_marketing-color-neutral-000,#fff)}}.z_TeRTuLa{&:where([data-size=large]){border-radius:var(--z-tds_2f_marketing-radius-md,calc(12px * var(--tds-corner-scale,1)))}}.z_TeRTuLb{&:where([data-size=large]){height:var(--z-tds_2f_marketing-spacing-64,64px)}}.z_TeRTuLc{&:where([data-size=large]){width:var(--z-tds_2f_marketing-spacing-64,64px)}}.z_TeRTuLd{&:where([data-size=small]){border-radius:var(--z-tds_2f_marketing-radius-sm,calc(8px * var(--tds-corner-scale,1)))}}.z_TeRTuLe{&:where([data-size=small]){height:var(--z-tds_2f_marketing-spacing-40,40px)}}.z_TeRTuLf{&:where([data-size=small]){width:var(--z-tds_2f_marketing-spacing-40,40px)}}
1
+ .z_TeRTuL0{align-items:center}.z_TeRTuL1{background-color:var(--z-tds_2f_marketing-color-container-control,color-mix(in srgb, var(--tds-black,#000) 4%, transparent))}.z_TeRTuL2{box-sizing:border-box}.z_TeRTuL3{display:grid}.z_TeRTuL4{flex-shrink:0}.z_TeRTuL5{forced-color-adjust:none}.z_TeRTuL6{justify-items:center}.z_TeRTuL7{overflow:hidden}.z_TeRTuL8{&>*{display:block}}.z_TeRTuL9{&>:not([width]){height:var(--z-tds_2f_marketing-spacing-full,100%)}}.z_TeRTuLa{&>:not([width]){width:var(--z-tds_2f_marketing-spacing-full,100%)}}.z_TeRTuLb{&:where([data-accent=blue]){background-color:var(--z-tds_2f_marketing-color-accent-blue,#4471ed)}}.z_TeRTuLc{&:where([data-accent=cyan]){background-color:var(--z-tds_2f_marketing-color-accent-cyan,#00aacb)}}.z_TeRTuLd{&:where([data-accent=green]){background-color:var(--z-tds_2f_marketing-color-accent-green,#13a963)}}.z_TeRTuLe{&:where([data-accent=magenta]){background-color:var(--z-tds_2f_marketing-color-accent-magenta,#cc055b)}}.z_TeRTuLf{&:where([data-accent=olive]){background-color:var(--z-tds_2f_marketing-color-accent-olive,#95b226)}}.z_TeRTuLg{&:where([data-accent=orange]){background-color:var(--z-tds_2f_marketing-color-accent-orange,#e06f12)}}.z_TeRTuLh{&:where([data-accent=purple]){background-color:var(--z-tds_2f_marketing-color-accent-purple,#ba59dd)}}.z_TeRTuLi{&:where([data-accent=red]){background-color:var(--z-tds_2f_marketing-color-accent-red,#eb3417)}}.z_TeRTuLj{&:where([data-accent=violet]){background-color:var(--z-tds_2f_marketing-color-accent-violet,#7e59e4)}}.z_TeRTuLk{&:where([data-mark=dark]){color:var(--z-tds_2f_marketing-color-neutral-100,#000)}}.z_TeRTuLl{&:where([data-mark=light]){color:var(--z-tds_2f_marketing-color-neutral-000,#fff)}}.z_TeRTuLm{&:where([data-size=large]){border-radius:var(--z-tds_2f_marketing-radius-md,calc(12px * var(--tds-corner-scale,1)))}}.z_TeRTuLn{&:where([data-size=large]){height:var(--z-tds_2f_marketing-spacing-64,64px)}}.z_TeRTuLo{&:where([data-size=large]){width:var(--z-tds_2f_marketing-spacing-64,64px)}}.z_TeRTuLp{&:where([data-size=small]){border-radius:var(--z-tds_2f_marketing-radius-sm,calc(8px * var(--tds-corner-scale,1)))}}.z_TeRTuLq{&:where([data-size=small]){height:var(--z-tds_2f_marketing-spacing-40,40px)}}.z_TeRTuLr{&:where([data-size=small]){width:var(--z-tds_2f_marketing-spacing-40,40px)}}.z_TeRTuLs{&:where([data-tone=inverse]){background-color:var(--z-tds_2f_marketing-color-inverse-background-primary,var(--z-tds_2f_marketing-color-neutral-100,#000))}}.z_TeRTuLt{&:where([data-tone=outline]){background-color:#0000}}.z_TeRTuLu{&:where([data-tone=outline]){border-color:var(--z-tds_2f_marketing-color-line-primary,color-mix(in srgb, var(--tds-black,#000) 16%, transparent))}}.z_TeRTuLv{&:where([data-tone=outline]){border-style:solid}}.z_TeRTuLw{&:where([data-tone=outline]){border-width:var(--z-tds_2f_marketing-borderWidth-regular,1px)}}.z_TeRTuLx{&:where([data-tone=white]){background-color:var(--z-tds_2f_marketing-color-background-secondary,var(--z-tds_2f_marketing-color-neutral-000,#fff))}}