Giter VIP home page Giter VIP logo

dtg-examples's Introduction

Design Tokens Generator Examples

๐Ÿ‘€ About

Current repo contains reproduction of the same web application using several popular frontend solutions.
The common DNA for those project is Design Tokens, created with the help of Design Tokens Generator.

Some integrations require more effort than others, however in a nutshell the process is similar.
For detailed guides please refer to the documentation on the website.

Please note that for demonstration purposes all projects are built with Vite + ReactJS + Typescript. Essentially integrations should not be different for other frameworks, since projects mostly rely on CSS, Typescript and JSX.

โš™๏ธ Common data

There are 2 shared projects that are used by all projects:

common-data - improvised database, model and assets,
common-tokens - shared foundations - core styles, themes and fonts.

tokens file is practically an export from the Design Tokens Generator.

๐Ÿ“– Projects

CSS Modules
CSS Modules guide

Headless UI
Headless UI guide

Most of application is built with plain JSX and styled with CSS modules.
Design tokens are used in the form of CSS variables.
Headless UI is used in 2 components without any additional setup.

Headless UI
Headless UI guide

Tailwind CSS
Tailwind CSS guide

Since Headless UI works great with Tailwind CSS (naturally),
this app implementation takes the latter for a spin.
Design tokens work via Tailwind theme, Headless UI components are used more or less the same.

Radix UI
Radix UI guide

Emotion
Emotion guide

These two technologies are used merely for sake of brevity and demonstration.
Emotion can be used quite differently, but since it's very much CSS like,
design tokens are also in CSS variables format. Radix UI is used to build 2 components.

Material UI
Material UI guide

Using all MUI technologies is certainly not mandatory, quite the opposite.
Design tokens are implemented via MUI theme layer with experimental CSS variables context.
Despite recommended approach, for demonstration sx property is used dominantly.
All components are built with MUI entities.

Chakra UI
Chakra UI guide

Theming Chakra UI is a very similar dev experience to theming Tailwind CSS.
All components are build with the framework entities.
Design tokens work via Chakra UI theme properties with exception of a couple custom fields.

๐ŸŒ Links and References

Images generated with Fusion Brain.
Fonts by Google Fonts.

dtg-examples's People

Contributors

xop avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

franaragm

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.