YODA Documentation
  • ✶ React Version
    • Introduction
    • Installation
    • Folder Structure & Layout
    • Customization
    • Routing & Navigation
  • ✶ Vue Version
    • Introduction
    • Installation
    • Folder Structure & Layout
    • Customization
    • Routing & Navigation
  • ✶ HTML Version
    • Introduction
    • Installation
    • Folder Structure & Layout
    • Customization
  • ✶ Figma Version
    • Introduction
    • Resources & Credits
    • Discover Yoda Styles
    • Edit Styles
    • Layout & Grid
    • Change Components
  • Change Log
Powered by GitBook
On this page
  • Change Styles
  • Customize Ant Design Components
  • Icon Customization
  1. ✶ React Version

Customization

How to customize styles?

PreviousFolder Structure & LayoutNextRouting & Navigation

Last updated 3 years ago

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 using less as the development language for styling. Components can customize with override

Ant Design variables can be found in src/assets/less/variables/_ant-variables

@import "../../../../node_modules/antd/lib/style/themes/default.less";

@primary-color: @primary-1;
@info-color: @info-1;
@text-color: @b-100;

Icon Customization

We used two different Icon set on Yoda Admin Template

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.

Ant Icon-font Css Prefix
@iconfont-css-prefix: remix-icon;

Icon Usage on Button component


 <Button
  className="da-mr-16 da-mb-16"
  type="primary"
  shape="circle"
  icon={<RiSearchLine className="remix-icon" />}
/>

Ant Design Components
Ant Design Variables.
Remix Icon
Iconly