---
id: tabs
scope: theming
---

The `Tabs` component is a multipart component. The styling needs to be applied
to each part specifically.

> To learn more about styling multipart components, visit the
> [Component Style](/docs/styled-system/component-style#styling-multipart-components)
> page.

## Anatomy

- A: `root`
- B: `tab`
- C: `tablist`
- D: `tabpanels`
- E: `tabpanel`

<AspectRatio ratio={16 / 9}>
  <svg
    width='640'
    height='480'
    viewBox='0 0 640 480'
    fill='none'
    xmlns='http://www.w3.org/2000/svg'
  >
    <rect width='640' height='480' fill='white' />
    <path d='M102 200H539V282H102V200Z' fill='white' />
    <path
      d='M125.773 217.273C125.705 216.697 125.428 216.25 124.943 215.932C124.458 215.614 123.864 215.455 123.159 215.455C122.644 215.455 122.193 215.538 121.807 215.705C121.424 215.871 121.125 216.1 120.909 216.392C120.697 216.684 120.591 217.015 120.591 217.386C120.591 217.697 120.665 217.964 120.812 218.188C120.964 218.407 121.157 218.591 121.392 218.739C121.627 218.883 121.873 219.002 122.131 219.097C122.388 219.187 122.625 219.261 122.841 219.318L124.023 219.636C124.326 219.716 124.663 219.826 125.034 219.966C125.409 220.106 125.767 220.297 126.108 220.54C126.453 220.778 126.737 221.085 126.96 221.46C127.184 221.835 127.295 222.295 127.295 222.841C127.295 223.47 127.131 224.038 126.801 224.545C126.475 225.053 125.998 225.456 125.369 225.756C124.744 226.055 123.985 226.205 123.091 226.205C122.258 226.205 121.536 226.07 120.926 225.801C120.32 225.532 119.843 225.157 119.494 224.676C119.15 224.195 118.955 223.636 118.909 223H120.364C120.402 223.439 120.549 223.803 120.807 224.091C121.068 224.375 121.398 224.587 121.795 224.727C122.197 224.864 122.629 224.932 123.091 224.932C123.629 224.932 124.112 224.845 124.54 224.67C124.968 224.492 125.307 224.246 125.557 223.932C125.807 223.614 125.932 223.242 125.932 222.818C125.932 222.432 125.824 222.117 125.608 221.875C125.392 221.633 125.108 221.436 124.756 221.284C124.403 221.133 124.023 221 123.614 220.886L122.182 220.477C121.273 220.216 120.553 219.843 120.023 219.358C119.492 218.873 119.227 218.239 119.227 217.455C119.227 216.803 119.403 216.235 119.756 215.75C120.112 215.261 120.589 214.883 121.188 214.614C121.79 214.341 122.462 214.205 123.205 214.205C123.955 214.205 124.621 214.339 125.205 214.608C125.788 214.873 126.25 215.237 126.591 215.699C126.936 216.161 127.117 216.686 127.136 217.273H125.773V217.273ZM133.089 226.182C132.249 226.182 131.523 225.996 130.913 225.625C130.307 225.25 129.839 224.727 129.51 224.057C129.184 223.383 129.021 222.598 129.021 221.705C129.021 220.811 129.184 220.023 129.51 219.341C129.839 218.655 130.298 218.121 130.885 217.739C131.476 217.352 132.165 217.159 132.953 217.159C133.408 217.159 133.857 217.235 134.3 217.386C134.743 217.538 135.146 217.784 135.51 218.125C135.874 218.462 136.163 218.909 136.379 219.466C136.595 220.023 136.703 220.708 136.703 221.523V222.091H129.976V220.932H135.339C135.339 220.439 135.241 220 135.044 219.614C134.851 219.227 134.574 218.922 134.214 218.699C133.858 218.475 133.438 218.364 132.953 218.364C132.419 218.364 131.957 218.496 131.567 218.761C131.18 219.023 130.883 219.364 130.675 219.784C130.466 220.205 130.362 220.655 130.362 221.136V221.909C130.362 222.568 130.476 223.127 130.703 223.585C130.934 224.04 131.254 224.386 131.663 224.625C132.072 224.86 132.548 224.977 133.089 224.977C133.442 224.977 133.76 224.928 134.044 224.83C134.332 224.727 134.58 224.576 134.788 224.375C134.997 224.17 135.158 223.917 135.271 223.614L136.567 223.977C136.43 224.417 136.201 224.803 135.879 225.136C135.557 225.466 135.16 225.723 134.686 225.909C134.213 226.091 133.68 226.182 133.089 226.182V226.182ZM140.084 214.364V226H138.743V214.364H140.084V214.364ZM146.199 226.182C145.358 226.182 144.633 225.996 144.023 225.625C143.417 225.25 142.949 224.727 142.619 224.057C142.294 223.383 142.131 222.598 142.131 221.705C142.131 220.811 142.294 220.023 142.619 219.341C142.949 218.655 143.407 218.121 143.994 217.739C144.585 217.352 145.275 217.159 146.062 217.159C146.517 217.159 146.966 217.235 147.409 217.386C147.852 217.538 148.256 217.784 148.619 218.125C148.983 218.462 149.273 218.909 149.489 219.466C149.705 220.023 149.812 220.708 149.812 221.523V222.091H143.085V220.932H148.449C148.449 220.439 148.35 220 148.153 219.614C147.96 219.227 147.684 218.922 147.324 218.699C146.968 218.475 146.547 218.364 146.062 218.364C145.528 218.364 145.066 218.496 144.676 218.761C144.29 219.023 143.992 219.364 143.784 219.784C143.576 220.205 143.472 220.655 143.472 221.136V221.909C143.472 222.568 143.585 223.127 143.812 223.585C144.044 224.04 144.364 224.386 144.773 224.625C145.182 224.86 145.657 224.977 146.199 224.977C146.551 224.977 146.869 224.928 147.153 224.83C147.441 224.727 147.689 224.576 147.898 224.375C148.106 224.17 148.267 223.917 148.381 223.614L149.676 223.977C149.54 224.417 149.311 224.803 148.989 225.136C148.667 225.466 148.269 225.723 147.795 225.909C147.322 226.091 146.79 226.182 146.199 226.182V226.182ZM155.398 226.182C154.58 226.182 153.875 225.989 153.284 225.602C152.693 225.216 152.239 224.684 151.92 224.006C151.602 223.328 151.443 222.553 151.443 221.682C151.443 220.795 151.606 220.013 151.932 219.335C152.261 218.653 152.72 218.121 153.307 217.739C153.898 217.352 154.587 217.159 155.375 217.159C155.989 217.159 156.542 217.273 157.034 217.5C157.527 217.727 157.93 218.045 158.244 218.455C158.559 218.864 158.754 219.341 158.83 219.886H157.489C157.386 219.489 157.159 219.136 156.807 218.83C156.458 218.519 155.989 218.364 155.398 218.364C154.875 218.364 154.417 218.5 154.023 218.773C153.633 219.042 153.328 219.422 153.108 219.915C152.892 220.403 152.784 220.977 152.784 221.636C152.784 222.311 152.89 222.898 153.102 223.398C153.318 223.898 153.621 224.286 154.011 224.562C154.405 224.839 154.867 224.977 155.398 224.977C155.746 224.977 156.062 224.917 156.347 224.795C156.631 224.674 156.871 224.5 157.068 224.273C157.265 224.045 157.405 223.773 157.489 223.455H158.83C158.754 223.97 158.566 224.434 158.267 224.847C157.972 225.256 157.58 225.581 157.091 225.824C156.606 226.062 156.042 226.182 155.398 226.182V226.182ZM164.585 217.273V218.409H160.062V217.273H164.585ZM161.381 215.182H162.722V223.5C162.722 223.879 162.777 224.163 162.886 224.352C163 224.538 163.144 224.663 163.318 224.727C163.496 224.788 163.684 224.818 163.881 224.818C164.028 224.818 164.15 224.811 164.244 224.795C164.339 224.777 164.415 224.761 164.472 224.75L164.744 225.955C164.653 225.989 164.527 226.023 164.364 226.057C164.201 226.095 163.994 226.114 163.744 226.114C163.366 226.114 162.994 226.032 162.631 225.869C162.271 225.706 161.972 225.458 161.733 225.125C161.498 224.792 161.381 224.371 161.381 223.864V215.182V215.182ZM170.168 226.182C169.327 226.182 168.601 225.996 167.991 225.625C167.385 225.25 166.918 224.727 166.588 224.057C166.262 223.383 166.099 222.598 166.099 221.705C166.099 220.811 166.262 220.023 166.588 219.341C166.918 218.655 167.376 218.121 167.963 217.739C168.554 217.352 169.243 217.159 170.031 217.159C170.486 217.159 170.935 217.235 171.378 217.386C171.821 217.538 172.224 217.784 172.588 218.125C172.952 218.462 173.241 218.909 173.457 219.466C173.673 220.023 173.781 220.708 173.781 221.523V222.091H167.054V220.932H172.418C172.418 220.439 172.319 220 172.122 219.614C171.929 219.227 171.652 218.922 171.293 218.699C170.937 218.475 170.516 218.364 170.031 218.364C169.497 218.364 169.035 218.496 168.645 218.761C168.259 219.023 167.961 219.364 167.753 219.784C167.545 220.205 167.44 220.655 167.44 221.136V221.909C167.44 222.568 167.554 223.127 167.781 223.585C168.012 224.04 168.332 224.386 168.741 224.625C169.151 224.86 169.626 224.977 170.168 224.977C170.52 224.977 170.838 224.928 171.122 224.83C171.41 224.727 171.658 224.576 171.866 224.375C172.075 224.17 172.236 223.917 172.349 223.614L173.645 223.977C173.509 224.417 173.279 224.803 172.957 225.136C172.635 225.466 172.238 225.723 171.764 225.909C171.291 226.091 170.759 226.182 170.168 226.182V226.182ZM179.116 226.182C178.389 226.182 177.747 225.998 177.19 225.631C176.634 225.259 176.198 224.737 175.884 224.062C175.569 223.384 175.412 222.583 175.412 221.659C175.412 220.742 175.569 219.947 175.884 219.273C176.198 218.598 176.635 218.078 177.196 217.71C177.757 217.343 178.404 217.159 179.139 217.159C179.707 217.159 180.156 217.254 180.486 217.443C180.819 217.629 181.073 217.841 181.247 218.08C181.425 218.314 181.563 218.508 181.662 218.659H181.776V214.364H183.116V226H181.821V224.659H181.662C181.563 224.818 181.423 225.019 181.241 225.261C181.06 225.5 180.8 225.714 180.463 225.903C180.126 226.089 179.677 226.182 179.116 226.182V226.182ZM179.298 224.977C179.836 224.977 180.291 224.837 180.662 224.557C181.033 224.273 181.315 223.881 181.509 223.381C181.702 222.877 181.798 222.295 181.798 221.636C181.798 220.985 181.704 220.415 181.514 219.926C181.325 219.434 181.045 219.051 180.673 218.778C180.302 218.502 179.844 218.364 179.298 218.364C178.73 218.364 178.257 218.509 177.878 218.801C177.503 219.089 177.221 219.481 177.031 219.977C176.846 220.47 176.753 221.023 176.753 221.636C176.753 222.258 176.848 222.822 177.037 223.33C177.23 223.833 177.514 224.235 177.889 224.534C178.268 224.83 178.738 224.977 179.298 224.977V224.977ZM189.804 215.614V214.364H198.531V215.614H194.872V226H193.463V215.614H189.804V215.614ZM201.905 226.205C201.352 226.205 200.85 226.1 200.399 225.892C199.948 225.68 199.59 225.375 199.325 224.977C199.06 224.576 198.928 224.091 198.928 223.523C198.928 223.023 199.026 222.617 199.223 222.307C199.42 221.992 199.683 221.746 200.013 221.568C200.342 221.39 200.706 221.258 201.104 221.17C201.505 221.08 201.909 221.008 202.314 220.955C202.844 220.886 203.274 220.835 203.604 220.801C203.937 220.763 204.179 220.701 204.331 220.614C204.486 220.527 204.564 220.375 204.564 220.159V220.114C204.564 219.553 204.411 219.117 204.104 218.807C203.801 218.496 203.34 218.341 202.723 218.341C202.083 218.341 201.581 218.481 201.217 218.761C200.854 219.042 200.598 219.341 200.45 219.659L199.178 219.205C199.405 218.674 199.708 218.261 200.087 217.966C200.469 217.667 200.886 217.458 201.337 217.341C201.791 217.22 202.238 217.159 202.678 217.159C202.958 217.159 203.28 217.193 203.643 217.261C204.011 217.326 204.365 217.46 204.706 217.665C205.051 217.869 205.337 218.178 205.564 218.591C205.791 219.004 205.905 219.557 205.905 220.25V226H204.564V224.818H204.496C204.405 225.008 204.253 225.21 204.041 225.426C203.829 225.642 203.547 225.826 203.195 225.977C202.842 226.129 202.412 226.205 201.905 226.205V226.205ZM202.109 225C202.64 225 203.087 224.896 203.45 224.688C203.818 224.479 204.094 224.21 204.28 223.881C204.469 223.551 204.564 223.205 204.564 222.841V221.614C204.507 221.682 204.382 221.744 204.189 221.801C204 221.854 203.78 221.902 203.53 221.943C203.284 221.981 203.043 222.015 202.808 222.045C202.577 222.072 202.39 222.095 202.246 222.114C201.897 222.159 201.571 222.233 201.268 222.335C200.969 222.434 200.727 222.583 200.541 222.784C200.359 222.981 200.268 223.25 200.268 223.591C200.268 224.057 200.441 224.409 200.786 224.648C201.134 224.883 201.575 225 202.109 225ZM208.534 226V214.364H209.875V218.659H209.989C210.087 218.508 210.223 218.314 210.398 218.08C210.576 217.841 210.83 217.629 211.159 217.443C211.492 217.254 211.943 217.159 212.511 217.159C213.246 217.159 213.894 217.343 214.455 217.71C215.015 218.078 215.453 218.598 215.767 219.273C216.081 219.947 216.239 220.742 216.239 221.659C216.239 222.583 216.081 223.384 215.767 224.062C215.453 224.737 215.017 225.259 214.46 225.631C213.903 225.998 213.261 226.182 212.534 226.182C211.973 226.182 211.525 226.089 211.188 225.903C210.85 225.714 210.591 225.5 210.409 225.261C210.227 225.019 210.087 224.818 209.989 224.659H209.83V226H208.534V226ZM209.852 221.636C209.852 222.295 209.949 222.877 210.142 223.381C210.335 223.881 210.617 224.273 210.989 224.557C211.36 224.837 211.814 224.977 212.352 224.977C212.913 224.977 213.381 224.83 213.756 224.534C214.134 224.235 214.419 223.833 214.608 223.33C214.801 222.822 214.898 222.258 214.898 221.636C214.898 221.023 214.803 220.47 214.614 219.977C214.428 219.481 214.146 219.089 213.767 218.801C213.392 218.509 212.92 218.364 212.352 218.364C211.807 218.364 211.348 218.502 210.977 218.778C210.606 219.051 210.326 219.434 210.136 219.926C209.947 220.415 209.852 220.985 209.852 221.636V221.636ZM102 240H234V242H102V240Z'
      fill='#2B6CB0'
    />
    <path
      d='M250.773 215.614V214.364H259.5V215.614H255.841V226H254.432V215.614H250.773V215.614ZM262.874 226.205C262.321 226.205 261.819 226.1 261.368 225.892C260.917 225.68 260.559 225.375 260.294 224.977C260.029 224.576 259.896 224.091 259.896 223.523C259.896 223.023 259.995 222.617 260.192 222.307C260.389 221.992 260.652 221.746 260.982 221.568C261.311 221.39 261.675 221.258 262.072 221.17C262.474 221.08 262.877 221.008 263.283 220.955C263.813 220.886 264.243 220.835 264.572 220.801C264.906 220.763 265.148 220.701 265.3 220.614C265.455 220.527 265.533 220.375 265.533 220.159V220.114C265.533 219.553 265.379 219.117 265.072 218.807C264.769 218.496 264.309 218.341 263.692 218.341C263.052 218.341 262.55 218.481 262.186 218.761C261.822 219.042 261.567 219.341 261.419 219.659L260.146 219.205C260.374 218.674 260.677 218.261 261.055 217.966C261.438 217.667 261.855 217.458 262.305 217.341C262.76 217.22 263.207 217.159 263.646 217.159C263.927 217.159 264.249 217.193 264.612 217.261C264.98 217.326 265.334 217.46 265.675 217.665C266.019 217.869 266.305 218.178 266.533 218.591C266.76 219.004 266.874 219.557 266.874 220.25V226H265.533V224.818H265.464C265.374 225.008 265.222 225.21 265.01 225.426C264.798 225.642 264.516 225.826 264.163 225.977C263.811 226.129 263.381 226.205 262.874 226.205ZM263.078 225C263.608 225 264.055 224.896 264.419 224.688C264.786 224.479 265.063 224.21 265.249 223.881C265.438 223.551 265.533 223.205 265.533 222.841V221.614C265.476 221.682 265.351 221.744 265.158 221.801C264.968 221.854 264.749 221.902 264.499 221.943C264.252 221.981 264.012 222.015 263.777 222.045C263.546 222.072 263.358 222.095 263.214 222.114C262.866 222.159 262.54 222.233 262.237 222.335C261.938 222.434 261.696 222.583 261.51 222.784C261.328 222.981 261.237 223.25 261.237 223.591C261.237 224.057 261.41 224.409 261.754 224.648C262.103 224.883 262.544 225 263.078 225V225ZM269.503 226V214.364H270.844V218.659H270.957C271.056 218.508 271.192 218.314 271.366 218.08C271.545 217.841 271.798 217.629 272.128 217.443C272.461 217.254 272.912 217.159 273.48 217.159C274.215 217.159 274.863 217.343 275.423 217.71C275.984 218.078 276.421 218.598 276.736 219.273C277.05 219.947 277.207 220.742 277.207 221.659C277.207 222.583 277.05 223.384 276.736 224.062C276.421 224.737 275.986 225.259 275.429 225.631C274.872 225.998 274.23 226.182 273.503 226.182C272.942 226.182 272.493 226.089 272.156 225.903C271.819 225.714 271.56 225.5 271.378 225.261C271.196 225.019 271.056 224.818 270.957 224.659H270.798V226H269.503V226ZM270.821 221.636C270.821 222.295 270.918 222.877 271.111 223.381C271.304 223.881 271.586 224.273 271.957 224.557C272.329 224.837 272.783 224.977 273.321 224.977C273.882 224.977 274.349 224.83 274.724 224.534C275.103 224.235 275.387 223.833 275.577 223.33C275.77 222.822 275.866 222.258 275.866 221.636C275.866 221.023 275.772 220.47 275.582 219.977C275.397 219.481 275.115 219.089 274.736 218.801C274.361 218.509 273.889 218.364 273.321 218.364C272.776 218.364 272.317 218.502 271.946 218.778C271.575 219.051 271.295 219.434 271.105 219.926C270.916 220.415 270.821 220.985 270.821 221.636V221.636Z'
      fill='#4A5568'
    />
    <path d='M234 240H295V242H234V240Z' fill='#E2E8F0' />
    <path
      d='M311.773 215.614V214.364H320.5V215.614H316.841V226H315.432V215.614H311.773ZM323.874 226.205C323.321 226.205 322.819 226.1 322.368 225.892C321.917 225.68 321.559 225.375 321.294 224.977C321.029 224.576 320.896 224.091 320.896 223.523C320.896 223.023 320.995 222.617 321.192 222.307C321.389 221.992 321.652 221.746 321.982 221.568C322.311 221.39 322.675 221.258 323.072 221.17C323.474 221.08 323.877 221.008 324.283 220.955C324.813 220.886 325.243 220.835 325.572 220.801C325.906 220.763 326.148 220.701 326.3 220.614C326.455 220.527 326.533 220.375 326.533 220.159V220.114C326.533 219.553 326.379 219.117 326.072 218.807C325.769 218.496 325.309 218.341 324.692 218.341C324.052 218.341 323.55 218.481 323.186 218.761C322.822 219.042 322.567 219.341 322.419 219.659L321.146 219.205C321.374 218.674 321.677 218.261 322.055 217.966C322.438 217.667 322.855 217.458 323.305 217.341C323.76 217.22 324.207 217.159 324.646 217.159C324.927 217.159 325.249 217.193 325.612 217.261C325.98 217.326 326.334 217.46 326.675 217.665C327.019 217.869 327.305 218.178 327.533 218.591C327.76 219.004 327.874 219.557 327.874 220.25V226H326.533V224.818H326.464C326.374 225.008 326.222 225.21 326.01 225.426C325.798 225.642 325.516 225.826 325.163 225.977C324.811 226.129 324.381 226.205 323.874 226.205ZM324.078 225C324.608 225 325.055 224.896 325.419 224.688C325.786 224.479 326.063 224.21 326.249 223.881C326.438 223.551 326.533 223.205 326.533 222.841V221.614C326.476 221.682 326.351 221.744 326.158 221.801C325.968 221.854 325.749 221.902 325.499 221.943C325.252 221.981 325.012 222.015 324.777 222.045C324.546 222.072 324.358 222.095 324.214 222.114C323.866 222.159 323.54 222.233 323.237 222.335C322.938 222.434 322.696 222.583 322.51 222.784C322.328 222.981 322.237 223.25 322.237 223.591C322.237 224.057 322.41 224.409 322.754 224.648C323.103 224.883 323.544 225 324.078 225V225ZM330.503 226V214.364H331.844V218.659H331.957C332.056 218.508 332.192 218.314 332.366 218.08C332.545 217.841 332.798 217.629 333.128 217.443C333.461 217.254 333.912 217.159 334.48 217.159C335.215 217.159 335.863 217.343 336.423 217.71C336.984 218.078 337.421 218.598 337.736 219.273C338.05 219.947 338.207 220.742 338.207 221.659C338.207 222.583 338.05 223.384 337.736 224.062C337.421 224.737 336.986 225.259 336.429 225.631C335.872 225.998 335.23 226.182 334.503 226.182C333.942 226.182 333.493 226.089 333.156 225.903C332.819 225.714 332.56 225.5 332.378 225.261C332.196 225.019 332.056 224.818 331.957 224.659H331.798V226H330.503V226ZM331.821 221.636C331.821 222.295 331.918 222.877 332.111 223.381C332.304 223.881 332.586 224.273 332.957 224.557C333.329 224.837 333.783 224.977 334.321 224.977C334.882 224.977 335.349 224.83 335.724 224.534C336.103 224.235 336.387 223.833 336.577 223.33C336.77 222.822 336.866 222.258 336.866 221.636C336.866 221.023 336.772 220.47 336.582 219.977C336.397 219.481 336.115 219.089 335.736 218.801C335.361 218.509 334.889 218.364 334.321 218.364C333.776 218.364 333.317 218.502 332.946 218.778C332.575 219.051 332.295 219.434 332.105 219.926C331.916 220.415 331.821 220.985 331.821 221.636V221.636Z'
      fill='#4A5568'
    />
    <path
      d='M295 240H356V242H295V240ZM356 240H417V242H356V240ZM417 240H478V242H417V240ZM478 240H539V242H478V240Z'
      fill='#E2E8F0'
    />
    <path
      d='M118.773 257.614V256.364H127.5V257.614H123.841V268H122.432V257.614H118.773V257.614ZM130.874 268.205C130.321 268.205 129.819 268.1 129.368 267.892C128.917 267.68 128.559 267.375 128.294 266.977C128.029 266.576 127.896 266.091 127.896 265.523C127.896 265.023 127.995 264.617 128.192 264.307C128.389 263.992 128.652 263.746 128.982 263.568C129.311 263.39 129.675 263.258 130.072 263.17C130.474 263.08 130.877 263.008 131.283 262.955C131.813 262.886 132.243 262.835 132.572 262.801C132.906 262.763 133.148 262.701 133.3 262.614C133.455 262.527 133.533 262.375 133.533 262.159V262.114C133.533 261.553 133.379 261.117 133.072 260.807C132.769 260.496 132.309 260.341 131.692 260.341C131.052 260.341 130.55 260.481 130.186 260.761C129.822 261.042 129.567 261.341 129.419 261.659L128.146 261.205C128.374 260.674 128.677 260.261 129.055 259.966C129.438 259.667 129.855 259.458 130.305 259.341C130.76 259.22 131.207 259.159 131.646 259.159C131.927 259.159 132.249 259.193 132.612 259.261C132.98 259.326 133.334 259.46 133.675 259.665C134.019 259.869 134.305 260.178 134.533 260.591C134.76 261.004 134.874 261.557 134.874 262.25V268H133.533V266.818H133.464C133.374 267.008 133.222 267.21 133.01 267.426C132.798 267.642 132.516 267.826 132.163 267.977C131.811 268.129 131.381 268.205 130.874 268.205ZM131.078 267C131.608 267 132.055 266.896 132.419 266.688C132.786 266.479 133.063 266.21 133.249 265.881C133.438 265.551 133.533 265.205 133.533 264.841V263.614C133.476 263.682 133.351 263.744 133.158 263.801C132.968 263.854 132.749 263.902 132.499 263.943C132.252 263.981 132.012 264.015 131.777 264.045C131.546 264.072 131.358 264.095 131.214 264.114C130.866 264.159 130.54 264.233 130.237 264.335C129.938 264.434 129.696 264.583 129.51 264.784C129.328 264.981 129.237 265.25 129.237 265.591C129.237 266.057 129.41 266.409 129.754 266.648C130.103 266.883 130.544 267 131.078 267V267ZM137.503 268V256.364H138.844V260.659H138.957C139.056 260.508 139.192 260.314 139.366 260.08C139.545 259.841 139.798 259.629 140.128 259.443C140.461 259.254 140.912 259.159 141.48 259.159C142.215 259.159 142.863 259.343 143.423 259.71C143.984 260.078 144.421 260.598 144.736 261.273C145.05 261.947 145.207 262.742 145.207 263.659C145.207 264.583 145.05 265.384 144.736 266.062C144.421 266.737 143.986 267.259 143.429 267.631C142.872 267.998 142.23 268.182 141.503 268.182C140.942 268.182 140.493 268.089 140.156 267.903C139.819 267.714 139.56 267.5 139.378 267.261C139.196 267.019 139.056 266.818 138.957 266.659H138.798V268H137.503V268ZM138.821 263.636C138.821 264.295 138.918 264.877 139.111 265.381C139.304 265.881 139.586 266.273 139.957 266.557C140.329 266.837 140.783 266.977 141.321 266.977C141.882 266.977 142.349 266.83 142.724 266.534C143.103 266.235 143.387 265.833 143.577 265.33C143.77 264.822 143.866 264.258 143.866 263.636C143.866 263.023 143.772 262.47 143.582 261.977C143.397 261.481 143.115 261.089 142.736 260.801C142.361 260.509 141.889 260.364 141.321 260.364C140.776 260.364 140.317 260.502 139.946 260.778C139.575 261.051 139.295 261.434 139.105 261.926C138.916 262.415 138.821 262.985 138.821 263.636ZM151.759 271.273V259.273H153.054V260.659H153.213C153.312 260.508 153.448 260.314 153.622 260.08C153.8 259.841 154.054 259.629 154.384 259.443C154.717 259.254 155.168 259.159 155.736 259.159C156.471 259.159 157.118 259.343 157.679 259.71C158.24 260.078 158.677 260.598 158.991 261.273C159.306 261.947 159.463 262.742 159.463 263.659C159.463 264.583 159.306 265.384 158.991 266.062C158.677 266.737 158.241 267.259 157.685 267.631C157.128 267.998 156.486 268.182 155.759 268.182C155.198 268.182 154.749 268.089 154.412 267.903C154.075 267.714 153.815 267.5 153.634 267.261C153.452 267.019 153.312 266.818 153.213 266.659H153.099V271.273H151.759V271.273ZM153.077 263.636C153.077 264.295 153.173 264.877 153.366 265.381C153.56 265.881 153.842 266.273 154.213 266.557C154.584 266.837 155.039 266.977 155.577 266.977C156.137 266.977 156.605 266.83 156.98 266.534C157.359 266.235 157.643 265.833 157.832 265.33C158.026 264.822 158.122 264.258 158.122 263.636C158.122 263.023 158.027 262.47 157.838 261.977C157.652 261.481 157.37 261.089 156.991 260.801C156.616 260.509 156.145 260.364 155.577 260.364C155.031 260.364 154.573 260.502 154.202 260.778C153.83 261.051 153.55 261.434 153.361 261.926C153.171 262.415 153.077 262.985 153.077 263.636ZM164.077 268.205C163.524 268.205 163.022 268.1 162.571 267.892C162.12 267.68 161.762 267.375 161.497 266.977C161.232 266.576 161.099 266.091 161.099 265.523C161.099 265.023 161.198 264.617 161.395 264.307C161.592 263.992 161.855 263.746 162.185 263.568C162.514 263.39 162.878 263.258 163.276 263.17C163.677 263.08 164.08 263.008 164.486 262.955C165.016 262.886 165.446 262.835 165.776 262.801C166.109 262.763 166.351 262.701 166.503 262.614C166.658 262.527 166.736 262.375 166.736 262.159V262.114C166.736 261.553 166.582 261.117 166.276 260.807C165.973 260.496 165.512 260.341 164.895 260.341C164.255 260.341 163.753 260.481 163.389 260.761C163.026 261.042 162.77 261.341 162.622 261.659L161.349 261.205C161.577 260.674 161.88 260.261 162.259 259.966C162.641 259.667 163.058 259.458 163.509 259.341C163.963 259.22 164.41 259.159 164.849 259.159C165.13 259.159 165.452 259.193 165.815 259.261C166.183 259.326 166.537 259.46 166.878 259.665C167.223 259.869 167.509 260.178 167.736 260.591C167.963 261.004 168.077 261.557 168.077 262.25V268H166.736V266.818H166.668C166.577 267.008 166.425 267.21 166.213 267.426C166.001 267.642 165.719 267.826 165.366 267.977C165.014 268.129 164.584 268.205 164.077 268.205V268.205ZM164.281 267C164.812 267 165.259 266.896 165.622 266.688C165.99 266.479 166.266 266.21 166.452 265.881C166.641 265.551 166.736 265.205 166.736 264.841V263.614C166.679 263.682 166.554 263.744 166.361 263.801C166.171 263.854 165.952 263.902 165.702 263.943C165.455 263.981 165.215 264.015 164.98 264.045C164.749 264.072 164.562 264.095 164.418 264.114C164.069 264.159 163.743 264.233 163.44 264.335C163.141 264.434 162.899 264.583 162.713 264.784C162.531 264.981 162.44 265.25 162.44 265.591C162.44 266.057 162.613 266.409 162.957 266.648C163.306 266.883 163.747 267 164.281 267ZM171.865 262.75V268H170.524V259.273H171.82V260.636H171.933C172.138 260.193 172.448 259.837 172.865 259.568C173.282 259.295 173.82 259.159 174.479 259.159C175.07 259.159 175.587 259.28 176.03 259.523C176.473 259.761 176.818 260.125 177.064 260.614C177.31 261.098 177.433 261.712 177.433 262.455V268H176.092V262.545C176.092 261.86 175.914 261.326 175.558 260.943C175.202 260.557 174.714 260.364 174.092 260.364C173.664 260.364 173.282 260.456 172.945 260.642C172.611 260.828 172.348 261.098 172.155 261.455C171.962 261.811 171.865 262.242 171.865 262.75V262.75ZM183.543 268.182C182.702 268.182 181.976 267.996 181.366 267.625C180.76 267.25 180.293 266.727 179.963 266.057C179.637 265.383 179.474 264.598 179.474 263.705C179.474 262.811 179.637 262.023 179.963 261.341C180.293 260.655 180.751 260.121 181.338 259.739C181.929 259.352 182.618 259.159 183.406 259.159C183.861 259.159 184.31 259.235 184.753 259.386C185.196 259.538 185.599 259.784 185.963 260.125C186.327 260.462 186.616 260.909 186.832 261.466C187.048 262.023 187.156 262.708 187.156 263.523V264.091H180.429V262.932H185.793C185.793 262.439 185.694 262 185.497 261.614C185.304 261.227 185.027 260.922 184.668 260.699C184.312 260.475 183.891 260.364 183.406 260.364C182.872 260.364 182.41 260.496 182.02 260.761C181.634 261.023 181.336 261.364 181.128 261.784C180.92 262.205 180.815 262.655 180.815 263.136V263.909C180.815 264.568 180.929 265.127 181.156 265.585C181.387 266.04 181.707 266.386 182.116 266.625C182.526 266.86 183.001 266.977 183.543 266.977C183.895 266.977 184.213 266.928 184.497 266.83C184.785 266.727 185.033 266.576 185.241 266.375C185.45 266.17 185.611 265.917 185.724 265.614L187.02 265.977C186.884 266.417 186.654 266.803 186.332 267.136C186.01 267.466 185.613 267.723 185.139 267.909C184.666 268.091 184.134 268.182 183.543 268.182V268.182ZM190.537 256.364V268H189.196V256.364H190.537V256.364ZM201.288 259.273V260.409H196.766V259.273H201.288ZM198.084 257.182H199.425V265.5C199.425 265.879 199.48 266.163 199.589 266.352C199.703 266.538 199.847 266.663 200.021 266.727C200.199 266.788 200.387 266.818 200.584 266.818C200.732 266.818 200.853 266.811 200.947 266.795C201.042 266.777 201.118 266.761 201.175 266.75L201.447 267.955C201.357 267.989 201.23 268.023 201.067 268.057C200.904 268.095 200.697 268.114 200.447 268.114C200.069 268.114 199.697 268.032 199.334 267.869C198.974 267.706 198.675 267.458 198.436 267.125C198.201 266.792 198.084 266.371 198.084 265.864V257.182V257.182ZM206.871 268.182C206.03 268.182 205.304 267.996 204.695 267.625C204.089 267.25 203.621 266.727 203.291 266.057C202.965 265.383 202.803 264.598 202.803 263.705C202.803 262.811 202.965 262.023 203.291 261.341C203.621 260.655 204.079 260.121 204.666 259.739C205.257 259.352 205.946 259.159 206.734 259.159C207.189 259.159 207.638 259.235 208.081 259.386C208.524 259.538 208.928 259.784 209.291 260.125C209.655 260.462 209.945 260.909 210.161 261.466C210.376 262.023 210.484 262.708 210.484 263.523V264.091H203.757V262.932H209.121C209.121 262.439 209.022 262 208.825 261.614C208.632 261.227 208.356 260.922 207.996 260.699C207.64 260.475 207.219 260.364 206.734 260.364C206.2 260.364 205.738 260.496 205.348 260.761C204.962 261.023 204.664 261.364 204.456 261.784C204.248 262.205 204.143 262.655 204.143 263.136V263.909C204.143 264.568 204.257 265.127 204.484 265.585C204.715 266.04 205.036 266.386 205.445 266.625C205.854 266.86 206.329 266.977 206.871 266.977C207.223 266.977 207.541 266.928 207.825 266.83C208.113 266.727 208.361 266.576 208.57 266.375C208.778 266.17 208.939 265.917 209.053 265.614L210.348 265.977C210.212 266.417 209.982 266.803 209.661 267.136C209.339 267.466 208.941 267.723 208.467 267.909C207.994 268.091 207.462 268.182 206.871 268.182V268.182ZM213.29 259.273L215.381 262.841L217.472 259.273H219.017L216.199 263.636L219.017 268H217.472L215.381 264.614L213.29 268H211.744L214.517 263.636L211.744 259.273H213.29V259.273ZM224.726 259.273V260.409H220.203V259.273H224.726ZM221.521 257.182H222.862V265.5C222.862 265.879 222.917 266.163 223.027 266.352C223.141 266.538 223.285 266.663 223.459 266.727C223.637 266.788 223.824 266.818 224.021 266.818C224.169 266.818 224.29 266.811 224.385 266.795C224.48 266.777 224.555 266.761 224.612 266.75L224.885 267.955C224.794 267.989 224.667 268.023 224.504 268.057C224.341 268.095 224.135 268.114 223.885 268.114C223.506 268.114 223.135 268.032 222.771 267.869C222.411 267.706 222.112 267.458 221.874 267.125C221.639 266.792 221.521 266.371 221.521 265.864V257.182V257.182Z'
      fill='#1A202C'
    />
    <path
      d='M165 150.5C172.456 150.5 178.5 144.456 178.5 137C178.5 129.544 172.456 123.5 165 123.5C157.544 123.5 151.5 129.544 151.5 137C151.5 144.456 157.544 150.5 165 150.5Z'
      fill='#E9D8FD'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M165 124C157.82 124 152 129.82 152 137C152 144.18 157.82 150 165 150C172.18 150 178 144.18 178 137C178 129.82 172.18 124 165 124ZM151 137C151 129.268 157.268 123 165 123C172.732 123 179 129.268 179 137C179 144.732 172.732 151 165 151C157.268 151 151 144.732 151 137Z'
      fill='#805AD5'
    />
    <path
      d='M160.376 143V129.909H165.388C166.334 129.909 167.12 130.058 167.746 130.357C168.377 130.651 168.848 131.053 169.159 131.565C169.474 132.076 169.632 132.656 169.632 133.303C169.632 133.836 169.53 134.292 169.325 134.671C169.12 135.046 168.846 135.351 168.5 135.585C168.155 135.82 167.77 135.988 167.343 136.09V136.218C167.808 136.244 168.253 136.386 168.679 136.646C169.11 136.902 169.461 137.264 169.734 137.733C170.007 138.202 170.143 138.768 170.143 139.433C170.143 140.111 169.979 140.72 169.651 141.261C169.323 141.798 168.829 142.222 168.168 142.533C167.508 142.844 166.677 143 165.675 143H160.376V143ZM162.748 141.018H165.298C166.159 141.018 166.779 140.854 167.158 140.526C167.542 140.194 167.733 139.768 167.733 139.248C167.733 138.86 167.638 138.511 167.446 138.2C167.254 137.884 166.981 137.637 166.628 137.458C166.274 137.275 165.852 137.183 165.362 137.183H162.748V141.018V141.018ZM162.748 135.477H165.093C165.503 135.477 165.871 135.402 166.199 135.253C166.527 135.099 166.785 134.884 166.973 134.607C167.165 134.326 167.26 133.994 167.26 133.61C167.26 133.103 167.081 132.685 166.723 132.357C166.37 132.029 165.843 131.865 165.145 131.865H162.748V135.477V135.477ZM165 210.667C166.473 210.667 167.667 209.473 167.667 208C167.667 206.527 166.473 205.333 165 205.333C163.527 205.333 162.333 206.527 162.333 208C162.333 209.473 163.527 210.667 165 210.667ZM165.5 208V151H164.5V208H165.5Z'
      fill='#805AD5'
    />
    <path
      d='M260 265.667C261.473 265.667 262.667 264.473 262.667 263C262.667 261.527 261.473 260.333 260 260.333C258.527 260.333 257.333 261.527 257.333 263C257.333 264.473 258.527 265.667 260 265.667ZM260.5 330V263H259.5V330H260.5Z'
      fill='#D69E2E'
    />
    <path
      d='M260 357.5C267.456 357.5 273.5 351.456 273.5 344C273.5 336.544 267.456 330.5 260 330.5C252.544 330.5 246.5 336.544 246.5 344C246.5 351.456 252.544 357.5 260 357.5Z'
      fill='#FEFCBF'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M260 331C252.82 331 247 336.82 247 344C247 351.18 252.82 357 260 357C267.18 357 273 351.18 273 344C273 336.82 267.18 331 260 331ZM246 344C246 336.268 252.268 330 260 330C267.732 330 274 336.268 274 344C274 351.732 267.732 358 260 358C252.268 358 246 351.732 246 344Z'
      fill='#D69E2E'
    />
    <path
      d='M260 357.5C267.456 357.5 273.5 351.456 273.5 344C273.5 336.544 267.456 330.5 260 330.5C252.544 330.5 246.5 336.544 246.5 344C246.5 351.456 252.544 357.5 260 357.5Z'
      fill='#FEFCBF'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M260 331C252.82 331 247 336.82 247 344C247 351.18 252.82 357 260 357C267.18 357 273 351.18 273 344C273 336.82 267.18 331 260 331ZM246 344C246 336.268 252.268 330 260 330C267.732 330 274 336.268 274 344C274 351.732 267.732 358 260 358C252.268 358 246 351.732 246 344Z'
      fill='#D69E2E'
    />
    <path
      d='M256.324 350V336.909H264.839V338.897H258.696V342.451H264.398V344.439H258.696V348.012H264.89V350H256.324V350Z'
      fill='#D69E2E'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M539 222H587V223H539V222Z'
      fill='#805AD5'
    />
    <path
      d='M601 236.5C608.456 236.5 614.5 230.456 614.5 223C614.5 215.544 608.456 209.5 601 209.5C593.544 209.5 587.5 215.544 587.5 223C587.5 230.456 593.544 236.5 601 236.5Z'
      fill='#E9D8FD'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M601 210C593.82 210 588 215.82 588 223C588 230.18 593.82 236 601 236C608.18 236 614 230.18 614 223C614 215.82 608.18 210 601 210ZM587 223C587 215.268 593.268 209 601 209C608.732 209 615 215.268 615 223C615 230.732 608.732 237 601 237C593.268 237 587 230.732 587 223Z'
      fill='#805AD5'
    />
    <path
      d='M606.808 220.326H604.417C604.349 219.934 604.223 219.587 604.04 219.284C603.857 218.977 603.629 218.717 603.356 218.504C603.084 218.291 602.772 218.131 602.423 218.025C602.078 217.914 601.705 217.859 601.304 217.859C600.593 217.859 599.962 218.038 599.412 218.396C598.863 218.749 598.432 219.269 598.121 219.955C597.81 220.637 597.655 221.47 597.655 222.455C597.655 223.456 597.81 224.3 598.121 224.986C598.437 225.668 598.867 226.183 599.412 226.533C599.962 226.878 600.591 227.05 601.298 227.05C601.69 227.05 602.057 226.999 602.397 226.897C602.743 226.79 603.052 226.635 603.324 226.43C603.601 226.226 603.834 225.974 604.021 225.676C604.213 225.378 604.345 225.037 604.417 224.653L606.808 224.666C606.718 225.288 606.525 225.872 606.226 226.418C605.932 226.963 605.547 227.445 605.069 227.862C604.592 228.276 604.034 228.599 603.395 228.834C602.755 229.064 602.046 229.179 601.266 229.179C600.116 229.179 599.089 228.913 598.185 228.38C597.282 227.847 596.57 227.078 596.05 226.072C595.53 225.067 595.27 223.861 595.27 222.455C595.27 221.044 595.532 219.838 596.057 218.837C596.581 217.831 597.294 217.062 598.198 216.529C599.101 215.996 600.124 215.73 601.266 215.73C601.995 215.73 602.672 215.832 603.299 216.037C603.925 216.241 604.483 216.542 604.973 216.938C605.464 217.33 605.866 217.812 606.182 218.383C606.501 218.95 606.71 219.597 606.808 220.326V220.326Z'
      fill='#805AD5'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M539 262H587V263H539V262Z'
      fill='#D69E2E'
    />
    <path
      d='M601 276.5C608.456 276.5 614.5 270.456 614.5 263C614.5 255.544 608.456 249.5 601 249.5C593.544 249.5 587.5 255.544 587.5 263C587.5 270.456 593.544 276.5 601 276.5Z'
      fill='#FEFCBF'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M601 250C593.82 250 588 255.82 588 263C588 270.18 593.82 276 601 276C608.18 276 614 270.18 614 263C614 255.82 608.18 250 601 250ZM587 263C587 255.268 593.268 249 601 249C608.732 249 615 255.268 615 263C615 270.732 608.732 277 601 277C593.268 277 587 270.732 587 263Z'
      fill='#D69E2E'
    />
    <path
      d='M600.206 269H595.77V255.909H600.295C601.595 255.909 602.711 256.171 603.645 256.695C604.582 257.215 605.302 257.963 605.805 258.939C606.308 259.915 606.559 261.082 606.559 262.442C606.559 263.805 606.306 264.977 605.799 265.957C605.296 266.937 604.569 267.69 603.619 268.214C602.673 268.738 601.535 269 600.206 269ZM598.141 266.948H600.091C601.003 266.948 601.763 266.782 602.373 266.45C602.982 266.113 603.44 265.612 603.747 264.947C604.054 264.278 604.207 263.443 604.207 262.442C604.207 261.44 604.054 260.609 603.747 259.949C603.44 259.284 602.986 258.788 602.385 258.46C601.789 258.127 601.047 257.961 600.161 257.961H598.141V266.948V266.948Z'
      fill='#D69E2E'
    />
    <path
      d='M40 255.5C47.4558 255.5 53.5 249.456 53.5 242C53.5 234.544 47.4558 228.5 40 228.5C32.5442 228.5 26.5 234.544 26.5 242C26.5 249.456 32.5442 255.5 40 255.5Z'
      fill='#B2F5EA'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M40 229C32.8203 229 27 234.82 27 242C27 249.18 32.8203 255 40 255C47.1797 255 53 249.18 53 242C53 234.82 47.1797 229 40 229ZM26 242C26 234.268 32.268 228 40 228C47.732 228 54 234.268 54 242C54 249.732 47.732 256 40 256C32.268 256 26 249.732 26 242Z'
      fill='#319795'
    />
    <path
      d='M36.4594 248H33.9282L38.5368 234.909H41.4644L46.0794 248H43.5482L40.0517 237.594H39.9495L36.4594 248ZM36.5425 242.867H43.4459V244.772H36.5425V242.867Z'
      fill='#319795'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M98 196H542V285H98V242H54V241H98V196ZM99 197V284H541V197H99Z'
      fill='#319795'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M101 243H539V282H101V243ZM102 244V281H538V244H102Z'
      fill='#D69E2E'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M101 199H539V243H101V199ZM102 200V242H538V200H102Z'
      fill='#805AD5'
    />
  </svg>
</AspectRatio>

## Theming properties

The properties that affect the theming of the `Tabs` component are:

- `variant`: The visual variant of the component. Defaults to `line`.
- `size`: The size of the component. Defaults to `md`.
- `colorScheme`: The color scheme of the component. Defaults to `blue`.

## Theming utilities

- `createMultiStyleConfigHelpers`: a function that returns a set of utilities
  for creating style configs for a multipart component (`definePartsStyle` and
  `defineMultiStyleConfig`).
- `definePartsStyle`: a function used to create multipart style objects.
- `defineMultiStyleConfig`: a function used to define the style configuration
  for a multipart component.

```jsx live=false
import { tabsAnatomy } from '@chakra-ui/anatomy'
import { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/react'

const { definePartsStyle, defineMultiStyleConfig } =
  createMultiStyleConfigHelpers(tabsAnatomy.keys)
```

## Customizing the default theme

```jsx live=false
import { tabsAnatomy } from '@chakra-ui/anatomy'
import { createMultiStyleConfigHelpers } from '@chakra-ui/react'

const { definePartsStyle, defineMultiStyleConfig } =
  createMultiStyleConfigHelpers(tabsAnatomy.keys)

// define the base component styles
const baseStyle = definePartsStyle({
  // define the part you're going to style
  tab: {
    fontWeight: 'semibold', // change the font weight
  },
  tabpanel: {
    fontFamily: 'mono', // change the font family
  },
})

// export the component theme
export const tabsTheme = defineMultiStyleConfig({ baseStyle })
```

After customizing the the `Tabs` theme, we can import it in our theme file and
add it in the `components` property.

```jsx live=false
import { extendTheme } from '@chakra-ui/react'
import { tabsTheme } from './components/Tabs'

const theme = extendTheme({
  components: {
    Tabs: tabsTheme,
  },
})

export default theme
```

## Adding a custom size

Let's assume we want to include an extra large tab size. Here's how we can do
that:

```jsx live=false
import { tabsAnatomy } from '@chakra-ui/anatomy';
import { createMultiStyleConfigHelpers } from '@chakra-ui/react';

const { definePartsStyle, defineMultiStyleConfig } =
  createMultiStyleConfigHelpers(tabsAnatomy.keys);

// define custom sizes
const sizes = {
  xl: definePartsStyle({
    // define the parts that will change for each size
    tab: {
      fontSize: 'xl',
      py: '4',
      px: '6',
    },
    tabpanel: {
      py: '4',
      px: '6',
    },
  }),
};

// export the component theme
export const tabsTheme = defineMultiStyleConfig({ sizes });

// now we can use the new `xl` size
<Tabs size="xl" ... />

```

Every time you're adding anything new to the theme, you'd need to run the CLI
command to get proper autocomplete in your IDE. You can learn more about the CLI
tool [here](/docs/styled-system/cli).

## Adding a custom variant

Let's assume we want to include a custom variant that is fully enclosed and can
have a color scheme applied. Here's how we can do that:

```jsx live=false
import { tabsAnatomy } from '@chakra-ui/anatomy'
import { createMultiStyleConfigHelpers } from '@chakra-ui/react'
import { mode } from '@chakra-ui/theme-tools' // import utility to set light and dark mode props

// define a custom variant
const colorfulVariant = definePartsStyle((props) => {
  const { colorScheme: c } = props // extract colorScheme from component props

  return {
    tab: {
      border: '2px solid',
      borderColor: 'transparent',
      // use colorScheme to change background color with dark and light mode options
      bg: mode(`${c}.300`, `${c}.600`)(props),
      borderTopRadius: 'lg',
      borderBottom: 'none',
      _selected: {
        bg: mode('#fff', 'gray.800')(props),
        color: mode(`${c}.500`, `${c}.300`)(props),
        borderColor: 'inherit',
        borderBottom: 'none',
        mb: '-2px',
      },
    },
    tablist: {
      borderBottom: '2x solid',
      borderColor: 'inherit',
    },
    tabpanel: {
      border: '2px solid',
      borderColor: 'inherit',
      borderBottomRadius: 'lg',
      borderTopRightRadius: 'lg',
    },
  }
})

const variants = {
  colorful: colorfulVariant,
}

// export the component theme
export const tabsTheme = defineMultiStyleConfig({ variants })

// now we can use the `colorful` variant with a different color Scheme
<Tabs variant="colorful" colorScheme="purple" ... />

```

## Changing the default properties

Let's assume we want to change the default size, variant, and color scheme of
every tab in our app. Here's how we can do that:

```jsx live=false

import { tabsAnatomy } from '@chakra-ui/anatomy';
import { createMultiStyleConfigHelpers } from '@chakra-ui/react';

// define which sizes, variants, and color schemes are applied by default
const defaultProps = {
  size: 'xl',
  variant: 'colorful',
  colorScheme: 'green',
};

// export the component theme
export const tabsTheme = defineMultiStyleConfig({ defaultProps })

// This saves you time, instead of manually setting the
// size and variant every time you use a tabs component:
<Tabs size="xl" variant="colorful" colorScheme="green" ... />

```

## Showcase

import {
  App,
  Index,
  Theme,
  Tabs,
  ColorModeSwitcher,
} from 'configs/sandpack-contents/component-theming/tabs'

<SandpackEmbed
  files={{
    '/theme/components/Tabs.tsx': Tabs,
    '/theme/index.tsx': Theme,
    '/App.tsx': App,
    '/index.tsx': {
      code: Index,
      hidden: true,
    },
    '/ColorModeSwitcher.tsx': {
      code: ColorModeSwitcher,
      hidden: true,
    },
  }}
  dependencies={{
    'react-icons': '^4.4.0',
  }}
/>
