You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/002-css-rules.md
+24-4
Original file line number
Diff line number
Diff line change
@@ -638,7 +638,7 @@ button([
638
638
639
639
## 6. Compound Variants
640
640
641
-
[Stitche's `Compound Variants`](https://stitches.dev/docs/variants#compound-variants) is an effective way to set up additional css by leveraging the combination of variations you have already set up.
641
+
[Stitches's `Compound Variants`](https://stitches.dev/docs/variants#compound-variants) is an effective way to set up additional css by leveraging the combination of variations you have already set up.
642
642
643
643
However, the method of writing the conditions seems quite inconvenient.
644
644
So we want to improve the UX in this area.
@@ -647,7 +647,7 @@ So we want to improve the UX in this area.
647
647
648
648
```typescript
649
649
const button =rules({
650
-
// base style
650
+
// base styles
651
651
652
652
variants: {
653
653
color: {
@@ -679,7 +679,7 @@ But if the conditions become complicated, it will be inconvenient to fill out.
679
679
680
680
```typescript
681
681
const button =rules({
682
-
// base style
682
+
// base styles
683
683
684
684
variants: {
685
685
color: {
@@ -703,7 +703,7 @@ const button = rules({
703
703
});
704
704
```
705
705
706
-
The method we present will provide a more comfortable way to write the conditions.
706
+
The method we present will provide a more comfortable way to write the conditions.
707
707
This feature checks existing variants and provides automatic completion.
708
708
709
709
**Compiled:**
@@ -731,10 +731,30 @@ button({
731
731
732
732
## 7. Default Variants
733
733
734
+
The way of [Stitches's Default Variants](https://stitches.dev/docs/variants#default-variants) is already good to use, so we keep this method in ours.
0 commit comments