styling update
- more consistent tag design - moved some colors to theming.ts
This commit is contained in:
parent
7baef539fd
commit
0188d09a9a
3 changed files with 14 additions and 6 deletions
|
@ -40,8 +40,8 @@ const StyledTitle = styled.h1`
|
||||||
const StyledMetaContainer = styled.small`
|
const StyledMetaContainer = styled.small`
|
||||||
color: ${(props) =>
|
color: ${(props) =>
|
||||||
theming.theme(props.theme.currentTheme, {
|
theming.theme(props.theme.currentTheme, {
|
||||||
light: "#555",
|
light: theming.light.color2,
|
||||||
dark: "#CCC",
|
dark: theming.dark.color2,
|
||||||
})};
|
})};
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,14 @@ import theming from "../styles/theming"
|
||||||
const StyledTag = styled.div`
|
const StyledTag = styled.div`
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
padding: 0 0.8rem 0.1rem 0.8rem;
|
margin-right: 0.8rem;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|
||||||
background-color: ${theming.color.linkColor};
|
color: ${(props) =>
|
||||||
color: white;
|
theming.theme(props.theme.currentTheme, {
|
||||||
|
light: theming.light.color2,
|
||||||
|
dark: theming.dark.color2,
|
||||||
|
})};
|
||||||
`
|
`
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
@ -13,7 +13,7 @@ function theme(
|
||||||
return values[currentTheme]
|
return values[currentTheme]
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
const theming = {
|
||||||
theme: theme,
|
theme: theme,
|
||||||
font: {
|
font: {
|
||||||
regular: "'Noto Sans KR', sans-serif",
|
regular: "'Noto Sans KR', sans-serif",
|
||||||
|
@ -38,6 +38,7 @@ export default {
|
||||||
backgroundColor2: "#2F3136",
|
backgroundColor2: "#2F3136",
|
||||||
color0: "#FFFFFF",
|
color0: "#FFFFFF",
|
||||||
color1: "#EEEEEE",
|
color1: "#EEEEEE",
|
||||||
|
color2: "#CCC",
|
||||||
},
|
},
|
||||||
light: {
|
light: {
|
||||||
backgroundColor0: "#FFFFFF",
|
backgroundColor0: "#FFFFFF",
|
||||||
|
@ -45,6 +46,7 @@ export default {
|
||||||
backgroundColor2: "#DDDDDD",
|
backgroundColor2: "#DDDDDD",
|
||||||
color0: "#000000",
|
color0: "#000000",
|
||||||
color1: "#111111",
|
color1: "#111111",
|
||||||
|
color2: "#555",
|
||||||
},
|
},
|
||||||
styles: {
|
styles: {
|
||||||
hoverCard: css`
|
hoverCard: css`
|
||||||
|
@ -76,6 +78,7 @@ export default {
|
||||||
light: "white",
|
light: "white",
|
||||||
dark: "#202225",
|
dark: "#202225",
|
||||||
})};
|
})};
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: ${(props) =>
|
background-color: ${(props) =>
|
||||||
theme(props.theme.currentTheme, {
|
theme(props.theme.currentTheme, {
|
||||||
|
@ -86,3 +89,5 @@ export default {
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default theming
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue