Skip to content

Commit 8068c65

Browse files
committed
Merge branch 'main' of github.com:coderdiaz/jacaranda
2 parents b25694f + 265ee02 commit 8068c65

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ This function receives an object with the design tokens.
4141
- `fontSize`: Define your font sizes.
4242
- `lineHeight`: Define your line heights.
4343

44-
And returns a `styles` function that you can use to style your components.
44+
And returns a `sva` function that you can use to style your components.
4545

4646
```tsx
4747
// jacaranda.config.ts
4848
import { defineTokens } from 'jacaranda';
4949

50-
export const { styles } = defineTokens({
50+
export const { sva, tokens } = defineTokens({
5151
colors: {
5252
primary50: '#ecfeff',
5353
primary100: '#cffafe',
@@ -79,13 +79,13 @@ export const { styles } = defineTokens({
7979

8080
### Import and use it
8181

82-
After the tokens are defined, you can use the design tokens in your components. You'll be importing the `styles` function from the `jacaranda.config.ts` file.
82+
After the tokens are defined, you can use the design tokens in your components. You'll be importing the `sva` function from the `jacaranda.config.ts` file.
8383

8484
```tsx
8585
// Button.tsx
8686
import { TouchableOpacity } from 'react-native';
8787
import { type VariantProps } from 'jacaranda';
88-
import { styles } from './jacaranda.config';
88+
import { sva } from './jacaranda.config';
8989

9090
type ButtonProps = VariantProps<typeof buttonStyles> & {
9191
children?: React.ReactNode;
@@ -99,7 +99,7 @@ export const Button = (props: ButtonProps) => {
9999
);
100100
};
101101

102-
const buttonStyles = styles({
102+
const buttonStyles = sva({
103103
base: {
104104
borderRadius: 8,
105105
},

0 commit comments

Comments
 (0)