Skip to content

Commit d84450b

Browse files
committed
feat: theme working
1 parent a70a214 commit d84450b

File tree

20 files changed

+120
-110
lines changed

20 files changed

+120
-110
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"private": true,
3+
"version": "0.0.0-beta.1",
34
"scripts": {
45
"dev": "vite-slides",
56
"build": "vite-slides build"
67
},
78
"dependencies": {
89
"vite-slides": "workspace:*"
9-
},
10-
"version": "0.0.0-beta.1"
10+
}
1111
}
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
2-
"name": "vite-slides",
3-
"version": "0.0.0-beta.1",
4-
"files": [],
2+
"private": true,
53
"scripts": {
64
"dev": "npm -C packages/demo run dev",
75
"demo:build": "npm -C packages/demo run build",
86
"build": "pnpm -r run build",
9-
"release": "npx bumpp package.json packages/*/package.json --commit --tag --push && pnpm -r publish"
7+
"release": "npx bumpp packages/*/package.json --commit --tag --push && pnpm -r publish"
108
},
119
"devDependencies": {
1210
"@antfu/eslint-config": "^0.6.2",

packages/demo/.index.html

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
<template>
2-
<div class="master center">
2+
<div class="layout-master center">
33
<div class="my-auto">
44
<slot />
55
</div>
66
</div>
77
</template>
8-
9-
<style lang="postcss">
10-
.master.center {
11-
@apply h-full grid place-content-center;
12-
}
13-
</style>
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
<template>
2-
<div class="master cover">
2+
<div class="layout-master cover">
33
<div class="my-auto">
44
<slot />
55
</div>
66
</div>
77
</template>
8-
9-
<style lang="postcss">
10-
.master.cover {
11-
@apply h-full flex;
12-
13-
h1 {
14-
@apply text-6xl leading-20;
15-
}
16-
17-
h1 ~ p {
18-
@apply opacity-40 mb-10 text-2xl;
19-
}
20-
}
21-
</style>
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import 'virtual:windi-base.css'
2-
import 'virtual:windi-components.css'
31
import './main.css'
2+
import './layout.css'
43
import './code.css'
5-
import 'virtual:windi-utilities.css'
6-
import 'virtual:windi-devtools'

packages/theme-default/layouts/default.vue renamed to packages/theme-default/styles/layout.css

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
<template>
2-
<main class="master default">
3-
<slot />
4-
</main>
5-
</template>
6-
7-
<style lang="postcss">
8-
.master {
1+
.layout-master {
92
@apply px-14 py-10 text-[1.1rem];
103

114
h1, h2, h3, h4, p, div {
@@ -84,4 +77,19 @@
8477
@apply font-600;
8578
}
8679
}
87-
</style>
80+
81+
.layout-master.cover {
82+
@apply h-full flex;
83+
84+
h1 {
85+
@apply text-6xl leading-20;
86+
}
87+
88+
h1 ~ p {
89+
@apply opacity-40 mb-10 text-2xl;
90+
}
91+
}
92+
93+
.layout-master.center {
94+
@apply h-full grid place-content-center;
95+
}

0 commit comments

Comments
 (0)