Skip to content

fixed color and spacing nits #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 16, 2025
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
64 changes: 37 additions & 27 deletions theme/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,43 @@ export const components = {
},
},
Input: {
baseStyle: {
field: {
defaultProps: {
variant: 'outline',
},
variants: {
outline: {
field: {
border: '1px solid',
borderColor: 'outline',
borderRadius: '10px',
fontSize: '13px',
fontWeight: 400,
lineHeight: '15.73px',
fontFamily: 'body',
_placeholder: {
color: 'text.subtitle',
},
_hover: {
borderColor: 'outline',
},
_focus: {
borderColor: 'primaryBlue.300',
boxShadow: '0 0 0 1px primaryBlue.300',
},
_active: {
borderColor: 'primaryBlue.300',
boxShadow: '0 0 0 1px primaryBlue.300',
},
},
},
},
},
Textarea: {
defaultProps: {
variant: 'outline',
},
variants: {
outline: {
border: '1px solid',
borderColor: 'outline',
borderRadius: '10px',
Expand All @@ -91,31 +126,6 @@ export const components = {
},
},
},
Textarea: {
baseStyle: {
border: '1px solid',
borderColor: 'outline',
borderRadius: '10px',
fontSize: '13px',
fontWeight: 400,
lineHeight: '15.73px',
fontFamily: 'body',
_placeholder: {
color: 'text.subtitle',
},
_hover: {
borderColor: 'outline',
},
_focus: {
borderColor: 'primaryBlue.300',
boxShadow: '0 0 0 1px primaryBlue.300',
},
_active: {
borderColor: 'primaryBlue.300',
boxShadow: '0 0 0 1px primaryBlue.300',
},
},
},
Tooltip: {
baseStyle: {
bg: 'white',
Expand Down
28 changes: 17 additions & 11 deletions utils/getCalendarStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,12 @@ export const getCalendarStyles = (theme: CustomTheme) => css`
background-color: transparent;
margin: 0 !important;
}
.fc th {
text-transform: uppercase;
font-weight: ${theme.fontWeights[600]};
}
.fc-day-today {
background-color: inherit !important;
}
.fc-weekend {
background-color: rgba(0, 0, 0, 0.05) !important;
}
.fc-event-title {
overflow: hidden;
text-overflow: ellipsis;
font-size: ${theme.fontSizes.sm};
font-weight: ${theme.fontWeights[400]};
}
.fc .fc-daygrid-day {
padding: 8px 5px !important;
}
Expand All @@ -40,12 +30,28 @@ export const getCalendarStyles = (theme: CustomTheme) => css`
padding: 0 !important;
}
.fc-daygrid-day-events:not(:empty) {
margin-bottom: 65px !important;
margin-bottom: 30px !important;
}
.fc-daygrid-event-harness {
margin-top: 4px !important;
}
.fc-daygrid-event-harness:first-of-type {
margin-top: 0 !important;
}
.fc .fc-scrollgrid thead .fc-col-header-cell {
border-left: none !important;
border-right: none !important;
}
.fc .fc-col-header-cell {
height: 32px;
}
.fc .fc-col-header-cell .fc-scrollgrid-sync-inner {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-weight: ${theme.fontWeights[600]};
text-transform: uppercase;
font-size: 14px;
}
`;