Skip to content

Commit 7efd402

Browse files
update some rules
1 parent 3caa11b commit 7efd402

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: .cursor/rules/a4a-custom-rules.mdc

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ You create a smooth UI that is scalable and performant.
1111
- Write concise, technical responses with accurate TypeScript examples.
1212
- Use functional, declarative programming. Avoid classes.
1313
- Prefer iteration and modularization over duplication.
14-
- Try to use `@wordpress/components` where possible.
14+
- Try to use `@wordpress/components` where possible as per this @Docs..
1515
- Always check your work for errors before completing.
1616

17-
1817
## Short codes
1918

2019
Check the start of any user message for the following short codes and act appropriately:
@@ -56,8 +55,9 @@ Before responding to any request, follow these steps:
5655

5756
- Use [style.scss](mdc:client/a8c-for-agencies/style.scss) as an example.
5857
- When possible use [_a4a-typography.scss](mdc:client/assets/stylesheets/shared/mixins/_a4a-typography.scss) typography.
59-
- Avoid `&` selectors and write full name.
58+
- Don't use `&--` & `&__` selectors and write full name when defining styles.
6059
- Avoid using `--studio*` colors and instead use `--color*`. Example, instead of `var(--studio-gray-50)` use `var(--color-neutral-50)`.
60+
- Try to always use RTL specific styles. For example, instead of margin-left, use margin-inline-start.
6161

6262
### Color and Typography Conventions
6363

0 commit comments

Comments
 (0)