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
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
content="Charizard — the ZenAdmin design system. Live demos, copy-paste snippets and agent-readable docs for every React component."
/>
<title>Charizard UI | ZenAdmin Design System</title>
<!-- Same Instrument Sans the apps load, so the showcase renders the library's real font. -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap"
/>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@
},
"packageManager": "pnpm@12.15.0",
"dependencies": {
"@fontsource-variable/geist": "^5.3.0",
"@fontsource-variable/geist-mono": "^5.3.0",
"@hybr1d-tech/groudon": "^1.0.0"
}
}
16 changes: 0 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions src/components/date-picker/date-picker.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.datePicker {
display: grid;
gap: 0.5rem;
gap: calc(6 * var(--zap-px));
}
.formButton {
font-weight: 400 !important;
Expand Down Expand Up @@ -80,13 +80,13 @@
}
/* .nav {
display: flex;
gap: 1rem;
gap: calc(13 * var(--zap-px));
align-items: center;
} */
.navButtonNext,
.navButtonPrevious {
height: 1.75rem;
width: 1.75rem;
height: calc(23 * var(--zap-px));
width: calc(23 * var(--zap-px));
background-color: transparent;
padding: 0;
opacity: 0.5;
Expand All @@ -109,10 +109,10 @@
background-color: var(--neutral-arch-20);
} */
.navButtonPrevious {
left: 1rem;
left: calc(13 * var(--zap-px));
}
.navButtonNext {
right: 1rem;
right: calc(13 * var(--zap-px));
}
.table {
width: 100%;
Expand All @@ -123,10 +123,10 @@
display: flex;
}
.headCell {
font-size: 1rem;
font-size: calc(13 * var(--zap-px));
color: var(--text-hint);
border-radius: 8px;
width: 2.25rem;
width: calc(29 * var(--zap-px));
font-weight: 400;
width: 36px;
display: flex;
Expand All @@ -136,12 +136,12 @@
.row {
display: flex;
width: 100%;
margin-top: 0.5rem;
margin-top: calc(6 * var(--zap-px));
border-bottom: none !important;
}
.cell {
text-align: center;
font-size: 0.8rem;
font-size: calc(10 * var(--zap-px));
padding: 0;
position: relative;
width: 36px;
Expand All @@ -163,7 +163,7 @@
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 0.5rem;
border-radius: calc(6 * var(--zap-px));
border: none;
outline: none;
background-color: transparent;
Expand Down
28 changes: 14 additions & 14 deletions src/components/date-picker/date-range-picker.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.dateRangePicker {
display: grid;
gap: 0.5rem;
gap: calc(6 * var(--zap-px));
}
.dateIcon > path,
.dateIcon > g > path {
Expand Down Expand Up @@ -39,7 +39,7 @@
}
.months {
display: flex;
gap: 1rem;
gap: calc(13 * var(--zap-px));
}
.month {
display: flex;
Expand All @@ -50,7 +50,7 @@
display: flex;
justify-content: center;
align-items: center;
padding-top: 1rem;
padding-top: calc(13 * var(--zap-px));
position: relative;
}
.captionLabel {
Expand All @@ -64,8 +64,8 @@
}
.navButtonPrevious,
.navButtonNext {
height: 1.75rem;
width: 1.75rem;
height: calc(23 * var(--zap-px));
width: calc(23 * var(--zap-px));
background-color: transparent;
padding: 0;
opacity: 0.5;
Expand All @@ -86,10 +86,10 @@
}

.navButtonPrevious {
left: 1rem;
left: calc(13 * var(--zap-px));
}
.navButtonNext {
right: 1rem;
right: calc(13 * var(--zap-px));
}
.table {
width: 100%;
Expand All @@ -100,7 +100,7 @@
display: flex;
}
.headCell {
font-size: 1rem;
font-size: calc(13 * var(--zap-px));
color: var(--text-hint);
border-radius: 8px;
font-weight: 400;
Expand All @@ -112,12 +112,12 @@
.row {
display: flex;
width: 100%;
margin-top: 0.5rem;
margin-top: calc(6 * var(--zap-px));
border-bottom: none !important;
}
.cell {
text-align: center;
font-size: 0.8rem;
font-size: calc(10 * var(--zap-px));
padding: 0;
position: relative;
width: 36px;
Expand All @@ -138,7 +138,7 @@
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 0.5rem;
border-radius: calc(6 * var(--zap-px));
border: none;
outline: none;
background-color: transparent;
Expand All @@ -158,7 +158,7 @@
}
.daySelected {
background-color: var(--theme-blue-dark);
border-radius: 0.5rem;
border-radius: calc(6 * var(--zap-px));
}

.daySelected:not(.dayRangeMiddle) .day {
Expand All @@ -170,7 +170,7 @@
color: var(--neutral-white);
}
.dayToday {
border-radius: 0.5rem;
border-radius: calc(6 * var(--zap-px));
background-color: var(--neutral-arch-40);
color: var(--text-primary);
}
Expand Down Expand Up @@ -204,7 +204,7 @@
border-bottom-left-radius: 0;
}
.dayRangeStart.dayRangeEnd {
border-radius: 0.5rem;
border-radius: calc(6 * var(--zap-px));
}
.dayRangeMiddle {
background-color: var(--neutral-arch-20);
Expand Down
2 changes: 1 addition & 1 deletion src/components/drawer/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function Drawer({
const timeout = setTimeout(() => {
if (containerRef.current && descriptionRef.current && footerRef.current) {
const translateXValue = isOpen ? 'translateX(0)' : `translateX(${translateXOffset})`
const descriptionHeight = `calc(100dvh - (1.75rem * 2) - ${footerRef.current.clientHeight}px)`
const descriptionHeight = `calc(100dvh - 46 * var(--zap-px) - ${footerRef.current.clientHeight}px)`

containerRef.current.style.transform = translateXValue
descriptionRef.current.style.maxHeight = descriptionHeight
Expand Down
22 changes: 11 additions & 11 deletions src/components/drawer/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@
}

.container.sm {
width: 30.8rem;
width: calc(400 * var(--zap-px));
}

.container.md {
width: 46.2rem;
width: calc(600 * var(--zap-px));
}

.container.lg {
width: 63.08rem;
width: calc(820 * var(--zap-px));
}

.container.xlg {
width: 77rem;
width: calc(1000 * var(--zap-px));
}

.container.xxlg {
width: 92.3rem;
width: calc(1200 * var(--zap-px));
}

.content {
Expand All @@ -86,8 +86,8 @@
.title {
font-style: normal;
font-weight: 500;
font-size: 1.54rem;
line-height: 2.15rem;
font-size: calc(20 * var(--zap-px));
line-height: calc(28 * var(--zap-px));
color: var(--text-primary);
}

Expand All @@ -112,8 +112,8 @@

.descriptionContainer {
padding: 20px;
max-height: calc(100dvh - (1.75rem * 2));
height: calc(100dvh - (1.75rem * 2));
max-height: calc(100dvh - 46 * var(--zap-px));
height: calc(100dvh - 46 * var(--zap-px));
overflow: scroll;
}
.descriptionContainer.fullHeight {
Expand Down Expand Up @@ -154,8 +154,8 @@
.saveBtn,
.cancelBtn {
font-weight: 400;
font-size: 1.23rem;
line-height: 1.9rem;
font-size: calc(16 * var(--zap-px));
line-height: calc(25 * var(--zap-px));
padding: 8px 16px;
border-radius: 6px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/empty-state/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

.containerRow {
flex-direction: row;
gap: 1.62rem;
gap: calc(21 * var(--zap-px));
}

.title {
Expand Down
Loading
Loading