npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

spoko-design-system

v0.2.81

Published

SDS is the easiest way to start websites with simple design system. Since Astro is compatible with many frameworks, you can import your components and document them right in the markdown files. The project is still in the development phase, use at your ow

Downloads

3,022

Readme

Spoko Design System

SDS is the easiest way to start websites with simple design system. Since Astro is compatible with many frameworks, you can import your components and document them right in the markdown files. The project is still in the development phase, use at your own risk ;-)

Please feel free to fork it, edit it and let me know what do you think about it.

| title | Introduction | |-------------|--------------------------------| | description | Docs intro | | layout | ../../layouts/MainLayout.astro |

Getting started

Installation

pnpm add spoko-design-system

or just clone the repository.

Example:

  • https://sds.spoko.space/

Most of the components from this repository can be seen in my projects:

  • https://catalog.polo.blue/
  • https://polo.blue

Feateures

  • ⚡️Vue 3, Vite, pnpm - born with fastness
  • 🎨 UnoCSS - the instant on-demand atomic CSS engine
  • 😃 astro-icon - for local icons, sprites and @iconify-json/* sets
  • 🍔 astro-navbar - fully responsive and accessible headless navigation bar
  • 🌍 astro-i18next - Astro integration of i18next
  • 🔎 astro-pagefind - Astro integration for Pagefind static site search
  • 🗒 astrojs/mdx - markdown support
  • 📦 astro-compress - compression utilities to your Astro project
  • 📲 PWA - Zero-config PWA Integration for Astro
  • 🏷️ astro-meta-tags - Meta Tags inside for Astro Dev Toolbar
  • 🖨 Static-site generation (SSG)
  • 🎡 Swiper - modern mobile touch slider with hardware accelerated transitions and amazing native behavior
  • 🌠 View Transitions API - View Transition API - makes it easy to change the DOM in a single step, while creating an animated transition between the two states. It's available in Chrome 111+ (more details)
  • ☁️ Deploy on Netlify

Adding new sections

Although it's not required, you can create folders for new sections.

To show the section on the left side navigation, add it to the navigation config file at src/config.ts.

export const SIDEBAR = [
    { text: "Core", header: true },
    { text: "Introduction", link: "/core/introduction" },
    ...,
    { text: "Components", header: true },
    { text: "Buttons", link: "/components/jumbatron" },
    ...,
    { text: "New section", header: true },
    { text: "New component", link: "/new-section/new-component.md" },
];

Adding new pages

To add new pages just create an .astro or markdown file in src/pages/[section]/my-page.mdx. Remember to add it to the navigation config in src/config.ts so it shows up in the left side navigation.

You're free to organize the pages however you want.

Customizing Core section (colors, typography, shadows...)

If you want to customize the default colors, typography or shadows you can find the configuration file at src/config/design.config.ts. I think I have prepared enough shades of blue ;-)

Feel free to add new pages to the Core section

Customizing the page layout

You can find the css for the pages in src/styles/content.css.

Adding your components

Astro is great for design systems because it allows you to import components from different frameworks like react, vue or svelte.

To get started check how the MainButton component is used in the src/pages/buttons.mdx file.

You can import your component library or create your own and document it easily.

.component-preview utility

There's a class called .component-preview that you can use to wrap your component in a grid, and it will look like this:

Have fun!

Spoko Design System template was made in Poland by @spoko.space for personal and commercial use.