Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Aug 29, 2023
1 parent 4763a67 commit 190828d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
14 changes: 7 additions & 7 deletions examples/specimens/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ render(
<Alert type="warning">Gentle warning :)</Alert>
<Alert type="info">Super helpful information goes here</Alert>
<Alert type="danger">nooooooooo, not this way</Alert>
</React.Fragment>
</React.Fragment>,
);
```

Expand Down Expand Up @@ -200,7 +200,7 @@ render(
<ColorSwatch color="#2d3748" name="Blueish" />
<ColorSwatch color="#667eea" name="Swift" minimal />
<ColorSwatch color="#4fd1c5" name="4" prefix="Teal - " />
</React.Fragment>
</React.Fragment>,
);
```

Expand Down Expand Up @@ -392,7 +392,7 @@ render(
allowed: [`h1`, `h2`],
})}
config={theme}
/>
/>,
);
```

Expand Down Expand Up @@ -440,7 +440,7 @@ render(
/>
<h4>Orange</h4>
<Palette colors={orange} />
</React.Fragment>
</React.Fragment>,
);
```

Expand Down Expand Up @@ -481,7 +481,7 @@ render(
colors={normalizeThemeUIColors({ colors: theme.colors })}
minimal
mode="swatch"
/>
/>,
);
```

Expand All @@ -497,7 +497,7 @@ This theme also exposes a `Table` component. It is used in this case to showcase

The `columns` prop is defining the `grid-template-columns` of the table in the fashion of Theme UI ([Responsive Styles](https://theme-ui.com/getting-started#responsive-styles)). The `titles` should be the same count as columns.

So you can define the style for every breakpoint, e.g. `` [`120px 1fr`, `150px 1fr`] `` (120px for everything below the smallest breakpoint, 150px for everything above smallest breakpoint).
So you can define the style for every breakpoint, e.g. ``[`120px 1fr`, `150px 1fr`]`` (120px for everything below the smallest breakpoint, 150px for everything above smallest breakpoint).

You can format the data you want to show how you like but in the end you should have the amount of columns as defined above.

Expand Down Expand Up @@ -530,7 +530,7 @@ render(
<div>{value}</div>
</div>
))}
</Table>
</Table>,
);
```

Expand Down
24 changes: 12 additions & 12 deletions themes/gatsby-theme-emilia-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ npm install @lekoarts/gatsby-theme-emilia-core

### Theme options

| Key | Default Value | Description |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `basePath` | `/` | Root url for the theme |
| `projectsPath` | `content/projects` | Location of projects |
| `assetsPath` | `content/assets` | Location of assets (such as the avatar in the header) |
| `mdx` | `true` | Configure `gatsby-plugin-mdx` (if your website already is using the plugin pass `false` to turn this off) |
| `sharp` | `true` | Configure `gatsby-plugin-sharp` (if your website already is using the plugin pass `false` to turn this off) |
| `name` | `LekoArts` | The name displayed as the title on the homepage, and the link to the homepage (top left corner) |
| `location` | `Germany` | Shown below the title |
| `socialMedia` | `` [{ title: `Twitter`, href: `https://twitter.com/lekoarts_de` }, { title: `Homepage`, href: `https://www.lekoarts.de` }] `` | An array of objects (with the keys "title" and "href" display on the homepage. Can of course hold any kind of links (not limited to social media) |
| `showThemeAuthor` | `true` | Show the "Theme by LekoArts" in the footer |
| `formatString` | `DD.MM.YYYY` | Configure the date format for Date fields |
| Key | Default Value | Description |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `basePath` | `/` | Root url for the theme |
| `projectsPath` | `content/projects` | Location of projects |
| `assetsPath` | `content/assets` | Location of assets (such as the avatar in the header) |
| `mdx` | `true` | Configure `gatsby-plugin-mdx` (if your website already is using the plugin pass `false` to turn this off) |
| `sharp` | `true` | Configure `gatsby-plugin-sharp` (if your website already is using the plugin pass `false` to turn this off) |
| `name` | `LekoArts` | The name displayed as the title on the homepage, and the link to the homepage (top left corner) |
| `location` | `Germany` | Shown below the title |
| `socialMedia` | ``[{ title: `Twitter`, href: `https://twitter.com/lekoarts_de` }, { title: `Homepage`, href: `https://www.lekoarts.de` }]`` | An array of objects (with the keys "title" and "href" display on the homepage. Can of course hold any kind of links (not limited to social media) |
| `showThemeAuthor` | `true` | Show the "Theme by LekoArts" in the footer |
| `formatString` | `DD.MM.YYYY` | Configure the date format for Date fields |

### Shadowing

Expand Down
24 changes: 12 additions & 12 deletions themes/gatsby-theme-emilia/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ npx gatsby new gatsby-starter-portfolio-emilia https://github.com/LekoArts/gatsb

### Theme options

| Key | Default Value | Description |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `basePath` | `/` | Root url for the theme |
| `projectsPath` | `content/projects` | Location of projects |
| `assetsPath` | `content/assets` | Location of assets (such as the avatar in the header) |
| `mdx` | `true` | Configure `gatsby-plugin-mdx` (if your website already is using the plugin pass `false` to turn this off) |
| `sharp` | `true` | Configure `gatsby-plugin-sharp` (if your website already is using the plugin pass `false` to turn this off) |
| `name` | `LekoArts` | The name displayed as the title on the homepage, and the link to the homepage (top left corner) |
| `location` | `Germany` | Shown below the title |
| `socialMedia` | `` [{ title: `Twitter`, href: `https://twitter.com/lekoarts_de` }, { title: `Homepage`, href: `https://www.lekoarts.de` }] `` | An array of objects (with the keys "title" and "href" display on the homepage. Can of course hold any kind of links (not limited to social media) |
| `showThemeAuthor` | `true` | Show the "Theme by LekoArts" in the footer |
| `formatString` | `DD.MM.YYYY` | Configure the date format for Date fields |
| Key | Default Value | Description |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `basePath` | `/` | Root url for the theme |
| `projectsPath` | `content/projects` | Location of projects |
| `assetsPath` | `content/assets` | Location of assets (such as the avatar in the header) |
| `mdx` | `true` | Configure `gatsby-plugin-mdx` (if your website already is using the plugin pass `false` to turn this off) |
| `sharp` | `true` | Configure `gatsby-plugin-sharp` (if your website already is using the plugin pass `false` to turn this off) |
| `name` | `LekoArts` | The name displayed as the title on the homepage, and the link to the homepage (top left corner) |
| `location` | `Germany` | Shown below the title |
| `socialMedia` | ``[{ title: `Twitter`, href: `https://twitter.com/lekoarts_de` }, { title: `Homepage`, href: `https://www.lekoarts.de` }]`` | An array of objects (with the keys "title" and "href" display on the homepage. Can of course hold any kind of links (not limited to social media) |
| `showThemeAuthor` | `true` | Show the "Theme by LekoArts" in the footer |
| `formatString` | `DD.MM.YYYY` | Configure the date format for Date fields |

#### Example usage

Expand Down

0 comments on commit 190828d

Please sign in to comment.