0

Fix some styling

This commit is contained in:
Gabe Kangas 2022-05-12 21:27:21 -07:00
parent 67cec2dcbb
commit de4ed9bb62
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
3 changed files with 23 additions and 9 deletions

View File

@ -18,23 +18,33 @@ export function Color(props) {
};
const colorBlockStyle = {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
textShadow: '0 0 15px black',
height: '70%',
width: '100%',
backgroundColor: resolvedColor,
};
const colorTextStyle = {
color: 'white',
alignText: 'center',
};
const colorDescriptionStyle = {
margin: '5px',
color: 'gray',
fontSize: '0.8em',
fontSize: '0.9vw',
textAlign: 'center' as 'center',
};
return (
<figure style={containerStyle}>
<div style={colorBlockStyle} />
<figcaption>
<span style={colorDescriptionStyle}>{color}</span>
</figcaption>
<div style={colorBlockStyle}>
<div style={colorTextStyle}>{resolvedColor}</div>
</div>
<figcaption style={colorDescriptionStyle}>{color}</figcaption>
</figure>
);
}
@ -47,7 +57,6 @@ const rowStyle = {
display: 'flex',
flexDirection: 'row' as 'row',
flexWrap: 'wrap' as 'wrap',
// justifyContent: 'space-around',
alignItems: 'center',
};

View File

@ -19,6 +19,9 @@ export const images = [
# Images
## TODO: Determine the icon style/images for v2 of the web UI.
<ImageRow images={images} />
## App Icons

View File

@ -6,6 +6,8 @@ import { Canvas, Meta, Story } from '@storybook/addon-docs';
[Inter font](https://rsms.me/inter/)
<Canvas style={{ color: 'var(--theme-text-color-secondary)' }}>
{getComputedStyle(document.documentElement).getPropertyValue('--theme-font-family')}
</Canvas>
## TODO: List out the different text styles.
<Canvas style={{ color: 'var(--theme-text-color-secondary)' }}>
{getComputedStyle(document.documentElement).getPropertyValue('--theme-font-family')}
</Canvas>