0.2.32 • Published 16 days ago

spoko-design-system v0.2.32

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

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.

titleIntroduction
descriptionDocs intro
layout../../layouts/MainLayout.astro

Getting started

Installation

pnpm add spoko-design-system

or just clone the repository.

Example:

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

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.scss.

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.

0.2.32

16 days ago

0.2.30

1 month ago

0.2.29

1 month ago

0.2.28

1 month ago

0.2.27

1 month ago

0.2.26

2 months ago

0.2.25

2 months ago

0.2.24

2 months ago

0.2.23

2 months ago

0.2.21

2 months ago

0.2.20

2 months ago

0.2.19

2 months ago

0.2.18

2 months ago

0.2.17

2 months ago

0.2.16

2 months ago

0.2.15

2 months ago

0.2.14

3 months ago

0.2.13

3 months ago

0.2.12

3 months ago

0.2.11

3 months ago

0.2.10

3 months ago

0.2.9

3 months ago

0.2.8

3 months ago

0.2.7

3 months ago

0.2.6

3 months ago

0.2.5

3 months ago

0.2.3

3 months ago

0.2.2

3 months ago

0.2.4

3 months ago

0.2.1

3 months ago

0.2.0

3 months ago

0.1.8

3 months ago

0.1.7

3 months ago

0.1.9

3 months ago

0.1.6

3 months ago

0.1.5

3 months ago

0.1.4

3 months ago

0.1.0

3 months ago

0.1.2

3 months ago

0.1.1

3 months ago

0.0.9

3 months ago

0.0.8

3 months ago

0.0.5

3 months ago

0.1.3

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.2

3 months ago

0.0.1

4 months ago