feat: Setup Nuxt UI
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
@import "tailwindcss";
|
||||
@import "@nuxt/ui";
|
||||
|
||||
@import "./containers.css";
|
||||
@import "./theme.css";
|
||||
@import "./typography.css";
|
||||
|
||||
67
wp-content/themes/headless/app/assets/css/containers.css
Normal file
67
wp-content/themes/headless/app/assets/css/containers.css
Normal file
@@ -0,0 +1,67 @@
|
||||
:root {
|
||||
--ui-container: var(--breakpoint-2xl);
|
||||
}
|
||||
|
||||
/* Container padding */
|
||||
@utility px-container {
|
||||
@apply px-4 sm:px-6 lg:px-8;
|
||||
}
|
||||
|
||||
/* Container sizes */
|
||||
@utility container {
|
||||
@apply mx-auto max-w-(--breakpoint-2xl) px-container;
|
||||
}
|
||||
@utility container-xl {
|
||||
@apply container max-w-(--breakpoint-xl);
|
||||
}
|
||||
@utility container-lg {
|
||||
@apply container max-w-(--breakpoint-lg);
|
||||
}
|
||||
@utility container-md {
|
||||
@apply container max-w-(--breakpoint-md);
|
||||
}
|
||||
@utility container-sm {
|
||||
@apply container max-w-(--breakpoint-sm);
|
||||
}
|
||||
@utility container-fluid {
|
||||
@apply container max-w-screen;
|
||||
}
|
||||
@utility container-none {
|
||||
@apply w-full max-w-screen;
|
||||
}
|
||||
|
||||
/* Split containers */
|
||||
:root {
|
||||
--container-outside-margin: 0;
|
||||
--container-width: 100vw;
|
||||
@variant sm {
|
||||
--container-outside-margin: calc(50vw - theme("screens.sm") / 2);
|
||||
--container-width: theme("screens.sm");
|
||||
}
|
||||
@variant md {
|
||||
--container-outside-margin: calc(50vw - theme("screens.md") / 2);
|
||||
--container-width: theme("screens.md");
|
||||
}
|
||||
@variant lg {
|
||||
--container-outside-margin: calc(50vw - theme("screens.lg") / 2);
|
||||
--container-width: theme("screens.lg");
|
||||
}
|
||||
@variant xl {
|
||||
--container-outside-margin: calc(50vw - theme("screens.xl") / 2);
|
||||
--container-width: theme("screens.xl");
|
||||
}
|
||||
@variant 2xl {
|
||||
--container-outside-margin: calc(50vw - theme("screens.2xl") / 2);
|
||||
--container-width: theme("screens.2xl");
|
||||
}
|
||||
}
|
||||
|
||||
@utility container-left {
|
||||
@apply ml-(--container-outside-margin) px-container;
|
||||
}
|
||||
@utility container-right {
|
||||
@apply mr-(--container-outside-margin) px-container;
|
||||
}
|
||||
@utility container-half {
|
||||
width: calc(var(--container-width) / 2);
|
||||
}
|
||||
0
wp-content/themes/headless/app/assets/css/theme.css
Normal file
0
wp-content/themes/headless/app/assets/css/theme.css
Normal file
21
wp-content/themes/headless/app/assets/css/typography.css
Normal file
21
wp-content/themes/headless/app/assets/css/typography.css
Normal file
@@ -0,0 +1,21 @@
|
||||
/* Heading styles */
|
||||
@utility heading-base {
|
||||
@apply font-bold tracking-tight;
|
||||
}
|
||||
@utility heading-1 {
|
||||
@apply heading-base text-4xl;
|
||||
}
|
||||
@utility heading-2 {
|
||||
@apply heading-base text-3xl;
|
||||
}
|
||||
@utility heading-3 {
|
||||
@apply heading-base text-2xl;
|
||||
}
|
||||
@utility heading-4 {
|
||||
@apply heading-base text-xl;
|
||||
}
|
||||
|
||||
/* Paragraph styles */
|
||||
@utility paragraph-lead {
|
||||
@apply text-2xl;
|
||||
}
|
||||
Reference in New Issue
Block a user