create new theme
This commit is contained in:
3
styles/index.ts
Normal file
3
styles/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
// inherit from base layouts, remove it to get full customizations
|
||||
import '@slidev/client/styles/layouts-base.css'
|
||||
import './layout.css'
|
24
styles/layout.css
Normal file
24
styles/layout.css
Normal file
@ -0,0 +1,24 @@
|
||||
:root {
|
||||
/* default theme color */
|
||||
/* can be overrided by uses `themeConfig` option */
|
||||
--slidev-theme-primary: #5d8392;
|
||||
}
|
||||
|
||||
.slidev-layout.cover,
|
||||
.slidev-layout.intro {
|
||||
@apply h-full grid;
|
||||
|
||||
h1 {
|
||||
@apply text-6xl leading-20;
|
||||
}
|
||||
|
||||
h1 + p {
|
||||
@apply -mt-2 opacity-50 mb-4;
|
||||
}
|
||||
|
||||
p + h2,
|
||||
ul + h2,
|
||||
table + h2 {
|
||||
@apply mt-10;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user