diff --git a/.lintstagedrc.json b/.lintstagedrc.json index c228e11..b2cf677 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,4 +1,4 @@ { "**/*.{md,mdx,html,astro,svelte,css}": ["pnpx prettier --write"], - "**/*.{js,ts,html,astro,svelte}": ["pnpx eslint --fix"] + "**/*.{js,ts,html,svelte}": ["pnpx eslint --fix"] } diff --git a/src/components/Card.astro b/src/components/Card.astro deleted file mode 100644 index c68fa2a..0000000 --- a/src/components/Card.astro +++ /dev/null @@ -1,63 +0,0 @@ ---- -export interface Props { - title: string; - body: string; - href: string; -} - -const { href, title, body } = Astro.props; ---- - - - diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index f1a62a5..d0ce517 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -20,16 +20,8 @@ const { title } = Astro.props; diff --git a/src/pages/index.astro b/src/pages/index.astro index 412cc4a..e235c39 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,81 +1,14 @@ --- import Layout from '../layouts/Layout.astro'; -import Card from '../components/Card.astro'; ---
-

Welcome to Astro

-

- To get started, open the directory src/pages in your project.
- Code Challenge: Tweak the "Welcome to Astro" message above. +

Hello, world!

+

+ Lorem ipsum dolor sit, amet consectetur adipisicing elit. Accusantium optio magni + asperiores fugiat, necessitatibus voluptatem sit quaerat pariatur natus, tempora + voluptatibus vero eveniet repudiandae, expedita libero. Cum cupiditate at placeat.

-
- - diff --git a/tailwind.config.cjs b/tailwind.config.cjs index f5368a7..144db91 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -2,7 +2,79 @@ module.exports = { content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], theme: { - extend: {}, + extend: { + screens: { + xs: '320px', // --phone + md: '768px', // --tablet + xl: '1280px', // --desktop (prev. 1200) + '3xl': '1800px', // --wide + }, + gridTemplateColumns: { + 10: 'repeat(10, minmax(0, 1fr))', // --grid-narrow + 14: 'repeat(14, minmax(0, 1fr))', // --grid-wide + 18: 'repeat(18, minmax(0, 1fr))', // --grid-fullsize + }, + borderRadius: { + 1: '2px', // --radius-1 + 2: '5px', // --radius-2 + 4: '8px', // --radius-4 + 25: '25px', // --radius-25 + 50: '50%', // --radius-50 + }, + borderWidth: { + 1: '1px', // --border-width-1, (DEFAULT) + 10: '0.1em', // --border-width-10 + 15: '0.15em', // --border-width-15 + }, + spacing: { + 1: '0.335rem', // --space-1 (spacing-1.5) + 2: 'clamp(0.335rem, 0.72vw, 0.402rem)', // --space-2 + 3: 'clamp(0.402rem, 0.86vw, 0.482rem)', // --space-3 + 4: 'clamp(0.482rem, 1.03vw, 0.579rem)', // --space-4 + 5: 'clamp(0.579rem, 1.24vw, 0.694rem)', // --space-5 + 6: 'clamp(0.694rem, 1.49vw, 0.833rem)', // --space-6 + 7: 'clamp(0.833rem, 1.78vw, 1rem)', // --space-7 + 8: 'clamp(1rem, 2.14vw, 1.2rem)', // --space-8 + 9: 'clamp(1.2rem, 2.57vw, 1.44rem)', // --space-9 + 10: 'clamp(1.44rem, 3.7vw, 1.728rem)', // --space-10 + 11: 'clamp(1.728rem, 3.7vw, 2.074rem)', // --space-11 + 12: 'clamp(2.074rem, 4.44vw, 2.488rem)', // --space-12 + 13: 'clamp(2.488rem, 5.32vw, 2.986rem)', // --space-13 + 14: 'clamp(2.986rem, 6.39vw, 3.583rem)', // --space-14 + 15: 'clamp(3.583rem, 7.67vw, 4.3rem)', // --space-15 + 16: 'clamp(4.3rem, 9.2vw, 5.16rem)', // --space-16 + 17: 'clamp(5.16rem, 11.04vw, 6.192rem)', // --space-17 + 18: 'clamp(6.192rem, 13.25vw, 7.43rem)', // --space-18 + 19: 'clamp(7.43rem, 15.9vw, 8.916rem)', // --space-19 + 20: 'clamp(8.916rem, 19.08vw, 10.699rem)', // --space-20 + 55: '5.55vw', // --space-55 TODO: new name, e.g. spacing-grid + }, + fontFamily: { + sans: ['SecuelaVariable', 'Arial', 'sans-serif'], // --font-family-base + mono: ['Fira Code', 'Operator', 'Hasklig', 'Monoid', 'monospace'], // --font-family-mono + }, + // TODO: Switch to Tshirt sizes + fontSize: { + 1: ['0.65em', { lineHeight: ' ' }], // --font-size-1 (0) + 2: ['clamp(0.65rem, 0.8vw, 0.75rem)', { lineHeight: '1.625' }], // --font-size-2 (2) + 3: ['clamp(1rem, 1.1vw, 1.25rem)', { lineHeight: '1.625' }], // --font-size-3 (15) + 4: ['clamp(1.25rem, 1.8vw, 2rem)', { lineHeight: '1' }], // --font-size-4 (5) + 5: ['clamp(1.5rem, 2.9vw, 3.25rem)', { lineHeight: '1' }], // --font-size-5 (1) + 6: ['clamp(2.25rem, 4.7vw, 5.3rem)', { lineHeight: '1' }], // --font-size-6 (1) + 7: ['clamp(3.3rem, 7.3vw, 8.5rem)', { lineHeight: '1' }], // --font-size-7 (1) + 8: ['clamp(4.5rem, 12.2vw, 13.87rem)', { lineHeight: '1' }], // --font-size-8 (0) + 9: ['clamp(5.5rem, 28.7vw, 22.43rem)', { lineHeight: '1' }], // --font-size-9 (1) + }, + // TODO: Text Shadow? + boxShadow: { + subtle: '0 0 50px rgb(0 0 0 / 0.2)', // --shadow-subtle-shade + beveled: '0 1px 0 rgb(0 0 0 / 0.2), inset 0 0 0 2px #ffffff', // --shadow-beveled-keyboard + darkInset: 'inset 0 0 0 1px rgb(0 0 0 / 0.2)', // --shadow-dark-inset + }, + dropShadow: { + subtle: 'inset 0 0 5px rgb(0 0 0 / 0.15)', // --shadow-dark-inset + }, + }, }, plugins: [], -} +};