Skip to content

Commit

Permalink
feat(gatsby-admin): remove all custom color treatment (#25597)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Jul 9, 2020
1 parent 9c58ee1 commit 61b4291
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 28 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-admin/src/components/navbar.tsx
Expand Up @@ -20,7 +20,7 @@ const Navbar: React.FC<{}> = () => {
justifyContent="space-between"
alignItems="center"
sx={{
backgroundColor: `grey.90`,
backgroundColor: `gatsby`,
borderBottom: `default`,
paddingX: 6,
paddingY: 5,
Expand All @@ -33,7 +33,7 @@ const Navbar: React.FC<{}> = () => {
sx={{
width: `1px`,
height: `16px`,
backgroundColor: `grey.40`,
backgroundColor: `whiteFade.50`,
}}
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-admin/src/components/providers.tsx
Expand Up @@ -10,7 +10,7 @@ const theme = {
...baseTheme,
colors: {
...baseTheme.colors,
background: baseTheme.colors.grey[90],
background: baseTheme.colors.primaryBackground,
},
fontWeights: {
...baseTheme.fontWeights,
Expand Down
31 changes: 6 additions & 25 deletions packages/gatsby-admin/src/pages/index.tsx
Expand Up @@ -10,6 +10,7 @@ import {
InputField,
InputFieldControl,
ButtonProps,
InputFieldLabel,
} from "gatsby-interface"

const SecondaryButton: React.FC<ButtonProps> = props => (
Expand All @@ -19,12 +20,6 @@ const SecondaryButton: React.FC<ButtonProps> = props => (
sx={{
paddingX: 6,
paddingY: 4,
color: `whiteFade.80`,
border: `sixtywhite`,
"&:hover": {
color: `white`,
border: `white`,
},
}}
{...props}
></Button>
Expand Down Expand Up @@ -65,25 +60,15 @@ const InstallInput: React.FC<{ for: string }> = props => {
>
<InputField id={inputId}>
<Flex gap={2} flexDirection="column">
<Text size="S" sx={{ color: `grey.40` }}>
<label htmlFor={inputId}>Install {props.for}:</label>
</Text>
<InputFieldLabel>Install {props.for}:</InputFieldLabel>
<Flex gap={4} alignItems="center">
<InputFieldControl
placeholder={`gatsby-${props.for}-`}
disabled={fetching}
value={value}
onChange={(e): void => setValue(e.target.value)}
sx={{
backgroundColor: `background`,
borderColor: `grey.60`,
color: `white`,
width: `initial`,
"&:focus": {
borderColor: `grey.40`,
// TODO(@mxstbr): Fix this focus outline
boxShadow: `none`,
},
}}
/>
<SecondaryButton
Expand Down Expand Up @@ -136,11 +121,7 @@ const DestroyButton: React.FC<{ name: string }> = ({ name }) => {
}

const SectionHeading: React.FC<HeadingProps> = props => (
<Heading
as="h1"
sx={{ color: `white`, fontWeight: `500`, fontSize: 5 }}
{...props}
/>
<Heading as="h1" sx={{ fontWeight: `500`, fontSize: 5 }} {...props} />
)

const PluginCard: React.FC<{
Expand All @@ -149,12 +130,12 @@ const PluginCard: React.FC<{
<Flex
flexDirection="column"
gap={6}
sx={{ backgroundColor: `grey.80`, padding: 5, borderRadius: 2 }}
sx={{ backgroundColor: `ui.background`, padding: 5, borderRadius: 2 }}
>
<Heading as="h2" sx={{ color: `white`, fontWeight: `500`, fontSize: 3 }}>
<Heading as="h2" sx={{ fontWeight: `500`, fontSize: 3 }}>
{plugin.name}
</Heading>
<Text sx={{ color: `grey.40` }}>
<Text sx={{ color: `text.secondary` }}>
{plugin.description || <em>No description.</em>}
</Text>
<Flex justifyContent="flex-end" sx={{ width: `100%` }}>
Expand Down

0 comments on commit 61b4291

Please sign in to comment.