Skip to content

Commit

Permalink
feat(vars): added sizes (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
hextion authored Aug 5, 2024
1 parent 1b2d954 commit 7d77cd2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 7 deletions.
24 changes: 24 additions & 0 deletions .changeset/neat-boxes-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
'@alfalab/core-components-vars': minor
---

Добавлены новые переменные радиусов скругления:
- `--border-radius-0`
- `--border-radius-4`
- `--border-radius-6`
- `--border-radius-8`
- `--border-radius-10`
- `--border-radius-12`
- `--border-radius-16`
- `--border-radius-20`
- `--border-radius-24`
- `--border-radius-36`

Переменные, помеченые как `deprecated`:
- `--border-radius-xs`
- `--border-radius-s`
- `--border-radius-m`
- `--border-radius-l`
- `--border-radius-xl`
- `--border-radius-xxl`
- `--border-radius-3xl`
27 changes: 20 additions & 7 deletions packages/vars/src/border-radius.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
:root {
--border-radius-xs: 2px;
--border-radius-s: 4px;
--border-radius-m: 8px;
--border-radius-l: 12px;
--border-radius-xl: 16px;
--border-radius-xxl: 20px;
--border-radius-3xl: 24px;
--border-radius-xs: 2px; /* deprecated */
--border-radius-s: 4px; /* deprecated */
--border-radius-m: 8px; /* deprecated */
--border-radius-l: 12px; /* deprecated */
--border-radius-xl: 16px; /* deprecated */
--border-radius-xxl: 20px; /* deprecated */
--border-radius-3xl: 24px; /* deprecated */
--border-radius-circle: 50%;
--border-radius-pill: 99px;

/* новые значения, используйте их */
--border-radius-0: 0;
--border-radius-4: 4px;
--border-radius-6: 6px;
--border-radius-8: 8px;
--border-radius-10: 10px;
--border-radius-12: 12px;
--border-radius-16: 16px;
--border-radius-20: 20px;
--border-radius-24: 24px;
--border-radius-36: 36px;
--border-radius-64: 64px;
}

0 comments on commit 7d77cd2

Please sign in to comment.