Skip to content

Commit 026ed70

Browse files
refactor: streamline swiper customization variables and remove redundant comments
1 parent 7436795 commit 026ed70

1 file changed

Lines changed: 20 additions & 26 deletions

File tree

src/app/globals.css

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,27 @@
11
@import "tailwindcss";
22

3-
/**************************************/
4-
/******** SWIPER CUSTOMISATION ********/
5-
/**************************************/
3+
@theme {
4+
--font-rem: "Rem", monospace;
5+
--color-paper: #fafafa; /* zinc-50 */
6+
--color-soft: #e4e4e7; /* zinc-200 */
7+
--color-muted: #d4d4d8; /* zinc-300 */
8+
--color-hard: #71717a; /* zinc-500 */
9+
--color-ink: #27272a; /* zinc-800 */
10+
}
611

712
:root {
8-
--swiper-theme-color: #fafafa !important;
9-
10-
--swiper-pagination-bottom: 48px !important;
11-
--swiper-navigation-size: 20px !important;
12-
--swiper-navigation-sides-offset: 8px !important;
13+
--swiper-theme-color: var(--color-paper) !important;
14+
--swiper-pagination-bottom: 48px !important;
15+
--swiper-pagination-bullet-inactive-color: var(--color-paper) !important;
16+
--swiper-pagination-bullet-inactive-opacity: 0.33 !important;
17+
--swiper-navigation-size: 20px !important;
18+
--swiper-navigation-sides-offset: 8px !important;
1319
}
1420

1521
@media (min-width: 768px) {
16-
:root {
17-
--swiper-pagination-bottom: 16px !important;
18-
--swiper-navigation-size: 24px !important;
19-
--swiper-navigation-sides-offset: 16px !important;
20-
}
21-
}
22-
23-
24-
25-
@theme {
26-
--font-rem: "Rem", monospace;
27-
--color-paper: #fafafa; /* zinc-50 */
28-
--color-soft: #e4e4e7; /* zinc-200 */
29-
--color-muted: #d4d4d8; /* zinc-300 */
30-
--color-hard: #71717a; /* zinc-500 */
31-
--color-ink: #27272a; /* zinc-800 */
32-
}
33-
22+
:root {
23+
--swiper-pagination-bottom: 16px !important;
24+
--swiper-navigation-size: 24px !important;
25+
--swiper-navigation-sides-offset: 16px !important;
26+
}
27+
}

0 commit comments

Comments
 (0)