Skip to content

Commit c1c4c84

Browse files
chore(update-plugins): Sat Jan 25 08:04:46 UTC 2025
1 parent b790e88 commit c1c4c84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/plugins/tailwindcss.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ Generate a `tailwind.config.js` with
4848
npx tailwindcss init
4949
```
5050

51-
Adjust `content`, `darkMode`, `corePlugins` plus any other settings you need, here are the values we recommend:
51+
When the [NativeScript CLI](https://github.com/NativeScript/nativescript-cli) creates a new project, it may put code into a `src` folder instead of the `app` referenced below. Adjust `content`, `darkMode`, `corePlugins` plus any other settings you need. Here are the values we recommend. If you're struggling to get Tailwind working for the first time, check the `content` setting.
5252

5353
```js
5454
// tailwind.config.js
5555
const plugin = require('tailwindcss/plugin')
5656

5757
/** @type {import('tailwindcss').Config} */
5858
module.exports = {
59+
// check this setting first for initial setup issues
5960
content: ['./app/**/*.{css,xml,html,vue,svelte,ts,tsx}'],
6061
// use the .ns-dark class to control dark mode (applied by NativeScript) - since 'media' (default) is not supported.
6162
darkMode: ['class', '.ns-dark'],

0 commit comments

Comments
 (0)