Skip to content

Commit 7deeba0

Browse files
committed
Update documentation links to standardize references to theme tokens across various guides, enhancing clarity and consistency
1 parent 0f34d8b commit 7deeba0

18 files changed

Lines changed: 23 additions & 40 deletions

File tree

‎site/app/[locale]/blog/v2/content.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Vestibulum fringilla varius semper. Sed in placerat est, in iaculis urna. Sed at
1616
## New Configuration API
1717

1818
### `.animations`
19-
You can now customize CSS [animations](/guide/theme#customize-motion) in the project CSS entry:
19+
You can now customize CSS [animations](/guide/theme#motion) in the project CSS entry:
2020
```css name=index.css
2121
@keyframes fade {
2222
0% {

‎site/app/[locale]/guide/cascade-layers/components/LayersDefault.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default () => {
1919
</tr>
2020
<tr>
2121
<th>Theme</th>
22-
<td>Where the used <Link href="/guide/theme#define-theme-tokens">theme tokens</Link> are generated.</td>
22+
<td>Where the used <Link href="/guide/theme#theme-tokens">theme tokens</Link> are generated.</td>
2323
<td className="white-space:nowrap"><code>{'@layer theme { … }'}</code></td>
2424
</tr>
2525
<tr>

‎site/app/[locale]/guide/colors/content.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Apply them using the color-related syntax:
2323
<!-- @MARK bg:primary-5 --><!-- @MARK fg:primary-60 -->
2424
<div class="bg:primary-5 fg:primary-60">…</div>
2525
```
26-
See [theme color tokens](/guide/theme#use-custom-colors) for more details on how to add custom colors.
26+
See [theme color tokens](/guide/theme#theme-tokens) for more details on how to add custom colors.
2727

2828
### With variable modes
2929
You can also use [variable modes to define colors](#add-colors-based-on-modes) for different themes, such as light and dark modes.
@@ -70,7 +70,7 @@ As your styles grow, arbitrarily applying `@dark` or `@light` in template markup
7070
| <Bg className="bg:base" />`base` | background for page, modal |
7171
| <Bg className="bg:invert" />`invert` | inverted color of the background |
7272

73-
By default, theme modes [drive](/guide/theme#customize-modes) base color variables meticulously adjusted in light and dark modes.
73+
By default, theme modes [drive](/guide/theme#modes) base color variables meticulously adjusted in light and dark modes.
7474
<Demo $py={0} $px={0}>
7575
<DemoLight>
7676
<div className="bg:yellow aspect:2/1 size:full|12x r:sm"></div>
@@ -137,7 +137,7 @@ Apply the custom color:
137137
| <Aa className="fg:red" />`text-red` | bold, energetic, attention-grabbing |
138138
</ExpandContent>
139139

140-
By default, theme modes [drive](/guide/theme#customize-modes) text variables are meticulously adjusted in light and dark modes.
140+
By default, theme modes [drive](/guide/theme#modes) text variables are meticulously adjusted in light and dark modes.
141141
<Demo $py={0} $px={0}>
142142
<DemoLight>
143143
<div className="fg:yellow font:heavy font:9xl">M</div>
@@ -168,7 +168,7 @@ See the [color](/reference/color#use-custom-text-colors) reference for more deta
168168
| <Bg className="outline:lighter" />`line-lighter` | alpha, dotted, td |
169169
| <Bg className="outline:lightest" />`line-lightest` | alpha, layout, navbar, sidebar |
170170

171-
By default, theme modes [drive](/guide/theme#customize-modes) line variables are meticulously adjusted in light and dark modes.
171+
By default, theme modes [drive](/guide/theme#modes) line variables are meticulously adjusted in light and dark modes.
172172

173173
<Demo $py={0} $px={0}>
174174
<DemoLight>

‎site/app/[locale]/guide/conditional-queries/content.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Mode names also become at tokens. `@dark` and `@light` are available by default,
117117
<div class="bg:gray-90@dark">
118118
```
119119

120-
The generated CSS depends on [`mode-trigger`](/guide/theme#mode-triggers). A mode can become a media query, a class wrapper, or a shadow host wrapper.
120+
The generated CSS depends on [`mode-trigger`](/guide/theme#choose-a-mode-trigger). A mode can become a media query, a class wrapper, or a shadow host wrapper.
121121

122122
### `base`, `preset`
123123
Use `@base` and `@preset` to place generated rules in those cascade layers.

‎site/app/[locale]/guide/corner-radius/content.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ By standardizing radius values, the system ensures visual harmony, simplifies de
2020
---
2121

2222
## Namespace for corner radius
23-
The corner radius system is defined in the `variables.border-radius` namespace. This namespace includes a set of utility [theme tokens](/guide/theme#define-theme-tokens) that can be used to apply corner radius styles to elements.
23+
The corner radius system is defined in the `variables.border-radius` namespace. This namespace includes a set of utility [theme tokens](/guide/theme#theme-tokens) that can be used to apply corner radius styles to elements.
2424

2525
The following rules share the same namespace:
2626

‎site/app/[locale]/guide/migration/tailwindcss/content.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Not just media queries but feature queries and [more](/guide/theme#at-tokens).
116116

117117
## Configuration
118118
### Add screens
119-
Define responsive breakpoints using theme [screen tokens](/guide/theme#add-a-screen-size).
119+
Define responsive breakpoints using theme [screen tokens](/guide/theme#screen-tokens).
120120
```js name=tailwind.config.js
121121
/** @type {import('tailwindcss').Config} */
122122
module.exports = {

‎site/app/[locale]/guide/migration/v1/content.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ Apply the variables:
6868
```html
6969
<div class="fg:primary mt:md"></div>
7070
```
71-
To learn more, check out [theme tokens](/guide/theme#define-theme-tokens).
71+
To learn more, check out [theme tokens](/guide/theme#theme-tokens).
7272

7373
### Using new custom
74-
In v2, you can apply the [default](/guide/theme#customize-motion) out of the box:
74+
In v2, you can apply the [default](/guide/theme#motion) out of the box:
7575
```html
7676
<!-- @MARK animation:ping|1s|infinite -->
7777
<div class="animation:ping|1s|infinite"></div>
@@ -80,7 +80,7 @@ Animation presets are built into the current config, so remove separate `@master
8080
```css name=main.css
8181
@import '@master/keyframes.css'; /* [!code --] */
8282
```
83-
To customize keyframes, check out [Customizing theme](/guide/theme#customize-motion).
83+
To customize keyframes, check out [Customizing theme](/guide/theme#motion).
8484

8585
### Using abstract styles
8686
Deprecate extended `classes` ​​in favor of `@master`.

‎site/app/[locale]/guide/screen-sizes/content.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Using screens [sr-only]
22
The `screen` namespace is the single source for these sizes. In the project CSS entry, define screen tokens with declarations such as `--screen-md: 768;`. Each token creates a responsive breakpoint such as `@md`, a value token such as `screen-md`, and a container query size such as `@container(md)`.
33
<Overview />
4-
Master CSS includes 11 predefined screen sizes from `4xs` to `4xl`; you can customize them with `screen` variables in [`@theme`](/guide/theme#customize-screen-tokens).
4+
Master CSS includes 11 predefined screen sizes from `4xs` to `4xl`; you can customize them with `screen` variables in [`@theme`](/guide/theme#screen-tokens).
55

66
---
77

‎site/app/[locale]/guide/sizing/content.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Use one-axis rules when width and height are independent. Use pair rules when an
6767
---
6868

6969
## Use the `x` sizing scale
70-
The `x` suffix multiplies the configured [base unit](/guide/theme#tune-project-scales), which defaults to **4px**. It is the most direct way to create fixed dimensions that stay aligned with spacing, radius, and component rhythm.
70+
The `x` suffix multiplies the configured [base unit](/guide/theme#project-settings), which defaults to **4px**. It is the most direct way to create fixed dimensions that stay aligned with spacing, radius, and component rhythm.
7171

7272
<XScale />
7373

‎site/app/[locale]/guide/spacing/content.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Apply the custom spacing tokens in your markup:
5858
---
5959

6060
## Using spacing multiplier
61-
The spacing system is grounded on a consistent and scalable design token foundation. It uses a [base unit](/guide/theme#tune-project-scales) of **4 pixels**, which acts as the smallest scalable measurement across your interface.
61+
The spacing system is grounded on a consistent and scalable design token foundation. It uses a [base unit](/guide/theme#project-settings) of **4 pixels**, which acts as the smallest scalable measurement across your interface.
6262
<XScale />
6363
Use the `x` suffix to indicate a multiplier of the base unit.
6464
```html

0 commit comments

Comments
 (0)