Giter VIP home page Giter VIP logo

Comments (6)

Sqrrl avatar Sqrrl commented on May 13, 2024 2

I've put together a quick PoC. Would like to hear your feedback.
https://5de0ea3fde0c3500088752a4--storybook-design-token.netlify.com/

from storybook-design-token.

Sqrrl avatar Sqrrl commented on May 13, 2024 1

The first iteration is released as part of 0.5.0. I will look into the preset and persistence thingy next year.

from storybook-design-token.

Sqrrl avatar Sqrrl commented on May 13, 2024

Hey. I will definitely look into the interaction thing. Not sure how to implement this with preprocessed styles, but should be straight forward with css variables.

Regarding the json serialization. There are some efforts for design token specifications (e.g. design-tokens/community-group#1) that look interesting. Idea behind this addon was to generate the token docs directly from your stylesheets. Using some kind of formal spec to generate your token styles and docs sounds nice but kind of defeats the purpose of this addon.

from storybook-design-token.

vinceumo avatar vinceumo commented on May 13, 2024

That's amazing Philip, really like that you can revert back to the original value quite easily. In my use case the json would be really handy or a way to retain the value in a local storage maybe. Other than that this feature as it is, is already super handy

from storybook-design-token.

sagr-a avatar sagr-a commented on May 13, 2024

Hi, I am using the storybook-design-token in my project now but I don't have the option to modify the values in Storybook. I just see a fixed value. This seems like something that you have already added. Any ideas why I'm not seeing this?

from storybook-design-token.

Sqrrl avatar Sqrrl commented on May 13, 2024

Hi, I am using the storybook-design-token in my project now but I don't have the option to modify the values in Storybook. I just see a fixed value. This seems like something that you have already added. Any ideas why I'm not seeing this?

I'm assuming you are using scss or less. For now the live editing is only available for CSS tokens (using setProperty). I'm not aware of a reasonable implementation that works for variables in pre-processed styles.

from storybook-design-token.

Related Issues (20)

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.