2024-06-07 20:17:03 +03:00
|
|
|
# Frontend Developer guidelines
|
|
|
|
|
|
|
|
Styling conventions
|
|
|
|
|
|
|
|
- static > conditional static > props. All dynamic styling should go in styles props
|
|
|
|
- dimensions = rectangle + outer layout
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>clsx className grouping and order</summary>
|
|
|
|
<pre>
|
|
|
|
- layer: z-position
|
|
|
|
- outer layout: fixed bottom-1/2 left-0 -translate-x-1/2
|
|
|
|
- rectangle: mt-3 min-w-fit min-w-10 flex-grow shrink-0
|
|
|
|
- inner layout: px-3 py-2 flex flex-col gap-3 justify-between items-center
|
|
|
|
- overflow behavior: overflow-scroll overscroll-contain
|
|
|
|
- border: borer-2 outline-none shadow-md
|
|
|
|
- colors: clr-controls
|
|
|
|
- text: text-start text-sm font-semibold whitespace-nowrap
|
2024-06-18 15:19:04 +03:00
|
|
|
- behavior modifiers: select-none disabled:cursor-auto
|
2024-06-07 20:17:03 +03:00
|
|
|
- transitions:
|
|
|
|
</pre>
|
|
|
|
</details>
|