Skip to content

Commit d69e68d

Browse files
committed
Migrate major deps
1 parent d0cf721 commit d69e68d

File tree

4 files changed

+27
-12
lines changed

4 files changed

+27
-12
lines changed

playwright.config.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { defineConfig } from '@playwright/test'
12
import check from 'is-port-reachable'
23

34
const dev = await check(5173, { host: 'localhost' })
45

5-
/** @type {import('@playwright/test').PlaywrightTestConfig} */
6-
const config = {
6+
export default defineConfig({
77
webServer: {
88
command: 'npx vite build && npx vite preview',
99
port: dev ? 5173 : 4173,
@@ -12,7 +12,6 @@ const config = {
1212
use: {
1313
baseURL: `http://localhost:${dev ? '5173' : '4173/svelte-toast/'}`
1414
},
15-
testDir: 'tests'
16-
}
17-
18-
export default config
15+
testDir: 'tests',
16+
testMatch: '**/*.js'
17+
})

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import '@fontsource/inter/variable.css'
2+
import '@fontsource-variable/inter'
33
import 'prismjs/themes/prism-tomorrow.css'
44
import '../app.postcss'
55
import { dev } from '$app/environment'

src/routes/+page.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ $: formatted = Prism.highlight(code, Prism.languages.javascript, 'javascript')
379379
<h1 class="text-4xl font-bold text-center mb-2">svelte-toast</h1>
380380
<div class="text-center mb-6">
381381
<a
382-
class="badge font-mono text-xs px-4 py-3 hover:opacity-80"
382+
class="badge font-mono text-xs px-4 py-3 hover:bg-base-300"
383383
href="https://github.com/zerodevx/svelte-toast"
384384
title="Visit Github repo"
385385
target="_blank"
@@ -393,8 +393,10 @@ $: formatted = Prism.highlight(code, Prism.languages.javascript, 'javascript')
393393
>
394394
gzipped) or as a Svelte component.
395395
</p>
396-
<div class="mockup-code h-80 mb-4 text-sm overflow-auto">
397-
<pre><code class="language-javascript">{@html formatted}</code></pre>
396+
<div class="mockup-code mb-6">
397+
<pre class="w-full h-64 text-sm overflow-x-auto"><code class="language-javascript"
398+
>{@html formatted}</code
399+
></pre>
398400
</div>
399401
<div class="flex flex-wrap justify-around">
400402
{#each buttons as btn}

tailwind.config.cjs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,27 @@ const config = {
55
theme: {
66
extend: {
77
fontFamily: {
8-
sans: ['InterVariable', ...dt.fontFamily.sans]
8+
sans: ['Inter Variable', ...dt.fontFamily.sans]
99
}
1010
}
1111
},
1212
plugins: [require('daisyui')],
1313
daisyui: {
14-
themes: ['light', 'dark']
14+
themes: [
15+
{
16+
light: {
17+
...require('daisyui/src/theming/themes')['[data-theme=light]'],
18+
primary: '#1C75BC',
19+
'primary-content': 'white'
20+
}
21+
},
22+
{
23+
dark: {
24+
...require('daisyui/src/theming/themes')['[data-theme=dark]'],
25+
primary: '#1C75BC'
26+
}
27+
}
28+
]
1529
}
1630
}
1731

0 commit comments

Comments
 (0)