style-dictionary | A build system for creating cross-platform styles | Frontend Utils library

 by   amzn JavaScript Version: 4.0.0-prerelease.13 License: Apache-2.0

kandi X-RAY | style-dictionary Summary

kandi X-RAY | style-dictionary Summary

style-dictionary is a JavaScript library typically used in User Interface, Frontend Utils, React Native, React applications. style-dictionary has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can install using 'npm i browser-style-dictionary' or download it from GitHub, npm.

Style once, use everywhere. A Style Dictionary uses design tokens to define styles once and use those styles on any platform or language. It provides a single place to create and edit your styles, and exports these tokens to all the places you need - iOS, Android, CSS, JS, HTML, sketch files, style documentation, etc. It is available as a CLI through npm, but can also be used like any normal node module if you want to extend its functionality. When you are managing user experiences, it can be quite challenging to keep styles consistent and synchronized across multiple development platforms and devices. At the same time, designers, developers, PMs and others must be able to have consistent and up-to-date style documentation to enable effective work and communication. Even then, mistakes inevitably happen and the design may not be implemented accurately. Style Dictionary solves this by automatically generating style definitions across all platforms from a single source - removing roadblocks, errors, and inefficiencies across your workflow. For detailed usage head to
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              style-dictionary has a medium active ecosystem.
              It has 3251 star(s) with 485 fork(s). There are 41 watchers for this library.
              There were 10 major release(s) in the last 6 months.
              There are 181 open issues and 304 have been closed. On average issues are closed in 147 days. There are 13 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of style-dictionary is 4.0.0-prerelease.13

            kandi-Quality Quality

              style-dictionary has 0 bugs and 0 code smells.

            kandi-Security Security

              style-dictionary has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              style-dictionary code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              style-dictionary is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              style-dictionary releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.
              style-dictionary saves you 1038 person hours of effort in developing the same functionality from scratch.
              It has 2470 lines of code, 69 functions and 261 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed style-dictionary and discovered the below as its top functions. This is intended to give you an instant insight into style-dictionary implemented functionality, and help decide if they suit your requirements.
            • Transform a config object into an array of transformations .
            • Builds a translation file
            • Create a property formatter .
            • Exports a property to the set of props .
            • Compiles a reference .
            • Transform an object into its path
            • Extend include tokens
            • Recursive function .
            • Combines JSON files
            • Sort map by reference
            Get all kandi verified functions for this library.

            style-dictionary Key Features

            No Key Features are available at this moment for style-dictionary.

            style-dictionary Examples and Code Snippets

            No Code Snippets are available at this moment for style-dictionary.

            Community Discussions

            QUESTION

            Is there a way to overwrite some data from the extended json config file in StyleDictionary?
            Asked 2022-Jan-10 at 08:04

            Question is simple:

            I've a javascript file

            ...

            ANSWER

            Answered 2022-Jan-10 at 08:04

            Here is the answer, extend can be reworked multiple times, and returns the new updated object handler of Style Dictionary.

            Source https://stackoverflow.com/questions/70607719

            QUESTION

            Write custom transform file for design tokens from Figma in Style Dictionary for Flutter
            Asked 2022-Jan-09 at 20:36

            I have barebone Flutter 2.5 project and Figma design tokens which were exported via Figma Tokens. Those design tokens look like this:

            project\style_dictionary\properties\tokens.json

            ...

            ANSWER

            Answered 2021-Sep-22 at 14:28
            1. Create a project\build.js as a custom Transforms file. Logic of creation was used from default Flutter color transforms and Documentation

            Source https://stackoverflow.com/questions/69282024

            QUESTION

            How to access the full dictionary in registerTransform method in StyleDictionary?
            Asked 2021-Sep-23 at 06:26

            Pretty simple question, I'm registering a transformation and the transformer need one item, actually one design token, that lives in the same file I'm applying this transformation. So I would need to access the dictionary.properties to retrieve this element via its name, used to transform all the others.

            ...

            ANSWER

            Answered 2021-Sep-23 at 06:26

            I found out this approach, since there is the prop.filePath information, I read it directly from file system and parse it as an object. It works, I don't see substantial decrease of performances (because this access is done in a loop), but it works:

            Source https://stackoverflow.com/questions/69285142

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install style-dictionary

            If you want to use the CLI, you can install it globally via npm:.
            The style dictionary framework comes with some example code to get you stared. Install the node module globally, create a directory and cd into it.

            Support

            Please help make this framework better. For more information take a look at CONTRIBUTING.md.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i style-dictionary

          • CLONE
          • HTTPS

            https://github.com/amzn/style-dictionary.git

          • CLI

            gh repo clone amzn/style-dictionary

          • sshUrl

            git@github.com:amzn/style-dictionary.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link