Skip to content

Commit

Permalink
Style main layout
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits committed Jul 25, 2023
1 parent 44ce184 commit 43e59b4
Show file tree
Hide file tree
Showing 11 changed files with 98 additions and 427 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,6 @@ Regular Markdown images are supported.
You can use absolute paths to reference images in the static directory
(`static/img/docusaurus.png`):

```md
![Docusaurus logo](/img/docusaurus.png)
```

![Docusaurus logo](/img/docusaurus.png)

You can reference images relative to the current file as well. This is
particularly useful to colocate images close to the Markdown files using them:

```md
![Docusaurus logo](./img/docusaurus.png)
```

## Code Blocks

Markdown code blocks are supported with Syntax highlighting.
Expand Down
18 changes: 1 addition & 17 deletions @stellar/design-system-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ const config = {
title: "Design System",
logo: {
alt: "Stellar logo",
// TODO: replace logo
src: "img/logo.svg",
src: "img/stellar.svg",
},
items: [
{
Expand All @@ -75,21 +74,6 @@ const config = {
},
],
},
footer: {
style: "dark",
links: [
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/stellar/stellar-design-system",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Stellar Design System. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
Expand Down
102 changes: 87 additions & 15 deletions @stellar/design-system-website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,97 @@

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
/* --color-purple-60 */
--ifm-color-primary: #6e56cf;
/* --color-purple-70 */
--ifm-color-primary-dark: #5746af;
/* --color-purple-80 */
--ifm-color-primary-darker: #20134b;
/* --color-purple-80 */
--ifm-color-primary-darkest: #20134b;
/* --color-purple-50 */
--ifm-color-primary-light: #aa99ec;
/* --color-purple-50 */
--ifm-color-primary-lighter: #aa99ec;
/* --color-purple-40 */
--ifm-color-primary-lightest: #e4defc;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);

/* --color-gray-00 */
--ifm-background-color: #ffffff;
--ifm-navbar-background-color: #ffffff;
--ifm-footer-background-color: #ffffff;
/* --color-gray-30 */
--ifm-hr-background-color: #eeedef;
--ifm-toc-border-color: #eeedef;

--ifm-font-family-base: "Inter", sans-serif;
--ifm-font-family-monospace: "Roboto Mono", monospace;
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme="dark"] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
[data-theme="dark"]:root {
/* --color-purple-60 */
--ifm-color-primary: #7c66dc;
/* --color-purple-70 */
--ifm-color-primary-dark: #9e8cfc;
/* --color-purple-80 */
--ifm-color-primary-darker: #f1eefe;
/* --color-purple-80 */
--ifm-color-primary-darkest: #f1eefe;
/* --color-purple-50 */
--ifm-color-primary-light: #634cc9;
/* --color-purple-50 */
--ifm-color-primary-lighter: #634cc9;
/* --color-purple-40 */
--ifm-color-primary-lightest: #32275f;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);

/* --color-gray-00 */
--ifm-background-color: #000000;
--ifm-navbar-background-color: #000000;
--ifm-footer-background-color: #000000;
/* --color-gray-30 */
--ifm-hr-background-color: #28282c;
--ifm-toc-border-color: #28282c;
}

/* Header */
.navbar {
border-bottom: 1px solid var(--ifm-hr-background-color);
box-shadow: none;
}

.navbar__brand {
gap: 0.75rem;
}

.navbar__logo {
margin: 0;
height: 1.5rem;
}

.navbar__title {
font-family: Inter;
font-weight: 600;
font-size: 0.625rem;
line-height: 1rem;
text-transform: uppercase;
color: var(--ifm-color-primary);
border: 1px solid var(--ifm-color-primary);
padding: 0.125rem 0.25rem;
border-radius: 0.25rem;
}

[data-theme="dark"] .navbar__logo {
filter: invert(100%);
}

.navbar-sidebar__brand {
box-shadow: none;
}

.table-of-contents {
font-weight: 500;
}
Binary file not shown.
Binary file not shown.
Binary file modified @stellar/design-system-website/static/img/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion @stellar/design-system-website/static/img/logo.svg

This file was deleted.

10 changes: 10 additions & 0 deletions @stellar/design-system-website/static/img/stellar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 43e59b4

Please sign in to comment.