### Example .astro file with frontmatter and markup Source: https://lumosframework.com/docs/project-structure Shows the two-part structure of an .astro file: frontmatter (imports and setup) above the dashes, and markup below. The example imports layout and component files and renders a simple About page. ```astro --- import BaseLayout from "@/layouts/BaseLayout.astro"; import Section from "@/components/Section.astro"; import Heading from "@/components/Heading.astro"; import Paragraph from "@/components/Paragraph.astro"; ---
About us We make things.
``` -------------------------------- ### Select component usage examples Source: https://lumosframework.com/docs/components/select Demonstrates basic usage with custom options, the month variant, and a configured year range. ```astro ``` -------------------------------- ### BaseLayout usage example Source: https://lumosframework.com/docs/components/base-head Example of passing metadata props to the BaseLayout component. ```astro ``` -------------------------------- ### Basic AccordionItem Usage Source: https://lumosframework.com/docs/components/accordion-item An example of how to implement an AccordionItem with a specified heading and content. ```astro Copy, images, and someone who can make decisions. ``` -------------------------------- ### Basic Button Usage Source: https://lumosframework.com/docs/components/button Examples of primary, secondary, and link buttons using the Button component. ```astro ``` -------------------------------- ### Text over media with Overlay Source: https://lumosframework.com/docs/components/overlay Example of using the Overlay component with a gradient variant at 70% strength to ensure text readability over an image. ```astro Text over media ``` -------------------------------- ### Basic Accordion usage Source: https://lumosframework.com/docs/components/accordion An example of an Accordion component with the openFirst prop enabled, containing multiple AccordionItem entries. ```astro Usually four to six weeks. Copy, images, and someone who can make decisions. ``` -------------------------------- ### Grid with xsmall={2} medium={4} Source: https://lumosframework.com/docs/concepts/layout Use the Grid component to lay out repeated items such as cards, logos, or team members. Set a column count per breakpoint (xsmall and medium here) and the sizes between them follow the nearest one below. The second block is the copyable one-line version of the same example. ```astro ``` ```astro ``` -------------------------------- ### Choice usage example Source: https://lumosframework.com/docs/components/choice Shows a standalone checkbox and a radio group inside a Fieldset. Radios require the name prop to group them and enable arrow-key navigation. ```astro
``` -------------------------------- ### Use theme prop on Section and Card Source: https://lumosframework.com/docs/concepts/theming Section, BaseLayout, and Card take a theme prop. This example shows a dark section with a brand card inside it. ```astro
On a dark surface
``` -------------------------------- ### Section component example Source: https://lumosframework.com/docs/concepts/layout A Section with dark theme and large top padding, medium bottom padding, containing a Heading. The container is automatic, so you never add one yourself. ```astro
Everything here is centred and capped
``` -------------------------------- ### ContentWrapper variant="columns" with column2 slot Source: https://lumosframework.com/docs/concepts/layout Use the columns variant to place the default slot in the first column and the column2 slot in the second. Below the medium breakpoint (64rem) the two columns stack. The second block is the copyable one-line version of the same example. ```astro Two columns The first column holds the default slot. ``` ```astro Two columns The first column holds the default slot. ``` -------------------------------- ### Preview the build locally Source: https://lumosframework.com/docs/guides/deploying Serve the contents of the dist folder locally to verify the production output before deployment. ```bash npm run preview ``` -------------------------------- ### Build the project Source: https://lumosframework.com/docs/guides/deploying Run the build command to generate the finished site files in the dist folder. ```bash npm run build ``` -------------------------------- ### Create the project with npm create lumos@latest Source: https://lumosframework.com/docs/installation Scaffolds a new Lumos project named 'my-site' in the current directory. ```bash npm create lumos@latest my-site ``` -------------------------------- ### Mark-only Button Variants Source: https://lumosframework.com/docs/components/button Examples of mark-only buttons including play, close, and arrow variants. ```astro
``` -------------------------------- ### Use theme class directly on a div Source: https://lumosframework.com/docs/concepts/theming Anywhere else, use the class directly. It is just CSS. This example uses theme-invert to contrast with whatever surrounds it. ```astro
Contrasts with whatever surrounds it.
``` -------------------------------- ### Basic Video Usage Source: https://lumosframework.com/docs/components/video Renders a video with a fixed aspect ratio using the '16-9' variant. The src and poster attributes are set to example paths. ```astro