3.3.55 • Published 5 years ago

@beisen-phoenix/style-token v3.3.55

Weekly downloads
54
License
ISC
Repository
-
Last release
5 years ago

组件说明

此组件为pc端基础样式组件,定义了符合平台设计样式变量,并且为换肤奠定了可实现的基础.

此组件是你开发其他组件所必须依赖的包

变量说明

该组件封装了平台预定义的pc端基本样式变量以及mixin

$S1 ~ $S6 定义了平台预定义的背景色,对应设计稿的S1~S4

$M1 ~ $M10 定义了平台预定义的字体色,对应设计稿的M1~M10

$Sp1 ~ $Sp11 预定义了 几种间距,对应设计稿的Sp-1 ~ Sp-11

$Ra1 ~ $Ra5 预定义了五种圆角,对应了设计稿的Ra-1 ~ Ra-5

$blue $green $yellow $red 预定义了四中功能色(一般用于页面的tip),对应了设计稿的 F-blue F-green F-yellow F-red

$D1 ~ $D11 以及 $D1n1 ~ $D11n1 预定义了辅助色,分别对应了设计稿的D1 ~ D11 以及 D1-1 ~ D11-1

$Fs1 ~ $Fs8 预定义了8种字体样式(包括了字号以及行高),对应了设计稿的Fs-1 ~ Fs-8

$Sh1 ~ $Sh5 预定义了5种阴影效果,对应了设计稿的Sh-1 ~ Sh-5

className说明(通过使用预定义的类名,组件将支持换肤特性)

如果组件的某个DOM元素支持更换背景色,那么你可以给该元素设置预定义的className(skinBgS1 ~ skinBgS4)

如果组件的某个DOM元素支持更换字体颜色,那么你可以给该元素设置预定义的className(skinFntM1 ~ skinFntM10)

skinBgS1 ~ skinBgS6 预定义了六种背景色

skinFntM1 ~ skinFntM10 预定义了十种字体颜色

如何使用

在package.json中奖该组件作为依赖引入

    "@beisen-phoenix/style-token": "0.0.1"

在react组件中,如果某个组件有换肤的特性需求,需要使用预定义的class

import * as skin from '@beisen-phoenix/mobile-style-token';
export default class A extends Component {
    render() {
        return (
            <div className={skin.skinBgS1 skin.skinFntM1} >
                <h1>Hello World</h1>
            </div>
        );
    }
}

关于reset样式

平台移动端会在承载页首先加载reset.css,所以在开发组件的时候,不必担心浏览器默认样式的问题,如果你在开发组件的过程中,需要运行example,并且需要屏蔽掉默认样式,你可以将reset.css引入到你的example中。

另外该组件还提供了默认的背景色和字体色,你可以在example中引入该样式文件(default.css)来查看效果

import '@beisen-phoenix/mobile-style-token/css/reset.css';
import '@beisen-phoenix/mobile-style-token/css/default.css';

结合 Styled-components 完成样式的定义

