2.0.5 • Published 9 months ago

@digital-ai/dot-illustrations v2.0.5

Weekly downloads
-
License
SEE LICENSE IN <L...
Repository
github
Last release
9 months ago

dot-illustrations and integrations

A central place for the design team to keep illustrations all graphical assets for dev teams to find them.

Files are organized in 2 separate folders

  • illustrations
  • integrations

Illustrations

image

In each one of those, there is a light and dark folder to match the color style if you using a material theme do not forget to update the illustration folder directory light / dark to match the theme of the switch

Illustrations usage

React Component via dot-components

(PENDING WIP): If you are already consuming dot-components then the easiest way would be to use the DotIllustration component, documentation is available here

Standard HTML

If not using dot-components then import @digital-ai/dot-illustrations into your project as an npm package or as a git submodule. You can also download the contents of this repository and copy the index.css and asset folders into your project.

<link rel="stylesheet" href="./index.css" />

...

<span class="dot-illustration">
  <img class="${illustration-ID}"/>
</span>

Integrations

image

Integrations usage

React Component via dot-components COMING UP SOON

(PENDING WIP): If you are already consuming dot-components then the easiest way would be to use the DotIllustration component, documentation is available here

Standard HTML

If not using dot-components then import @digital-ai/dot-illustrations into your project as an npm package or as a git submodule. You can also download the contents of this repository and copy the ./integrations/index.css and asset folders into your project.

<link rel="stylesheet" href="./integrations/index.css" />

...

 <span class="dot-integration">
   <img class="${integration-ID}"/>
</span>

Contributing

To add new illustrations, first add the new file to the appropriate location in one of the asset folders (illustrations or integrations.). The file names should not contain spaces or special characters, and they must be uniquely named project wide.

Next, add new class selectors to index.css that set the content to your new files. Define the light version first, then if you have a dark version, define it second with an additional .dark-theme class selector. For example:

/* ------------------ GLOBAL ILLUSTRATIONS -------------------- */
/*Path: --------- './illustrations/light/global/*.svg  ----- light */
/*Path: --------- './illustrations/dark/global/*.svg  ------ dark */ 

.dot-illustration img.done.light {
    content: url('./illustrations/light/global/done.svg');
}

.dot-illustration img.done.dark {
    content: url('./illustrations/dark/global/done.svg');
}

Finally, update demo/script.js by adding your new illustrations in function "doMagic" by ID name like so:

// Global arrange from A-Z
    "add-new",
    "add-new-grid",
    "add-team",
    "add-user",
    "assets",

Once complete, please submit a pull request with the updated files and request someone to review in the #dot-components channel on slack.

More information is available in the .dot design system

Troubleshooting

If for some reason the latest version of dot-illustrations is not available in dot-components then you can update your package.json to use the latest version of dot-illustrations by adding the following to your resolutions section.

  "resolutions": {
    "@digital-ai/dot-illustrations": "latest",
  }
2.0.5

9 months ago

2.0.4

9 months ago

2.0.3

9 months ago

2.0.2

10 months ago

2.0.1

10 months ago

1.0.29

10 months ago

1.0.32

10 months ago

1.0.31

10 months ago

1.0.30

10 months ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.26

12 months ago

1.0.25

12 months ago

1.0.24

12 months ago

1.0.23

12 months ago

1.0.28

10 months ago

1.0.27

10 months ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago