Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions brand/brand-simple-dark-mode/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.quarto/
_site/
70 changes: 70 additions & 0 deletions brand/brand-simple-dark-mode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# brand-simple-dark-mode


<https://examples.quarto.pub/brand-simple-dark-mode/>

This is a simple example of using
[**brand.yml**](https://posit-dev.github.io/brand-yml/) across a range
of Quarto supported formats with both a `light` and `dark` brand.

The project is a website with a homepage, `index.qmd`, that is rendered
to multiple formats: `html`, `revealjs`, and `typst`, and a dashboard,
`dashboard.qmd`.

Light and dark brand files are specified in `_quarto.yml`:

``` yaml
brand:
light: _brand.yml
dark: _brand-dark.yml
```

Where the `light` brand information is stored in `_brand.yml`:

``` yaml
color:
palette:
dark-grey: "#222222"
blue: "#ddeaf1"
background: blue
foreground: dark-grey
primary: black

logo:
medium: logo.png

typography:
fonts:
- family: Jura
source: google
base: Jura
headings: Jura
```

And the `dark` brand information is stored in `_brand-dark.yml`:

``` yaml
color:
palette:
dark-grey: "#222222"
blue: "#ddeaf1"
background: dark-grey
foreground: blue
primary: white

logo:
medium: logo.png

typography:
fonts:
- family: Jura
source: google
base: Jura
headings: Jura
```

To preview locally, run:

``` bash
quarto preview
```
36 changes: 36 additions & 0 deletions brand/brand-simple-dark-mode/README.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: brand-simple-dark-mode
format: gfm
---

<https://examples.quarto.pub/brand-simple-dark-mode/>

This is a simple example of using [**brand.yml**](https://posit-dev.github.io/brand-yml/) across a range of Quarto supported formats with both a `light` and `dark` brand.

The project is a website with a homepage, `index.qmd`, that is rendered to multiple formats: `html`, `revealjs`, and `typst`, and a dashboard, `dashboard.qmd`.

Light and dark brand files are specified in `_quarto.yml`:

```{.yaml}
brand:
light: _brand.yml
dark: _brand-dark.yml
```

Where the `light` brand information is stored in `_brand.yml`:

```{.yaml}
{{< include _brand.yml >}}
```

And the `dark` brand information is stored in `_brand-dark.yml`:

```{.yaml}
{{< include _brand-dark.yml >}}
```

To preview locally, run:

```bash
quarto preview
```
17 changes: 17 additions & 0 deletions brand/brand-simple-dark-mode/_brand-dark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
color:
palette:
dark-grey: "#222222"
blue: "#ddeaf1"
background: dark-grey
foreground: blue
primary: white

logo:
medium: logo.png

typography:
fonts:
- family: Jura
source: google
base: Jura
headings: Jura
17 changes: 17 additions & 0 deletions brand/brand-simple-dark-mode/_brand.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
color:
palette:
dark-grey: "#222222"
blue: "#ddeaf1"
background: blue
foreground: dark-grey
primary: black

logo:
medium: logo.png

typography:
fonts:
- family: Jura
source: google
base: Jura
headings: Jura
5 changes: 5 additions & 0 deletions brand/brand-simple-dark-mode/_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- source: project
quarto-pub:
- id: e013ed23-f589-4305-9d1e-c320e6491939
url: https://examples.quarto.pub/brand-simple-dark-mode/

16 changes: 16 additions & 0 deletions brand/brand-simple-dark-mode/_quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
project:
type: website

website:
title: "Simple Brand Example - Dark Mode"
navbar:
title: "Demo CO"
tools:
- icon: github
href: https://github.com/quarto-dev/quarto-examples/tree/main/brand/brand-simple-dark

brand:
light: _brand.yml
dark: _brand-dark.yml


24 changes: 24 additions & 0 deletions brand/brand-simple-dark-mode/dashboard.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: "Dashboard"
format: dashboard
---

## Row

::: {.valuebox icon="currency-dollar" color="primary"}
Sales

5.6k
:::

::: {.valuebox icon="graph-up" color="primary"}
Change

22%
:::

{{< lipsum 1 >}}

## Row

{{< placeholder 400 100 format=svg >}}
29 changes: 29 additions & 0 deletions brand/brand-simple-dark-mode/index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "Brand - Dark mode"
format:
html:
respect-user-color-scheme: true
other-links:
- href: dashboard.html
icon: speedometer
text: Dashboard
typst: default
revealjs:
output-file: index-reveal.html
dashboard:
output-file: index-dashboard.html
---

## Overview

This is a document themed using [**brand.yml**](https://posit-dev.github.io/brand-yml/) with both light and dark versions.

## Subheading

{{< lipsum 1 >}}

::: {.content-visible when-format="dashboard"}



:::
Binary file added brand/brand-simple-dark-mode/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.