Skip to content

EngineeringDesignSystems/Nextjs-Vanilla-Extract

Repository files navigation

Actionable Design Systems: React + Vanilla Extract + Recipes

Netlify Status

Overview

There are many ways to set up a design system that serves design and engineering equally. In this project we implement a general design system starter project with color tokens, typography tokens, and general spacing content to show an example of how to do this process across design (See Figma Mockup) and engineering (this project's code).

This Project features:

  1. Both light and dark theme color tokens named the same accross Figma and the app:
light Theme dark Theme
lightTheme darkTheme
  1. A general Button component that consumes theme context and has an API that matches the Button component in Figma. The Properties + Variants in Figma directly correspond to the component's API structure and interraction styles.

  2. A button that toggles the theme in the header of the page.

Screen Shot 2022-05-13 at 11 48 35 AM

Button JSON Structure: json

Stack

This project:

  1. Was bootstrapped with Create React App.
  2. Uses Vanilla Extract and Recipes for style utilities.
  3. Has manually added Design tokens from Figma, but are based on Design Token's export format.

Quick start

In order to run this on your local:

  1. clone this repo
  2. in the project folder, run:
yarn install
yarn dev

About

Design System Starter project with Next.js + Vanilla Extract + Recipes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published