-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Button - use css variable to control UI style
- Loading branch information
1 parent
3ff3c3c
commit 2e81ae4
Showing
23 changed files
with
178 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.title-1 { | ||
font-size: var(--bui-title-size-1); | ||
} | ||
|
||
.title-2 { | ||
font-size: var(--bui-title-size-2); | ||
} | ||
|
||
.title-3 { | ||
font-size: var(--bui-title-size-3); | ||
} | ||
|
||
.title-4 { | ||
font-size: var(--bui-title-size-4); | ||
} | ||
|
||
.text-1 { | ||
font-size: var(--bui-text-size-1); | ||
} | ||
|
||
.text-2 { | ||
font-size: var(--bui-text-size-2); | ||
} | ||
|
||
.text-3 { | ||
font-size: var(--bui-text-size-3); | ||
} | ||
|
||
.text-4 { | ||
font-size: var(--bui-text-size-4); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as React from 'react'; | ||
import './Typography.less'; | ||
|
||
export const Typography = () => { | ||
return ( | ||
<> | ||
<h2>文本</h2> | ||
<h3>标题</h3> | ||
<div className="title-1">BUI Title 1</div> | ||
<div className="title-2">BUI Title 2</div> | ||
<div className="title-3">BUI Title 3</div> | ||
<div className="title-4">BUI Title 4</div> | ||
|
||
<h3>正文</h3> | ||
<div className="text-1">BUI Content 1</div> | ||
<div className="text-2">BUI Content 2</div> | ||
<div className="text-3">BUI Content 3</div> | ||
<div className="text-4">BUI Content 4</div> | ||
</> | ||
); | ||
}; |
3 changes: 2 additions & 1 deletion
3
docs/components/theme-editor/constants.ts → docs/components/theme-designer/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.bui-theme-editor { | ||
background: var(--bui-color-bg-default); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.