Skip to content
Merged
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
30 changes: 26 additions & 4 deletions src/pages/docs/guides/sveltekit.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,37 @@ let steps = [
title: 'Install Tailwind CSS',
body: () => (
<p>
Install <code>tailwindcss</code> and its peer dependencies via npm, and then run the
following commands to generate both <code>tailwind.config.cjs</code> and{' '}
<code>postcss.config.cjs</code>.
Using npm, install <code>tailwindcss</code> and its peer dependencies, as well as{' '}
<code>svelte-preprocess</code>, and then run the following commands to generate both{' '}
<code>tailwind.config.cjs</code> and <code>postcss.config.cjs</code>.
</p>
),
code: {
name: 'Terminal',
lang: 'terminal',
code: 'npm install -D tailwindcss postcss autoprefixer\nnpx tailwindcss init tailwind.config.cjs -p\nmv postcss.config.js postcss.config.cjs',
code: 'npm install -D tailwindcss postcss autoprefixer svelte-preprocess\nnpx tailwindcss init tailwind.config.cjs -p\nmv postcss.config.js postcss.config.cjs',
},
},
{
title: 'Enable use of PostCSS in <style> blocks',
body: () => (
<p>
In your <code>svelte.config.js</code> file, import <code>svelte-preprocess</code> and
configure it to process <code>&lt;style&gt;</code> blocks as PostCSS.
</p>
),
code: {
name: 'svelte.config.js',
lang: 'js',
code: `> import preprocess from "svelte-preprocess";

const config = {
> preprocess: [
> preprocess({
> postcss: true,
> }),
> ],
}`,
},
},
{
Expand Down