Skip to content

Commit c74a8ba

Browse files
Uplift docs (#778)
* Get basic multi-level nav working * Move all docs to new format * Move Srpinkles and integrations to own IA group * Rename to css-variables * Add concept pages * WIp * Add theming concept page * Updates * Saving is hard * WIP on CSS code blocks * Standardise mdx layouts * wip * Fix SSR mismatch * Get multi-file code blocks working * Fix running on multiple code blocks from same file * Extract SyntaxHighlighter to be shared * Wip compiledCode panel * Update lockfile * CompiledCode fixes * Updates * Reworked CompiledCode UX * Updates * Fix scrolling * Update compiledcode show output toggle buttons * Tweaks * Start rolling out compiled code blocks * Tweak createVar * More updates * Update lists and inlinecodes * Update Blockquote style * Restructured IA * Skew the world * Update integration docs * Integrations pass * Update api docs * Nest docs links under parent path * Update home page footer & layout * Styling docs update * More updates * Tweaks * Add example to targetting child elements * Theming overview pass * More overview tweaks * More updates * Fix deps * Formatting fixes Co-authored-by: Michael Taranto <[email protected]>
1 parent 6068246 commit c74a8ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+5593
-2297
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ export const themeB = createTheme(vars, {
639639
});
640640
```
641641

642-
> 💡 All theme variants must provide a value for every variable or it’s a type error.
642+
> 💡 All theme values must be provided or it’s a type error.
643643
644644
### createGlobalTheme
645645

@@ -662,7 +662,7 @@ export const vars = createGlobalTheme(':root', {
662662
});
663663
```
664664

665-
> 💡 All theme variants must provide a value for every variable or it’s a type error.
665+
> 💡 All theme values must be provided or it’s a type error.
666666
667667
If you want to implement an existing theme contract, you can pass it as the second argument.
668668

@@ -857,7 +857,7 @@ export const exampleStyle = style({
857857
});
858858
```
859859

860-
Scoped variables can be set via the `vars` property on style objects.
860+
Scoped variables can be set using the `vars` key.
861861

862862
```ts
863863
import { createVar, style } from '@vanilla-extract/css';

packages/sprinkles/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ document.write(`
5353

5454
🏃‍♂️ &nbsp; Compose sprinkles statically in `.css.ts` files, or dynamically at runtime (<0.5KB Gzip)
5555

56-
🎨 &nbsp; Generate theme-based scales with CSS Variables using [vanilla-extract themes.](https://vanilla-extract.style/documentation/styling-api/#createtheme)
56+
🎨 &nbsp; Generate theme-based scales with CSS Variables using [vanilla-extract themes.](https://vanilla-extract.style/documentation/api/create-theme)
5757

5858
✍️ &nbsp; Configure shorthands for common property combinations, e.g. `paddingX` / `paddingY`.
5959

@@ -191,7 +191,7 @@ document.write(`
191191

192192
> 💡 Although you don’t need to use this library at runtime, it’s designed to be as small and performant as possible. The runtime is only used to look up pre-existing class names. All styles are still generated at build time!
193193
194-
Within `.css.ts` files, combine with any custom styles by providing an array to vanilla-extract’s [`style`](https://vanilla-extract.style/documentation/styling-api/#style) function.
194+
Within `.css.ts` files, combine with any custom styles by providing an array to vanilla-extract’s [`style`](https://vanilla-extract.style/documentation/api/style) function.
195195

196196
```ts
197197
// styles.css.ts
@@ -364,7 +364,7 @@ const responsiveProperties = defineProperties({
364364
});
365365
```
366366

367-
You can also use [vanilla-extract themes](/documentation/styling-api/#createtheme) to configure themed values.
367+
You can also use [vanilla-extract themes](/documentation/api/create-theme) to configure themed values.
368368

369369
```ts
370370
import { defineProperties } from '@vanilla-extract/sprinkles';

0 commit comments

Comments
 (0)