Skip to content

Commit

Permalink
docs: update theme docs (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
danranVm committed Nov 1, 2022
1 parent 44a5353 commit 9dd0189
Show file tree
Hide file tree
Showing 69 changed files with 29 additions and 167 deletions.
2 changes: 0 additions & 2 deletions packages/components/affix/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
18 changes: 8 additions & 10 deletions packages/components/alert/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@alert-success-color` | `@color-success-d10` | - | - |
| `@alert-info-color` | `@color-info-d10` | - | - |
| `@alert-warning-color` | `@color-warning-d10` | - | - |
| `@alert-error-color` | `@color-error-d10` | - | - |
| `@alert-success-background-color` | `@color-success-l50` | - | - |
| `@alert-info-background-color` | `@color-info-l50` | - | - |
| `@alert-warning-background-color` | `@color-warning-l50` | - | - |
| `@alert-error-background-color` | `@color-error-l50` | - | - |
| `@alert-success-color` | `@color-success-d10` | `#12a679` | - |
| `@alert-info-color` | `@color-info-d10` | `@color-blue` | - |
| `@alert-warning-color` | `@color-warning-d10` | `#a35f40` | - |
| `@alert-error-color` | `@color-error-d10` | `@color-red-d10` | - |
| `@alert-success-background-color` | `@color-success-l50` | `#f1faf7` | - |
| `@alert-info-background-color` | `@color-info-l50` | `#f2f7ff` | - |
| `@alert-warning-background-color` | `@color-warning-l50` | `#fffaf2` | - |
| `@alert-error-background-color` | `@color-error-l50` | `#fff2f2` | - |
| `@alert-color` | `@text-color` | - | - |
| `@alert-color-secondary` | `@text-color-secondary` | `@color-graphite-l10` | - |
| `@alert-font-size` | `@font-size-md` | `@font-size-sm` | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/anchor/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@anchor-background-color` | `@background-color-component` | - | - |
Expand Down
4 changes: 1 addition & 3 deletions packages/components/avatar/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@avatar-size-sm` | `@height-sm` | - | - |
Expand All @@ -9,6 +7,6 @@
| `@avatar-font-size-md` | `@font-size-xl` | - | - |
| `@avatar-font-size-lg` | `@font-size-2xl` | - | - |
| `@avatar-color` | `@color-white` | - | - |
| `@avatar-background-color` | `@color-grey` | - | - |
| `@avatar-background-color` | `@color-grey` | `@color-graphite-l20` | - |
| `@avatar-border-radius-circle` | `@border-radius-full` | - | - |
| `@avatar-border-radius-square` | `@border-radius-sm` | - | - |
2 changes: 0 additions & 2 deletions packages/components/back-top/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@back-top-height` | `60px` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/badge/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@badge-font-size` | `@font-size-sm` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/breadcrumb/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@breadcrumb-base-color` | `@text-color-secondary` | `@color-graphite` | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/button/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@button-height-xs` | `var(--ix-height-sm)` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/card/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@card-padding-sm` | `@spacing-md` | `@spacing-lg` | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/carousel/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@carousel-arrow-size` | `32px` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/cascader/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@cascader-option-padding` | `@spacing-xs @spacing-xs @spacing-xs @spacing-md` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/checkbox/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@checkbox-font-size-sm` | `@form-font-size-sm` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/collapse/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@collapse-line-height` | `@line-height-base` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/comment/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@comment-padding-md` | `@spacing-md 0` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/date-picker/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@date-picker-line-height` | `@form-line-height` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/divider/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@divider-border-width` | `@border-width-sm` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/drawer/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@drawer-font-size` | `@font-size-md` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/dropdown/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@dropdown-menu-item-height` | `@height-md` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/empty/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@empty-line-height` | `@line-height-base` | - | - |
Expand Down
8 changes: 3 additions & 5 deletions packages/components/form/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@form-font-size-xs` | `@font-size-sm` | - | - |
Expand Down Expand Up @@ -38,9 +36,9 @@
| `@form-disabled-background-color` | `@background-color-disabled` | - | - |
| `@form-icon-color` | `@color-graphite-d20` | - | - |
| `@form-icon-hover-color` | `@color-graphite-d20` | `@color-primary` | - |
| `@form-item-valid-color` | `@color-success` | - | - |
| `@form-item-validating-color` | `@color-pending` | - | - |
| `@form-item-invalid-color` | `@color-error` | - | - |
| `@form-item-valid-color` | `@color-success` | `@color-success-d10` | - |
| `@form-item-validating-color` | `@color-pending` | `@color-pending-d10` | - |
| `@form-item-invalid-color` | `@color-error` | `@color-error-d10` | - |
| `@form-item-invalid-box-shadow` | `0 0 0 2px fade(@form-item-invalid-color, 20%)` | - | - |
| `@form-item-margin-bottom` | `24px` | `@spacing-sm` | - |
| `@form-item-vertical-label-margin` | `0` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/grid/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@grid-columns` | `24` | - | - |
6 changes: 2 additions & 4 deletions packages/components/header/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@header-line-height` | `@line-height-base` | - | - |
Expand Down Expand Up @@ -29,9 +27,9 @@
| `@header-title-font-size-md` | `@font-size-xl` | `@font-size-md` | - |
| `@header-title-font-size-sm` | `@font-size-lg` | `@font-size-md` | - |
| `@header-sub-title-color` | `@text-color-secondary` | - | - |
| `@header-suffix-color` | `@text-color-secondary` | - | - |
| `@header-suffix-color` | `@text-color-secondary` | `@color-graphite-d20` | - |
| `@header-suffix-padding` | `0 @spacing-xs 0 @spacing-sm` | - | - |
| `@header-suffix-active-color` | `@header-title-color` | - | - |
| `@header-suffix-active-color` | `@header-title-color` | `@color-blue-l10` | - |
| `@header-suffix-font-size` | `@font-size-lg` | - | - |
| `@header-suffix-font-size-sm` | `@font-size-md` | - | - |
| `@header-description-color` | `@text-color` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/icon/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
2 changes: 0 additions & 2 deletions packages/components/image/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@image-min-width` | `96px` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/input-number/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@input-number-width-sm` | `20px` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/input/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@input-font-size-sm` | `@form-font-size-sm` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/layout/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@layout-header-background-color` | `@background-color-component` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/list/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@list-border-color` | `@border-color` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/loading-bar/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@loading-bar-height` | `2px` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/menu/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@menu-text-color` | `@text-color` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/message/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@message-margin` | `@spacing-sm` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/modal/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@modal-max-width` | `calc(100vw - 32px)` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/notification/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@notification-padding` | `8px 8px 8px 16px` | `8px 8px 8px 16px` | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pagination/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@pagination-font-size-md` | `@font-size-md` | `@font-size-sm` | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/popconfirm/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@popconfirm-font-size` | `@font-size-md` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/popover/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@popover-font-size` | `@font-size-md` | `@font-size-sm` | - |
Expand Down
4 changes: 1 addition & 3 deletions packages/components/progress/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@progress-normal-background-color` | `@color-success` | - | - |
Expand All @@ -14,7 +12,7 @@
| `@progress-line-height-md` | `6px` | - | - |
| `@progress-line-height-sm` | `2px` | - | - |
| `@progress-line-font-size-lg` | `@font-size-md` | - | - |
| `@progress-line-font-size-md` | `@font-size-md` | - | - |
| `@progress-line-font-size-md` | `@font-size-md` | `@font-size-sm` | - |
| `@progress-line-font-size-sm` | `@font-size-sm` | - | - |
| `@progress-line-text-padding` | `0 0 0 @spacing-sm` | - | - |
| `@progress-circle-width` | `120px` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/radio/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@radio-font-size-sm` | `@form-font-size-sm` | - | - |
Expand Down
6 changes: 2 additions & 4 deletions packages/components/rate/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@rate-placeholder-color` | `@form-placeholder-color` | - | - |
| `@rate-active-color` | `@color-yellow` | - | - |
| `@rate-placeholder-color` | `@form-placeholder-color` | `@color-graphite-l10` | - |
| `@rate-active-color` | `@color-yellow` | `@color-brown-l10` | - |
| `@rate-size-sm` | `14px` | - | - |
| `@rate-size-md` | `20px` | - | - |
| `@rate-size-lg` | `28px` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/result/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@result-padding` | `@spacing-gutter * 6 @spacing-gutter * 4` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/select/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@select-font-size-sm` | `@form-font-size-sm` | - | - |
Expand Down
6 changes: 2 additions & 4 deletions packages/components/skeleton/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@skeleton-margin-bottom` | `@spacing-sm` | - | - |
| `@skeleton-loader-margin-bottom` | `@spacing-xs` | - | - |
| `@skeleton-start-color` | `@color-grey-l20` | - | - |
| `@skeleton-end-color` | `@color-grey-l30` | - | - |
| `@skeleton-start-color` | `@color-graphite-l40` | - | - |
| `@skeleton-end-color` | `@color-graphite-l30` | - | - |
4 changes: 1 addition & 3 deletions packages/components/slider/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@slider-marks-label-color` | `rgba(0, 0, 0, 0.451)` | - | - |
| `@slider-rail-background-color` | `@color-graphite-l30` | - | - |
| `@slider-track-background-color` | `@color-primary` | - | - |
| `@slider-thumb-background-color` | `@color-white` | - | - |
| `@slider-dot-background-color` | `@color-primary` | `@color-graphite-l30` | - |
| `@slider-dot-background-color` | `@color-graphite-l30` | `@color-graphite-l30` | - |
| `@slider-thumb-border` | `2px solid @color-primary` | - | - |
| `@slider-rail-hover-background-color` | `@color-graphite-l30` | - | - |
| `@slider-track-hover-background-color` | `@color-primary` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/space/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@space-margin-sm` | `@spacing-sm` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/spin/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@spin-tip-color` | `@color-primary` | - | - |
Expand Down
4 changes: 1 addition & 3 deletions packages/components/statistic/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@statistic-font-size-sm` | `@font-size-md` | - | - |
| `@statistic-font-size-md` | `@font-size-md` | - | - |
| `@statistic-font-size-lg` | `@font-size-xl` | - | - |
| `@statistic-font-size-xl` | `@font-size-2xl` | - | - |
| `@statistic-line-height` | `@line-height-base` | - | - |
| `@statistic-color` | `@color-black` | - | - |
| `@statistic-color` | `@color-black` | `@color-graphite-d40` | - |
| `@statistic-title-margin` | `@space-margin-lg` | - | - |
| `@statistic-prefix-margin` | `@spacing-xs` | - | - |
| `@statistic-suffix-margin` | `@spacing-xs` | - | - |
2 changes: 0 additions & 2 deletions packages/components/stepper/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@stepper-background` | `@background-color-component` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/switch/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@switch-font-size` | `@form-font-size-xs` | - | - |
Expand Down
4 changes: 2 additions & 2 deletions packages/components/table/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@table-font-size-sm` | `var(--ix-font-size-sm)` | - | - |
Expand All @@ -25,3 +23,5 @@
| `@table-body-row-background-color-hover` | `var(--ix-background-color-light)` | - | - |
| `@table-body-row-background-color-selected` | `var(--ix-color-primary-l50)` | - | - |
| `@table-expandable-icon-color` | `var(--ix-text-color-info)` | - | - |
| `@table-expandable-background-color` | `var(--ix-background-color-light)` | - | - |
| `@table-expandable-background-color-hover` | `var(--ix-background-color-deep)` | - | - |
2 changes: 0 additions & 2 deletions packages/components/tabs/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@tabs-selected-color` | `@color-primary` | - | - |
Expand Down
2 changes: 0 additions & 2 deletions packages/components/tag/docs/Theme.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 主题变量

| 名称 | default | seer | 备注 |
| --- | --- | --- | --- |
| `@tag-font-size` | `@font-size-md` | `@font-size-sm` | - |
Expand Down
Loading

0 comments on commit 9dd0189

Please sign in to comment.