参照示例
status-tag@infinitebrahmanuniverse/nolb-_beisen-@everything-registry/sub-chunk-118ux-new-social-archivesux-new-social-securityux-pc-feedbackux-personal-info-cardux-historical-social-securityux-increase-personnelux-checkbox-zhangjunqiuux-chatrobot-indexviewux-details-editorux-recruit-treeux-staff-adjustmentux-tl-templateux-user-selector2ux-treeselect-zhangyuruiux-tag-cloudux-task-drawerux-stop-paymentux-work-reportux-work-report-drawerux-work-report-settingux-work-report-statistics-draweritalent-subordinate-treeitalent-create-tasklelel2-demo-buttongroup-single-selectmulti-select-listlv2-demo-buttonpop-searchradio-group-with-buttonsingle-select-list@beisen-cmps/italent-at-others@beisen-cmps/italent-create-summary@beisen-cmps/task-drawer@beisen-phoenix/department@beisen-phoenix/drawer@beisen-phoenix/empty@beisen-phoenix/container@beisen-phoenix/data-table@beisen-phoenix/date-picker@beisen-phoenix/composite-input@beisen-phoenix/form@beisen-phoenix/grid@beisen-phoenix/group-single-select@beisen-phoenix/img-preview@beisen-phoenix/field-upload@beisen-phoenix/file-list@beisen-phoenix/file-preview@beisen-phoenix/input@beisen-phoenix/input-number@beisen-phoenix/input-range@beisen-phoenix/loading@beisen-phoenix/message@beisen-phoenix/modal@beisen-phoenix/mobile-container@beisen-phoenix/popover@beisen-phoenix/popup@beisen-phoenix/progress@beisen-phoenix/radio@beisen-phoenix/radio-group@beisen-phoenix/rate@beisen-phoenix/rc-tree@beisen-phoenix/react-table@beisen-phoenix/result-page@beisen-phoenix/search-form@beisen-phoenix/select@beisen-phoenix/select-list@beisen-phoenix/single-select-list@beisen-phoenix/steps@beisen-phoenix/switch@beisen-phoenix/tooltip@beisen-phoenix/unmodeled-layer@beisen-phoenix/upload-block@beisen-phoenix/upload-button@beisen-phoenix/upload-button-block@beisen-phoenix/tag@beisen-phoenix/textarea@beisen-phoenix/time-picker@beisen-phoenix/timeline@beisen-phoenix/multi-select-list@beisen-phoenix/pagination@beisen-phoenix/percent@beisen-phoenix/person-selector@beisen-phoenix/pop-search@beisen-phoenix/popconfirm@beisen-phoenix/user-selector@beisen-platform/index-page@beisen-platform/jobtype-selector@beisen-phoenix/table@beisen-phoenix/table-v2@beisen/fast-table@beisen/flex-layout@beisen/drawer@beisen/enhance-modal@beisen-cmps/cooperation@beisen-phoenix/alert@beisen-phoenix/all-in-one@beisen-phoenix/anchor
3.3.55

5 years ago

3.3.53

5 years ago

3.3.54

5 years ago

3.3.51

5 years ago

3.3.52

5 years ago

3.3.50

5 years ago

3.3.48

5 years ago

3.3.49

5 years ago

3.3.46

5 years ago

3.3.47

5 years ago

3.3.41-beta.1

5 years ago

3.3.41

5 years ago

3.3.42

5 years ago

3.3.43

5 years ago

3.3.45

5 years ago

3.3.39

5 years ago

3.3.38

5 years ago

3.3.37

5 years ago

3.3.36

5 years ago

3.3.35

5 years ago

3.3.34

5 years ago

3.3.33

5 years ago

3.3.32

5 years ago

3.3.31

5 years ago

3.3.29

5 years ago

3.3.28

5 years ago

3.3.27

5 years ago

3.3.26

5 years ago

3.3.25

5 years ago

3.3.24

5 years ago

3.3.23

5 years ago

3.3.22

5 years ago

3.3.21

5 years ago

3.3.20

5 years ago

3.3.19

5 years ago

3.3.18

5 years ago

3.3.17

5 years ago

3.3.16

5 years ago

3.3.15

5 years ago

3.3.14

5 years ago

3.3.13

5 years ago

3.3.12

5 years ago

3.3.11

5 years ago

3.3.10

5 years ago

3.3.9

5 years ago

3.3.8

5 years ago

3.3.7

5 years ago

3.3.6

5 years ago

3.3.5

5 years ago

3.2.80-beta.1

5 years ago

3.2.80

5 years ago

3.3.4

5 years ago

3.3.3

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.97

5 years ago

3.2.95

5 years ago

3.2.94

5 years ago

3.2.93

5 years ago

3.2.92

5 years ago

3.2.90

5 years ago

3.2.88

5 years ago

3.2.87

5 years ago

3.2.86

5 years ago

3.2.85

5 years ago

3.2.84

5 years ago

3.2.83

5 years ago

3.2.82

5 years ago

3.2.81

5 years ago

3.2.79

5 years ago

3.2.78

5 years ago

3.2.76

5 years ago

3.2.7-rc.1

5 years ago

3.2.74

5 years ago

3.2.73

5 years ago

3.2.69-beta.1

5 years ago

3.2.72

5 years ago

3.2.69

5 years ago

3.2.68

5 years ago

3.2.64-beta.1

5 years ago

3.2.63

5 years ago

3.2.61

5 years ago

3.2.60

5 years ago

3.2.59

5 years ago

