diff --git a/packages/nativejs/docs/404.html b/packages/nativejs/docs/404.html
index 9a88978..76f0e0a 100644
--- a/packages/nativejs/docs/404.html
+++ b/packages/nativejs/docs/404.html
@@ -7,6 +7,8 @@
+
+
{
});
};
-export const css = () => {
+export const appCss = () => {
return stream("sass/app.scss", {
pipes: [
// Minify scss to css
@@ -34,6 +34,17 @@ export const css = () => {
})
};
+export const baseCss = () => {
+ return stream("sass/base.scss", {
+ pipes: [
+ // Minify scss to css
+ sass({ outputStyle: "expanded" || "compressed" }).on("error", logError)
+ ],
+ dest: "docs/css",
+ end: [browserSync.stream()],
+ })
+};
+
export const js = () => {
return stream(tsProject.src(), {
pipes: [
@@ -67,7 +78,8 @@ export const watch = () => {
);
sentry(["templates/**/*.njk", "pages/*.njk"], { delay: 1000 }, html);
- sentry("sass/**/*.scss", { delay: 1000 }, css);
+ sentry(["sass/**/*.scss", "!sass/app.scss"], { delay: 1000 }, baseCss);
+ sentry("sass/app.scss", { delay: 1000 }, appCss);
// sentry("ts/**/*.ts", { delay: 1000 }, js);
sentry("docs/**/*.html").on('change', browserSync.reload);
@@ -90,10 +102,10 @@ export const watch_include = () => {
);
sentry(["templates/**/*.njk", "pages/*.njk"], { delay: 1000 }, html);
- sentry("sass/**/*.scss", { delay: 1000 }, css);
- sentry("ts/**/*.ts", { delay: 1000 }, js);
+ sentry(["sass/**/*.scss", "!sass/app.scss"], { delay: 1000 }, baseCss);
+ sentry("sass/app.scss", { delay: 1000 }, appCss);
sentry("docs/**/*.html").on('change', browserSync.reload);
sentry("docs/**/*.js").on('change', browserSync.reload);
};
-export default parallel(html, css, js);
\ No newline at end of file
+export default parallel(html, baseCss, appCss, js);
\ No newline at end of file
diff --git a/packages/nativejs/sass/_layout.scss b/packages/nativejs/sass/_layout.scss
new file mode 100644
index 0000000..1e2b5bc
--- /dev/null
+++ b/packages/nativejs/sass/_layout.scss
@@ -0,0 +1,159 @@
+$screens: (
+ sm: 640px,
+ md: 768px,
+ lg: 1024px,
+ xl: 1280px,
+);
+
+$fontSize: (
+ xs: 0.75rem,
+ sm: 0.875rem,
+ default: 1rem,
+ lg: 1.125rem,
+ xl: 1.25rem,
+ 2xl: 1.5rem,
+ 3xl: 1.875rem,
+ 4xl: 2.25rem,
+ 5xl: 3rem,
+ 6xl: 4rem,
+);
+
+$fontWeight: (
+ 100: 100,
+ 200: 200,
+ 300: 300,
+ 400: 400,
+ 500: 500,
+ 600: 600,
+ 700: 700,
+ 800: 800,
+ 900: 900,
+);
+
+$spacing: (
+ px: 1px,
+ 0: 0,
+ 1: 0.25rem,
+ 2: 0.5rem,
+ 3: 0.75rem,
+ 4: 1rem,
+ 5: 1.25rem,
+ 6: 1.5rem,
+ 8: 2rem,
+ 10: 2.5rem,
+ 12: 3rem,
+ 16: 4rem,
+ 20: 5rem,
+ 24: 6rem,
+ 32: 8rem,
+ 40: 10rem,
+ 48: 12rem,
+ 56: 14rem,
+ 64: 16rem,
+);
+
+$letterSpacing: (
+ tighter: -0.05em,
+ tight: -0.025em,
+ normal: 0,
+ wide: 0.025em,
+ wider: 0.05em,
+ widest: 0.1em,
+);
+
+$lineHeight: (
+ none: 1,
+ tight: 1.25,
+ snug: 1.375,
+ normal: 1.5,
+ relaxed: 1.625,
+ loose: 2,
+ 3: 0.75rem,
+ 4: 1rem,
+ 5: 1.25rem,
+ 6: 1.5rem,
+ 7: 1.75rem,
+ 8: 2rem,
+ 9: 2.25rem,
+ 10: 2.5rem,
+);
+
+$borderWidth: (
+ default: 1px,
+ 0: 0,
+ 2: 2px,
+ 4: 4px,
+ 8: 8px,
+);
+
+$borderRadius: (
+ none: 0,
+ sm: 0.125rem,
+ default: 0.25rem,
+ md: 0.375rem,
+ lg: 0.5rem,
+ full: 9999px,
+);
+
+$flex: (
+ default: 1,
+ 1: 1 1 0%,
+ auto: 1 1 auto,
+ initial: 0 1 auto,
+ none: none,
+);
+
+$flexGrow: (
+ 0: 0,
+ default: 1,
+);
+
+$flexShrink: (
+ 0: 0,
+ default: 1,
+);
+
+$zIndex: (
+ auto: auto,
+ 0: 0,
+ 10: 10,
+ 20: 20,
+ 30: 30,
+ 40: 40,
+ 50: 50,
+);
+
+$sizes: map-merge(
+ (
+ auto: auto,
+ 1/2: 50%,
+ 1/3: 33.333333%,
+ 2/3: 66.666667%,
+ 1/4: 25%,
+ 2/4: 50%,
+ 3/4: 75%,
+ 1/5: 20%,
+ 2/5: 40%,
+ 3/5: 60%,
+ 4/5: 80%,
+ 1/6: 16.666667%,
+ 2/6: 33.333333%,
+ 3/6: 50%,
+ 4/6: 66.666667%,
+ 5/6: 83.333333%,
+ 1/12: 8.333333%,
+ 2/12: 16.666667%,
+ 3/12: 25%,
+ 4/12: 33.333333%,
+ 5/12: 41.666667%,
+ 6/12: 50%,
+ 7/12: 58.333333%,
+ 8/12: 66.666667%,
+ 9/12: 75%,
+ 10/12: 83.333333%,
+ 11/12: 91.666667%,
+ full: 100%,
+ screen: 100vw,
+ ),
+ $spacing
+);
diff --git a/packages/nativejs/sass/_style.scss b/packages/nativejs/sass/_style.scss
new file mode 100644
index 0000000..16379b5
--- /dev/null
+++ b/packages/nativejs/sass/_style.scss
@@ -0,0 +1,173 @@
+$opacity: (
+ 0: 0,
+ 25: 0.25,
+ 50: 0.5,
+ 75: 0.75,
+ 100: 1,
+);
+
+$fontFamily: (
+ sans: (
+ "system-ui",
+ "-apple-system",
+ "BlinkMacSystemFont",
+ "Segoe UI",
+ "Roboto",
+ "Helvetica Neue",
+ "Arial",
+ "Noto Sans",
+ "sans-serif",
+ "Apple Color Emoji",
+ "Segoe UI Emoji",
+ "Segoe UI Symbol",
+ "Noto Color Emoji",
+ ),
+ serif: (
+ "Georgia",
+ "Cambria",
+ "Times New Roman",
+ "Times",
+ "serif",
+ ),
+ mono: (
+ "Menlo",
+ "Monaco",
+ "Consolas",
+ "Liberation Mono",
+ "Courier New",
+ "monospace",
+ ),
+);
+
+$cursors: (
+ auto: auto,
+ default: default,
+ pointer: pointer,
+ wait: wait,
+ text: text,
+ move: move,
+ not-allowed: not-allowed,
+);
+
+$listStyleType: (
+ none: none,
+ disc: disc,
+ decimal: decimal,
+);
+
+$colors: (
+ "transparent": transparent,
+ current: currentColor,
+ black: #000,
+ white: #fff,
+ gray: (
+ 100: #f7fafc,
+ 200: #edf2f7,
+ 300: #e2e8f0,
+ 400: #cbd5e0,
+ 500: #a0aec0,
+ 600: #718096,
+ 700: #4a5568,
+ 800: #2d3748,
+ 900: #1a202c,
+ ),
+ red: (
+ 100: #fff5f5,
+ 200: #fed7d7,
+ 300: #feb2b2,
+ 400: #fc8181,
+ 500: #f56565,
+ 600: #e53e3e,
+ 700: #c53030,
+ 800: #9b2c2c,
+ 900: #742a2a,
+ ),
+ orange: (
+ 100: #fffaf0,
+ 200: #feebc8,
+ 300: #fbd38d,
+ 400: #f6ad55,
+ 500: #ed8936,
+ 600: #dd6b20,
+ 700: #c05621,
+ 800: #9c4221,
+ 900: #7b341e,
+ ),
+ yellow: (
+ 100: #fffff0,
+ 200: #fefcbf,
+ 300: #faf089,
+ 400: #f6e05e,
+ 500: #ecc94b,
+ 600: #d69e2e,
+ 700: #b7791f,
+ 800: #975a16,
+ 900: #744210,
+ ),
+ green: (
+ 100: #f0fff4,
+ 200: #c6f6d5,
+ 300: #9ae6b4,
+ 400: #68d391,
+ 500: #48bb78,
+ 600: #38a169,
+ 700: #2f855a,
+ 800: #276749,
+ 900: #22543d,
+ ),
+ teal: (
+ 100: #e6fffa,
+ 200: #b2f5ea,
+ 300: #81e6d9,
+ 400: #4fd1c5,
+ 500: #38b2ac,
+ 600: #319795,
+ 700: #2c7a7b,
+ 800: #285e61,
+ 900: #234e52,
+ ),
+ blue: (
+ 100: #ebf8ff,
+ 200: #bee3f8,
+ 300: #90cdf4,
+ 400: #63b3ed,
+ 500: #4299e1,
+ 600: #3182ce,
+ 700: #2b6cb0,
+ 800: #2c5282,
+ 900: #2a4365,
+ ),
+ indigo: (
+ 100: #ebf4ff,
+ 200: #c3dafe,
+ 300: #a3bffa,
+ 400: #7f9cf5,
+ 500: #667eea,
+ 600: #5a67d8,
+ 700: #4c51bf,
+ 800: #434190,
+ 900: #3c366b,
+ ),
+ purple: (
+ 100: #faf5ff,
+ 200: #e9d8fd,
+ 300: #d6bcfa,
+ 400: #b794f4,
+ 500: #9f7aea,
+ 600: #805ad5,
+ 700: #6b46c1,
+ 800: #553c9a,
+ 900: #44337a,
+ ),
+ pink: (
+ 100: #fff5f7,
+ 200: #fed7e2,
+ 300: #fbb6ce,
+ 400: #f687b3,
+ 500: #ed64a6,
+ 600: #d53f8c,
+ 700: #b83280,
+ 800: #97266d,
+ 900: #702459,
+ ),
+);
diff --git a/packages/nativejs/sass/_utilities.scss b/packages/nativejs/sass/_utilities.scss
new file mode 100644
index 0000000..2bc9e56
--- /dev/null
+++ b/packages/nativejs/sass/_utilities.scss
@@ -0,0 +1,20 @@
+$boxShadow: (
+ xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
+ sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
+ default:
+ "0 1px 3px 0 rgba(0, 0, 0, 0.1),
+ 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
+ md:
+ "0 4px 6px -1px rgba(0, 0, 0, 0.1),
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
+ lg:
+ "0 10px 15px -3px rgba(0, 0, 0, 0.1),
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
+ xl:
+ "0 20px 25px -5px rgba(0, 0, 0, 0.1),
+ 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
+ 2xl: "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
+ inner: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",
+ outline: "0 0 0 3px rgba(66, 153, 225, 0.5)",
+ none: "none",
+);
diff --git a/packages/nativejs/sass/app.css b/packages/nativejs/sass/app.css
new file mode 100644
index 0000000..f10e8ca
--- /dev/null
+++ b/packages/nativejs/sass/app.css
@@ -0,0 +1,4 @@
+html {
+ color: green;
+}
+/*# sourceMappingURL=app.css.map */
\ No newline at end of file
diff --git a/packages/nativejs/sass/app.css.map b/packages/nativejs/sass/app.css.map
new file mode 100644
index 0000000..bd22f73
--- /dev/null
+++ b/packages/nativejs/sass/app.css.map
@@ -0,0 +1,9 @@
+{
+ "version": 3,
+ "mappings": "AAAA,AAAA,IAAI,CAAC;EACD,KAAK,EAAE,KAAK;CACf",
+ "sources": [
+ "app.scss"
+ ],
+ "names": [],
+ "file": "app.css"
+}
\ No newline at end of file
diff --git a/packages/nativejs/sass/app.scss b/packages/nativejs/sass/app.scss
index e69de29..4355efa 100644
--- a/packages/nativejs/sass/app.scss
+++ b/packages/nativejs/sass/app.scss
@@ -0,0 +1,3 @@
+html {
+ color: green;
+}
diff --git a/packages/nativejs/sass/base.scss b/packages/nativejs/sass/base.scss
new file mode 100644
index 0000000..1308410
--- /dev/null
+++ b/packages/nativejs/sass/base.scss
@@ -0,0 +1,806 @@
+@import "_style";
+@import "_layout";
+@import "_utilities";
+
+@mixin modifier($selector, $property, $value) {
+ @at-root {
+ @each $key, $screen in $screens {
+ @media (min-width: $screen) {
+ #{$key}:#{str-slice($selector, 2)} {
+ #{$property}: $value;
+ }
+
+ // hover-#{$key}:#{str-slice($selector, 2)}:hover,
+ // focus-#{$key}:#{str-slice($selector, 2)}:focus {
+ // #{$property}: $value;
+ // }
+ }
+ }
+
+ hover:#{str-slice($selector, 2)}:hover,
+ focus:#{str-slice($selector, 2)}:focus {
+ #{$property}: $value;
+ }
+ }
+}
+
+@mixin listSet($property, $list, $suffix: false) {
+ @if map-has-key($list, "default") {
+ {if($suffix, "> #{$suffix}", "")} {
+ $value: map-get($list, "default");
+ #{$property}: $value;
+
+ @include modifier($selector, $property, $value);
+ }
+ }
+
+ @each $key, $value in $list {
+ &-#{$key}#{if($suffix, "> #{$suffix}", "")} {
+ // If value is a map, loop through, and create new sub-classes using it's index
+ @if type-of($value) == "map" {
+ @each $index, $val in $value {
+ &-#{$index} {
+ #{$property}: $val;
+
+ @include modifier(#{&}, $property, $val);
+ }
+ }
+ } @else {
+ #{$property}: $value;
+
+ @include modifier(#{&}, $property, $value);
+ }
+ }
+ }
+}
+
+@mixin theme($property, $suffix: false) {
+ @include listSet($property, $colors, $suffix);
+}
+
+$dirs: (
+ "r": "right",
+ "l": "left",
+ "t": "top",
+ "b": "bottom",
+ "y": (
+ "bottom",
+ "top",
+ ),
+ "x": (
+ "right",
+ "left",
+ ),
+);
+
+@mixin dirSet($property, $list, $suffix: false) {
+ @each $key, $dir in $dirs {
+ {$key} {
+ // If value is a map, loop through, and create new sub-classes using it's index
+ @if type-of($dir) == "list" {
+ @each $val in $dir {
+ // @debug #{$property}-#{$val};
+ @include listSet(#{$property}-#{$val}, $list, $suffix);
+ }
+ } @else {
+ @include listSet(#{$property}-#{$dir}, $list, $suffix);
+ }
+ }
+ }
+}
+
+.bg {
+ @include theme(background-color);
+ @include dirSet(padding, $screens);
+}
+
+/*
+.color {
+ @include theme(color);
+}
+
+.opacity {
+ @include listSet(opacity, $opacity);
+}
+
+
+.border {
+ @include listSet(border-width, $borderWidth);
+
+ & {
+ border-color: map-get(map-get($colors, "gray"), "300");
+ }
+
+ @include theme(border-color);
+
+ &- {
+ @include dirSet(border-width, $borderWidth);
+ @include dirSet(border-color, $colors);
+ }
+
+ &-solid {
+ border-style: solid;
+ }
+
+ &-dashed {
+ border-style: dashed;
+ }
+
+ &-dotted {
+ border-style: dotted;
+ }
+
+ &-double {
+ border-style: double;
+ }
+
+ &-none {
+ border-style: none;
+ }
+}
+
+.divide {
+ & {
+ border-color: map-get(map-get($colors, "gray"), "300");
+ }
+
+ @include theme(border-color, "* + *");
+
+ &- {
+ @include dirSet(border-width, $borderWidth, "* + *");
+ @include dirSet(border-color, $colors, "* + *");
+ }
+
+ &-solid > * + * {
+ border-style: solid;
+ }
+
+ &-dashed > * + * {
+ border-style: dashed;
+ }
+
+ &-dotted > * + * {
+ border-style: dotted;
+ }
+
+ &-double > * + * {
+ border-style: double;
+ }
+
+ &-none > * + * {
+ border-style: none;
+ }
+}
+
+.radius {
+ @include listSet(border-radius, $borderRadius);
+
+ &- {
+ @include dirSet(border-radius, $borderRadius);
+ }
+}
+
+.cursor {
+ @include listSet(cursor, $cursors);
+}
+
+@mixin negativeListSet($property, $list, $suffix: false) {
+ @if map-has-key($list, "default") {
+ {if($suffix, "> #{$suffix}", "")} {
+ $value: map-get($list, "default");
+ #{$property}: -$value;
+
+ @include modifier($selector, $property, -$value);
+ }
+ }
+
+ @each $key, $value in $list {
+ &-#{$key}#{if($suffix, "> #{$suffix}", "")} {
+ // If value is a map, loop through, and create new sub-classes using it's index
+ @if type-of($value) == "map" {
+ @each $index, $val in $value {
+ &-#{$index} {
+ #{$property}: -$val;
+
+ @include modifier(#{&}, $property, -$val);
+ }
+ }
+ } @else {
+ #{$property}: -$value;
+
+ @include modifier(#{&}, $property, -$value);
+ }
+ }
+ }
+}
+
+@mixin negDirSet($property, $list, $suffix: false) {
+ @each $key, $dir in $dirs {
+ {$key} {
+ // If value is a map, loop through, and create new sub-classes using it's index
+ @if type-of($dir) == map {
+ @each $val in $value {
+ @include negativeListSet(
+ #{$property}-#{$val},
+ $list,
+ $suffix
+ );
+ }
+ } @else {
+ @include negativeListSet(#{$property}-#{$dir}, $list, $suffix);
+ }
+ }
+ }
+}
+
+$spacingTypes: (
+ "m": "margin",
+ "p": "padding",
+);
+
+@each $key, $spaceType in $spaceTypes {
+ .#{$key} {
+ &-auto {
+ #{$spaceType}: auto;
+ }
+
+ @include listSet(#{$spaceType}, $spacing);
+ @include dirSet(#{$spaceType}, $spacing);
+
+ @if $spaceType == "margin" {
+ &-neg {
+ @include negativeListSet(#{$spaceType}, $spacing);
+ @include negDirSet(#{$spaceType}, $spacing);
+ }
+ }
+ }
+}
+
+.space {
+ @include listSet(#{$spaceType}, $spacing, "* + *");
+ @include dirSet(#{$spaceType}, $spacing, "* + *");
+
+ &-neg {
+ @include negativeListSet(#{$spaceType}, $spacing, "* + *");
+ @include negDirSet(#{$spaceType}, $spacing, "* + *");
+ }
+}
+
+.font {
+ @include listSet(font-family, $fontFamily);
+
+ &-italic {
+ font-style: italic;
+ }
+
+ &-bold {
+ font-style: bold;
+ }
+
+ &-w {
+ @include listSet(font-weight, $fontWeight);
+ }
+
+ &-sz {
+ @include listSet(font-size, $fontSize);
+ }
+}
+
+$sizeTypes: (
+ "w": "width",
+ "h": "height",
+ "min-w": "min-width",
+ "min-h": "min-height",
+ "max-w": "max-width",
+ "max-h": "max-height",
+);
+
+@each $key, $sizeType in $sizeTypes {
+ .#{$key} {
+ @include listSet(#{$sizeType}, $sizes);
+ }
+}
+
+.flex {
+ display: flex;
+ @include listSet(flex, $flex);
+
+ &-grow {
+ @include listSet(flex-grow, $flexGrow);
+ }
+
+ &-shrink {
+ @include listSet(flex-shrink, $flexShrink);
+ }
+
+ &-row {
+ flex-direction: row;
+ }
+ &-row-reverse {
+ flex-direction: row-reverse;
+ }
+ &-col {
+ flex-direction: column;
+ }
+ &-col-reverse {
+ flex-direction: column-reverse;
+ }
+
+ &-no-wrap {
+ flex-wrap: nowrap;
+ }
+
+ &-wrap {
+ flex-wrap: wrap;
+ }
+
+ &-wrap-reverse {
+ flex-wrap: wrap-reverse;
+ }
+}
+
+.items {
+ &-stretch {
+ align-items: stretch;
+ }
+ &-start {
+ align-items: flex-start;
+ }
+ &-center {
+ align-items: center;
+ }
+ &-end {
+ align-items: flex-end;
+ }
+ &-baseline {
+ align-items: baseline;
+ }
+}
+
+.content {
+ &-start {
+ align-content: flex-start;
+ }
+ &-center {
+ align-content: center;
+ }
+ &-end {
+ align-content: flex-end;
+ }
+ &-between {
+ align-content: space-between;
+ }
+ &-around {
+ align-content: space-around;
+ }
+}
+
+.self {
+ &-auto {
+ align-self: auto;
+ }
+ &-start {
+ align-self: flex-start;
+ }
+ &-center {
+ align-self: center;
+ }
+ &-end {
+ align-self: flex-end;
+ }
+ &-stretch {
+ align-self: stretch;
+ }
+}
+
+.float {
+ &-right {
+ float: right;
+ }
+ &-left {
+ float: left;
+ }
+ &-none {
+ float: none;
+ }
+}
+
+.justify {
+ &-start {
+ justify-content: flex-start;
+ }
+ &-center {
+ justify-content: center;
+ }
+ &-end {
+ justify-content: flex-end;
+ }
+ &-between {
+ justify-content: space-between;
+ }
+ &-around {
+ justify-content: space-around;
+ }
+}
+
+.clearfix::after {
+ content: "";
+ display: table;
+ clear: both;
+}
+
+.object {
+ &-contain {
+ object-fit: contain;
+ }
+
+ &-cover {
+ object-fit: cover;
+ }
+
+ &-fill {
+ object-fit: fill;
+ }
+
+ &-none {
+ object-fit: none;
+ }
+
+ &-scale-down {
+ object-fit: scale-down;
+ }
+
+ &-bottom {
+ object-position: bottom;
+ }
+ &-center {
+ object-position: center;
+ }
+ &-left {
+ object-position: left;
+ }
+ &-left-bottom {
+ object-position: left bottom;
+ }
+ &-left-top {
+ object-position: left top;
+ }
+ &-right {
+ object-position: right;
+ }
+ &-right-bottom {
+ object-position: right bottom;
+ }
+ &-right-top {
+ object-position: right top;
+ }
+ &-top {
+ object-position: top;
+ }
+}
+
+.overflow {
+ &-auto {
+ overflow: auto;
+ }
+ &-hidden {
+ overflow: hidden;
+ }
+ &-visible {
+ overflow: visible;
+ }
+ &-scroll {
+ overflow: scroll;
+ }
+ &-x-auto {
+ overflow-x: auto;
+ }
+ &-y-auto {
+ overflow-y: auto;
+ }
+ &-x-hidden {
+ overflow-x: hidden;
+ }
+ &-y-hidden {
+ overflow-y: hidden;
+ }
+ &-x-visible {
+ overflow-x: visible;
+ }
+ &-y-visible {
+ overflow-y: visible;
+ }
+ &-x-scroll {
+ overflow-x: scroll;
+ }
+ &-y-scroll {
+ overflow-y: scroll;
+ }
+}
+.static {
+ position: static;
+}
+.fixed {
+ position: fixed;
+}
+.absolute {
+ position: absolute;
+}
+.relative {
+ position: relative;
+}
+.sticky {
+ position: sticky;
+}
+
+.pos {
+ &-0 {
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ }
+
+ &-x {
+ right: 0;
+ left: 0;
+
+ &-auto {
+ right: auto;
+ left: auto;
+ }
+ }
+
+ &-y {
+ top: 0;
+ bottom: 0;
+
+ &-auto {
+ bottom: auto;
+ top: auto;
+ }
+ }
+
+ &-auto {
+ top: auto;
+ right: auto;
+ bottom: auto;
+ left: auto;
+ }
+}
+
+.scrolling {
+ &-touch {
+ -webkit-overflow-scrolling: touch;
+ }
+ &-auto {
+ -webkit-overflow-scrolling: auto;
+ }
+}
+
+.shadow {
+ // @include listSet(box-shadow, $boxShadow);
+
+ @if map-has-key($boxShadow, "default") {
+ $selector: &;
+ #{$selector} {
+ $value: map-get($boxShadow, "default");
+ #{$property}: #{$value};
+
+ @include modifier($selector, $property, #{$value});
+ }
+ }
+
+ @each $key, $value in $boxShadow {
+ $parentSelector: &-#{$key};
+ #{$parentSelector} {
+ #{$property}: #{$value};
+
+ @include modifier($parentSelector, $property, #{$value});
+ }
+ }
+}
+
+.text {
+ @include listSet(letter-spacing, $letterSpacing);
+
+ &-height {
+ @include listSet(line-height, $lineHeight);
+ }
+
+ &-uppercase {
+ text-transform: uppercase;
+ }
+
+ &-lowercase {
+ text-transform: lowercase;
+ }
+
+ &-capitalize {
+ text-transform: capitalize;
+ }
+
+ &-normal-case {
+ text-transform: none;
+ }
+
+ &-left {
+ text-align: left;
+ }
+
+ &-right {
+ text-align: right;
+ }
+
+ &-center {
+ text-align: center;
+ }
+
+ &-justify {
+ text-align: justify;
+ }
+
+ &-underline {
+ text-decoration: underline;
+ }
+
+ &-line-through {
+ text-decoration: line-through;
+ }
+
+ &-no-underline {
+ text-decoration: none;
+ }
+}
+
+.display {
+ display: block;
+}
+
+.visible {
+ visibility: visible;
+}
+
+.invisible {
+ visibility: hidden;
+}
+
+.pointer-events {
+ &-none {
+ pointer-events: none;
+ }
+ &-auto {
+ pointer-events: auto;
+ }
+}
+
+.container {
+ width: 100%;
+ @include listSet(max-width, $screens);
+}
+
+.show {
+ visibility: visible;
+ pointer-events: auto;
+}
+
+.hide {
+ visibility: hidden;
+ pointer-events: none;
+}
+
+.z {
+ @include listSet(z-index, $zIndex);
+}
+
+.d {
+ &-hidden {
+ display: none;
+ }
+ &-block {
+ display: block;
+ }
+ &-inline-block {
+ display: inline-block;
+ }
+ &-inline {
+ display: inline;
+ }
+ &-flex {
+ display: flex;
+ }
+ &-inline-flex {
+ display: inline-flex;
+ }
+}
+
+.v-align {
+ &-baseline {
+ vertical-align: baseline;
+ }
+ &-top {
+ vertical-align: top;
+ }
+ &-middle {
+ vertical-align: middle;
+ }
+ &-bottom {
+ vertical-align: bottom;
+ }
+ &-text-top {
+ vertical-align: text-top;
+ }
+ &-text-bottom {
+ vertical-align: text-bottom;
+ }
+}
+
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
+.not-sr-only {
+ position: static;
+ width: auto;
+ height: auto;
+ padding: 0;
+ margin: 0;
+ overflow: visible;
+ clip: auto;
+ white-space: normal;
+}
+
+.whitespace {
+ white-space: normal;
+
+ &-no-wrap {
+ white-space: nowrap;
+ }
+ &-pre {
+ white-space: pre;
+ }
+ &-pre-line {
+ white-space: pre-line;
+ }
+ &-pre-wrap {
+ white-space: pre-wrap;
+ }
+}
+
+.w-break {
+ word-break: normal;
+ overflow-wrap: normal;
+ &-words {
+ overflow-wrap: break-word;
+ }
+ &-all {
+ word-break: break-all;
+ }
+}
+
+.truncate {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.list {
+ @include listSet(list-style-type, $listStyleType);
+
+ &-inside {
+ list-style-position: inside;
+ }
+
+ &-outside {
+ list-style-position: outside;
+ }
+}
+*/
diff --git a/packages/nativejs/templates/layouts/layout.njk b/packages/nativejs/templates/layouts/layout.njk
index 1c4e5b9..70575e3 100644
--- a/packages/nativejs/templates/layouts/layout.njk
+++ b/packages/nativejs/templates/layouts/layout.njk
@@ -7,6 +7,8 @@
+
+