Skip to content

Commit b6f729e

Browse files
3o14claude
andcommitted
docs: fix typos and broken link in documentation
- Fix 'Targetting' → 'Targeting' (3 occurrences in styling.md) - Fix broken link for createThemeContract in theming.md - Fix sentence fragment 'Importing' → 'Import' in create-global-theme.md Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent 9242b35 commit b6f729e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

site/docs/global-api/create-global-theme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const vars = createGlobalTheme(':root', {
2525

2626
All theme values must be provided or it’s a type error.
2727

28-
Importing this stylesheet as a side effect to include the styles in your CSS bundle.
28+
Import this stylesheet as a side effect to include the styles in your CSS bundle.
2929

3030
```ts
3131
// app.ts

site/docs/overview/styling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ import { style } from '@vanilla-extract/css';
191191

192192
const invalid = style({
193193
selectors: {
194-
// ❌ ERROR: Targetting `a[href]`
194+
// ❌ ERROR: Targeting `a[href]`
195195
'& a[href]': {...},
196196

197-
// ❌ ERROR: Targetting `.otherClass`
197+
// ❌ ERROR: Targeting `.otherClass`
198198
'& ~ div > .otherClass': {...}
199199
}
200200
});
@@ -210,7 +210,7 @@ import { style } from '@vanilla-extract/css';
210210
export const child = style({});
211211
export const parent = style({
212212
selectors: {
213-
// ❌ ERROR: Targetting `child` from `parent`
213+
// ❌ ERROR: Targeting `child` from `parent`
214214
[`& ${child}`]: {...}
215215
}
216216
});

site/docs/overview/theming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export const container = style({
243243
This pattern opens up a lot of interesting possibilities. Type-safe runtime theming without the need for runtime creation and injection of CSS.
244244

245245
[createtheme]: /documentation/api/create-theme/
246-
[createthemecontract]: /documentation/api/create-theme/
246+
[createthemecontract]: /documentation/api/create-theme-contract/
247247
[assigninlinevars]: /documentation/packages/dynamic/#assigninlinevars
248248
[createvar]: /documentation/api/create-var
249249
[tiny]: https://bundlephobia.com/package/@vanilla-extract/dynamic

0 commit comments

Comments
 (0)