Skip to content
Merged
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/smart-deers-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cube-dev/ui-kit': minor
---

Change default border radius to 6px.
2 changes: 1 addition & 1 deletion src/components/GlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const GlobalStylesElement = createGlobalStyle<GlobalStylesElementProps>`
word-spacing: normal;
word-break: normal;
word-wrap: normal;
border-radius: 4px;
border-radius: 6px;
border: none;

-moz-tab-size: 4;
Expand Down
2 changes: 1 addition & 1 deletion src/components/content/Skeleton/Skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const LAYOUT_MAP = {
<Placeholder
key={i}
isStatic={isStatic}
radius="1x"
radius="1r"
width="20x"
height="12x"
flexGrow={1}
Expand Down
2 changes: 1 addition & 1 deletion src/components/fields/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const CheckboxElement = tasty({
styles: {
display: 'grid',
placeItems: 'center',
radius: '.5r',
radius: '.25x',
fill: {
'': '#white',
'checked | indeterminate': '#purple-text',
Expand Down
2 changes: 1 addition & 1 deletion src/components/fields/DatePicker/DatePickerSegment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const EditableSegmentElement = tasty({
'': '#clear',
':focus': '#purple',
},
radius: '.5r',
radius: '.25x',

Placeholder: {
opacity: '#disabled-opacity',
Expand Down
2 changes: 1 addition & 1 deletion src/components/fields/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const ListBoxElement = tasty({
margin: '0',
padding: '.5x',
listStyle: 'none',
radius: true,
radius: '@large-radius',
fill: '#white',
shadow: '0px 4px 16px #shadow',
height: 'initial 30x',
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export function Modal(allProps: CubeModalProps) {
padding="0"
shadow={true}
border={false}
radius="1.5r"
radius="1x"
width={`288px (100% - 32px) ${
typeof width === 'number' ? `${width}px` : width || '360px'
}`}
Expand Down
4 changes: 2 additions & 2 deletions src/components/overlays/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const DialogElement = tasty({
gap: 0,
flow: 'column',
radius: {
'': '2r',
'[data-type="tray"]': '2r top',
'': '(@large-radius + 1bw)',
'[data-type="tray"]': '(@large-radius + 1bw) top',
'[data-type="fullscreenTakeover"] | [data-type="panel"]': '0r',
},
fill: '#white',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type FloatingNotificationProps = {
const NotificationContainer = tasty({
styles: {
overflow: 'hidden',
radius: '0.5x',
radius: true,
boxShadow: '0 0.5x 2x #shadow',
pointerEvents: 'auto',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const IconPreset = tasty({
success: '#success-text',
danger: '#danger-text',
},
borderRadius: '0.5x',
radius: '1r',
width: '3x',
height: '3x',
padding: '0.5x',
Expand Down
2 changes: 1 addition & 1 deletion src/components/overlays/Notification/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const NotificationElement = tasty(Card, {
shadow: '0 5px 15px #dark.10',
border: false,
margin: '1x bottom',
radius: '1.5r',
radius: '1x',
gridColumns: 'auto 1fr auto',
placeItems: 'center start',
gap: '2x',
Expand Down
4 changes: 1 addition & 3 deletions src/components/pickers/Menu/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export const StyledMenu = tasty({
'': '#dark-05',
section: '',
},
radius: {
'': '1r',
},
radius: '(@large-radius + 1bw)',
boxShadow: {
'': '',
popover: '0px 5px 15px #dark.05',
Expand Down
3 changes: 2 additions & 1 deletion src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const TOKENS = {
gap: '8px',
'outline-width': 'calc(1rem / 16 * 3)',
'border-width': '1px',
radius: '4px',
radius: '6px',
'large-radius': '(1r + .5x)',
'leaf-sharp-radius': '0px',
'fade-width': '32px',
transition: '80ms',
Expand Down
Loading