3.2.54

5 years ago

3.2.47-beta.8

5 years ago

3.2.47-beta.7

5 years ago

3.2.53

5 years ago

3.2.52

5 years ago

3.2.51

5 years ago

3.2.47-beta.6

5 years ago

3.2.47-beta.5

5 years ago

3.2.50

5 years ago

3.2.49

5 years ago

3.2.47-beta.4

5 years ago

3.2.47-beta.3

5 years ago

3.2.47-alpha.3

5 years ago

3.2.47-beta.2

5 years ago

3.2.47-alpha.2

5 years ago

3.2.48

5 years ago

3.2.47-beta.1

5 years ago

3.2.45-alpha.1

5 years ago

3.2.47

5 years ago

3.2.46

5 years ago

3.2.45-beta.1

5 years ago

3.2.45-beta.0

5 years ago

3.2.45

5 years ago

3.2.44-rc.4

5 years ago

3.2.44-rc.3

5 years ago

3.2.44-rc.2

5 years ago

3.2.44-rc.1

5 years ago

3.2.44

5 years ago

3.2.43

5 years ago

3.2.42

5 years ago

3.2.41

5 years ago

3.2.40

5 years ago

3.2.39

5 years ago

3.2.37

5 years ago

3.2.35

5 years ago

3.2.34

5 years ago

3.2.33

5 years ago

3.2.32

5 years ago

3.2.31

5 years ago

3.2.30

5 years ago

3.2.29

5 years ago

3.2.28

5 years ago

3.2.27

5 years ago

3.2.26

5 years ago

3.2.25

5 years ago

3.2.24

5 years ago

3.2.23

5 years ago

3.2.22

5 years ago

3.2.21

5 years ago

3.2.20

5 years ago

3.2.19

5 years ago

3.2.18

5 years ago

3.2.17

5 years ago

3.2.16

5 years ago

3.2.15

5 years ago

3.2.14

5 years ago

3.2.12

5 years ago

3.2.10

5 years ago

3.2.9

5 years ago

3.2.8

5 years ago

3.2.7

5 years ago

3.2.6

5 years ago

3.2.5

5 years ago

3.2.4

5 years ago

3.2.3

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.99

5 years ago

3.1.98

5 years ago

3.1.97

5 years ago

3.1.96

5 years ago

3.1.95

5 years ago

3.1.94

5 years ago

3.1.92

5 years ago

3.1.91

5 years ago

3.1.90

5 years ago

3.1.89

5 years ago

3.1.88

5 years ago

3.1.87

5 years ago

3.1.86

5 years ago

3.1.85

5 years ago

3.1.84

5 years ago

3.1.83

5 years ago

3.1.82

5 years ago

3.1.81

5 years ago

3.1.80

5 years ago

3.1.79

5 years ago

3.1.78

5 years ago

3.1.77

5 years ago

3.1.76

5 years ago

3.1.75

5 years ago

3.1.74

5 years ago

3.1.73

5 years ago

3.1.72

5 years ago

3.1.71

5 years ago

3.1.70

5 years ago

3.1.69

5 years ago

3.1.68

5 years ago

3.1.67

5 years ago

3.1.65

5 years ago

3.1.64

5 years ago

3.1.63

5 years ago

3.1.62

5 years ago

3.1.61

5 years ago

3.1.60

5 years ago

3.1.59

5 years ago

3.1.58

5 years ago

3.1.57

5 years ago

3.1.56

5 years ago

3.1.39

5 years ago

3.1.38

5 years ago

3.1.37

5 years ago

3.1.11

5 years ago

3.1.10

5 years ago

3.1.9

5 years ago

3.1.7

5 years ago

3.1.6

5 years ago

3.1.5

5 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.0.57

5 years ago

3.0.56

5 years ago

3.0.55

5 years ago

3.0.54

5 years ago

3.0.53

5 years ago

3.0.52

5 years ago

3.0.51

5 years ago

3.0.49

5 years ago

3.0.47

5 years ago

3.0.46

5 years ago

3.0.45

5 years ago

3.0.44

5 years ago

3.0.43

5 years ago

3.0.42

5 years ago

3.0.41

5 years ago

3.0.40

5 years ago

3.0.39

5 years ago

3.0.38

