@ramme-io/ui 1.0.2 → 1.0.4
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/LICENSE +21 -0
- package/README.md +90 -14
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Excesspool Limited Liability Company
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
|
-
# Ramme
|
|
1
|
+
# Ramme UI
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@ramme-io/
|
|
3
|
+
[](https://www.npmjs.com/package/@ramme-io/ui) [](https://opensource.org/licenses/MIT)
|
|
4
4
|
|
|
5
|
-
**The
|
|
5
|
+
**The blocks for the build kit.**
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Ramme UI is a basic bundle of standard, accessible components, and best practices ready for rapid prototyping.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## The Basics
|
|
12
|
+
|
|
13
|
+
We have collected popular third-party libraries into a single build kit:
|
|
14
|
+
|
|
15
|
+
* **Engine:** React 19+
|
|
16
|
+
* **Styling:** Tailwind CSS
|
|
17
|
+
* **Primitives:** Radix UI
|
|
18
|
+
* **Motion:** Framer Motion
|
|
19
|
+
* **Icons:** Lucide React
|
|
10
20
|
|
|
11
21
|
---
|
|
12
22
|
|
|
13
23
|
## Quick Start
|
|
14
24
|
|
|
15
|
-
To
|
|
25
|
+
To spin up a new project, run the initialization command in your terminal. This will generate a new folder with all resources linked and configured.
|
|
16
26
|
|
|
17
27
|
*(Replace `my-new-project` with your desired folder name).*
|
|
18
28
|
|
|
@@ -24,11 +34,11 @@ This single command will:
|
|
|
24
34
|
1. **Scaffold** a high-performance Vite project structure.
|
|
25
35
|
2. **Install** React 19, TypeScript, and Tailwind CSS.
|
|
26
36
|
3. **Configure** the `@ramme-io/ui` component library and design tokens.
|
|
27
|
-
4. **Optimize**
|
|
37
|
+
4. **Optimize** limited configuration for customization.
|
|
28
38
|
|
|
29
39
|
---
|
|
30
40
|
|
|
31
|
-
##
|
|
41
|
+
## Getting Started
|
|
32
42
|
|
|
33
43
|
Once the scaffolding is complete, initialize your local environment:
|
|
34
44
|
|
|
@@ -43,18 +53,18 @@ pnpm install
|
|
|
43
53
|
# or npm install
|
|
44
54
|
```
|
|
45
55
|
|
|
46
|
-
**3.
|
|
56
|
+
**3. Start the dev server**
|
|
47
57
|
```bash
|
|
48
58
|
pnpm run dev
|
|
49
59
|
```
|
|
50
60
|
|
|
51
|
-
Your prototype is
|
|
61
|
+
Your prototype is running locally at `http://localhost:5173`.
|
|
52
62
|
|
|
53
63
|
---
|
|
54
64
|
|
|
55
65
|
## The Tech Stack
|
|
56
66
|
|
|
57
|
-
This starter kit is
|
|
67
|
+
This starter kit is an opinionated selection of the best open-source tools available:
|
|
58
68
|
|
|
59
69
|
* **Vite:** Next-generation tooling for instant server start and lightning-fast HMR (Hot Module Replacement).
|
|
60
70
|
* **React:** The standard library for building composable user interfaces.
|
|
@@ -64,15 +74,81 @@ This starter kit is not a proprietary framework; it is an opinionated orchestrat
|
|
|
64
74
|
|
|
65
75
|
---
|
|
66
76
|
|
|
67
|
-
##
|
|
77
|
+
## Manual Installation
|
|
78
|
+
|
|
79
|
+
If you are adding Ramme to an existing project, install the core package:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
npm install @ramme-io/ui
|
|
83
|
+
# or
|
|
84
|
+
pnpm add @ramme-io/ui
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Component Usage
|
|
90
|
+
|
|
91
|
+
Ramme components are designed to be composable and intuitive.
|
|
92
|
+
|
|
93
|
+
```tsx
|
|
94
|
+
import React from 'react';
|
|
95
|
+
import { Button, Card, PageHeader } from '@ramme-io/ui';
|
|
96
|
+
import { ArrowRight } from 'lucide-react';
|
|
97
|
+
|
|
98
|
+
function LandingPage() {
|
|
99
|
+
return (
|
|
100
|
+
<div className="p-8 max-w-4xl mx-auto">
|
|
101
|
+
<PageHeader
|
|
102
|
+
title="Prototype Faster."
|
|
103
|
+
description="Stop fighting with config files. Start designing in code."
|
|
104
|
+
/>
|
|
105
|
+
|
|
106
|
+
<Card className="mt-8 p-6 border-neutral-200 shadow-sm">
|
|
107
|
+
<h3 className="text-lg font-medium mb-2">Ready to build?</h3>
|
|
108
|
+
<p className="text-neutral-600 mb-6">
|
|
109
|
+
This component is accessible, responsive, and themable by default.
|
|
110
|
+
</p>
|
|
111
|
+
<Button variant="default" onClick={() => console.log('Launch')}>
|
|
112
|
+
Initialize Project <ArrowRight className="ml-2 h-4 w-4" />
|
|
113
|
+
</Button>
|
|
114
|
+
</Card>
|
|
115
|
+
</div>
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export default LandingPage;
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Local Development
|
|
125
|
+
|
|
126
|
+
If you want to contribute to the project or customize the primitives, you can run our component workbench locally.
|
|
127
|
+
|
|
128
|
+
1. Install Dependencies:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
pnpm install
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
2. Run Storybook: This starts the local development environment where you can test components in isolation.
|
|
68
135
|
|
|
69
|
-
|
|
136
|
+
```bash
|
|
137
|
+
pnpm run storybook
|
|
138
|
+
```
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Project Links
|
|
70
142
|
|
|
71
143
|
* **`@ramme-io/ui`**: The core library of visual primitives.
|
|
72
|
-
* **`@ramme-io/create-app`** (This Repository): The
|
|
144
|
+
* **`@ramme-io/create-app`** (This Repository): The quick start kit.
|
|
73
145
|
|
|
74
146
|
---
|
|
75
147
|
|
|
148
|
+
## Contributing
|
|
149
|
+
|
|
150
|
+
We welcome contributions from the community. Just fork the repository and submit a pull request. For major changes, please open an issue first to discuss.
|
|
151
|
+
|
|
76
152
|
## License
|
|
77
153
|
|
|
78
154
|
Copyright © 2025 Excesspool Limited Liability Company.
|