sveltekit-design-system Svelte Themes

Sveltekit Design System

SvelteKit Design System TS

sveltekit-design-system

This sveltekit design system is a collection of reusable design patterns, rules, and UX guidelines that define a central design language and can be assembled together to build any number of applications.

In order to quickly iterate with confidence, design teams need access to a single source of truth that allows for a scalable UI language and streamlined UX guidelines. -Jess Thomas

Quick Start

Clone the project and install dependencies:

git clone https://github.com/carbonspace/sveltekit-design-system.git

cd svelte-design-system

npm install

# or
pnpm install

# or
yarn

Start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Why use a design system?

A comprehensive guide to design systems InvisionApp

  1. Consistency
  2. Efficiency
  3. Scale
  • Create a single source of truth
    One place to manage brand and UX components, coded elements, detailed documentation, and more so teams can stay in sync

  • Design with ease
    Update: Integration with Sketch Libraries lets you upload files to DSM in a single click, sync changes, and push and pull design system assets

  • Iterate with confidence
    Update: Changes sync to the whole team, and users can switch to the latest version or roll back changes at any time

  • Manage updates collaboratively
    Update: Roles and permissions provide complete control over who can view or edit the design system

  • Share with external teams
    An automatically generated and customizable documentation site lets any stakeholder preview and use design and code

  • Keep code in sync
    Update: Spot existing components and styles with InVision Inspect. And get your production-ready code with a built-in Storybook integration

  • Protect your company’s most strategic assets
    Confidently create new versions knowing visual assets are safe and secure Update:, with role-specific controls and design system-level permissions

Your technical approach doesn’t matter as much as creating a living, breathing system that’s flexible, maintainable, stable, scalable, and successful in the long-term.
- Katie Sylor-Miller, senior software engineer, design systems team at Etsy

Building a Design System

  1. Conduct a Visual Audit
    The first step in building a design system is to do a visual audit of your current design, whether that’s the design of an app, a website, or some other digital product. Taking inventory of the CSS you’re using and the visual qualities of the elements can help you gauge how much of an undertaking this process might be.

  2. Create a visual design language
    The visual design language is the core of a design system. It’s made up of the discernible components that you’ll use to construct your digital product. Your visual design language is made up of four main categories, and you should consider the role each of these design elements plays in every component on the screen.

    • Color
      Common colors in a design system include 1–3 primaries that represent your brand. You may want to include a range of tints—a color mixed with white—and shades—a color mixed with black—to give your designers a few more options.

    • Typography
      Most design systems include just 2 fonts: 1 font for both headings and body copy, and a monospace font for code. Keep it simple to avoid overloading and confusing your user. Keep the number of fonts low; it’s not only a best practice of typographic design, and it also prevents performance issues caused by excessive use of web fonts.

    • Sizing and Spacing
      The system you use for spacing and sizing looks best when you have rhythm and balance. A 4-based scale is growing in popularity as the recommended scale due to its use in iOS and Android standards, ICO size formats, and even the standard browser font size.

    • Imagery
      The key to success with imagery in your visual design language is having a plan and sticking to it. Set guidelines for illustrations and icons, and use the best image format for the situation.

  3. Create a UI/pattern library
    Unlike the visual audit you’ve already conducted (which looked at the visual qualities of your design elements), this step in the process looks at the actual components of your UI. Collect all of the parts and pieces of your UI currently in production. That means every button, form, modal, and image. Merge and remove what you don’t need.

  4. Document what each component is and when/how to use it
    This step is important. Documentation and standards are what separate a pattern library from a true design system.

Before beginning work on your design system, take a moment to think about the team you’ll need to bring it to life. Who needs to be involved? Spoiler alert! You’re going to need more than just designers.
- Jina Anne, design systems advocate and former lead designer at Salesforce



Roll Your Own

Built with create-svelte

Everything you need to build a Svelte project, powered by create-svelte.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Top categories

Loading Svelte Themes