5 years ago

3.0.37

5 years ago

3.0.35

5 years ago

3.0.34

5 years ago

3.0.33

5 years ago

3.0.30

5 years ago

3.0.29

5 years ago

3.0.27

5 years ago

3.0.26-rc.1

5 years ago

3.0.26

5 years ago

3.0.25

5 years ago

3.0.24

5 years ago

3.0.23

5 years ago

3.0.22

5 years ago

3.0.20

5 years ago

3.0.19

5 years ago

3.0.18

5 years ago

3.0.17

5 years ago

3.0.16

5 years ago

3.0.3

5 years ago

3.0.1-rc.83

5 years ago

3.0.1-rc.82

5 years ago

3.0.1-rc.81

5 years ago

3.0.1-rc.80

5 years ago

3.0.1-rc.79

5 years ago

3.0.1-rc.78

5 years ago

3.0.1-rc.77

5 years ago

3.0.1-rc.75

5 years ago

3.0.1-rc.74

5 years ago

3.0.1-rc.73

5 years ago

3.0.1-rc.72

5 years ago

3.0.1-rc.71

5 years ago

3.0.1-rc.70

5 years ago

3.0.1-rc.69

5 years ago

3.0.1-rc.68

5 years ago

3.0.1-rc.67

5 years ago

3.0.1-rc.65

5 years ago

3.0.1-rc.64

5 years ago

3.0.1-rc.63

5 years ago

3.0.1-rc.62

5 years ago

3.0.1-rc.61

5 years ago

3.0.1-rc.59

5 years ago

3.0.1-rc.58

5 years ago

3.0.1-rc.56

5 years ago

3.0.1-rc.54

5 years ago

3.0.1-rc.52

5 years ago

3.0.1-rc.47

5 years ago

3.0.1-rc.44

5 years ago

3.0.1-rc.42

5 years ago

3.0.1-rc.41

5 years ago

3.0.1-rc.40

5 years ago

3.0.1-rc.39

5 years ago

3.0.1-rc.38

5 years ago

3.0.1-rc.37

5 years ago

3.0.1-rc.36

5 years ago

3.0.1-rc.34

5 years ago

3.0.1-rc.32

5 years ago

3.0.1-rc.31

5 years ago

3.0.1-rc.30

5 years ago

3.0.1-rc.28

5 years ago

3.0.1-rc.25

5 years ago

3.0.1-rc.24

5 years ago

3.0.1-rc.22

5 years ago

3.0.1-rc.21

5 years ago

3.0.1-rc.19

5 years ago

3.0.1-rc.18

5 years ago

3.0.1-rc.16

5 years ago

3.0.1-rc.15

5 years ago

3.0.1-rc.12

5 years ago

3.0.1-rc.11

5 years ago

3.0.1-rc.10

5 years ago

3.0.1-rc.9

5 years ago

3.0.1-rc.7

5 years ago

3.0.1-rc.6

5 years ago

3.0.1-rc.5

5 years ago

3.0.1-rc.4

5 years ago

3.0.0-rc.86

5 years ago

3.0.0-rc.85

5 years ago

3.0.0-rc.84

5 years ago

3.0.0-rc.81

5 years ago

3.0.0-rc.78

5 years ago

3.0.0-rc.77

5 years ago

3.0.0-rc.76

5 years ago

3.0.0-rc.71

5 years ago

3.0.0-rc.70

5 years ago

3.0.0-rc.69

5 years ago

3.0.0-rc.68

5 years ago

3.0.0-rc.67

5 years ago

3.0.0-rc.65

5 years ago

3.0.0-rc.64

5 years ago

3.0.0-rc.62

5 years ago

3.0.0-rc.61

5 years ago

3.0.0-rc.59

5 years ago

3.0.0-rc.54

5 years ago

3.0.0-rc.47

5 years ago

3.0.0-rc.43

5 years ago

3.0.0-rc.42

5 years ago

3.0.0-rc.41

5 years ago

3.0.0-rc.25

5 years ago

1.0.39

5 years ago

1.0.38

6 years ago

1.0.37

6 years ago

1.0.36

6 years ago

1.0.35

6 years ago

1.0.34

6 years ago

1.0.33

6 years ago

1.0.31-rc.1

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago