starlight-theme-nova 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/layer.css ADDED
@@ -0,0 +1 @@
1
+ @layer base, starlight, nova, theme, components, utilities;
package/lib/styles.css CHANGED
@@ -1,5 +1,3 @@
1
- @layer base, starlight, nova, theme, components, utilities;
2
-
3
1
  @import './markdown.css' layer(nova);
4
2
  @import './shiki.css' layer(nova);
5
3
  @import './aside.css' layer(nova);
@@ -0,0 +1,2 @@
1
+ @import 'tailwindcss';
2
+ @import './tailwind.css';
package/lib/tailwind.css CHANGED
@@ -1,5 +1,3 @@
1
- @import 'tailwindcss';
2
-
3
1
  @source '../src/**/*.ts';
4
2
  @source '../src/**/*.astro';
5
3
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starlight-theme-nova",
3
3
  "type": "module",
4
- "version": "0.11.2",
4
+ "version": "0.11.3",
5
5
  "description": "A beautiful theme for Astro Starlight",
6
6
  "author": "ocavue <ocavue@gmail.com>",
7
7
  "license": "MIT",
@@ -58,6 +58,6 @@
58
58
  },
59
59
  "scripts": {
60
60
  "build": "pnpm run build:tailwindcss",
61
- "build:tailwindcss": "tailwindcss -i ./lib/tailwind.css -o ./lib/tailwind.gen.css"
61
+ "build:tailwindcss": "tailwindcss -i ./lib/tailwind.build.css -o ./lib/tailwind.gen.css"
62
62
  }
63
63
  }
package/src/index.ts CHANGED
@@ -53,14 +53,14 @@ export default function starlightThemeNova(
53
53
 
54
54
  const newConfig = {
55
55
  customCss: [
56
+ 'starlight-theme-nova/layer.css',
57
+
58
+ useTailwind ? '' : 'starlight-theme-nova/tailwind.gen.css',
59
+
56
60
  ...(config.customCss || []),
57
- // Including nova styles *after* any user CSS, so that @layer nova
58
- // can have a higher precedence.
61
+
59
62
  'starlight-theme-nova/styles.css',
60
- useTailwind
61
- ? 'starlight-theme-nova/tailwind.css'
62
- : 'starlight-theme-nova/tailwind.gen.css',
63
- ],
63
+ ].filter(Boolean),
64
64
  components: {
65
65
  // Including any user components *after* our own.
66
66
  ...components,