Adobe Illustrator to Website
Best Practices
To get the best results during export and import, follow these guidelines when working with Adobe Illustrator:
- About Artboard
- The smallest unit ofAdobe Illustrator elements when imported into Daruma is the Artboard.
- If there is no Artboard at the top level during export, Daruma will automatically nest a Artboard around the top-level elements.
- Among multiple Artboards exported, the first Artboard will be set to the default display state.
- It is recommended to use descriptive and unique layer names when exporting to avoid duplication. This practice helps maintain a clear layer structure and facilitates a better export outcome.
- If custom fonts are used in the design within Adobe Illustrator, these fonts need to be added as assets to Daruma. This ensures that the fonts are correctly displayed when previewing and deploying the UI.
Exportable Elements and Their Support Status
✅ Supported
⭕️ Partially supported & WIP
❌ Currently not supported
Exportable Elements | Explanation | Status | ||
---|---|---|---|---|
Layers | Artboard | Artboard is a rectangular area similar to a canvas, used to accommodate and organize design elements. | ✅ | |
Group | Group refers to the act of combining multiple layers or objects together to form a single entity. | ✅ | ||
Mask | • Outline mask✅ • Luminance mask❌ • Inversive luminance mask❌ | Mask is a mechanism used to control the visibility of layers or objects. By combining a layer or object with a mask layer, you can control the display or hiding of underlying content based on the shape and transparency of the mask. | ⭕️ | |
Rotation | Rotation refers to the operation of rotating a layer or object around a certain center point by a certain angle. | ✅ | ||
Overflow | • Clip • Visible | Overflow refers to the way content is handled when a container cannot fully display its contents. The overflow property can be used to control whether scrollbars are displayed or content is clipped when it overflows. | ✅ | |
Boolean | • Union • Subtract • Intersect • Difference | Boolean is commonly used to refer to boolean operations between graphic objects. | ✅ | |
Opacity | Opacity refers to the degree of transparency of a layer or object. | ✅ | ||
Blend mode | • Normal • Darken • Multiply • Color burn • Lighten • Screen • Color dodge • Overlay • Soft light • Hard light • Difference • Exclusion • Hue • Saturation • Color • Luminosity | Blend mode refers to the algorithm for blending or combining colors between layers. | ✅ | |
Radius | The Radius refers to the value of the radius of a rounded corner. | ✅ | ||
Flip | Flip refers to the operation of mirroring a layer or object horizontally or vertically. | ✅ | ||
Transformation | To make changes to the position, size, rotation, and tilt of design elements. | ✅ | ||
Shapes | Basic shape and path shape | • Rectangle • Line • Ellipse • Polygon • Star • Vector path | The basic shape refers to pre-defined simple geometric figures, such as rectangles, circles, ellipses, etc. Path shape is a custom shape composed of a series of straight line segments and curve segments. | ✅ |
Open path & Close path | An open path refers to a state where the starting and ending points of a path are not connected. A closed path refers to a state where the starting and ending points of a path are connected by line segments or curves, forming a closed shape. | ✅ | ||
Compound Path | A compound path is a single shape formed by combining multiple path shapes. | ✅ | ||
Corner type | • Rounded • Angled • Square • Arc | ✅ | ||
Bézier curve | Bézier curve is a mathematical curve defined by a starting point, an endpoint, and control points to determine its shape. | ✅ | ||
Texts | Text Layer | Text layers are used to add and edit text content. | ✅ | |
Basic metadata and styles | • Basic styling (font, size, weight, fill)✅ • Decoration✅ • Text spacing❌ • Letter case❌ | It refers to the basic information and style attributes applied to the text layer. | ⭕️ | |
Paragraph property | • Line height✅ • Paragraph spacing❌ • Paragraph indentation❌ | The paragraph attribute is used to control the layout and formatting of paragraphs in a text layer. | ⭕️ | |
Text layer resize | • Auto width✅ • Horizontal text✅ • Vertical text❌ • Regional text alignment❌ | Text layer resizing refers to the operation of changing the size of a text box to fit the content of the text. | ⭕️ | |
Open type features | • Variable font weight • Variable font width • misc | OpenType is a font format jointly developed by Adobe and Microsoft. It is an extension of the TrueType font format. | ❌ | |
Emoji | Emoticons are graphic symbols used to represent emotions, objects, or concepts. | ✅ | ||
List style | The list style is used to control the appearance and layout of lists in a text layer. | ✅ | ||
Text on path | Text on path refers to the ability to place text along a specified path or shape. | ❌ | ||
Styles | Fill | • Color✅ • Image✅ • Linear gradient✅ • Radial gradient✅ • Freeform gradient ❌ • Pattern❌ | Filling refers to the process of filling the interior area of a shape or path with color, gradient, texture, and other methods. | ⭕️ |
Image fill type | • Fill • Tile | Allows users to fill a shape or area with a repeating pattern instead of a solid color or gradient. | ✅ | |
Winding rule | • Non-zero • Even-odd • Closed path fill | The "Winding rule" is a concept used in computer graphics and design software to determine how to fill a shape with a specific pattern or color. | ✅ | |
Stroke | • Color • Fill • Position • Stroke width • Stroke style • Join type • Marker type | Stroke refers to applying a line on the boundary of a shape or path, used to define the outline of the shape or path. | ✅ | |
Effect | Adobe Illustrator effects | Adobe Illustrator provides some preset effects, such as 3D, textures, and SVG filters. | ❌ | |
Photoshop effects | Photoshop provides some preset effects, such as textures, artistic effects, etc. | ❌ |