Skip to content

Commit 6a58870

Browse files
committed
chore: wip
1 parent 7a891d8 commit 6a58870

14 files changed

Lines changed: 57 additions & 46 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ export default {
5757
} satisfies CrosswindOptions
5858
```
5959

60-
2. **Add utility classes to your HTML**:
60+
1. **Add utility classes to your HTML**:
6161

6262
```html
6363
<div class="flex items-center justify-between p-4 bg-blue-500 text-white rounded-lg shadow-md hover:bg-blue-600">
6464
<h1 class="text-2xl font-bold">Hello Crosswind!</h1>
6565
</div>
6666
```
6767

68-
3. **Build your CSS**:
68+
1. **Build your CSS**:
6969

7070
```bash
7171
# Build once
@@ -323,7 +323,7 @@ To contribute to Crosswind development:
323323

324324
```bash
325325
# Clone the repository
326-
git clone https://github.com/stacksjs/crosswind.git
326+
git clone https://github.com/cwcss/crosswind.git
327327
cd crosswind
328328

329329
# Install dependencies
@@ -357,7 +357,7 @@ For comprehensive documentation, visit [crosswind.stacksjs.org](https://crosswin
357357

358358
## Changelog
359359

360-
Please see our [releases](https://github.com/stacksjs/crosswind/releases) page for more information on what has changed recently.
360+
Please see our [releases](https://github.com/cwcss/crosswind/releases) page for more information on what has changed recently.
361361

362362
## Contributing
363363

@@ -375,7 +375,7 @@ We welcome contributions! Whether it's:
375375

376376
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
377377

378-
[Discussions on GitHub](https://github.com/stacksjs/crosswind/discussions)
378+
[Discussions on GitHub](https://github.com/cwcss/crosswind/discussions)
379379

380380
For casual chit-chat with others using this package:
381381

@@ -403,8 +403,8 @@ Made with 💙
403403
<!-- Badges -->
404404
[npm-version-src]: https://img.shields.io/npm/v/crosswind?style=flat-square
405405
[npm-version-href]: https://npmjs.com/package/crosswind
406-
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/stacksjs/crosswind/ci.yml?style=flat-square&branch=main
407-
[github-actions-href]: https://github.com/stacksjs/crosswind/actions?query=workflow%3Aci
406+
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/cwcss/crosswind/ci.yml?style=flat-square&branch=main
407+
[github-actions-href]: https://github.com/cwcss/crosswind/actions?query=workflow%3Aci
408408

409-
<!-- [codecov-src]: https://img.shields.io/codecov/c/gh/stacksjs/crosswind/main?style=flat-square
410-
[codecov-href]: https://codecov.io/gh/stacksjs/crosswind -->
409+
<!-- [codecov-src]: https://img.shields.io/codecov/c/gh/cwcss/crosswind/main?style=flat-square
410+
[codecov-href]: https://codecov.io/gh/cwcss/crosswind -->

bunpress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
{ text: 'Stacks Framework', link: 'https://stacksjs.org' },
2222
],
2323
},
24-
{ text: 'GitHub', link: 'https://github.com/stacksjs/crosswind' },
24+
{ text: 'GitHub', link: 'https://github.com/cwcss/crosswind' },
2525
],
2626

2727
markdown: {

docs/.vitepress/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const nav = [
2222
{ text: 'News', link: 'https://stacksjs.org/news' },
2323
{
2424
text: 'Changelog',
25-
link: 'https://github.com/stacksjs/crosswind/blob/main/CHANGELOG.md',
25+
link: 'https://github.com/cwcss/crosswind/blob/main/CHANGELOG.md',
2626
},
2727
// { text: 'Blog', link: 'https://updates.ow3.org' },
2828
{
@@ -132,7 +132,7 @@ export default withPwa(
132132
sidebar,
133133

134134
editLink: {
135-
pattern: 'https://github.com/stacksjs/crosswind/edit/main/docs/:path',
135+
pattern: 'https://github.com/cwcss/crosswind/edit/main/docs/:path',
136136
text: 'Edit this page on GitHub',
137137
},
138138

@@ -144,7 +144,7 @@ export default withPwa(
144144
socialLinks: [
145145
{ icon: 'twitter', link: 'https://twitter.com/stacksjs' },
146146
{ icon: 'bluesky', link: 'https://bsky.app/profile/chrisbreuer.dev' },
147-
{ icon: 'github', link: 'https://github.com/stacksjs/crosswind' },
147+
{ icon: 'github', link: 'https://github.com/cwcss/crosswind' },
148148
{ icon: 'discord', link: 'https://discord.gg/stacksjs' },
149149
],
150150

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ hero:
1313
link: /intro
1414
- theme: alt
1515
text: View on GitHub
16-
link: https://github.com/stacksjs/crosswind
16+
link: https://github.com/cwcss/crosswind
1717

1818
features:
1919
- title: "Performance"

docs/install.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Pre-built binaries are available for different platforms. Download the binary th
289289

290290
```sh [macOS (arm64)]
291291
# Download the binary
292-
curl -L https://github.com/stacksjs/crosswind/releases/latest/download/crosswind-darwin-arm64 -o crosswind
292+
curl -L https://github.com/cwcss/crosswind/releases/latest/download/crosswind-darwin-arm64 -o crosswind
293293

294294
# Make it executable
295295
chmod +x crosswind
@@ -300,7 +300,7 @@ sudo mv crosswind /usr/local/bin/crosswind
300300

301301
```sh [macOS (x64)]
302302
# Download the binary
303-
curl -L https://github.com/stacksjs/crosswind/releases/latest/download/crosswind-darwin-x64 -o crosswind
303+
curl -L https://github.com/cwcss/crosswind/releases/latest/download/crosswind-darwin-x64 -o crosswind
304304

305305
# Make it executable
306306
chmod +x crosswind
@@ -311,7 +311,7 @@ sudo mv crosswind /usr/local/bin/crosswind
311311

312312
```sh [Linux (arm64)]
313313
# Download the binary
314-
curl -L https://github.com/stacksjs/crosswind/releases/latest/download/crosswind-linux-arm64 -o crosswind
314+
curl -L https://github.com/cwcss/crosswind/releases/latest/download/crosswind-linux-arm64 -o crosswind
315315

316316
# Make it executable
317317
chmod +x crosswind
@@ -322,7 +322,7 @@ sudo mv crosswind /usr/local/bin/crosswind
322322

323323
```sh [Linux (x64)]
324324
# Download the binary
325-
curl -L https://github.com/stacksjs/crosswind/releases/latest/download/crosswind-linux-x64 -o crosswind
325+
curl -L https://github.com/cwcss/crosswind/releases/latest/download/crosswind-linux-x64 -o crosswind
326326

327327
# Make it executable
328328
chmod +x crosswind
@@ -333,7 +333,7 @@ sudo mv crosswind /usr/local/bin/crosswind
333333

334334
```sh [Windows (x64)]
335335
# Download the binary
336-
curl -L https://github.com/stacksjs/crosswind/releases/latest/download/crosswind-windows-x64.exe -o crosswind.exe
336+
curl -L https://github.com/cwcss/crosswind/releases/latest/download/crosswind-windows-x64.exe -o crosswind.exe
337337

338338
# Move it to your PATH (adjust the path as needed)
339339
move crosswind.exe C:\Windows\System32\crosswind.exe
@@ -342,7 +342,7 @@ move crosswind.exe C:\Windows\System32\crosswind.exe
342342
:::
343343

