Giter Site home page Giter Site logo

williamhzo / astro-cube Goto Github PK

View Code? Open in Web Editor NEW
62.0 4.0 8.0 133 KB

A minimal Astro starter template with CUBE CSS ๐Ÿง‘โ€๐Ÿš€ ๐ŸงŠ

Home Page: https://astro-cube.vercel.app

License: MIT License

JavaScript 1.51% Astro 25.39% CSS 73.10%
astro css cubecss fluid-css-properties layout no-javascript

astro-cube's Introduction

ASTRO-CUBE ๐ŸงŠ

a tiny, almost-unopinionated Astro starter 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.

the project is mostly barebones, the goal isn't to provide a batteries-included template, just an easy starter kit and stylesheets to copy/paste from.

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

installation

clone this repo

git clone https://github.com/williamhzo/astro-cube.git

instal dependencies

cd astro-cube
npm i

spin up local dev server

npm run dev

build to ./dist/

npm run build

preview production build

npm run 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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.