diff --git a/src/lib/Spacing.stories.svelte b/src/lib/Spacing.stories.svelte index 9be025e..e761350 100644 --- a/src/lib/Spacing.stories.svelte +++ b/src/lib/Spacing.stories.svelte @@ -18,6 +18,7 @@
f64 - 64px
f80 - 80px
f96 - 96px
+
f120 - 120px
f128 - 128px
f160 - 160px
f192 - 192px
diff --git a/src/lib/consts.ts b/src/lib/consts.ts new file mode 100644 index 0000000..ea21257 --- /dev/null +++ b/src/lib/consts.ts @@ -0,0 +1 @@ +export const MAX_PAGE_WIDTH: number = 1700; diff --git a/src/lib/features/Grid.stories.svelte b/src/lib/features/Grid.stories.svelte new file mode 100644 index 0000000..16f21d5 --- /dev/null +++ b/src/lib/features/Grid.stories.svelte @@ -0,0 +1,31 @@ + + +Resize window or activate responsive sizing in the development panel to see grid changes. + + + {#each content as line, i} +

Paragraph {i+1}: + {line} +

+ {/each} +
+

Source: Lorem Ipsum

+
diff --git a/src/lib/features/Grid.svelte b/src/lib/features/Grid.svelte new file mode 100644 index 0000000..bf448c5 --- /dev/null +++ b/src/lib/features/Grid.svelte @@ -0,0 +1,7 @@ + +
+
+ +
+
diff --git a/tailwind.config.ts b/tailwind.config.ts index 71fc237..2e454f0 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,4 +1,5 @@ import tailwindColors from './src/lib/styles/tailwindColors'; +import { MAX_PAGE_WIDTH } from './src/lib/consts'; /** @type {import('tailwindcss').Config} */ export default { @@ -56,6 +57,7 @@ export default { f64: '64px', f80: '80px', f96: '96px', + f120: '120px', f128: '128px', f160: '160px', f192: '192px', @@ -68,6 +70,17 @@ export default { lg: '0px 4px 10px 0px #00000040', }, }, + screens: { + xs: '0', + sm: '320px', + md: '744px', + lg: '1300px', + xl: `${MAX_PAGE_WIDTH}px`, + 'vertical-lg': { raw: '(max-height: 700px) and (min-width: 1300px)' }, + 'vertical-md': { raw: '(max-height: 700px) and (min-width: 900px)' }, + vertical: { raw: '(max-height: 700px) or (min-width: 0px)' }, + horizontal: { raw: '(min-height: 700px) and (min-width: 1300px)' }, + }, }, plugins: [], };