try out custom theme
Build marp presentation / build marp presentation (push) Successful in 1m2s

This commit is contained in:
Romane
2026-05-06 14:19:42 +02:00
parent 7527dbd917
commit 723f3ab72f
4 changed files with 1952 additions and 3 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
- name: build presentation - name: build presentation
working-directory: ./presentation working-directory: ./presentation
run: | run: |
npx @marp-team/marp-cli@latest presentation.md -o index.html && \ npx @marp-team/marp-cli@latest --theme-set styles/cantor.css presentation.md -o index.html && \
zip -r ../presentation.zip . zip -r ../presentation.zip .
- name: upload to pages - name: upload to pages
run: | run: |
+26 -2
View File
@@ -1,12 +1,23 @@
--- ---
title: Sample title goes here
author: romane
description: testing marpx
header: Header goes here
footer: "2026-XX-XX"
marp: true marp: true
theme: cantor
paginate: true paginate: true
footer: 2026-XX-XX transition: none
header: Some presentation title
size: 16:9
lang: en
math: mathjax math: mathjax
--- ---
# Presentation main screen # Presentation main screen
<!-- _class: "title-academic" -->
> Done at some point, very fast yaknow > Done at some point, very fast yaknow
@@ -28,6 +39,19 @@ func main() {
} }
``` ```
---
# Schematic
<div class="multicolumn">
<div>col 1</div>
<div>col 2</div>
<div>col 3</div>
</div>
--- ---
# Done! # Done!
- Thanks for your attention! - Thanks for your attention!
+191
View File
@@ -0,0 +1,191 @@
/* @theme cantor */
@import "marpx";
/* Charter */
@import url("https://fonts.cdnfonts.com/css/charter-itc-tt");
:root {
--color-background1: hsl(0, 0%, 97%);
--color-background2: hsl(0, 0%, 91%);
--color-bold: #041a2c;
--color-font-h1: #242060;
--color-font: #2e2e2e;
--color-marker: #f0a211;
/* Gray */
--gray-100: #ffffff;
--gray-200: #f3f6fc;
--gray-300: #f1f4f8;
--gray-400: #f2f2f2;
--gray-500: #f0f0f0;
--gray-600: #e6e6e6;
--gray-700: #e0e0e0;
--gray-800: #c4c7c5;
--gray-900: #a0a0a0;
--gray-1000: #444746;
--gray-1100: #444444;
--gray-1200: #333333;
--gray-1300: #1f1f1f;
--gray-1400: #1e1e1e;
/* Blue */
--blue-100: #e5eef4;
--blue-200: #d3e3fd;
--blue-300: #a8c7fa;
--blue-350: #74a9ff;
--blue-400: #1e88e5;
--blue-500: #0b57d0;
--blue-600: #003875;
--blue-700: #06284c;
--blue-800: #041e49;
--blue-900: #162e51;
--blue-1000: #0c1e38;
/* Khaki */
--khaki-d100: #fef7e0;
--khaki-d200: #fad762;
--khaki-d300: #fdca24;
--khaki-d400: #ffab10;
--khaki-d500: #e9e3d1;
--khaki-d600: #b8b8b8;
--khaki-d700: #bbb7a9;
--khaki-d800: #a2a0a0;
--khaki-d900: #3c3f3b;
--khaki-d1000: #706d63;
--khaki-d1100: #2e2626;
--khaki-d1200: #d1002a;
/* Green */
--green-d100: #eeff00;
/* MAIN GLOBAL PARAMETERS of THEME */
--marpx-theme-font-size: 24pt;
--marpx-theme-letter-spacing: inherit;
--marpx-theme-font-family: "Fira Sans", "Open Sans", serif;
--marpx-theme-font-family: 'Charter ITC TT','Fira Sans', 'Faustina', 'Bookerly', 'Lora', sans-serif;
--marpx-theme-background-color: var(--color-background1);
--marpx-theme-font-color: var(--color-font);
--marpx-theme-bold-color: var(--color-bold);
--marpx-theme-marker-color: var(--color-marker);
--marpx-theme-h1-color: var(--color-font-h1);
--marpx-theme-h1-bold-color: var(--khaki-d800);
--marpx-theme-h2-color: var(--blue-d500);
/* SECONDARY GLOBAL PARAMETERS of THEME */
--marpx-theme-color: var(--color-font);
--marpx-theme-figure-captiontext-color: var(--khaki-d1200);
--marpx-theme-figure-captiontext: "Fig. ";
--marpx-theme-highlight-color: var(--blueViolet-500);
--marpx-theme-table-captiontext: "Table. ";
--marpx-theme-table-captiontext-color: var(--khaki-d1200);
--marpx-theme-toc-color: var(--blue-d500);
/* CHAPTER */
--marpx-theme-chapter-background-color: var(--blue-d300);
--marpx-theme-chapter-h1-font-color: var(--khaki-d500);
--marpx-theme-chapter-h2-font-color: var(--khaki-d500);
/* TITLE ACADEMIC */
--marpx-title-header-color: var(--color-marker);
--marpx-title_academic-background-color: var(--color-background2);
--marpx-title_academic-title-color: var(--gray-1300);
--marpx-title_academic-subtitle-color: var(--khaki-d700);
--marpx-title_academic-border-color: var(--blue-d300);
--marpx-title_academic-author-color: var(--color-marker);
--marpx-title_academic-font-color: var(--khaki-d700);
--marpx-title_academic-title-size: 130%;
--marpx-title_academic-title-font-weight: bold;
--marpx-title_academic-subtitle-size: 90%;
--marpx-title_academic-author-size: 90%;
--marpx-title_academic-institute-size: 75%;
--marpx-title_academic-letter-spacing: -0.7px;
/* QUOTE */
--marpx-quote-font-color: var(--color-font);
--marpx-quote-background-color: var(--khaki-d500);
--marpx-quote-bold-color: var(--khaki-d1200);
--marpx-quote-paragraph-background-color: inherit;
--marpx-quote_dark-font-color: var(--color-background1);
--marpx-quote_dark-bold-color: var(--khaki-d400);
--marpx-quote_dark-color-background: var(--khaki-d900);
--marpx-quote_dark-color-paragraph-background: inherit;
/* REFERENCES */
--marpx-references-background-color: var(--color-background1);
--marpx-references-header-color: var(--blue-d500);
--marpx-references-bold-color: var(--color-font-h1);
--marpx-references-color: var(--color-font);
--marpx-references-font-family: arial, "source sans pro", arial;
/* TABLE */
--marpx-table-font-color: var(--color-font);
--marpx-table-hover-background-color: var(--violet-100);
--marpx-table-hover-color: var(--blueViolet-400);
}
/* Demais diferenças estruturais */
section {
line-height: 1.2em;
}
section code:not(pre code) {
color: var(--color-font);
background: var(--khaki-d300) !important;
border: 0px solid var(--color-font);
border-radius: 8px;
padding: 1px 5px;
font-size: 0.98em;
display: inline-block;
}
section.slide.white,
section.white-slide {
color: var(--color-font);
}
section.references a {
color: var(--blue-d700);
font-weight: 100;
text-decoration: underline;
}
section.chapter {
background-size: cover; /* Ajusta a imagem para cobrir todo o fundo */
background-repeat: no-repeat; /* Evita repetição da imagem */
background-position: center; /* Centraliza a imagem no fundo */
background-color: rgb(0, 25, 46);
filter: grayscale(0.3) brightness(0.9);
background-image: linear-gradient(to right bottom, #4e6699, #010c24);
/* background-image: url("./pattern01.jpg"); */
}
section.quote {
--marpx-quote-font-color: var(--blue-d100);
--marpx-quote-background-color: var(--blue-d200);
--marpx-quote-bold-color: var(--green-d100);
background-image: radial-gradient(#141414 0%, transparent 0%, var(--blue-d700) 83%);
}
section.quote.dark {
--marpx-quote_dark-font-color: white;
background-image: linear-gradient(to top, var(--blue-d600), var(--blue-d900));
/* background-image: url("./pattern01.jpg"); */
}
File diff suppressed because it is too large Load Diff