Skip to content

Commit 73a1772

Browse files
authored
update docs
1 parent f706a80 commit 73a1772

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/pages/index.page.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,17 @@ const Index = () => (
152152
<SectionContent>
153153
<Text>Built with high focus on performance</Text>
154154
<Text>
155-
<b>better</b> minification of your css
155+
<b>better</b> css minification
156156
</Text>
157157
<Text>
158158
<b>smaller</b> virtual DOM updates
159159
</Text>
160160
<Text>
161161
<b>less</b> crititcal SSR CSS
162162
</Text>
163+
<Text>
164+
<b>unique</b> variable names
165+
</Text>
163166
</SectionContent>
164167
<SectionExample>
165168
<CodeExamples>
@@ -356,16 +359,16 @@ export const theme = {
356359
import { createVar } from 'css-variable';
357360
358361
export const theme = {
359-
primary: new /*@__PURE__*/createVar("primary--1isauia0"),
360-
secondary: new /*@__PURE__*/createVar("secondary--1isauia1"),
362+
primary: /*@__PURE__*/createVar("primary--1isauia0"),
363+
secondary: /*@__PURE__*/createVar("secondary--1isauia1"),
361364
};
362365
`,
363366
"transpiled prod": `
364367
import { createVar } from 'css-variable';
365368
366369
export const theme = {
367-
primary: new /*@__PURE__*/createVar("1isauia0"),
368-
secondary: new /*@__PURE__*/createVar("1isauia1"),
370+
primary: /*@__PURE__*/createVar("1isauia0"),
371+
secondary: /*@__PURE__*/createVar("1isauia1"),
369372
};
370373
`,
371374
}}
@@ -377,7 +380,7 @@ export const theme = {
377380
<SectionContent>
378381
<Headline>Typed Contracts</Headline>
379382
<Text>
380-
By default any string is a valid CSSVariable value.
383+
By default any string is a valid value for a CSSVariable.
381384
<br />
382385
<br />
383386
But it doesn't end here - the generic interface allows to define

0 commit comments

Comments
 (0)