Skip to content
/ cosmo-cube Public template
forked from williamhzo/astro-cube

A supercharged Astro starter template with CUBE CSS πŸ§‘β€πŸš€ 🧊

License

Notifications You must be signed in to change notification settings

advanced-astro/cosmo-cube

Β 
Β 

Repository files navigation

🧊 cosmo-cube

Screenshot

An opinionated Astro starter kit for your next blog, documentation, personal/marketing website, and more.

it comes with the CUBE CSS file structure, a methodology for managing stylesheets efficiently no matter the size of the project.

most styles are for demo purposes and to explain the underlying philosophy: "Be the browser's mentor, not its micromanager" (see buildexcellentwebsit.es).

Features

  • CUBE CSS implementation: take a look at the docs, they are concise and explain way better than i would
  • fluid and responsive: it looks great no matter the device size
    • Every Layout examples for layout elements
    • Utopia for fluid clamp()-based font sizes and spacing
  • lightweight: πŸ’― lighthouse score across the board β€” not surprising considering the size of the project, but worth mentioning
  • dark-mode ready: implement your own theme switcher if you're into that sort of thing, all you have to do is toggle the data-theme attribute on the body
  • SEO ready: basic SEO meta-tags are set-up, with sitemaps automatically generated at build time

πŸš€ Getting Started

Deploy to Netlify Deploy to Vercel

installation

clone this repo

git clone https://github.com/advanced-astro/cosmo-cube.git

instal dependencies

cd cosmo-cube
pnpm i

spin up local dev server

pnpm dev

build to ./dist/

pnpm build

preview production build

pnpm preview

...or use the template directly ➑️ "Use this template" > "Create a new repository"

contributions are welcome! πŸ‘‹

it's great if this kit can be helpful to some folks out there, i'm open to feedback and greatly appreciate contributions, feel free to chip in for fixes, suggestions, or features! let me know if you have improvement ideas.


credits

greater minds than mine are behind the choices in this kit, i'd like to mention them for the inspiration and learning provided:

along with contributors, for a great onboarding experience and a wholesome community.

Andy is a great source of inspiration for building robust UI working with the browser, rather than against it. but also for reminding me that CSS is an extremely powerful tool as it is. CUBE CSS really clicked to me as it brought pure "traditional" CSS to the component-first world of today.

Heydon provides amazing insights and spicy takes on how to build for the web, from an inclusive and accessible perspective.

Lene made an amazing Eleventy starter based on CUBE CSS which is way more mature and complete than this one. it comes batteries included to build a full-blown blog with 11y in a breeze, i'd definitely recommend checking it out.

her starter greatly inspired me to build one for Astro (it will be a separate one from this minimal one).

William made Astro-Cube a tiny, almost-unopinionated Astro starter for your next blog, documentation, personal/marketing website, and more.

his work formed the foundation for me to fork and create this opinionated and supercharged Astro starter kit.

About

A supercharged Astro starter template with CUBE CSS πŸ§‘β€πŸš€ 🧊

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • CSS 71.3%
  • Astro 21.2%
  • JavaScript 4.0%
  • TypeScript 3.5%