Skip to content

Commit 8804979

Browse files
chore: wip
1 parent 0b3401f commit 8804979

File tree

25 files changed

+41
-100
lines changed

25 files changed

+41
-100
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ _Develop dynamic UIs with helpers for atomic design, and much more._
268268
- 🖥️ **Desktop** _transforms your web app into a desktop app, plus more_
269269
- 📝 **Documentation** _markdown-based documentation, auto-generated_
270270
- 📚 **Library** _auto-builds & manages component & function libraries_
271-
- ⚡️ Powered by Bun, Tauri, UnoCSS, Vite, VitePress and Vue
271+
- ⚡️ Powered by Bun, Tauri, Headwind, Vite, VitePress and Vue
272272

273273
### Backend Development
274274

config/lint.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export default config({
1414
vue: false,
1515
jsonc: true,
1616
yaml: true,
17-
unocss: true,
1817

1918
ignores: [
2019
'**/fixtures',

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ features:
6363
details: “An approachable, performant and versatile framework for building web UIs,” Vue.
6464
- title: Atomic CSS Engine
6565
icon: 🎨
66-
details: “Instant on-demand atomic CSS engine,” UnoCSS. Easily create & manage your styles.
66+
details: "Blazingly fast utility-first CSS framework," Headwind. Easily create & manage your styles.
6767
- title: Streamlined Testing
6868
icon: 🧪
6969
details: A fast built-in testing framework. Enjoyable support for both unit & feature tests.

headwind.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { HeadwindOptions } from 'headwind'
2+
3+
export default {
4+
content: [
5+
'./resources/**/*.{html,js,ts,jsx,tsx,stx}',
6+
'./storage/framework/defaults/**/*.{html,js,ts,jsx,tsx,stx}',
7+
'./storage/framework/views/**/*.{html,js,ts,jsx,tsx,stx}',
8+
],
9+
output: './storage/framework/assets/headwind.css',
10+
minify: false,
11+
} satisfies HeadwindOptions

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"@stacksjs/clarity": "^0.3.24",
5959
"@stacksjs/stx": "link:@stacksjs/stx",
6060
"bun-plugin-stx": "link:bun-plugin-stx",
61+
"headwind": "link:headwind",
6162
"stacks": "workspace:*"
6263
},
6364
"workspaces": [

storage/framework/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ _Develop dynamic UIs with helpers for atomic design, and much more._
258258
- 🖥️ **Desktop** _transforms your web app into a desktop app, plus more_
259259
- 📝 **Documentation** _markdown-based documentation, auto-generated_
260260
- 📚 **Library** _auto-builds & manages component & function libraries_
261-
- ⚡️ Powered by Bun, Tauri, UnoCSS, Vite, VitePress and Vue
261+
- ⚡️ Powered by Bun, Tauri, Headwind, Vite, VitePress and Vue
262262

263263
### Backend Development
264264

storage/framework/core/buddy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ _Develop dynamic UIs with helpers for atomic design, and much more._
258258
- 🖥️ **Desktop** _transforms your web app into a desktop app, plus more_
259259
- 📝 **Documentation** _markdown-based documentation, auto-generated_
260260
- 📚 **Library** _auto-builds & manages component & function libraries_
261-
- ⚡️ Powered by Bun, Tauri, UnoCSS, Vite, VitePress and Vue
261+
- ⚡️ Powered by Bun, Tauri, Headwind, Vite, VitePress and Vue
262262

263263
### Backend Development
264264

storage/framework/core/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@shikijs/vitepress-twoslash": "^3.12.2",
4040
"@vite-pwa/assets-generator": "^1.0.0",
4141
"@vite-pwa/vitepress": "^1.0.0",
42-
"unocss": "^66.4.2",
42+
"headwind": "link:headwind",
4343
"unplugin-icons": "^22.2.0",
4444
"unplugin-vue-components": "^28.8.0",
4545
"vite-plugin-pwa": "^1.0.3",

storage/framework/core/types/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const result = await Bun.build({
1212
target: 'bun',
1313
// sourcemap: 'linked',
1414
minify: true,
15-
external: ['@stacksjs/validation', 'consola', 'unocss', '@unocss/core'],
15+
external: ['@stacksjs/validation', 'consola', 'headwind'],
1616
plugins: [
1717
dts({
1818
root: '.',

storage/framework/core/types/src/ui.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import type { UserConfig } from '@unocss/core'
2-
import type { UserShortcuts } from 'unocss'
1+
import type { HeadwindOptions } from 'headwind'
32

43
export type Font = 'inter' | 'mona' | 'hubot'
54
export type Icon = 'heroicons' | 'hugeicons'
65
export type WebFontsProviders = 'google' | 'bunny' | 'fontshare'
7-
export type Shortcuts = UserShortcuts
6+
export type Shortcuts = HeadwindOptions['shortcuts']
87

98
export interface FontInfo {
109
title: string
@@ -119,7 +118,7 @@ export interface UiOptions {
119118
* reset styles are utilized. You may set this value to `null`
120119
* if you prefer not applying any default stylesheets.
121120
*
122-
* @url https://www.npmjs.com/package/@unocss/reset
121+
* @url https://github.com/stacksjs/headwind
123122
* @todo preset needs to be added via a Vite plugin on development & build
124123
* @example
125124
* ```ts
@@ -163,11 +162,10 @@ export interface UiOptions {
163162
icons: Icon | Icon[]
164163
// icons: Record<string, () => Promise<any>>
165164

166-
theme: UserConfig['theme']
167-
// plugins: UserConfig['plugins']
168-
// corePlugins: UserConfig['corePlugins']
169-
variants: UserConfig['variants']
170-
layers: UserConfig['layers']
165+
theme: HeadwindOptions['theme']
166+
// plugins: HeadwindOptions['plugins']
167+
// corePlugins: HeadwindOptions['corePlugins']
168+
variants: HeadwindOptions['variants']
171169
// darkMode: UserConfig['darkMode']
172170
// extend: UserConfig['extend']
173171
// screens: UserConfig['screens']

0 commit comments

Comments
 (0)