344344
::: tip
345-
You can also find Crosswind binaries in [GitHub releases](https://github.com/stacksjs/crosswind/releases).
345+
You can also find Crosswind binaries in [GitHub releases](https://github.com/cwcss/crosswind/releases).
346346
:::
347347

348348
## Verify Installation
@@ -454,6 +454,6 @@ If the build fails:
454454

455455
## Support
456456

457-
- [GitHub Issues](https://github.com/stacksjs/crosswind/issues)
457+
- [GitHub Issues](https://github.com/cwcss/crosswind/issues)
458458
- [Documentation](https://crosswind.sh)
459459
- [Discord Community](https://discord.gg/stacksjs)

docs/intro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,11 @@ Now that you understand what Crosswind is and how it works, explore:
358358

359359
## Community & Support
360360

361-
- **GitHub** - [github.com/stacksjs/crosswind](https://github.com/stacksjs/crosswind)
361+
- **GitHub** - [github.com/cwcss/crosswind](https://github.com/cwcss/crosswind)
362362
- **Discord** - [Join the Stacks Discord](https://discord.gg/stacksjs)
363-
- **Issues** - [Report bugs or request features](https://github.com/stacksjs/crosswind/issues)
364-
- **Discussions** - [Ask questions and share ideas](https://github.com/stacksjs/crosswind/discussions)
363+
- **Issues** - [Report bugs or request features](https://github.com/cwcss/crosswind/issues)
364+
- **Discussions** - [Ask questions and share ideas](https://github.com/cwcss/crosswind/discussions)
365365

366366
## License
367367

368-
Crosswind is open-source software licensed under the [MIT license](https://github.com/stacksjs/crosswind/blob/main/LICENSE.md).
368+
Crosswind is open-source software licensed under the [MIT license](https://github.com/cwcss/crosswind/blob/main/LICENSE.md).

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "@stacksjs/crosswind",
2+
"name": "@cwcss/crosswind",
33
"type": "module",
44
"version": "0.1.4",
55
"description": "A performant Utility-First CSS framework. Similar to Tailwind or UnoCSS.",
66
"author": "Chris Breuer <chris@stacksjs.org>",
77
"license": "MIT",
8-
"homepage": "https://github.com/stacksjs/crosswind#readme",
8+
"homepage": "https://github.com/cwcss/crosswind#readme",
99
"repository": {
1010
"type": "git",
11-
"url": "git+https://github.com/stacksjs/crosswind.git"
11+
"url": "git+https://github.com/cwcss/crosswind.git"
1212
},
1313
"bugs": {
14-
"url": "https://github.com/stacksjs/crosswind/issues"
14+
"url": "https://github.com/cwcss/crosswind/issues"
1515
},
1616
"keywords": [
1717
"css",

packages/crosswind/PLUGIN.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ A Bun plugin that automatically generates and injects Crosswind CSS into your HT
55
## Installation
66

77
```bash
8-
bun add @stacksjs/crosswind
8+
bun add @cwcss/crosswind
99
```
1010

1111
## Quick Start
1212

1313
**1. Create your HTML file** (`src/template.html`):
14+
1415
```html
1516
<!DOCTYPE html>
1617
<html>
@@ -26,6 +27,7 @@ bun add @stacksjs/crosswind
2627
```
2728

2829
**2. Import it in your TypeScript** (`src/index.ts`):
30+
2931
```typescript
3032
import template from './template.html'
3133

@@ -34,8 +36,9 @@ document.body.innerHTML = template
3436
```
3537

3638
**3. Build with the plugin**:
39+
3740
```typescript
38-
import { plugin } from '@stacksjs/crosswind'
41+
import { plugin } from '@cwcss/crosswind'
3942

4043
await Bun.build({
4144
entrypoints: ['./src/index.ts'],
@@ -45,6 +48,7 @@ await Bun.build({
4548
```
4649

4750
The plugin will automatically:
51+
4852
- Scan the HTML for utility classes
4953
- Generate CSS for those classes
5054
- Inject the CSS into the `<head>` section
@@ -54,7 +58,7 @@ The plugin will automatically:
5458
### Basic Configuration
5559

5660
```typescript
57-
import { plugin } from '@stacksjs/crosswind'
61+
import { plugin } from '@cwcss/crosswind'
5862

5963
await Bun.build({
6064
entrypoints: ['./src/index.ts'],
@@ -70,7 +74,7 @@ await Bun.build({
7074
### Custom Theme
7175

7276
```typescript
73-
import { plugin } from '@stacksjs/crosswind'
77+
import { plugin } from '@cwcss/crosswind'
7478

7579
await Bun.build({
7680
entrypoints: ['./src/index.ts'],
@@ -103,7 +107,7 @@ await Bun.build({
103107
### Advanced Configuration
104108

105109
```typescript
106-
import { plugin } from '@stacksjs/crosswind'
110+
import { plugin } from '@cwcss/crosswind'
107111

108112
await Bun.build({
109113
entrypoints: ['./src/index.ts'],
@@ -187,6 +191,7 @@ See the [examples/plugin](./examples/plugin) directory for a complete working ex
187191
## Performance
188192

189193
The plugin is highly performant:
194+
190195
- Processes 1000 utilities in ~7ms
191196
- Minimal overhead in build process
192197
- Lazy loading - only processes imported HTML files
@@ -196,7 +201,7 @@ The plugin is highly performant:
196201
The plugin is fully typed. Import the types:
197202

198203
```typescript
199-
import type { CrosswindPluginOptions } from '@stacksjs/crosswind'
204+
import type { CrosswindPluginOptions } from '@cwcss/crosswind'
200205

201206
const options: CrosswindPluginOptions = {
202207
config: {
@@ -211,7 +216,7 @@ The plugin also respects `crosswind.config.ts` in your project root:
211216

212217
```typescript
213218
// crosswind.config.ts
214-
import type { CrosswindOptions } from '@stacksjs/crosswind'
219+
import type { CrosswindOptions } from '@cwcss/crosswind'
215220

216221
export default {
217222
minify: true,

packages/crosswind/bin/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ cli
208208
process.exit(1)
209209
}
210210

211-
const defaultConfig = `import type { CrosswindOptions } from '@stacksjs/crosswind'
211+
const defaultConfig = `import type { CrosswindOptions } from '@cwcss/crosswind'
212212
213213
const config = {
214214
content: ['./src/**/*.{html,js,ts,jsx,tsx}'],

packages/crosswind/examples/plugin/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ examples/plugin/
1616
## Usage
1717

1818
The plugin works by intercepting HTML imports in your TypeScript/JavaScript code. When you import an HTML file, the plugin:
19+
1920
1. Scans the HTML for Crosswind utility classes
2021
2. Generates the corresponding CSS
2122
3. Injects the CSS into the `<head>` section
@@ -24,7 +25,7 @@ The plugin works by intercepting HTML imports in your TypeScript/JavaScript code
2425
### Basic Setup
2526

2627
```typescript
27-
import { plugin } from '@stacksjs/crosswind'
28+
import { plugin } from '@cwcss/crosswind'
2829

2930
await Bun.build({
3031
entrypoints: ['./src/index.ts'],
@@ -34,6 +35,7 @@ await Bun.build({
3435
```
3536

3637
**Your TypeScript file** (`src/index.ts`):
38+
3739
```typescript
3840
import html from './index.html'
3941

@@ -44,7 +46,7 @@ document.body.innerHTML = html
4446
### With Custom Configuration
4547

4648
```typescript
47-
import { plugin } from '@stacksjs/crosswind'
49+
import { plugin } from '@cwcss/crosswind'
4850

4951
await Bun.build({
5052
entrypoints: ['./src/index.ts'],
@@ -87,19 +89,23 @@ bun run build.ts
8789
## Options
8890

8991
### `config`
92+
9093
Custom Crosswind configuration to override defaults. This can include:
94+
9195
- `minify`: Minify the generated CSS
9296
- `theme`: Custom theme colors, spacing, fonts, etc.
9397
- `shortcuts`: Define utility class shortcuts
9498
- `safelist`: Classes to always include
9599
- And more...
96100

97101
### `includePreflight`
102+
98103
Whether to include preflight (reset) CSS. Default: `true`
99104

100105
## Use Cases
101106

102107
This plugin is ideal for:
108+
103109
- Single Page Applications (SPAs) that import HTML templates
104110
- Component-based architectures where HTML is imported as strings
105111
- Build processes that need automatic CSS generation from HTML

0 commit comments

Comments
 (0)