Skip to content

Commit b29c7d8

Browse files
authored
Merge pull request #38 from xyc/wip-theme-text-transform
Add HTML_TAGNAME_TEXT_TRANSFORM to theme property
2 parents 7c49250 + 9ee21b3 commit b29c7d8

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/styles/base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default theme => ({
88
},
99
tagName: {
1010
color: theme.HTML_TAGNAME_COLOR,
11-
textTransform: 'lowercase',
11+
textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM,
1212
},
1313
htmlAttributeName: {
1414
color: theme.HTML_ATTRIBUTE_NAME_COLOR,
@@ -27,7 +27,7 @@ export default theme => ({
2727
},
2828
tagName: {
2929
color: theme.HTML_TAGNAME_COLOR,
30-
textTransform: 'lowercase',
30+
textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM,
3131
},
3232
},
3333
htmlComment: {

src/styles/themes/chromeDark.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const theme = {
1818

1919
HTML_TAG_COLOR: 'rgb(93, 176, 215)',
2020
HTML_TAGNAME_COLOR: 'rgb(93, 176, 215)',
21+
HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase',
2122
HTML_ATTRIBUTE_NAME_COLOR: 'rgb(155, 187, 220)',
2223
HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(242, 151, 102)',
2324
HTML_COMMENT_COLOR: 'rgb(137, 137, 137)',

src/styles/themes/chromeLight.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const theme = {
1818

1919
HTML_TAG_COLOR: 'rgb(168, 148, 166)',
2020
HTML_TAGNAME_COLOR: 'rgb(136, 18, 128)',
21+
HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase',
2122
HTML_ATTRIBUTE_NAME_COLOR: 'rgb(153, 69, 0)',
2223
HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(26, 26, 166)',
2324
HTML_COMMENT_COLOR: 'rgb(35, 110, 37)',

0 commit comments

Comments
 (0)