@salty-css/react 0.0.1-alpha.123 → 0.0.1-alpha.124

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.
Files changed (2) hide show
  1. package/README.md +23 -25
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- ![Bannter](https://raw.githubusercontent.com/gist/tremppu/ef2b867907cbf262ab7373f41558a403/raw/7cc7dc697eb34342dc685d814eff6bc4d62796d2/salty-logo-svg-dvd.svg)
1
+ ![Bannter](https://raw.githubusercontent.com/gist/tremppu/ef2b867907cbf262ab7373f41558a403/raw/a2137de136ee2296e386682beb4487bba0f58a2f/salty-logo-svg-dvd.svg)
2
2
 
3
- # Salty CSS - Kinda sweet but yet spicy CSS-in-JS library
3
+ # Salty CSS - CSS-in-JS library that is kinda sweet
4
4
 
5
- In the world of frontend dev is there anything saltier than CSS? Salty CSS is built to provide better developer experience for developers looking for performant and feature rich CSS-in-JS solutions.
5
+ Is there anything saltier than CSS in frontend web development? Salty CSS is built to provide better developer experience for developers looking for performant and feature rich CSS-in-JS solutions.
6
6
 
7
7
  ## Features
8
8
 
@@ -23,10 +23,8 @@ In the world of frontend dev is there anything saltier than CSS? Salty CSS is bu
23
23
  Fastest way to get started with any framework is [npx salty-css init [directory]](#initialize-salty-css-for-a-project) command
24
24
 
25
25
  - Next.js → [Next.js guide](#nextjs) + [Next.js example app](https://github.com/margarita-form/salty-css-website)
26
- - React → [React guide](#react) + [React example code](#code-examples)
27
- - Vite[Vite guide](#vite)
28
- - Webpack → Guide coming soon
29
- - ESLint → Guide coming soon
26
+ - React + Vite → [React + Vite guide](#react--vite) + [React example code](#code-examples)
27
+ - React + Webpack Guide coming soon
30
28
 
31
29
  ### Salty CSS CLI
32
30
 
@@ -36,21 +34,21 @@ In your existing repository you can use `npx salty-css [command]` to initialize
36
34
  - Generate component → `npx salty-css update [version]` - Update @salty-css packages in your repository. Default version is "latest". Additional options like `--dir`, `--tag`, `--name` and `--className` are also supported.
37
35
  - Build files → `npx salty-css build [directory]` - Compile Salty CSS related files in your project. This should not be needed if you are using tools like Next.js or Vite
38
36
 
39
- ### Guides
37
+ ### Next.js
40
38
 
41
- #### Next.js
39
+ ![salty-next](https://github.com/user-attachments/assets/2cf6a93f-cdd5-4f5f-ab2e-3bc8bcfb83e8)
42
40
 
43
41
  Salty CSS provides Next.js App & Pages router support with full React Server Components support.
44
42
 
45
- ##### Add Salty CSS to Next.js
43
+ #### Add Salty CSS to Next.js
46
44
 
47
45
  1. In your existing Next.js repository you can run `npx salty-css init` to automatically configure Salty CSS.
48
46
  2. Create your first Salty CSS component with `npx salty-css generate [filePath]` (e.g. src/custom-wrapper)
49
47
  3. Import your component for example to `page.tsx` and see it working!
50
48
 
51
- And note: steps 2 & 3 are just to show how get things up and running, step 1 does all of the important stuff 🤯
49
+ And note: steps 2 & 3 are just to show how get new components up and running, step 1 does all of the important stuff 🤯
52
50
 
53
- ##### Manual configuration
51
+ #### Manual configuration
54
52
 
55
53
  1. For Next.js support install `npm i @salty-css/next @salty-css/core @salty-css/react`
56
54
  2. Create `salty.config.ts` to your app directory
@@ -65,11 +63,21 @@ And note: steps 2 & 3 are just to show how get things up and running, step 1 doe
65
63
 
66
64
  [Check out Next.js demo project](https://github.com/margarita-form/salty-css-website) or [react example code](#code-examples)
67
65
 
68
- #### Vite
66
+ ---
69
67
 
70
- In your existing Vite repository you can run `npx salty-css init` to automatically configure Salty CSS.
68
+ ### React + Vite
71
69
 
72
- ##### Manual configuration
70
+ ![salty-vite-react](https://github.com/user-attachments/assets/12ec5b6a-0dcc-48fa-afc1-d337fc8f800c)
71
+
72
+ #### Add Salty CSS to your React + Vite app
73
+
74
+ 1. In your existing Vite repository you can run `npx salty-css init` to automatically configure Salty CSS.
75
+ 2. Create your first Salty CSS component with `npx salty-css generate [filePath]` (e.g. src/custom-wrapper)
76
+ 3. Import your component for example to `main.tsx` and see it working!
77
+
78
+ And note: steps 2 & 3 are just to show how get new components up and running, step 1 does all of the important stuff 🤯
79
+
80
+ #### Manual configuration
73
81
 
74
82
  1. For Vite support install `npm i @salty-css/vite @salty-css/core`
75
83
  2. In `vite.config` add import for salty plugin `import { saltyPlugin } from '@salty-css/vite';` and then add `saltyPlugin(__dirname)` to your vite configuration plugins
@@ -77,16 +85,6 @@ In your existing Vite repository you can run `npx salty-css init` to automatical
77
85
  4. Build `saltygen` directory by running your app once or with cli `npx salty-css build [directory]`
78
86
  5. Import global styles from `saltygen/index.css` to some global css file with `@import 'insert_path_to_index_css';`.
79
87
 
80
- #### React
81
-
82
- In your existing React repository you can run `npx salty-css init` to automatically configure Salty CSS.
83
-
84
- ##### Manual configuration
85
-
86
- 1. Install related dependencies: `npm i @salty-css/core @salty-css/react`
87
- 2. Create `salty.config.ts` to your app directory
88
- 3. Configure your build tool to support Salty CSS ([Vite](#vite) or Webpack) or after changes run `npx salty-css build`
89
-
90
88
  [Check out react example code](#code-examples)
91
89
 
92
90
  ### Create components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salty-css/react",
3
- "version": "0.0.1-alpha.123",
3
+ "version": "0.0.1-alpha.124",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "typings": "./dist/index.d.ts",
@@ -46,7 +46,7 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "@salty-css/core": "^0.0.1-alpha.123",
49
+ "@salty-css/core": "^0.0.1-alpha.124",
50
50
  "clsx": ">=2.x",
51
51
  "react": ">=19.x || >=18.3.x"
52
52
  }