Open louischan-oursky opened 10 months ago
@tung2744 @IniZio @Ngkaokis Added Point 11.
Added Point 12.
@louischan is this documented? can I close it?
Let me close this. We can refer to this issue when we need it in the future.
We should move the agreed content to CONTRIBUTING.md
.
We have 2 levels of theming.
base.css
.--navbar__title-font-family
is the second level.--typography-title-large__font-family
is the first level.We borrow BEM naming convention to name the CSS variables.
navbar.css
, so the component name isnavbar
.--navbar_
.--navbar__some-meaningful-css-property
--navbar__some-meaningful-css-property--variant
Prefer
tablet:
over@media
HTML semantics is important.
Use
gap
for spacing.See https://github.com/authgear/authgear-server/pull/3613#discussion_r1452897671
Use
ltr:
andrtl:
when you use explicit left/right.See https://github.com/authgear/authgear-server/pull/4662#discussion_r1735509674
Verbs
create
,delete
,change
,view
add
,remove
,change
,view
Always think about when the case when javascript is disabled
panic with error
Instead of
panic("some string")
,panic(fmt.Errorf("some string"))
. The rationale is that when you are the person whorecover()
, you want to get anerror
instead of astring
. You can further callerrors.As
anderrors.Is
or any other errors processing functions on the recovered error.