@salty-css/react 0.0.1-alpha.122 → 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 +31 -23
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
- # Salty CSS - Kinda sweet but yet spicy CSS-in-JS library
1
+ ![Bannter](https://raw.githubusercontent.com/gist/tremppu/ef2b867907cbf262ab7373f41558a403/raw/a2137de136ee2296e386682beb4487bba0f58a2f/salty-logo-svg-dvd.svg)
2
2
 
3
- 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.
3
+ # Salty CSS - CSS-in-JS library that is kinda sweet
4
+
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.
4
6
 
5
7
  ## Features
6
8
 
@@ -21,10 +23,8 @@ In the world of frontend dev is there anything saltier than CSS? Salty CSS is bu
21
23
  Fastest way to get started with any framework is [npx salty-css init [directory]](#initialize-salty-css-for-a-project) command
22
24
 
23
25
  - Next.js → [Next.js guide](#nextjs) + [Next.js example app](https://github.com/margarita-form/salty-css-website)
24
- - React → [React guide](#react) + [React example code](#code-examples)
25
- - Vite[Vite guide](#vite)
26
- - Webpack → Guide coming soon
27
- - ESLint → Guide coming soon
26
+ - React + Vite → [React + Vite guide](#react--vite) + [React example code](#code-examples)
27
+ - React + Webpack Guide coming soon
28
28
 
29
29
  ### Salty CSS CLI
30
30
 
@@ -34,13 +34,21 @@ In your existing repository you can use `npx salty-css [command]` to initialize
34
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.
35
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
36
36
 
37
- ### Guides
37
+ ### Next.js
38
+
39
+ ![salty-next](https://github.com/user-attachments/assets/2cf6a93f-cdd5-4f5f-ab2e-3bc8bcfb83e8)
40
+
41
+ Salty CSS provides Next.js App & Pages router support with full React Server Components support.
42
+
43
+ #### Add Salty CSS to Next.js
38
44
 
39
- #### Next.js
45
+ 1. In your existing Next.js repository you can run `npx salty-css init` to automatically configure Salty CSS.
46
+ 2. Create your first Salty CSS component with `npx salty-css generate [filePath]` (e.g. src/custom-wrapper)
47
+ 3. Import your component for example to `page.tsx` and see it working!
40
48
 
41
- In your existing Next.js repository you can run `npx salty-css init` to automatically configure Salty CSS.
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 🤯
42
50
 
43
- ##### Manual configuration
51
+ #### Manual configuration
44
52
 
45
53
  1. For Next.js support install `npm i @salty-css/next @salty-css/core @salty-css/react`
46
54
  2. Create `salty.config.ts` to your app directory
@@ -55,11 +63,21 @@ In your existing Next.js repository you can run `npx salty-css init` to automati
55
63
 
56
64
  [Check out Next.js demo project](https://github.com/margarita-form/salty-css-website) or [react example code](#code-examples)
57
65
 
58
- #### Vite
66
+ ---
67
+
68
+ ### React + Vite
69
+
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
59
73
 
60
- In your existing Vite repository you can run `npx salty-css init` to automatically configure Salty CSS.
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!
61
77
 
62
- ##### Manual configuration
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
63
81
 
64
82
  1. For Vite support install `npm i @salty-css/vite @salty-css/core`
65
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
@@ -67,16 +85,6 @@ In your existing Vite repository you can run `npx salty-css init` to automatical
67
85
  4. Build `saltygen` directory by running your app once or with cli `npx salty-css build [directory]`
68
86
  5. Import global styles from `saltygen/index.css` to some global css file with `@import 'insert_path_to_index_css';`.
69
87
 
70
- #### React
71
-
72
- In your existing React repository you can run `npx salty-css init` to automatically configure Salty CSS.
73
-
74
- ##### Manual configuration
75
-
76
- 1. Install related dependencies: `npm i @salty-css/core @salty-css/react`
77
- 2. Create `salty.config.ts` to your app directory
78
- 3. Configure your build tool to support Salty CSS ([Vite](#vite) or Webpack) or after changes run `npx salty-css build`
79
-
80
88
  [Check out react example code](#code-examples)
81
89
 
82
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.122",
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.122",
49
+ "@salty-css/core": "^0.0.1-alpha.124",
50
50
  "clsx": ">=2.x",
51
51
  "react": ">=19.x || >=18.3.x"
52
52
  }