Code Monkey home page Code Monkey logo

xdtools's Introduction

XD Tools

This is currently a WIP. XD Tools is an unofficial Python API for Adobe XD. It provides the ability to parse and read data from .xd files that are created by Adobe XD using Python 3. As Adobe XD is constantly changing each month with new features, this API will inevitably change in order to stay up-to-date, so please report issues on GitHub if you find any.

Installation

pip install xdtools

Example Usage

Printing the name of project

from xdtools import XDFile
with XDFile('path/to/file.xd', 'r') as xd:
    print(xd.name)

Printing the names of artboards

from xdtools import XDFile
with XDFile('path/to/file.xd', 'r') as xd:
    for artboard in xd.artboards:
      print(artboard.name)

Printing the color swatches

from xdtools import XDFile
with XDFile('path/to/file.xd', 'r') as xd:
    for color_swatch in xd.color_swatches:
      print(color_swatch)

Planned Features

Read data from an XD file

  • Project Name
  • Fonts
  • Colors
  • Gradients
  • Symbols
  • Images
  • Preview
  • Artboards
    • Amount
    • Names
    • Dimensions
    • Position
    • Viewport Size
    • Artwork
      • Name
      • Type
      • Specific Attributes (eg. letter spacing, etc.)
      • Dimensions
      • Position
      • Stroke
      • Fill
      • Opacity
      • Filters
  • Interactions
    • From
    • To
    • Transition
    • Duration
    • Easing

xdtools's People

Contributors

umar-ahmed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xdtools's Issues

scope check

You have a few examples and I could dig around and test, however could you verify that what I want to do is even going to be possible upon release?

I want to convert my design in XD to python code using Kivy.

I want to design in XD and implement in Kivy.

Is it operational?

Hey Umar!, this is a great library and really appreciate your work.

I was wondering if you are working on it as I'm working on a project where I need to read xd file and its components and stumbled upon your work.

Cheers!

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.