Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/great-drinks-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@crossed/theme': patch
---

add borderRadius preset
22 changes: 22 additions & 0 deletions packages/theme/src/borderRadius.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Copyright (c) Paymium.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root of this projects source tree.
*/

import { BorderRadius } from './types/borderRadius';

export const borderRadius = {
'none': 0,
'xxs': 2,
'xs': 4,
'sm': 6,
'md': 8,
'lg': 10,
'xl': 12,
'2xl': 16,
'3xl': 20,
'4xl': 24,
'full': 9999, // pas convaincu de cette valeur
} as const satisfies BorderRadius;
20 changes: 20 additions & 0 deletions packages/theme/src/types/borderRadius.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright (c) Paymium.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root of this projects source tree.
*/

export type borderRadiusName =
| 'none'
| 'xxs'
| 'xs'
| 'sm'
| 'md'
| 'lg'
| 'xl'
| '2xl'
| '3xl'
| '4xl'
| 'full';
export type BorderRadius = Record<borderRadiusName, number>;