Skip to content

Commit b200259

Browse files
authored
New UI Improvements (#66)
* chore: fix borders + selection * chore: fix tooltip * chore: fix some colors * chore: fix color of faq component * chore: fix color of detail component * chore: font size
1 parent 4b08d5e commit b200259

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

apps/docs/src/components/Detail/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function Detail({ title, children }: DetailProps) {
2121

2222
return (
2323
<div className="py-0.5">
24-
<div className="card bg-medusa-bg-subtle dark:bg-medusa-bg-base shadow-card-rest dark:shadow-card-rest-dark w-full py-1 px-0.5 rounded-md">
24+
<div className="card bg-[#F2F5F7] dark:bg-medusa-bg-base shadow-card-rest dark:shadow-card-rest-dark w-full py-1 px-0.5 rounded-md">
2525
<button
2626
className="flex w-full justify-between items-center text-left bg-transparent border-none cursor-pointer"
2727
onClick={() => setIsOpen(!isOpen)}

apps/docs/src/components/Faq/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function FAQItem({ question, children }: FAQItemProps) {
2121

2222
return (
2323
<div className="py-0.5">
24-
<div className="card bg-medusa-bg-subtle dark:bg-medusa-bg-base shadow-card-rest dark:shadow-card-rest-dark w-full py-1 px-0.5 rounded-md">
24+
<div className="card bg-[#F2F5F7] dark:bg-medusa-bg-base shadow-card-rest dark:shadow-card-rest-dark w-full py-1 px-0.5 rounded-md">
2525
<button
2626
className="flex w-full justify-between items-center text-left bg-transparent border-none cursor-pointer"
2727
onClick={() => setIsOpen(!isOpen)}

apps/docs/src/css/_docusaurus.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ details > div {
221221
}
222222

223223
.navbar {
224-
@apply z-[399] p-0 border-0 border-b border-solid border-[#DADCE0];
224+
@apply z-[399] p-0 border-0 border-b border-solid border-[#DADCE0] dark:border-[#323237];
225225
}
226226

227227
html:not(.plugin-redoc) .navbar:not(.navbar-sidebar--show) {
@@ -285,10 +285,14 @@ h6 {
285285
}
286286

287287
*::selection {
288-
@apply bg-medusa-bg-highlight;
288+
@apply bg-[#F6EBC2] dark:bg-[#5F5323];
289289
}
290290

291291
.prism-code *::selection,
292292
.code-header *::selection {
293293
@apply bg-medusa-code-text-highlight;
294294
}
295+
296+
p {
297+
font-size: 14.75px;
298+
}

apps/docs/src/css/components/sidebar.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
}
182182

183183
.menu__list-item-collapsible .menu__link--sublist:hover {
184-
@apply !bg-medusa-bg-base-hover dark:!bg-medusa-bg-subtle-hover;
184+
@apply bg-[#000] dark:!bg-medusa-bg-subtle-hover;
185185
}
186186

187187
.menu__list:not(.theme-doc-sidebar-menu)
@@ -213,7 +213,7 @@
213213

214214
/** General sidebar styles **/
215215
.theme-doc-sidebar-container {
216-
@apply z-[398] border-0 border-r border-solid border-[#DEE1E4];
216+
@apply z-[398] border-0 border-r border-solid border-[#DEE1E4] dark:border-[#323237];
217217
}
218218

219219
/** Mobile Sidebar **/

apps/docs/src/theme/DocCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function CardLayout({
6666
className={clsx(
6767
containerClassName,
6868
!isSoon &&
69-
'hover:bg-medusa-bg-subtle-hover dark:hover:bg-medusa-bg-base-hover',
69+
'bg-[#F2F5F7] hover:bg-medusa-bg-subtle-hover dark:hover:bg-medusa-bg-base-hover',
7070
isSoon && 'pointer-events-none',
7171
isHighlighted &&
7272
"md:before:content-[''] md:before:absolute md:before:top-0 before:right-0 md:before:w-1/2 md:before:h-full md:before:bg-no-repeat md:before:bg-cover md:before:bg-card-highlighted dark:md:before:bg-card-highlighted-dark",

packages/docs-ui/src/components/Tooltip/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const Tooltip = ({
4040
anchorId={elementId}
4141
// anchorSelect={elementId ? `#${elementId}` : undefined}
4242
className={clsx(
43-
'!border-medusa-border-base !border !border-solid',
43+
'border-[#DEE1E4] dark:border-[#323237] !border !border-solid',
4444
'!text-compact-x-small-plus !shadow-tooltip dark:!shadow-tooltip-dark !rounded-docs_DEFAULT',
4545
'!py-docs_0.4 !z-[399] hidden !px-docs_1 lg:block',
4646
'!bg-medusa-bg-base',

packages/tailwind/theme-presets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const light = {
33
'--docs-bg-base-hover': 'rgba(249, 250, 251, 1)',
44
'--docs-bg-base-pressed': 'rgba(243, 244, 246, 1)',
55
'--docs-bg-subtle': 'rgba(249, 250, 251, 1)',
6-
'--docs-bg-subtle-hover': 'rgba(243, 244, 246, 1)',
6+
'--docs-bg-subtle-hover': 'rgba(242, 245, 247, 1)',
77
'--docs-bg-subtle-pressed': 'rgba(229, 231, 235, 1)',
88
'--docs-bg-component': 'rgba(241, 243, 245, 1)',
99
'--docs-bg-switch-off': 'rgba(229, 231, 235, 1)',

0 commit comments

Comments
 (0)