Customization
How to customize styles?

Change Styles

Let's start with how to change Yoda color styles.
You can find our variables can be found src/assets/less/_variables
User variables can be found in src/assets/less/_user-variables. Uncomment Yoda variable on file and change it with yours.

Customize Ant Design Components

Yoda Admin Template created based on Ant Design Components.
Ant Design using less as the development language for styling. Components can customize with override Ant Design Variables.
Ant Design variables can be found in src/assets/less/variables/_ant-variables
1
@import "../../../../node_modules/antd/lib/style/themes/default.less";
2
3
@primary-color: @primary-1;
4
@info-color: @info-1;
5
@text-color: @b-100;
Copied!

Icon Customization

We used two different Icon set on Yoda Admin Template
  1. 2.
    Iconly
Ant Design has special variable for icon font-prefix. If you want to use special icon make sure you add .remix-icon class to your icons. Or you can change your own prefix and use it for your icons.
1
Ant Icon-font Css Prefix
2
@iconfont-css-prefix: remix-icon;
3
4
Icon Usage on Button component
5
6
7
<Button
8
className="da-mr-16 da-mb-16"
9
type="primary"
10
shape="circle"
11
icon={<RiSearchLine className="remix-icon" />}
12
/>
Copied!