Every Cruip template includes a set of ready-made illustrations that make them unique in terms of look and feel, and style!
Each template includes custom illustrations provided in SVG file format. You can find them in
We divide the illustrations into two types,:
Illustrations for sections (e.g.
Illustrations for elements (e.g.
Let's see in details 🐳
They have a decorative function for the sections. Technically, a section illustration covers the full section area and it does not scale with the viewport.
They are built to be placed behind a specific element (for example, behind an image). Oppositely from the section illustrations, their dimension scales with the element they're bound to.
Since the illustrations are template-related, they are not provided with the core CSS framework.
src/scss/theme/illustrations/_illustrations.scss file if you need to make changes or add your own illustrations.
There are two things you will certainly notice when you look into the file:
We use to attach illustrations via CSS to pseudo elements (
::after) and their dimension can exceed the canvas of the element they're bound to.
We use a custom Sass mixin to make the job easier
The illustration mixin (
@mixin illustration) can be found in the
src/scss/core/abstracts/_mixins.scss file and it can be used in this way 👇
@include illustration(file, width, height, vpos, hoffset, voffset);
Name of the SVG file, for example
Illustration width as a percent of related element width. It can be
Illustration height as a percent of related element height (scaling), or illustration height in
Illustrations are vertically centered by default, but you can define a different starting position (
To define a horizontal offset in
To define a vertical offset in
Due to the nature of SVGs, customise and change an illustration can result a bit challenging. For example, colors of an illustrations are defined into the SVG itself, so you need to open that specific file with an SVG editor (we highly recommend Figma, it's free), make your changes, and replace the exported file with the existing one. Some nice video-tutorial are coming soon. Stay tuned! 🙌